1 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3 * grub-core/osdep/haiku/getroot.c (grub_util_find_partition_start_os):
4 Avoid division by zero.
6 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8 * grub-core/kern/generic/rtc_get_time_ms.c (grub_rtc_get_time_ms): Avoid
11 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13 * grub-core/loader/i386/xnu.c (guessfsb): Avoid division by 0.
15 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
17 * grub-core/kern/i386/tsc.c (calibrate_tsc): Ensure that
18 no division by 0 occurs.
20 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22 * include/grub/misc.h (grub_div_roundup): Remove as it's unused.
24 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26 * grub-core/term/gfxterm.c: Avoid division by zero.
28 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30 Avoid division by zero in serial.
32 * grub-core/term/serial.c (grub_cmd_serial): Ensure speed is not 0.
33 * grub-core/term/ns8250.c (serial_get_divisor): Exit if speed is 0.
35 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
37 * grub-core/video/readers/jpeg.c: Avoid sivision by zero.
39 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
41 * grub-core/disk/diskfilter.c: Validate volumes to avoid division
44 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
46 * include/grub/term.h: Avoid returining 0-sized terminal
47 as it may lead to division by zero.
49 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
51 * grub-core/fs/zfs.c: Avoid divisions by zero.
53 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
55 * grub-core/fs/btrfs.c: Avoid divisions by zero.
57 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
59 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Check that hash len is not 0.
61 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
63 * grub-core/osdep/linux/blocklist.c (grub_install_get_blocklist): Check
66 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
68 * grub-core/disk/i386/pc/biosdisk.c: Check disk size sanity.
70 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
72 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Check block size
75 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
77 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Do not
80 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
82 * grub-core/fs/hfs.c (grub_hfs_mount): Additional filesystem
85 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
87 * grub-core/fs/minix.c: Additional filesystem
90 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
92 * grub-core/fs/ext2.c (grub_ext2_mount): Additional
93 checks for superblock validity.
95 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
97 * grub-core/fs/ufs.c (grub_ufs_mount): Check
98 that sblock.ino_per_group is not 0.
100 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
102 Reject NILFS2 superblocks with over 1GiB blocks.
104 * grub-core/fs/nilfs2.c (grub_nilfs2_valid_sb): Check that
105 block size is <= 1GiB.
107 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
109 * grub-core/disk/ata.c (grub_ata_setaddress): Check that geometry
110 is sane when using CHS addressing.
112 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
114 * grub-core/disk/AFSplitter.c (AF_merge): Check that mdlen is not 0.
116 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
118 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Avoid
121 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
123 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_maxpacket): Avoid
124 potentially returning 0.
126 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
128 * grub-core/fs/minix.c (grub_minix_read_file): Avoid reading past
131 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
133 * grub-core/fs/fshelp.c (grub_fshelp_read_file): Don't attempt to read
134 past the end of file.
136 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
138 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Update len
139 synchronously with line.
141 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
143 Replace explicit sizeof divisions by ARRAY_SIZE.
145 2015-01-19 Kris Moore <kris@pcbsd.org>
147 * grub-core/disk/geli.c: Support GELI v6 and v7.
149 2014-12-09 Andrei Borzenkov <arvidjaar@gmail.com>
151 * grub-core/term/serial.c (grub_cmd_serial): Fix --rtscts
154 2014-12-07 David Kozub <zub.272@gmail.com>
156 * grub-core/kern/arm/misc.S: fix unaligned 64bit local variable
158 Fixes Savannah bug #43632.
160 2014-12-07 Peter Nelson <peterdn>
162 * grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse
165 2014-12-07 Andrei Borzenkov <arvidjaar@gmail.com>
167 * util/grub-mkconfig_lib.in (version_test_gt): Remove redundant
168 non-portable '-n' echo option.
169 * util/grub.d/10_kfreebsd.in: Change how list is built to avoid
170 non-portable 'echo -n.
171 * util/grub.d/10_linux.in: Likewise (closes 43668).
172 * util/grub.d/20_linux_xen.in: Likewise.
173 * util/grub.d/30_os-prober.in: Print spaces directly to avoid
174 non-portable 'echo -n'.
176 2014-12-07 Curtis Larsen <larsen@dixie.edu>
178 * grub-core/net/tcp.c (grub_net_recv_tcp_packet): Fix double
179 free when multiple empty segments were received (closes 42765).
181 2014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
183 * tests/util/grub-shell.in: Support --files also for netboot.
184 * tests/file_filter_test.in: New file with file filters tests.
185 * Makefile.util.def: Add file_filter_test.
186 * conf/Makefile.extra-dist: ... and here.
187 * tests/file_filter/file.gz: Test file for file_filter_test.
188 * tests/file_filter/file.gz.sig: Likewise.
189 * tests/file_filter/file.lzop: Likewise.
190 * tests/file_filter/file.lzop.sig: Likewise.
191 * tests/file_filter/file.xz: Likewise.
192 * tests/file_filter/file.xz.sig: Likewise.
193 * tests/file_filter/keys: Likewise.
194 * tests/file_filter/keys.pub: Likewise.
195 * tests/file_filter/test.cfg: Likewise.
196 * grub-core/commands/verify.c: Fix memory corruption doing
197 signature check for network files (closes 43601).
199 2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
201 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
202 memory leak (CID 73645, 73782).
203 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
206 2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
208 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
209 inline array (CID 73610).
211 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
213 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
214 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
215 (Coverity CID 73813, 73710)
216 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
217 and use after free (Coverity CID 73813, 73710, 73730)
218 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
220 * util/grub-install-common.c (grub_install_get_target): Check return
221 value of grub_util_fd_read (Coverity CID 73819).
222 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
223 to hd.magic (Coverity CID 73587, 73888, bug 43690).
225 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
227 * tests/util/grub-fs-tester.in: Consistently print output
228 of grub ls if test fails.
230 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
232 * grub-core/kern/efi/init.c: check value of *path before
235 2014-11-03 Michael Chang <mchang@suse.com>
237 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
238 of neighbor solicitation packet in grub_netbuff_pull.
240 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
242 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
243 avoid fatal warnings with older gcc (probably before 4.7).
244 * grub-core/loader/arm64/linux.c: Likewise.
245 * grub-core/loader/i386/linux.c: Likewise.
246 * grub-core/loader/i386/pc/linux.c: Likewise.
247 * grub-core/loader/ia64/efi/linux.c: Likewise.
248 * grub-core/loader/mips/linux.c: Likewise.
249 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
250 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
252 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
254 Fix in-tree --platform=none
256 * configure.ac: Only remove include/grub/cpu and
257 include/grub/machine in the --platform=none case, not all of
260 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
262 Add a new "none" platform that only builds utilities
264 * configure.ac: Add "none" platform. Default to it for unsupported
265 CPUs rather than stopping with a fatal error. Don't downgrade
266 x86_64-none to i386. Define COND_real_platform Automake conditional
267 if the platform is anything other than "none". Don't do any include
268 directory linking for "none".
269 * Makefile.am: Skip building grub-core and all bootcheck targets if
271 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
274 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
276 Use grub_cpu_to_XXX_compile_time for constants.
278 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
280 The AML parser implements only a small subset of possible AML
281 opcodes. On the Fujitsu Lifebook E744 this and another bug in
282 the parser (incorrect handling of TermArg data types) would lead
283 to the laptop not turning off (_S5 not found).
285 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
286 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
287 aren't always simply strings!); Add function to skip TermArgs
288 * include/grub/acpi.h: Add new opcodes
290 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
292 * grub-core/normal/main.c: Don't drop to rescue console in
293 case of password-protected prompt and no menu entries.
295 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
297 * grub-core/commands/keylayouts.c: Ignore unknown keys.
299 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
301 * grub-core/gmodule.pl.in: Accept newer binutils which output
302 empty column rather than 0x0.
304 2014-09-21 Michael Chang <mchang@suse.com>
306 * grub-core/osdep/unix/config.c: Remove extraneous comma.
308 2014-09-21 Peter Jones <pjones@redhat.com>
310 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
311 we don't free a random pointer from the stack.
312 * grub-core/loader/arm64/linux.c: Likewise.
313 * grub-core/loader/i386/linux.c: Likewise.
314 * grub-core/loader/i386/pc/linux.c: Likewise.
315 * grub-core/loader/ia64/efi/linux.c: Likewise.
316 * grub-core/loader/mips/linux.c: Likewise.
317 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
318 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
320 2014-09-15 Khem Raj <raj.khem@gmail.com>
322 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
323 _BSD_SOURCE to avoid warnings under glibc 2.20+.
325 2014-09-08 Michael Chang <mchang@suse.com>
327 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
328 check; comparing &data->extent against addresses in the region it
329 points to is unpredictable.
331 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
333 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
335 * configure.ac: Remove -m64 from checks for -mcmodel=large and
336 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
337 already in TARGET_CFLAGS at this point, and they produce incorrect
338 results when building for x32.
339 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
340 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
341 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
342 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
344 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
346 * configure.ac: Remove several unnecessary semicolons.
348 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
350 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
351 Initialise pend to pacify GCC.
353 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
355 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
358 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
360 * grub-core/term/at_keyboard.c: Retry probing keyboard if
361 scancode setup failed.
363 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
365 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
367 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
369 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
370 safety to avoid triggerring VirtualBox bug.
372 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
374 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
376 Fixes hang on virtualbox.
378 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
380 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
381 kernels whose paths contain regex metacharacters.
382 * util/grub.d/10_kfreebsd.in: Likewise.
383 * util/grub.d/10_linux.in: Likewise.
384 * util/grub.d/20_linux_xen.in: Likewise.
386 Reported by: Heimo Stranner.
388 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
390 * docs/grub-dev.texi (Finding your way around): The build system no
391 longer uses AutoGen directly.
393 2014-06-21 Роман Пехов <roman_pekhov>
395 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
397 2014-06-21 Glenn Washburn <development@efficientek.com>
399 * util/grub-install.c: Fix handling of --disk-module.
401 2014-06-21 Stephane Rochoy <sheda>
403 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
406 2014-06-21 Stephane Rochoy <sheda>
408 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
409 EFI system table physical address.
411 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
413 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
415 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
417 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
419 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
421 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
424 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
426 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
428 Reported by: Yves Blusseau <blusseau@zetam.org>.
430 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
432 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
433 GDT in conventional memory.
435 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
437 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
438 UUID. Other parts of grub-mkconfig tolerate these, they were
439 previously allowed here up to commit
440 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
441 practice when the system has active LVM snapshots.
442 Fixes Ubuntu bug #1287436.
444 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
446 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
447 "logical_volumes" block a little more accurately.
449 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
451 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
453 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
455 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
458 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
460 Replace few instances of memcmp/memcpy in the code that should be
461 grub_memcmp/grub_memcpy.
463 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
465 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
468 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
470 btrfs: fix get_root key comparison failures due to endianness
472 * grub-core/fs/btrfs.c (get_root): Convert
473 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
475 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
477 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
479 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
480 no longer to be forgiving of trailing spaces on grub-probe output
481 lines, which among other things means that util/grub.d/10_linux.in
482 no longer detects LVM. To fix this, make grub-probe's output
483 delimiting more consistent. As a bonus, this improves the coverage
486 Fixes Debian bug #735935.
488 * grub-core/disk/cryptodisk.c
489 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
490 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
492 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
494 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
495 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
496 probe_mods): Adjust for extra user-data arguments.
497 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
498 probe_abstraction): Use configured delimiter. Update callers.
500 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
502 * util/grub-probe,c (options): Make -0 work again (broken by
504 (main): Simplify logic.
506 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
508 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
510 2014-03-26 Fu Wei <fu.wei@linaro.org>
512 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
514 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
516 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
517 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
519 Suggested by: Markus Müller.
521 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
523 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
524 if E820 failed to return any regions.
526 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
528 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
529 tables for low memory calculations.
531 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
533 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
536 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
538 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
541 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
543 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
546 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
548 Add bootpath parser for open firmware.
550 It enables net boot even when there is no bootp/dhcp server.
552 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
553 and call it at grub_ieee1275_net_config_real.
554 * grub-core/kern/ieee1275/init.c: Add bootpath to
555 grub_ieee1275_net_config.
556 * include/grub/ieee1275/ieee1275.h: Likewise.
559 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
561 Add grub_env_set_net_property function.
563 * grub-core/net/bootp.c: Remove set_env_limn_ro.
564 * grub-core/net/net.c: Add grub_env_set_net_property.
565 * include/grub/net.h: Likewise.
567 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
569 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
571 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
573 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
575 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
577 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
578 7 seconds to recover if last poweroff was bad.
580 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
582 * grub-core/disk/ahci.c: Properly handle transactions with no
585 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
587 * grub-core/disk/ahci.c: Add safety cleanups.
589 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
591 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
592 slots to avoid pointing to uninited area.
594 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
596 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
597 enabling busmaster for the end.
599 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
601 * util/grub-mkfont.c: Downgrade warnings about unhandled features
604 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
606 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
608 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
610 * .gitignore: add missing files and .exe variants.
612 2014-01-26 Mike Gilbert <floppym@gentoo.org>
614 grub-install: support for partitioned partx loop devices.
616 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
617 /dev/loopX as being the parent of /dev/loopXpY.
619 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
621 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
622 Ensure that pointers are inited to NULL and that pointers are not
625 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
627 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
628 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
629 * include/grub/emu/misc.h: ... and here.
630 * include/grub/err.h: ... and here.
631 * util/import_gcry.py: ... and here (in files g10lib.h).
633 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
635 * util/grub-mkimage.c: Make prefix argument mandatory.
637 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
639 Fix several translatable strings.
641 Suggested by: D. Prévot.
643 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
645 * util/grub-install.c: List available targets.
647 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
649 * util/grub-install.c (write_to_disk): Add an info message.
651 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
653 * Makefile.am: Allow adding extra files to generated Windows ZIP
654 archive by setting GRUB_WINDOWS_EXTRA_DIST.
656 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
658 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
659 Show detected font path in summary.
661 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
663 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
665 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
666 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
667 * grub-core/net/tftp.c (tftp_open): Likewise.
668 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
670 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
672 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
675 In net/net.c there is a while (1) that only exits if there is a stop
676 condition and more then 10 packages or if there is no package received.
678 If GRUB is idle and enter in this loop, the only condition to leave is
679 if it doesn't have incoming packages. In a network with heavy traffic
682 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
684 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
685 EPERM when modifying kern.geom.debugflags. It is only a problem for
686 such things as installing GRUB to the MBR, in which case there'll be
687 an error later anyway, not for opening files during tests.
689 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
691 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
692 instead of MOD_FILES.
693 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
694 both with and without .exe.
695 * grub-core/genemuinitheader.sh: Same.
697 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
699 * util/grub-install.c: Fix a typo.
701 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
703 * grub-core/normal/main.c (read_config_file): Buffer config file.
706 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
708 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
709 symbolic link to directory. It fails in Msys shell on Windows 2003.
711 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
713 * Makefile.am (default_payload.elf): Add modules
714 multiboot cbmemc linux16 gzio echo help.
716 2014-01-18 Mike Gilbert <floppym@gentoo.org>
718 * Makefile.util.def: Link grub-ofpathname with zfs libs.
720 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
722 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
725 Reported by: Andrey Borzenkov.
727 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
729 * include/grub/misc.h: Move macros for compiler features to ...
730 * include/grub/compiler.h: ... new file.
731 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
732 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
733 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
734 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
735 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
736 * grub-core/video/capture.c: Include <grub/misc.h>.
737 * include/grub/command.h: Include <grub/misc.h>.
738 * include/grub/dl.h: Include <grub/misc.h>.
739 * include/grub/procfs.h: Include <grub/misc.h>.
741 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
743 * configure.ac: Add support for BUILD_EXEEXT and use it ...
744 * Makefile.am: ... here.
745 * Makefile.util.def: ... and here.
746 * grub-core/Makefile.am: ... and here.
748 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
750 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
751 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
753 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
755 * grub-core/term/terminfo.c: Recognize keys F1-F12.
757 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
759 * configure.ac: Add support for BUILD_LDFLAGS.
760 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
761 * grub-core/Makefile.am: ... and here.
762 * INSTALL: Mention BUILD_LDFLAGS.
764 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
766 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
768 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
770 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
773 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
775 * NEWS: Add few missing entries.
777 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
779 * util/grub.d/00_header.in (make_timeout): Use && rather than test
781 * util/grub.d/10_windows.in: Likewise.
782 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
784 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
787 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
789 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
790 redundant preprocessor conditional.
792 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
794 * Makefile.util.def (grub-macbless): Change mansection to 8.
796 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
798 * grub-core/loader/arm64/linux.c: correctly set device path end length.
800 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
802 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
803 arm64 to comply with EFI specification. Also use grubaa64.efi for
805 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
807 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
809 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
810 on MinGW-64 when compiling for 32 bits.
812 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
814 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
816 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
818 * NEWS: Add few missing entries. Correct existing ones.
820 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
822 Don't abort() on unavailable coreboot tables if not running on coreboot.
824 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
826 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
829 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
831 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
832 mention of it from 2.02.
834 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
836 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
838 As these functions are used on pre-ARMv6 CPUs as well we don't want
839 to make assembler assume that architecture is higher than default one.
841 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
843 * NEWS: First draft of 2.02 entry.
845 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
847 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
848 * docs/grub.texi (Getting the source code): Likewise.
850 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
852 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
855 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
857 * configure.ac: Set version to 2.02~beta2.
859 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
861 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
863 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
865 * util/grub-probe.c: Improve help message and simplify list handling.
867 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
869 Fix buffer overflow in grub_efi_print_device_path.
871 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
873 Show SATA device path.
875 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
877 Revert grub-file usage in grub-mkconfig.
879 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
881 Make newly-created files other than grub.cfg world-readable.
883 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
885 * util/grub.d/00_header.in: Improve compatibility with old config.
887 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
889 Make rijndael.c respect aliasing rules.
891 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
893 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
895 Make grub_util_device_is_mapped_stat available in grub-emu core.
897 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
899 Add -Qn to TARGET_CFLAGS if it's supported.
900 Fixes compilation on cygwin.
902 Reported by: Andrey Borzenkov.
903 Suggested by: Andrey Borzenkov.
905 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
907 Save TARGET_CC version in modinfo.sh.
909 Suggested by: Andrey Borzenkov.
911 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
913 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
914 follow the same algorithm to avoid method mismatch. Don't assume
915 DMRAID- UUID to mean full disk but instead check that mapping is linear.
917 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
919 Declare GRUB_EFI_VENDOR_APPLE_GUID.
921 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
923 Dump type and vendor specific data when printing device path.
925 2013-12-23 Colin Watson <cjwatson@debian.org>
927 Update some documentation to refer to Git rather than Bazaar.
929 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
931 * po/README: Likewise. Fix spelling mistake.
933 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
935 Don't distribute config.h.
937 * Makefile.am (platform_HEADERS): Move to ...
938 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
939 failure when building from a distributed tarball.
941 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
943 * configure.ac: Fix spelling.
944 * grub-core/commands/parttool.c: Fix grammar.
945 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
946 Embedding Partition".
948 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
950 ARM64 support for grub-mkrescue.
952 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
954 Install modinfo.sh to keep build information around.
956 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
958 * grub-core/modinfo.sh.in: Add build config information.
960 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
962 ARM64 grub-file and grub-mkconfig support.
964 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
966 Remove leftover options defines.
968 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
970 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
972 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
974 * grub-core/loader/arm64/linux.c: Add missing bracket.
976 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
978 Add arm64-efi recognition to grub-file.
980 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
982 Fix ia64-efi recognition in grub-file.
984 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
986 Recognize raspberry pi kernel in grub-file.
988 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
990 Enable cache on ARM U-Boot port.
992 Without it the port is reidiculously slow.
994 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
996 Fix ARM cache maintainance.
998 More code was converted from ASM to C for easier handling.
1000 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1002 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
1005 Suggested by: Leif Lindholm.
1007 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
1009 * util/grub-mkconfig.in: Fix Xen platform conditions.
1011 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
1013 * util/grub-mkrescue.c: Split single help message string in several
1014 strings used in previous shell version.
1016 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
1018 Add arm64 Linux loader.
1020 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
1022 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
1024 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1026 Add module loading and parsing boot time checkpoints.
1028 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1030 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
1033 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
1035 * util/grub-mkconfig.in: Skip non-executable files.
1037 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1039 Workaround buggy timer in raspberry pie by using our own timer
1042 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1044 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
1045 Increase to 16 MiB to allow loading the whole memdisk.
1047 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1049 Fix ARM Linux Loader on non-FDT platforms.
1051 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1053 * configure.ac: Choose link format based on host_os on emu.
1055 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1057 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
1059 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1061 * grub-core/kern/emu/main.c: Build fix for emu.
1063 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1065 Build fixes for argp.h with older gcc.
1067 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1069 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
1072 Suggested by: David Prévot.
1074 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1076 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
1078 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1080 Enable -Wformat=2 if it's supported.
1082 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1084 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
1085 -Wmissing-declarations if supported.
1087 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1089 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
1090 u32 as both HFS and HFS+ have 32-bit inodes.
1092 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1094 * include/grub/misc.h (grub_strtol): Fix overflow.
1096 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1098 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
1099 as return type in both conditionals.
1101 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1103 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
1104 to use uint8_t for color.
1106 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1108 * util/misc.c (grub_util_get_image_size): Check for overflow.
1110 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1112 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
1115 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1117 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
1118 for pointer difference.
1120 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1122 * util/import_gcry.py: Skip sample keys.
1124 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1126 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
1128 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1130 * configure.ac: Remove duplicate warning arguments.
1132 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1134 Add missing static qualifiers.
1136 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1138 Add missing includes.
1140 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1142 Inline printf templates when possible to enable format checking.
1144 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1146 * include/grub/crypto.h: Don't discard const attribute.
1148 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1150 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
1153 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1155 * grub-core/lib/crypto.c: Don't discard const attribute.
1157 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1159 * grub-core/lib/disk.c: Fix potential overflow.
1161 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1163 * grub-core/lib/arg.c: Don't discard const attribute.
1165 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1167 * grub-core/kern/dl.c: Don't discard const attribute.
1169 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1171 * grub-core/kern/disk.c: Fix potential overflow.
1173 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1175 * conf/Makefile.common: Don't include non-existing directory
1176 grub-core/lib/libgcrypt-grub/include.
1178 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1180 Clarify several translatable messages.
1182 2013-12-21 David Prévot <david@tilapin.org>
1184 Correct some translatable strings.
1186 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1188 * util/grub-mkrescue.c: Rephrase mkrescue description.
1190 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1191 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1193 Clarify several translatable messages.
1195 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1197 Be more verbose about some configure failures.
1199 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1201 Fix various build problems on GNU/Hurd.
1203 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1205 (xgetcwd): Likewise.
1206 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1207 [__GNU__]: Add prototype.
1208 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1209 long int using %ld rather than %d.
1211 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1213 * util/grub-install.c: Inform user about install platform.
1215 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1217 * configure.ac: Set version to 2.02~beta1.
1219 2013-12-18 Allen Pais <allen.pais@oracle.com>
1220 2013-12-18 Bob Picco <bob.picco@oracle.com>
1222 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1224 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1226 Make grub_zlib_decompress handle incomplete chunks.
1230 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1232 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1235 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1237 * grub-core/disk/usbms.c: Retry on unknown errors.
1238 Reuse the same tag on retries.
1240 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1242 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1244 Avoid confusing them with already completed transfers.
1246 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1250 Due to XEN bug it prevents Linux boot. Remove it at least, until
1251 workaround is found.
1253 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1255 * po/exclude.pot: Add 2 missing excludes.
1257 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1259 Add missing license section in macbless.mod and macho.mod.
1261 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1263 Allow compilation without thumb-interwork as long as no thumb is
1264 involved or only thumb2 is used.
1266 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1268 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1270 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1272 Add __attribute__ ((sysv_abi)) only if it's really needed.
1274 Some compilers don't support it.
1276 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1278 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1280 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1282 Remove -Wold-style-definition.
1284 Not very useful and interaction of it with regexp depends on GCC
1287 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1289 Make grub_util_get_windows_path_real static.
1291 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1293 * grub-core/commands/fileXX.c: Silence cast-align.
1294 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1296 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1298 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1299 rather than LL suffix.
1301 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1303 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1305 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1307 * grub-core/loader/arm/linux.c: Use common initrd functions.
1309 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1311 Decrease number of strings to translate.
1313 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1315 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1317 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1319 Mark strings for translation and add remaining ones to exclude list.
1321 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1323 * util/grub-file.c (main): Fix sizeof usage.
1325 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1327 Silence spurious warning.
1329 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1331 Remove check_nt_hiberfil as it's been superseeded by file command.
1333 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1335 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1337 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1339 Implement syslinux parser.
1341 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1343 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1345 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1347 Support cpuid --pae.
1349 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1351 Use AT keyboard on Yeeloong 3A.
1353 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1355 Add Yeeloong 3A reboot and halt.
1357 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1359 Add Radeon Yeeloong 3A support.
1361 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1363 Add bonito 3A support.
1365 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1367 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1369 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1371 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1373 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1375 * grub-core/loader/macho.c: Fix compilation on non-i386.
1377 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1379 Add missing format_arg attribute to check that printf with translated
1380 messages has proper arguments.
1382 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1384 Use grub_xasprintf to format translated error messages containing
1387 2013-12-17 Jon McCune <jonmccune@google.com>
1389 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1391 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1393 Unify message for unsupported relocation.
1395 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1397 Mark miscompile error for translation.
1399 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1401 Use %I64 and not %ll when using OS printf if compiling for windows.
1403 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1405 Update Mac code to match new register_efi prototype.
1407 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1409 Implement better integration with Mac firmware.
1411 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1413 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1416 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1418 Include serial module in default_payload.elf.
1420 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1422 Add explicit thumb interwork bx in asm files.
1424 Shouldn't matter for armv >= 5 but let's be safe.
1426 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1428 Implement Truecrypt ISO loader.
1430 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1432 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1434 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1436 Implement grub_file tool and use it to implement generating of config
1439 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1441 Change to v1 xen grants.
1443 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1445 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1447 GRUB relied on %ebx being preserved across hypercall which isn't true.
1449 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1451 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1453 GRUB relied on %rdi being preserved across hypercall which isn't true.
1455 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1457 Implement XEN VFB support.
1459 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1461 Remove grub_bios_interrupt on coreboot.
1463 It's not used currently and cannot be used safely currently.
1465 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1467 Update exclude.pot and mark few strings for translation.
1469 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1471 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1473 Reported by: Jon McCune
1475 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1477 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1478 Add verbose information which firmware directories were tried.
1480 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1482 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1483 function to optionally redirect all three standard descriptors.
1484 Redefine grub_util_exec, grub_util_exec_redirect and
1485 grub_util_exec_redirect_null to use it.
1486 * include/grub/emu/exec.h: Define it.
1487 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1488 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1489 Use grub_util_exec_redirect_all to redirect error to NULL.
1491 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1493 * grub-core/tests/sleep_test.c: Silence spurious warning.
1495 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1497 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1498 linker trying to "fixup" the code.
1500 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1502 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1504 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1506 Add support for converting PE+ to Elf64.
1508 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1510 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1512 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1514 Remove practice of assigning random const pointers to device id.
1516 This is not required as cache code already checks driver id as well.
1518 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1520 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1523 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1525 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1526 mingw or cygwin as API already matches.
1528 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1530 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1532 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1534 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1537 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1539 Handle X86_64_PC64 relocation.
1541 Those are generated by some cygwin compilers.
1543 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1545 Determine the need for mingw-related stubs at compile time rather than
1546 using not very significant $target_os.
1548 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1550 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1551 may not work with ELF.
1553 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1555 Use unix functions for temporary files and special files on cygwin.
1557 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1559 Define functions explicitly rather than using --defsym in tests
1560 whenever possible. Respect locality in remaining cases.
1562 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1564 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1566 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1568 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1569 unlikely errors when getting EFI variables and make exhaustive search
1570 for all BootNNNN variables to find matching one.
1572 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1574 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1576 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1578 New functional test for sleep function.
1580 This test allows to check sleep without qemu. Keep qemu version as
1581 well as functional test won't notice if all clocks are going too fast
1584 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1586 Add explicit sysv_abi on amd64 asm routines.
1588 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1590 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1593 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1595 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1598 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1600 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1603 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1605 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1607 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1609 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1612 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1614 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1616 In case of quick removal of loopback and adding another one it may
1617 get same ID, confusing the cache system.
1619 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1621 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1624 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1626 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1627 than converting to long.
1629 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1631 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1633 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1635 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1636 than almost useless pointer.
1638 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1640 Add gcc_struct to all packed structures when compiling with mingw.
1642 Just "packed" doesn't always pack the way we expect.
1644 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1646 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1648 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1650 * util/grub-pe2elf.c: Fix handling of .bss.
1652 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1654 Implement windows flavour of EFI install routines.
1656 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1658 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1660 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1662 Change grub_install_register_efi interface to pass GRUB device.
1664 This allows grub_install_register_efi to request partition info
1667 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1669 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1671 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1673 Do not use TCHAR string functions as they are not available on cygwin.
1675 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1677 Workaround windows bug when querying EFI system partition parameters.
1679 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1681 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1684 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1686 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1688 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1690 Make i386-* other than i386-pc compileable under cygwin.
1692 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1694 Fix definition of grub_efi_hard_drive_device_path. Take care that
1695 existing code would work even if by some reason bogus definition is
1696 used by EFI implementations.
1698 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1700 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1702 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1704 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1707 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1709 * util/config.c: Remove trailing newline from distributor in simple
1712 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1714 * include/grub/efi/api.h: Rename protocol and interface to avoid
1717 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1719 * .gitignore: add .exe variants. add missing files. remove few outdated
1722 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1724 * grub-core/osdep/exec.c: Use unix version on cygwin.
1726 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1728 Implement multiboot2 EFI BS specification.
1730 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1732 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1733 Crash happened only in some cases like a string starting at the
1734 half of the screen of same length.
1736 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1738 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1739 with EFI counterpart.
1741 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1743 Propagate the EFI commits to x86-efi specific parts.
1745 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1747 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1749 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1751 Introduce grub_efi_packed_guid and use it where alignment is not
1754 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1756 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1757 unaligned u16 rather than u8[2].
1759 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1761 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1762 for relocation range.
1764 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1766 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1767 non-function pcrel21b relocation. It happens with .text.unlikely
1770 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1772 * make MAX_USABLE_ADDRESS platform-specific
1773 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1775 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1777 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1779 2013-12-09 Jon McCune <jonmccune@google.com>
1781 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1782 in grub-install and grub-bios-setup for x86 BIOS targets.
1784 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1786 Add missing compile and link options for sparc64-emu.
1788 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1790 Implement sparc64 trampolines (needed for sparc64-emu).
1792 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1794 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1795 range of R_SPARC_HI22.
1796 Implement R_SPARC_LM22.
1798 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1800 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1801 Do not explicitly check for symbol table as it's already checked in
1802 platform-independent layer.
1804 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1806 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1807 on ia64 as __clear_cache is a dummy on ia64.
1809 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1811 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1812 Do not explicitly check for symbol table as it's already checked in
1813 platform-independent layer.
1815 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1817 * util/grub-mkconfig.in: Add missing newline to output.
1819 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1821 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1822 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1824 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1826 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1827 compilation with GCC <= 4.2.
1828 * grub-core/kern/emu/argp_common.c: Likewise.
1830 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1832 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1833 right platform rather than leaking to sparc64-emu.
1835 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1837 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1838 But ensure that the variables in question are indeed unsigned.
1840 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1842 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1844 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1846 Remove grub_memalign on emu.
1848 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1850 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1851 truncate incomplete lines but instead flushes them.
1853 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1855 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1856 and implement windows variant.
1858 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1860 Fix mips-emu compilation.
1862 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1864 * configure.ac: Check for freetype library usability.
1866 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1870 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1872 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1874 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1876 * docs/grub.texi (Environment): Update color_normal and color_highlight
1877 defaults (light-gray instead of white).
1879 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1881 * grub-core/normal/main.c (INIT): Set default color to light-gray
1882 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1883 and apparently BIOS defaults.
1885 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1887 Transform -C option to grub-mkstandalone to --core-compress available
1888 in all grub-install flavours.
1890 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1892 Merge GRUBFS and GRUB_FS variables.
1894 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1896 Revert commit 69ca97c820, it caused failures when using OS device name
1897 in grub-install. Instead just strip off parenthesis in grub-install
1898 if (hdX) was passed.
1900 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1902 * util/grub-install.c (push_partmap_module): Add helper to convert
1903 partmap names to module names and use it in probe_mods(). Fixes
1904 failure to find partmap modules in diskfilter case.
1906 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1908 * configure.ac: Make unifont mandatory on coreboot.
1910 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1912 * configure.ac: Skip unifont 6.3 pcf and bdf.
1914 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1916 * Makefile.am: Remove partial font files if generation failed.
1918 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1920 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1922 * include/grub/util/misc.h: Define it ...
1923 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1925 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1927 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1930 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1932 Don't add -mlong-calls when compiling with clang.
1934 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1936 * configure.ac: Fix a typo.
1938 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1940 Revamp relocation handling.
1942 Move more code to common dl.c. Add missing veneers for arm and arm64.
1943 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1945 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1947 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1949 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1951 * INSTALL: Raise minimum python version to 2.6.
1952 * gentpl.py: Use python3-style print function.
1954 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1956 * util/grub-install.c: Mention Boot* variable.
1958 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1960 * grub-core/osdep/linux/hostdisk.c
1961 (grub_util_find_partition_start_os): Initialise start to avoid
1962 spurious compiler warning.
1964 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1966 On Linux, read partition start offsets from sysfs if possible, to
1967 cope with block device drivers that don't implement HDIO_GETGEO.
1968 Fixes Ubuntu bug #1237519.
1970 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1972 (sysfs_partition_start): Likewise.
1973 (grub_util_find_partition_start_os): Try sysfs_partition_start
1976 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1978 * grub-core/kern/fdt.c: Update struct size when adding node.
1980 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1982 Handle unaligned .bss on sparc64.
1984 Current code improperly assumes that both __bss_start and _end are
1985 aligned to 8-bytes. Eliminating this assumption and explicitly align
1988 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1990 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1991 so it doesn't land in the middle of loaded image.
1993 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1995 * configure.ac: Move all warning options that may be absent in
1996 gcc >= 3.1 to optional.
1998 Note: while this allows to compile with older GCC, official requirements
1999 remain the same and no support for older GCC.
2001 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
2003 Copying the themes directory in grub-shell isn't
2004 parallel-test-friendly and breaks on the second test when the source
2005 directory is read-only (as in "make distcheck"). Instead, add a
2006 hidden --themes-directory option to grub-mkrescue et al, and use it
2009 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2011 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
2012 as it's no longer necessarry.
2014 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2016 * configure.ac: Allow compilation with older GCC for ARM.
2018 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2020 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
2021 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
2024 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2026 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
2028 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2030 Pass font config to config.h and not by TARGET_CFLAGS as adding
2031 arguments doesn't work if TARGET_CFLAGS is specified on command
2034 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2036 * configure.ac: Add -Wvla if compiler supports it.
2038 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2040 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
2041 Remove variable length arrays.
2042 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
2044 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2046 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
2048 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2050 * include/grub/types.h: Declare all byteswaps as inline functions
2051 except compile-time ones.
2053 Solves variable shadowing in constructions like
2054 cpu_to_le (le_to_cpu(x) + 1).
2056 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2058 * grub-core/kern/efi/efi.c: Remove variable length arrays.
2060 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2062 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
2065 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2067 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
2068 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
2070 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
2072 * grub-core/Makefile.core.def (setjmp): Distribute
2075 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
2077 Add a new timeout_style environment variable and a corresponding
2078 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
2079 controls hidden-timeout handling more simply than the previous
2080 arrangements, and pressing any hotkeys associated with menu entries
2081 during the hidden timeout will now boot the corresponding menu entry
2084 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
2085 generates a warning, and if it shows the menu it will do so as if
2086 the second timeout were not present. Other combinations are
2087 translated into reasonable equivalents.
2089 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
2091 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
2093 * util/config.c: Add missing pointer adjustment.
2094 Reported by: qwertial
2096 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
2098 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
2099 directly, not via `cpu' link, to fix libgrub.pp generation.
2101 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
2105 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
2107 * docs/grub.texi (sleep): Document exit codes.
2109 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2111 Ensure that -mno-unaligned-access or some equivalent option is used.
2113 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2115 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
2118 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2120 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
2122 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2124 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
2125 builds, since we don't have an EPS version of font_char_metrics.png.
2126 Add leading dot to image extension per the Texinfo documentation.
2128 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2130 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
2131 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
2132 * util/grub-gen-widthspec.c: Likewise.
2133 * util/grub-mkfont.c: Likewise.
2135 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
2137 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
2138 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
2139 failed to install on (hdX).
2140 * util/grub-setup.c (get_device_name): Remove, not needed after
2143 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2145 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
2147 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2149 * util/grub-fstest.c: Remove variable length arrays.
2151 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2153 * grub-core/osdep/linux/ofpath.c: Check return value of read.
2155 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2157 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2158 computing crc32 rather than handling with md fundtions directly.
2160 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2162 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2163 checking fwstart.img rather than md fundtions directly.
2165 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2167 * util/grub-mkrescue.c (main): Check that fread succeeded.
2169 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2171 * conf/Makefile.common: Remove -mexplicit-relocs and
2172 -DUSE_ASCII_FALLBACK on yeeloong.
2174 -DUSE_ASCII_FALLBACK is already added by font snippets.
2175 -mexplicit-relocs isn't needed is compiler/assemblera are
2176 configured properly.
2177 If they're not we shouldn't attempt to fix it by ourselves.
2178 Binary compare between before and after shows no difference.
2180 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2182 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2183 sources in dependencies directly.
2185 This was the only instance of "library" in core config. A bug was
2186 reported that -fno-stack-protector wasn't passed to it. Instead of
2187 figuring out why it failed just remove this construction used
2190 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2192 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2195 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2197 * docs/grub.texi (ls): Fix command description in case of a device name
2200 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2202 Eliminate variable length arrays in grub_vsnprintf_real.
2204 A bit tricky because this function has to continue to work without
2205 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2206 but make all stack references use 32-bit offset rather than 8-bit one.
2207 So split va_args preparsing to separate function and put the prealloc
2210 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2212 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2213 Fixes build for windows.
2215 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2217 * gentpl.py: Don't generate platform-dependent conditionals for
2218 platform-independent targets.
2220 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2222 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2223 references to mdadm from otherwise generic code.
2224 (grub_util_exec_pipe): Likewise.
2225 (grub_util_exec_pipe_stderr): Likewise.
2226 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2227 This function calls vgs, not mdadm; adjust variable names
2230 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2232 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2233 of Autogen. The Autogen definitions files remain intact as they
2234 offer a useful abstraction.
2236 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2238 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2239 into no-ops, and use it in programs that copy files but do not need
2240 to take special care to sync writes (grub-mknetdir, grub-rescue,
2243 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2245 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2246 than hardcoding /usr/local/bin/xorriso.
2248 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2250 Add PCI command activation to all PCI drivers as required for coreboot
2251 and maybe some other firmwares.
2253 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2255 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2256 and non-Apple variants of efiemu compile.
2258 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2260 * configure.ac: Add explicit check for linking format of
2261 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2262 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2263 hardcoding linking format.
2265 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2267 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2270 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2271 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2273 Add a --locale-directory option to grub-install and related tools.
2275 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2276 --locale-directory option.
2277 (enum grub_install_options): Add
2278 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2279 * util/grub-install-common.c (grub_install_help_filter): Handle
2280 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2281 (grub_install_parse): Likewise.
2282 (get_localedir): New function to check for a user-provided option
2283 before trying grub_util_get_localedir.
2284 (copy_locales): Use get_localedir rather than
2285 grub_util_get_localedir. Handle differing locale directory layouts.
2286 (grub_install_copy_files): Likewise.
2288 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2290 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2291 Don't rely on PATH_MAX.
2293 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2295 * grub-core/genmoddep.awk: Use more portable && rather than and.
2297 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2299 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2300 an object after data. While it doesn't seem right solution, it
2301 works well enough and OSX isn't main compilation platform.
2303 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2305 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2306 While it doesn't seem right solution, it works well enough and
2307 OSX isn't main compilation platform.
2309 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2311 * configure.ac: Add -static to LDFLAGS when using apple linker to
2312 prevent it from pulling in dynamic linker.
2314 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2316 Apple assembly doesn't handle symbol arithmetic well. So define an
2317 offset symbol in boot.S and use it.
2319 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2321 Apple assembly doesn't handle symbol arithmetic well. So instead
2322 of getting addres of kernel_sector + 4 define kernel_sector_high.
2323 It also makes code more readable.
2325 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2327 With Apple assembly in .macro environvemnt you have to use $$ instead
2328 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2329 to $$x on Apple and to $x on everything else.
2331 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2333 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2336 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2338 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2339 and non-Apple. This instruction is shorter and faster,
2340 so no reason not to use it on both.
2342 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2344 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2345 .text when compiling for Apple.
2347 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2349 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2351 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2353 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2354 %dx restore the probe worked on non-existant drive. Reorganize the
2355 code a little bit to free 2 bytes necessary for push/pop.
2357 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2359 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2360 Add missing cast to silence warning.
2362 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2364 * util/grub-install.c (update_nvram): Support --no-nvram flag
2367 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2369 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2371 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2373 * util/garbage-gen.c: Add missing include of sys/time.h.
2375 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2377 Don't add -mflush-func if it's not supported by compiler.
2379 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2381 Move common BIOS/coreboot memory map declarations to
2382 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2384 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2386 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2388 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2390 * INSTALL: Document why older clang versions aren't appropriate.
2392 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2394 * INSTALL: Document about clang for mips.
2396 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2398 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2401 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2403 Add *-xen to the list of grub-install-common platforms.
2405 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2407 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2410 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2412 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2414 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2416 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2417 with -mcmodel=large.
2419 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2421 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2422 range-checking for 32-bit quantities.
2424 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2426 * configure.ac: Compile with -fPIC when compiling with clang on
2429 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2431 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2432 when compiling with clang.
2434 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2436 clang emits calls to abort () under some unknown conditions.
2437 Export abort () when compiling with clang.
2439 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2441 * docs/grub-dev.texi: Document stack and heap sizes.
2443 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2445 * include/grub/i386/pc/memory.h: Decrease
2446 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2447 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2448 The binary doesn't change (checked). It's more to better reflect actual
2451 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2453 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2454 at compile time that enough of scratch size is available.
2456 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2458 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2459 Previously we misaligned stack by 8 in startup.S and compensated
2460 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2461 right behaviour is to align stack in startup.S and keep it aligned
2462 in callwrap.S. startup.S part was committed few commits before. This
2463 takes care of callwrap.S.
2464 Reported by: Gary Lin.
2466 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2468 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2469 .data and .bss. May happen if compiler and assembly use different
2472 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2474 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2477 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2479 Add support for a new magic symbol _gp_disp on mips to handle PIC
2482 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2484 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2486 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2488 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2489 when rest of GRUB is compiled for hisher stepping. Instead use
2490 .set mips3/.set mips1 around cache and sync opcodes.
2492 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2494 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2495 do essentially the same thing, do it in similar way.
2497 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2499 * util/grub-mkrescue.c (main): If a source directory is not
2500 specified, read platform-specific files from subdirectories of
2501 pkglibdir, not pkgdatadir.
2503 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2505 * grub-core/normal/progress.c: Remove unused file.
2507 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2509 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2512 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2514 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2517 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2519 * coreboot.cfg: Add missing file.
2521 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2523 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2525 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2527 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2528 selectively skipping systems.
2530 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2532 * Makefile.util.def (grub-mkimage): Add
2533 grub-core/osdep/aros/config.c to extra_dist.
2534 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2535 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2536 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2537 grub-core/gnulib-no-gets.diff.
2539 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2541 Add automated filesystem checking based on scripts I've used now for
2542 quite some time locally. Most of the test require root so they are
2543 skipped when run without necessarry privelegies.
2545 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2547 * util/grub-install.c (main): Adjust info messages to match
2548 installed paths of grub-bios-setup and grub-sparc64-setup.
2550 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2552 * util/grub-install-common.c (copy_locales): Consistently use
2553 grub_util_get_localedir () rather than LOCALEDIR.
2554 (grub_install_copy_files): Likewise.
2556 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2558 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2559 16-byte boundary, as required by the x86-64 ABI, before calling
2560 grub_main. In some cases, GCC emits code that assumes this
2561 alignment, which crashes if not aligned. The EFI firmware is also
2562 entitled to assume that stack alignment without checking.
2564 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2566 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2567 4k page boundaries as expected by firmware rather than 1k
2569 (grub_mmap_malign_and_register): Likewise.
2571 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2573 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2574 fragmentation 512M is enough.
2576 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2578 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2579 pointer to 32K. This is the size of cache element which is the most
2580 common allocation >1K. This way the pointer is always around blocks
2581 of 32K and so we keep performance while decreasing fragmentation.
2583 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2585 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2586 current memory when allocating large chunks. This significantly
2587 decreases memory fragmentation.
2589 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2591 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2593 * tests/lzocompress_test.in: Skip if lzop is not installed.
2594 * tests/xzcompress_test.in: Skip if xz is not installed.
2596 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2598 * util/grub-mkrescue.c (main): Fix typo.
2600 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2602 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2603 clock frequency to 200 MHz,
2605 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2607 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2609 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2611 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2612 Load config file from (cbfsdisk)/etc/grub.cfg.
2614 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2616 * util/grub-install-common.c (grub_install_copy_files): Fix module
2617 destination directory.
2619 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2621 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2622 files have not been built.
2624 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2626 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2627 Handle errors from mkstemp.
2628 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2630 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2632 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2633 on primary master on pseries.
2635 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2637 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2638 already loaded. This saves memory needed for tests,
2640 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2642 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2645 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2647 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2650 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2652 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2653 master since with some combinations of qemu and firmware only primary
2654 IDE channel is available.
2656 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2658 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2659 low-memory platforms where we don't have enough memory for them.
2660 * grub-core/tests/videotest_checksum.c: Likewise.
2662 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2664 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2665 already loaded. This saves memory needed for tests,
2667 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2669 Fix handling of install lists.
2671 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2673 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2675 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2677 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2678 the devices before accessing them.
2680 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2682 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2685 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2687 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2689 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2691 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2692 (grub_file_close): Free file->name.
2694 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2696 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2697 (grub_load_public_key): Likewise.
2698 (grub_verify_signature_real): Likewise.
2699 (grub_cmd_verify_signature): Likewise.
2701 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2703 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2706 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2708 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2709 (grub_longjmp): Restore r31.
2710 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2712 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2714 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2715 modules to be in line with make_image_abs.
2717 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2719 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2721 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2723 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2725 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2727 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2729 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2730 to leave some memory to firmware.
2732 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2734 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2735 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2736 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2739 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2741 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2742 now needs full arguments.
2744 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2746 * util/grub-mkrescue.c (main): Add trailing \n in
2747 .disk_label.contentDetails to be in line with previous shell script.
2749 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2751 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2753 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2755 * util/grub-install-common.c (grub_install_parse): Recognize
2756 --compress=none like shell script did.
2758 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2760 * include/grub/misc.h: Replace check for __sparc64__ with one for
2761 __sparc__ as __sparc64__ isn't actually defined.
2763 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2765 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2766 counterpart of fixing the naming of escc ports.
2768 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2770 * util/grub-install-common.c (platforms): Fix the order of entries and
2771 remove useless field val.
2773 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2775 * util/grub-install.c: Add new option --no-bootsector to skip
2776 installing of bootsector. Accept --grub-setup=/bin/true as
2777 backwards-compatible synonym.
2779 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2781 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2782 order of qsort arguments (number of elements vs. element size).
2784 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2786 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2787 the function of these files exceeds what can be sanely handled in shell
2788 in posix-comaptible way. Also writing it in C extends the functionality
2789 to non-UNIX-like OS and minimal environments.
2791 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2793 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2794 compiling to thumb2.
2795 * grub-core/kern/arm/cache_armv7.S: Likewise.
2796 * grub-core/lib/arm/setjmp.S: Likewise.
2798 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2800 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2801 in grub_uboot_syscall
2803 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2805 Decrease stack usage in lexer.
2807 We have only 92K of stack and using over 4K per frame is wasteful
2809 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2810 as macros so that compiler would remove useless structure on stack.
2811 Better solution would be to fix flex not to put this structure on
2812 the stack but flex is external program.
2814 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2816 Decrease stack usage in signature verification.
2818 We have only 92K of stack and using over 4K per frame is wasteful
2820 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2822 (grub_verify_signature_real): Likewise.
2824 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2826 Decrease stack usage in mdraid 0.9x.
2828 We have only 92K of stack and using over 4K per frame is wasteful
2830 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2833 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2835 Decrease stack usage in BtrFS.
2837 We have only 92K of stack and using over 4K per frame is wasteful
2839 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2842 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2844 Decrease stack usage in JFS.
2846 We have only 92K of stack and using over 4K per frame is wasteful
2848 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2849 stack. Note: this function is recursive.
2850 (grub_jfs_read_inode): Read only part we care about.
2852 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2854 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2857 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2859 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2861 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2863 * docs/grub.texi (Environment): Document cmdpath.
2865 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2867 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2868 Remove "unused" attribute from arguments, they are used.
2870 2013-11-15 Colin Watson <cjwatson@debian.org>
2872 * .gitignore: Only ignore grub-mk* at the top level.
2874 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2876 * util/grub-reboot.in (usage): Fix a typo.
2878 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2880 Replace libgcc version of ctz with our own.
2882 On upcoming arm64 port libgcc ctz* are not usable in standalone
2883 environment. Since we need ctz* for this case and implementation is
2884 in C we may as well use it on all concerned platforms.
2886 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2888 * configure.ac: Probe for linking format rather than guessing it based
2891 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2893 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2894 "1" prior to handoff.
2896 Reported by: M A Young.
2898 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2900 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2903 Reported by: M A Young.
2905 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2907 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2908 compilation on NetBSD.
2910 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2912 * acinclude.m4: Don't add -P on initial nm test.
2914 Note: even though this patch postdates Andrey's it bears 14 Nov as
2915 date due to timezone difference.
2917 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2919 * grub-core/Makefile.core.def (signature_test): Add missing
2922 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2924 * util/grub-install_header: Set localedir here, since this file is
2926 * util/grub-install.in: Remove setting of localedir.
2927 * util/grub-mkrescue.in: Likewise.
2929 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2931 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2933 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2935 * configure.ac: Move nm checks to the end.
2936 Call grub_PROG_NM_WORKS.
2937 * acinclude.m4: New check grub_PROG_NM_WORKS.
2938 Use $TARGET_CFLAGS -c when compiling test binary.
2940 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2942 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2945 2013-11-14 Matthew Garrett <mjg@redhat.com>
2947 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2948 cmdpath to firmware directory.
2950 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2952 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2953 at the start of second iteration.
2955 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2957 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2959 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2961 * Makefile.am (default_payload.elf): New target for easier coreboot
2964 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2966 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2967 clang (not necessarry with -no-integrated-as).
2968 * include/grub/symbol.h [__arm__]: Likewise.
2970 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2972 * configure.ac: Use -no-integrated-as on arm with clang.
2973 * INSTALL: Mention ARM compilation with clang.
2975 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2977 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2980 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2982 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2983 code for indirect block handling.
2985 Saves 185 bytes on compressed image.
2987 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2991 * Makefile.am: Remove build-grub-* in make clean.
2993 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2995 New files to gitignore.
2997 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2998 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
3000 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
3002 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
3004 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
3006 * .gitignore: fix rules for .dep* and add *.a post git migration
3008 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3010 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
3013 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3015 * grub-core/kern/misc.c: Don't redirect divisions in the
3017 * include/grub/misc.h: Likewise.
3019 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3021 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
3022 systems that require checking the return value of write.
3024 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3026 * util/grub-install.in (efi_quiet): Fix inverted logic: make
3027 efibootmgr quiet when --debug is not used, rather than when it is.
3029 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3031 * gentpl.py (define_macro_for_platform_dependencies): Remove
3032 first (and thus unused) of two definitions for this function.
3033 (platform_dependencies): Likewise.
3035 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3037 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
3038 functions, we only need to check this for the target, not the host.
3039 * configure.ac (grub_apple_cc): Likewise.
3041 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3043 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
3044 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
3045 asm to stay in arm even if surrounding is thumb.
3047 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3049 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
3050 helper functions are needed for thumb.
3052 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3054 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
3055 level / 3 division explicitly unsigned. Saves few bytes.
3057 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3059 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
3061 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3063 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
3066 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3068 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
3069 grub_uboot_boot_data to asm part.
3071 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3073 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
3075 (grub_uboot_syscall): Save/restore r9 and align stack.
3077 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3079 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
3081 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3083 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
3084 occurencies with END.
3086 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3088 * util/grub-editenv.c (help_filter, argp): Document how to delete
3089 the whole environment block.
3090 Reported by Dan Jacobson. Fixes Debian bug #726265.
3092 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3094 * docs/grub.texi (Internationalisation, Supported kernels): Fix
3097 2013-11-13 Josh Triplett <josh@joshtriplett.org>
3099 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
3100 increment/decrement.
3102 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3104 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
3105 compiling with clang.
3107 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3109 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
3112 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3114 Redirect all divisions to grub_divmod64.
3116 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3118 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
3120 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3122 Add missing includes of loader.h.
3124 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3126 * configure.ac: Allow disabling themes.
3128 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
3130 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
3132 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3134 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
3135 until it becomes operational.
3137 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3139 * grub-core/Makefile.core.def (legacy_password_test): Disable
3140 on platforms where no legacycfg is compiled.
3141 * grub-core/tests/lib/functional_test.c: Tolerate failure to
3142 load legacy_password_test.
3144 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3146 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3148 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3150 * grub-core/efiemu/prepare.c: Remove variable length arrays.
3152 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3154 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
3155 strict-aliasing warning.
3156 (fsync): Silence cast warning.
3158 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3160 * grub-core/commands/verify.c: Remove variable length arrays.
3161 Load gcry_dsa/gcry_rsa automatically.
3163 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3165 * grub-core/tests/signature_test.c: New test.
3167 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3169 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
3172 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3174 * grub-core/tests/legacy_password_test.c (vectors): Make static.
3175 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
3177 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3179 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
3181 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3183 * grub-core/fs/proc.c: Allow \0 in proc files.
3185 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3187 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3189 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3191 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3193 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3195 * grub-core/fs/ext2.c: Remove variable length arrays.
3197 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3199 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3202 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3204 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3205 * grub-core/disk/cryptodisk.c: Likewise.
3206 * grub-core/disk/geli.c: Likewise.
3207 * grub-core/disk/luks.c: Likewise.
3209 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3211 * grub-core/tests/legacy_password_test.c: New test.
3212 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3214 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3216 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3218 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3220 * grub-core/tests/pbkdf2_test.c: New test.
3222 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3224 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3226 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3228 * grub-core/io/lzopio.c: Remove variable length arrays.
3230 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3232 * include/grub/crypto.h: Add maximums on hash size and cipher block
3235 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3237 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3239 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3241 * grub-core/tests/xnu_uuid_test.c: New test.
3243 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3245 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3248 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3250 * grub-core/commands/hashsum.c: Remove variable length arrays.
3252 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3254 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3256 * tests/grub_func_test.in: Increase memory allocation.
3258 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3260 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3261 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3264 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3266 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3267 (grub_util_get_fd_size_os): ...this.
3268 (grub_hostdisk_flush_initial_buffer): New empty function.
3270 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3272 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3273 without --defined-only.
3275 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3277 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3278 rip-relative addressing in prologue.
3280 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3282 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3283 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3285 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3287 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3288 Add missing semicolon.
3290 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3292 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3294 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3296 * configure.ac: Check for lzma.h for enabling liblzma and allow
3299 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3301 Add missing includes of loader.h.
3303 2013-11-11 Fam Zheng <famcool@gmail.com>
3305 * util/grub.d/30_os-prober.in: Add minix entry.
3307 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3309 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3310 right buffer for temporary load.
3312 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3314 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3316 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3318 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3321 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3323 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3325 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3327 (LzmaDec_InitDicAndState): Make static.
3329 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3331 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3333 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3335 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3337 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3339 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3341 * docs/grub-dev.texi: Replace bzr references with git ones.
3343 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3345 * docs/grub.texi (Simple configuration): Remove reference to
3346 grub-reboot from saved default entry description - grub-default
3347 does not use it anymore.
3349 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3351 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3354 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3356 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3358 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3360 Fix grub_machine_fini bitrot.
3362 Reported by: Glenn Washburn.
3364 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3366 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3368 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3370 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3372 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3375 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3377 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3378 Add -march=core2 when testing compile of efiemu64.
3380 Thanks Andrey Borzenkov for spotting this.
3382 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3384 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3385 XEN PV environment and load kernels.
3387 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3389 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3390 * grub-core/loader/multiboot_mbi2.c: Likewise.
3392 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3394 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3397 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3399 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3401 Tested by: Denis 'GNUtoo' Carikli.
3403 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3405 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3407 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3409 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3410 Use to get rounded angle rather than truncated.
3412 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3414 * grub-core/term/serial.c: Add option for enabling/disabling
3415 RTS/CTS flow control.
3417 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3419 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3422 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3424 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3425 Use grub_fatal rather than divide by zero.
3426 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3428 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3430 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3432 (grub_fixed_fsf_divide): Likewise.
3434 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3436 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3437 division by-zero and senseless negative divisions.
3439 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3441 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3442 division by-zero and senseless negative divisions.
3443 (circprog_set_property): Don't accept negative num_ticks.
3445 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3447 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3448 division by-zero and senseless negative divisions.
3450 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3452 * configure.ac: Use elf_*_fbsd on kfreebsd.
3454 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3456 * grub-core/tests/div_test.c: New test.
3458 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3460 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3461 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3462 * grub-core/gfxmenu/view.c: Likewise.
3463 * grub-core/video/fb/video_fb.c: Introduce new functions:
3464 grub_video_set_area_status, grub_video_get_area_status,
3465 grub_video_set_region, grub_video_get_region.
3466 * grub-core/video/bochs.c: Likewise.
3467 * grub-core/video/capture.c: Likewise.
3468 * grub-core/video/video.c: Likewise.
3469 * grub-core/video/cirrus.c: Likewise.
3470 * grub-core/video/efi_gop.c: Likewise.
3471 * grub-core/video/efi_uga.c: Likewise.
3472 * grub-core/video/emu/sdl.c: Likewise.
3473 * grub-core/video/radeon_fuloong2e.c: Likewise.
3474 * grub-core/video/sis315pro.c: Likewise.
3475 * grub-core/video/sm712.c: Likewise.
3476 * grub-core/video/i386/pc/vbe.c: Likewise.
3477 * grub-core/video/i386/pc/vga.c: Likewise.
3478 * grub-core/video/ieee1275.c: Likewise.
3479 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3480 * include/grub/video.h: Likewise.
3481 * include/grub/video_fb.h: Likewise.
3482 * include/grub/fbfill.h: Updated render_target structure.
3483 grub_video_rect_t viewport, region, area
3484 int area_offset_x, area_offset_y, area_enabled
3485 * include/grub/gui.h: New helper function
3486 grub_video_bounds_inside_region.
3487 * docs/grub-dev.texi: Added information about new functions.
3489 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3491 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3494 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3496 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3498 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3500 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3502 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3503 simple division on arm and ia64.
3505 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3507 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3510 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3512 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3514 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3516 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3517 prefix symbol, not @.
3519 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3521 * INSTALL: Add note about older gcc and clang.
3523 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3525 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3527 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3529 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3530 NULL pointer dereference.
3532 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3534 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3537 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3539 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3542 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3544 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3546 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3547 * grub-core/disk/geli.c (ascii2hex): Likewise.
3549 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3551 * configure.ac: Run linker tests without -Werror.
3552 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3553 Change all occurences of -static-libgcc resp -lgcc to
3554 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3556 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3558 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3560 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3562 Allow compiling with clang (not really supported though).
3564 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3566 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3567 Add -mrtd -mregparm=3 on i386 when not using clang.
3568 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3570 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3572 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3574 * grub-core/lib/reed_solomon.c: Likewise.
3575 * include/grub/i386/gdb.h: Likewise.
3576 * include/grub/i386/pc/int.h: Likewise.
3577 * include/grub/i386/pc/pxe.h: Likewise.
3578 * include/grub/ieee1275/ieee1275.h: Likewise.
3580 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3582 Import libgcrypt 1.5.3.
3584 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3586 * configure.ac: Don't add -Wcast-align on x86.
3588 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3590 * configure.ac: Add -freg-struct-return on all platforms that
3593 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3595 * acinclude.m4: Use -Werror on parameter tests.
3596 * configure.ac: Likewise.
3598 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3600 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3602 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3604 * configure.ac: Check that -malign-loops works rather than assuming that
3605 either -falign-loops or -malign-loops work.
3607 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3609 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3611 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3613 * configure.ac: Prevent cflags leaking to subsequent tests by always
3614 resetting cflags to target_cflags in target tests.
3616 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3618 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3621 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3623 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3625 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3627 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3629 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3631 * grub-core/normal/cmdline.c (grub_cmdline_get):
3632 Remove nested functions.
3634 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3636 * tests/test_sha512sum.in: Make it work on emu.
3638 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3640 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3642 (grub_bidi_line_logical_to_visual): Likewise.
3644 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3646 Remove vestiges of -Wunsafe-loop-optimisations.
3648 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3649 -Wno-unsafe-loop-optimisations.
3650 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3652 * grub-core/io/gzio.c: Likewise.
3653 * grub-core/script/parser.y: Likewise.
3654 * grub-core/script/yylex.l: Likewise.
3655 * util/grub-mkfont.c: Likewise.
3657 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3659 * util/grub-mkfont.c (process_cursive): Remove nested function.
3661 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3663 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3664 (grub_boot_time): Likewise.
3666 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3668 * include/grub/symbol.h (FUNCTION): Use @function rather than
3670 (VARIABLE): Likewise.
3672 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3674 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3676 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3678 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3679 (parse_dhcp_vendor): Likewise.
3681 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3683 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3685 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3687 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3688 Define after defining type and not before.
3690 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3692 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3694 (grub_gcm_decrypt): Likewise.
3695 (algo_decrypt): Likewise.
3696 (grub_zfs_decrypt_real): Transform error type.
3698 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3700 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3702 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3704 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3705 (grub_usbms_cbi_reset): Likewise.
3706 (grub_usbms_bo_reset): Likewise.
3707 (grub_usbms_reset): Likewise.
3708 (grub_usbms_attach): Likewise.
3709 (grub_usbms_transfer_cbi): Likewise.
3711 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3713 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3714 "checksum = checksum;".
3716 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3718 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3721 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3723 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3726 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3728 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3730 (grub_ehci_fini_hw): Likewise.
3731 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3733 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3735 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3736 return grub_usb_err_t for cosistency. All users updated.
3738 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3740 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3741 assigning to itself.
3743 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3744 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3746 Issue separate DNS queries for ipv4 and ipv6
3748 Adding multiple questions on a single DNS query is not supportted by
3749 most DNS servers. This patch issues two separate DNS queries
3750 sequentially for ipv4 and then for ipv6.
3752 Fixes: https://savannah.gnu.org/bugs/?39710
3754 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3755 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3756 * (grub_net_dns_lookup): Now using separated dns packages.
3757 * (grub_cmd_nslookup): Add error condition.
3758 * (grub_cmd_list_dns): Print DNS option.
3759 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3760 --prefer-ipv4, and --prefer-ipv6.
3761 * include/grub/net.h (grub_dns_option_t): New enum.
3762 * (grub_net_network_level_address): option added.
3764 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3766 * grub-core/video/fb/video_fb.c: Merge two blit functions
3769 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3771 * grub-core/term/terminfo.c: Add sequences for home and end.
3773 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3775 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3778 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3780 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3783 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3785 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3786 e-mail by Per Öberg.
3788 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3790 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3793 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3795 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3797 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3799 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3801 * docs/grub.texi: Document usage of menuentry id.
3803 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3805 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3807 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3809 * grub-core/commands/i386/nthibr.c: New command.
3811 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3813 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3815 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3817 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3820 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3822 Support GRUB_DISABLE_SUBMENU config.
3824 Inspired by patch from Prarit Bhargava.
3826 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3828 * docs/grub.texi: Mention RSA support.
3830 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3832 * grub-core/commands/verify.c: Add RSA support.
3834 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3836 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3837 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3838 device is known to be ATAPI.
3840 2013-11-03 Mike Frysinger <vapier>
3842 * configure.ac: Don't add target-prefix.
3844 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3846 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3849 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3851 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3852 if language is English.
3854 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3856 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3858 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3860 * configure.ac: Don't add -m32/-m64 on emu.
3864 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3865 broken linux headers.
3867 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3869 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3871 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3873 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3874 Reed-Solomon recovery if more than half of redundancy info is 0.
3876 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3878 * util/grub-mount.c: Handle symlinks to directories.
3880 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3882 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3883 find_file recursively for symlink.
3885 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3887 * tests/util/grub-shell.in: Copy themes.
3889 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3891 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3893 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3895 * configure.ac: Use 0x8000 for address instead of 8000.
3897 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3899 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3902 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3904 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3907 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3909 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3911 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3913 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3914 file_progress_read_hook.
3915 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3917 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3919 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3922 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3924 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3926 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3928 Rewrite blocklist functions in order to get progress when
3929 reading large extents and decrease amount of blocklist hook calls.
3931 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3933 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3936 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3938 Support --base-clock for serial command to handle weird cards with
3939 non-standard base clock.
3941 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3943 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3945 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3946 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3947 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3948 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3949 + strcpy rather than strncpy.
3951 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3953 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3954 (check_pool_label): Likewise. Fixes overflow.
3955 (nvlist_find_value): Fix comparison.
3957 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3959 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3960 more appropriate functions.
3962 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3964 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3967 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3969 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3971 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3973 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3976 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3978 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3980 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3982 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3983 (initialize_tables): reset tl and td to NULL after freeing.
3985 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3987 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3989 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3991 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3994 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3996 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3998 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4000 * grub-core/loader/multiboot.c: Add support for multiboot kernels
4003 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4005 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
4006 a page in protected space.
4008 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4010 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
4011 allocate space for zero-sized modules.
4013 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4015 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
4017 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
4019 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
4021 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4023 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
4024 safeguards. Fixes a crash with i386/pc/console.c.
4026 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4028 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
4029 and grub_hostfs_init.
4031 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4033 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
4034 windows method on other platforms without good stat as well.
4036 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4038 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
4040 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4042 Make / in btrfs refer to real root, not the default volume.
4043 Modify mkrelpath to work even if device is mounted with subvolid option.
4045 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
4047 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
4049 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
4052 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4054 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
4057 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
4059 * docs/autoiso.cfg: New file.
4061 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4063 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
4064 COND_GRUB_PE2ELF conditions.
4066 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4068 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
4069 "vnd", "rd" and "fd" disks.
4071 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4073 Move grub_disk_write out of kernel into disk.mod.
4075 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4077 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
4080 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4082 * grub-core/kern/misc.c (grub_abort): Make static
4084 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4086 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
4087 transform invalid unicode codepoints.
4089 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4091 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4094 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4096 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
4098 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4100 Consolidate cpuid code.
4102 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4104 Move cpuid code to cpuid.h and TSC code to tsc.c.
4106 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4108 * util/grub.d/00_header.in: Don't use LANG if it's not set.
4110 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4112 * util/grub-mkconfig.in: Replace $0 with $self.
4113 * util/grub-reboot.in: Likewise.
4114 * util/grub-set-default.in: Likewise.
4116 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4118 * docs/osdetect.cfg: New file.
4120 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4122 * tests/util/grub-shell.in: Add new --debug option.
4124 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4126 * tests/test_unset.in: New test.
4128 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4130 * tests/test_sha512sum.in: New test.
4132 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4134 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
4135 * include/grub/misc.h: Remove strncat.
4136 * grub-core/lib/posix_wrap/string.h: Likewise.
4138 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4140 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
4141 Try to handle more than 0xFFFF packets.
4142 Reported by: Bernhard Übelacker <bernhardu>.
4143 He also spotted few overflows in first version of this patch.
4145 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4147 * tests/date_unit_test.c: New test.
4149 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4151 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
4152 of first three years after start of validity of unixtime.
4154 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4156 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
4157 division as the one making more sense.
4158 (update_screen): Likewise.
4159 (complete): Likewise.
4161 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4163 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
4165 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4167 Make char and string width grub_size_t rather than grub_ssize_t.
4169 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4171 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
4173 (grub_history_replace): Likewise.
4175 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4177 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
4180 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4182 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4185 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4187 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4188 Use unsigned divisions rather than signed variants.
4190 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4192 * grub-core/video/readers/png.c (grub_png_convert_image): Use
4193 unsigned arithmetics.
4196 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4198 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4200 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4202 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4203 rather than signed one.
4204 (recovery): Likewise.
4206 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4208 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4210 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4212 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4215 2013-10-25 Jon McCune <jonmccune@google.com>
4217 * docs/grub.texi: Cleanup security documentation around signatures.
4219 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4221 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4223 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4225 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4228 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4230 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4231 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4232 functions when compiling for kernel.
4234 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4236 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4237 unsigned long long when using %llu.
4239 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4241 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4242 terminal after updating progress.
4244 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4246 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4247 argument. We don't disable Gate A20 in this code.
4249 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4251 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4252 Conceptually based on change in branch "vbe-on-coreboot".
4254 2013-10-24 Robert Millan <rmh@gnu.org>
4256 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4257 numeric constants with their symbolic equivalent.
4258 Taken from branch "vbe-on-coreboot".
4260 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4262 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4264 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4266 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4267 divmod64 for offset division.
4269 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4271 Rename .bzrignore to .gitignore. Add "*.o" rule.
4273 * .bzrignore: Renamed to...
4274 * .gitignore: ...this.
4276 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4278 Add new progress module that displays the load progress of files.
4280 * grub-core/lib/progress.c: New file.
4281 * grub-core/Makefile.core.def (progress): New module.
4282 * grub-core/kern/file.c (grub_file_open): File name added.
4283 * (grub_file_read): Progress hook added.
4284 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4285 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4286 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4287 * include/grub/file.h (struct grub_file): Add progress module members.
4288 * include/grub/term.h (struct grub_term_output): Likewise.
4289 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4290 Terminal velocity added.
4291 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4292 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4293 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4294 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4295 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4296 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4297 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4298 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4299 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4300 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4301 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4302 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4304 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4306 Verify signatures of signatures unless --skip-sig is specified.
4308 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4310 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4313 Saves 70 bytes on compressed image.
4315 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4317 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4320 Saves 10 bytes on compressed image.
4322 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4324 * grub-core/kern/misc.c (grub_isprint): Move to ...
4325 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4327 Saves 20 bytes on compressed image due to remving exporting.
4329 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4331 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4333 Saves 5 bytes on compressed image.
4335 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4337 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4340 Saves 379 bytes on compressed image.
4342 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4344 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4346 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4348 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4350 Saves 40 bytes on compressed image.
4352 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4354 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4355 mask rather than 64-bit type.
4357 Saves 20 bytes on compressed image.
4359 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4361 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4362 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4364 Saves 273 bytes on compressed image.
4366 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4368 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4369 variable length arrays.
4371 Saves 50 bytes on compressed image.
4373 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4375 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4377 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4379 * grub-core/fs/ufs.c: Remove variable length arrays.
4381 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4383 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4385 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4387 * grub-core/fs/zfs.c: Remove variable length arrays.
4388 Reduces zfs.mod by 160 bytes (208 compressed).
4390 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4392 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4394 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4396 * grub-core/net/arp.c: Remove variable length arrays.
4397 * grub-core/net/bootp.c: Likewise.
4398 * grub-core/net/dns.c: Likewise.
4399 * grub-core/net/icmp6.c: Likewise.
4400 * grub-core/net/net.c: Likewise.
4402 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4404 * grub-core/fs/ntfs.c: Remove variable length arrays.
4405 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4408 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4410 * grub-core/fs/hfs.c: Remove variable length arrays.
4411 Reduces hfs.mod by 8 bytes (52 compressed).
4413 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4415 * grub-core/fs/udf.c: Remove variable length arrays.
4416 Increases udf.mod by 128 bytes (but decreases by 13 when
4419 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4421 * grub-core/fs/iso9660.c: Remove variable length arrays.
4422 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4425 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4427 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4428 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4431 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4433 * grub-core/fs/xfs.c: Remove variable length arrays.
4434 Reduces xfs.mod by 40 bytes (43 compressed).
4436 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4438 * grub-core/fs/fshelp.c: Remove variable length arrays.
4439 Reduces fshelp.mod by 116 bytes (23 compressed).
4441 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4443 * grub-core/normal/completion.c: Remove variable length arrays.
4444 * grub-core/normal/menu_entry.c: Likewise.
4446 Reduces normal.mod by 496 bytes.
4448 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4450 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4451 by 356 bytes (158 compressed).
4453 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4455 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4456 by 364 bytes (169 compressed).
4458 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4460 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4461 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4462 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4464 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4466 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4467 bitmasks to small structures of size chosen to fit in registers.
4469 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4471 * conf/Makefile.common: Use -freg-struct-return on i386. This
4472 decreases code size and improves performance.
4474 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4476 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4478 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4480 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4482 Simplify expressions to save around 256 bytes in kernel.img.
4483 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4485 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4487 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4488 Use GRUB_UTIL_FD_O_* rather than O_*.
4490 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4492 Add haiku-specific functions.
4494 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4496 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4498 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4500 Move stat () and device mode checking into OS-dependent files as
4501 long as performance doesn't suffer.
4503 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4505 Split make_system_path_relative_to_its_root into separate file
4506 relpath.c from getroot.c as it's common between unix and haiku
4507 but otherwise haiku doesn't use any functions from unix getroot.c.
4509 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4511 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4513 (grub_util_is_special_file): Likewise.
4515 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4517 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4518 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4520 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4522 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4523 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4525 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4527 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4528 (load_image): Likewise.
4530 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4532 * util/grub-render-label.c: Move backend part to ...
4533 * util/render-label.c: ... here.
4535 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4537 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4538 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4540 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4542 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4544 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4546 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4547 CD-ROM in case when it's declared as having subpartitions.
4549 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4551 Don't add -lm on haiku.
4553 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4555 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4558 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4560 * configure.ac: Use -melf_*_haiku as target on haiku.
4562 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4564 * Makefile.util.def: Add util/setup.c to extra_dist.
4566 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4568 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4569 unknown types through.
4571 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4573 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4574 (grub_util_check_char_device): Likewise.
4575 * include/grub/emu/getroot.h: Likewise.
4577 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4579 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4580 memset rather than inline static function.
4582 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4584 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4585 not doing embedded decompressor.
4587 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4589 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4591 * grub-core/kern/disk.c: Likewise.
4592 * grub-core/kern/misc.c: Likewise.
4593 * include/grub/parser.h: Likewise.
4594 * include/grub/script_sh.h: Likewise.
4595 * include/grub/zfs/zfs.h: Likewise.
4597 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4599 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4601 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4603 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4604 defined before trying to use it.
4606 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4608 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4611 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4613 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4614 Use __unused__ rather than __used__ on gcc < 3.2.
4616 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4618 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4620 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4622 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4624 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4626 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4628 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4629 * include/grub/emu/misc.h: Likewise.
4631 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4633 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4636 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4638 * grub-core/tests/checksums.h: Regenerated due to progress bar
4639 get_minimal_size changes.
4641 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4643 Added `tr' command support.
4645 * grub-core/commands/tr.c: New file.
4646 * grub-core/Makefile.core.def: Build rules for new module.
4648 * tests/grub_cmd_tr.in: New test.
4649 * Makefile.util.def: Build rules for new test.
4651 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4653 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4655 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4657 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4658 * docs/gurb.texi: Likewise.
4660 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4662 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4663 Pixmap highlighted section with east and west slices was displayed
4664 incorrectly due to negative width of the central slice.
4666 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4668 * docs/grub.texi: Graphical options information update.
4669 Removed outdated. Updated current. Inserted missed.
4671 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4673 * docs/grub.texi: Mention few new platform-specific commands.
4675 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4677 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4678 currently used so this doesn't really have any effect.
4679 Reported by: Douglas Ray <dougray>
4681 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4683 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4684 compilation but prevents gcc from displaying messages in non-Latin
4686 * conf/Makefile.common: Likewise.
4688 2013-10-16 Hiroyuki YAMAMORI
4690 Handle Japanese special keys.
4691 Reported by: Hiroyuki YAMAMORI.
4692 Codes supplied by: Hiroyuki YAMAMORI.
4694 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4696 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4698 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4700 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4701 * docs/grub.texi: Likewise.
4703 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4705 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4706 value in case of incomplete read.
4707 (grub_util_fd_write): Likewise.
4709 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4711 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4713 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4715 * util/grub-editenv.c (create_envblk_file): More from here ...
4716 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4718 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4720 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4721 canonicalize file name before doing the rest.
4723 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4725 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4728 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4730 Define grub_util_is_directory/regular/special_file and
4731 use OS-dependent versions rather than to rely on stat().
4733 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4735 * util/grub-mkimage.c: Move backend part to ...
4736 * util/mkimage.c: ... here.
4738 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4740 Allow compilation with mingw64 albeit with warnings due to lack of
4743 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4744 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4745 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4746 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4748 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4750 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4752 Remove leftover references to some of the system headers.
4754 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4756 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4759 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4761 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4764 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4766 Split out blocklist retrieving from setup.c to
4767 grub-core/osdep/blocklist.c and add windows implementation since
4768 generic version doesn't work on NTFS on Windows due to aggressive
4771 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4773 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4776 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4778 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4779 Cut tailing newline. Remove arbitrary limitation. Always use
4780 grub_util_tchar_to_utf8.
4782 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4784 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4785 * tests/printf_unit_test.c (printf_test): Add %% tests.
4786 Reported by: Paulo Flabiano Smorigo.
4788 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4790 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4793 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4795 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4796 use nvlist_lookup_string and don't use nvlist_print.
4798 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4800 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4801 closedir to handle filename charset translation.
4803 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4805 * include/grub/emu/hostdisk.h: Move file operations to
4806 * include/grub/emu/hostfile.h: ... here.
4808 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4810 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4813 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4815 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4817 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4819 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4820 and remove export.h.
4822 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4824 * grub-core/kern/emu/error.c: Removed.
4825 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4826 explicitly as it's already in libgnu.a.
4828 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4830 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4831 config-util.h include.
4833 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4835 Split emunet into platform-dependent and GRUB-binding parts. Keep
4836 platform-dependent part in kernel for easy access to OS functions.
4838 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4840 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4843 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4845 * grub-core/osdep/windows/emuconsole.c: New file.
4847 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4849 * conf/Makefile.extra-dist: Add osdep/*/init.c
4851 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4853 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4855 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4857 * util/grub-probe.c (probe): Separate different drives in hint-str
4858 by spaces and not newlines.
4859 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4861 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4863 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4866 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4868 Pass-through unknown E820 types. It required reorganisation of mmap
4871 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4873 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4875 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4877 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4880 2013-10-14 qwertial <qwertial>
4882 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4884 2013-10-14 Jon McCune <jonmccune@google.com>
4886 * docs/grub.texi: Document new signatures possibility.
4888 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4890 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4892 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4894 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4896 (grub_util_tchar_to_utf8): Likewise.
4898 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4900 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4901 * grub-core/kern/emu/main.c: Add missing include.
4902 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4903 Don't call grub_util_init_nls.
4904 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4907 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4909 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4912 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4914 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4916 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4918 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4920 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4922 Add a wrapper for fopen. On unix-like systems just pass-through. On
4923 windows use unicode version.
4925 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4927 Move set_program_name and init_nls to host_init. On windows
4928 fix in this fuction console and argument charset as well.
4930 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4932 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4933 GRUB_ENABLE_CRYPTODISK.
4935 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4936 GRUB_ENABLE_CRYPTODISK.
4937 * util/grub-mkconfig_lib.in: Likewise.
4939 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4941 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4943 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4945 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4946 error when enabling debug.
4948 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4950 * configure.ac: Use -melf_*_obsd on openbsd.
4952 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4954 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4956 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4958 * include/grub/misc.h: Use gnu_printf rather than printf as format
4959 template since our functions are independent of libc.
4961 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4963 * util/grub-setup.c (setup): Move copying of partition table as
4964 futher up as possible to avoid possible overwrite by floppy routines.
4966 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4968 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4970 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4972 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4973 * docs/grub.texi: Likewise.
4975 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4977 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4978 it's mostly unused. Move vestiges to the callers.
4980 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4982 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4983 version of salt and hash. Use grub_snprintf rather than snprintf.
4985 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4987 * docs/grub.texi: Fix problem with braces.
4989 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4991 * conf/Makefile.extra-dist: Fix extra-dist list.
4992 * grub-core/Makefile.core.def: Likewise.
4994 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4996 * docs/grub.texi: Document disk names used on Windows and AROS.
4998 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
5000 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
5002 * grub-core/osdep/aros/hostdisk.c: Likewise.
5004 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
5006 Avoid including hostfile.h when not necessarry as it pulls
5007 in OS-specific headers which may redefine generic names
5010 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
5012 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
5013 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
5014 scrollbar_bottom_pad
5015 * docs/grub.texi: Likewise.
5017 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
5019 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
5021 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5023 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
5025 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5027 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
5029 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
5032 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5034 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
5037 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5039 Move OS-specific driver configuration to grub_util_fd_open. This
5040 moves OS-dependent parts from kern/emu/hostdisk.c to
5041 grub-core/osdep/*/hostdisk.c.
5043 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5045 * util/grub-mkimage.c (generate_image): Use size_t instead of
5047 * util/grub-mkimagexx.c (locate_sections): Likewise.
5048 (load_image): Likewise.
5050 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5052 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
5054 (grub_util_write_image): Likewise.
5056 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5058 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
5059 get random when no RNG is available.
5060 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
5062 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5064 * include/grub/util/lvm.h: Removed.
5066 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5068 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
5069 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
5071 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5073 * grub-core/osdep/windows/sleep.c: Add missing config.h.
5075 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5077 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
5079 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5081 * grub-core/net/drivers/emu/emunet.c: Move to ..
5082 * grub-core/osdep/linux/emunet.c: ..here.
5084 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5086 * util/ieee1275/ofpath.c: Move to ...
5087 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
5088 * grub-core/osdep/basic/ofpath.c: ..here.
5090 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5092 Move password-querying (util-version) routines to grub-core/osdep.
5094 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5096 Move sleep routines to grub-core/osdep.
5098 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5100 Move OS-dependent files to grub-core/osdep and document it.
5102 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5104 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
5105 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
5107 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5109 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
5111 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5113 * util/misc.c: Remove leftover inclusion of malloc.h.
5115 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5117 * include/grub/setjmp.h: Remove leftover GRUBOF.
5119 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5121 * util/raid.c: Fold into ...
5122 * util/getroot_linux.c: ... here. Make all functions static.
5124 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5126 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
5127 macros to GRUB ones.
5129 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5131 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
5132 occasional bug. If there are too many boot entries or too low
5133 scrollbar height then we need to use another formula to calculate
5134 the position and size of the scrollbar thumb.
5136 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5138 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
5140 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5142 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
5143 * docs/grub.texi: Likewise.
5145 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5147 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
5150 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5152 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
5153 minimal width calculations.
5155 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5157 * docs/grub.texi: Update note on colors on emu console.
5159 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5161 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
5162 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
5163 it's FS and not GRUB limitation.
5165 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5167 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
5169 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5171 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
5173 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5175 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
5176 kernels by version order.
5178 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5180 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5182 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5184 Add AROS hostdisk and getroot routines.
5186 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5188 Make cryptodisk and diskfilter probe data retrievable programmatically
5189 and not just printable.
5191 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5193 Split random retrieving code into separate files.
5195 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5197 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5200 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5202 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5204 * grub-core/tests/fake_input.c: Likewise.
5205 * grub-core/tests/cmdline_cat_test.c: Likewise.
5207 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5209 * grub-core/video/capture.c: Do not do finalization when .fini
5210 is called as there is explicit capture_end.
5212 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5214 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5215 changing windows to avoid crash.
5217 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5219 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5221 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5223 * po/exclude.pot: Add several strings to exclude.
5225 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5227 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5229 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5231 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5232 ./util/grub-gen-asciih.c to exclude list.
5234 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5236 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5237 and don't mark error strings for translation.
5239 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5241 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5242 properly in case of missing block size.
5244 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5246 * grub-core/lib/arm/setjmp.S: Add missing license section.
5248 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5250 * po/swiss.sed: Add replacement for key names and for term computer.
5252 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5254 * grub-core/gfxmenu/theme_loader.c: New global options for the
5255 theme background image handling. desktop-image-scale-method,
5256 desktop-image-h-align, desktop-image-v-align.
5257 * grub-core/gfxmenu/view.c: Likewise.
5258 * include/gfxmenu_view.h: Likewise.
5259 * include/bitmap_scale.h: Proportional scale functions introduced.
5260 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5261 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5262 cases of unexpected input variables for scale functions.
5263 * docs/grub.texi: Updated documentation for new options.
5265 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5267 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5269 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5271 * grub-core/tests/checksums.h: Corrected due to changes in
5272 bilinear interpolation function.
5274 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5276 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5277 to eliminate artefacts in bilinear interpolation.
5279 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5281 * grub-core/video/readers/tga.c: Support paletted tga.
5283 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5285 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5286 incorrect cbcr setting when in color mode.
5288 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5290 * grub-core/video/readers/png.c: Support paletted images and clean up
5293 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5295 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5296 usage of wrong table which resulted in mishandling of 4-byte
5299 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5301 * grub-core/term/terminfo.c: Add Home and End key sequences.
5303 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5305 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5306 Fix formula for computing total number of bytes.
5308 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5310 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5311 image processing, fix big-endian and support grayscale.
5313 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5315 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5316 Correctly will with maximum transparency when using index color.
5318 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5320 * grub-core/video/readers/png.c: Support grayscale
5322 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5324 * grub-core/video/readers/jpeg.c: Support grayscale.
5326 2013-09-26 Jon McCune <jonmccune@google.com>
5328 * grub-core/commands/loadenv.c: Support skipping signature check
5329 and variable names filtering.
5331 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5333 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5334 * grub-core/kern/emu/hostfs.c: Likewise.
5335 * util/getroot_unix.c: Likewise.
5337 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5339 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5340 Migrate all explicit defines to this new one.
5342 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5344 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5345 grub_util_fd_strerror when using grub_util_fd_*.
5346 (grub_util_fd_open_device): Likewise.
5347 (grub_util_biosdisk_read): Likewise.
5348 (grub_util_biosdisk_write): Likewise.
5349 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5350 (grub_util_fd_strerror): Likewise.
5351 (grub_util_fd_sync): Likewise.
5352 (grub_util_fd_close): Likewise.
5353 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5354 (grub_util_fd_close): Likewise.
5355 (grub_util_fd_strerror): Likewise.
5356 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5357 function proto rather than macro.
5358 (grub_util_fd_sync): Likewise.
5359 (grub_util_fd_open): Likewise.
5360 (grub_util_fd_strerror): New proto.
5362 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5364 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5365 platforms on which it doesn't work.
5367 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5369 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5370 stat immediately to where it's used.
5372 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5374 * util/getroot.c (grub_util_check_block_device): Move to ...
5375 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5376 * util/getroot.c (grub_util_check_char_device): Move to ...
5377 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5379 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5381 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5384 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5386 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5388 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5390 * docs/grub.texi (File name syntax): Document ZFS filenames
5391 (/volume@snapshot/...).
5393 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5395 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5396 Always return full path. Fixes a problem with mkrelpath.
5398 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5400 * util/grub-install.in: Add GPT PReP support.
5401 * util/grub-probe.c (probe): Support GPT partition type.
5402 (main): Support -t gpt_parttype.
5404 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5406 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5408 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5410 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5412 2013-09-23 Tim Hardeck <thardeck>
5414 * util/grub.d/10_hurd.in: Filter out character for the class.
5415 * util/grub.d/10_kfreebsd.in: Likewise.
5416 * util/grub.d/10_linux.in: Likewise.
5417 * util/grub.d/20_linux_xen.in: Likewise.
5419 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5421 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5424 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5426 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5429 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5431 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5432 doesn't use posix_wrap. Keep literal -fno-builtin however.
5434 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5436 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5438 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5441 * configure.ac: Do not enable -Wmissing-noreturn as its
5442 usefulness is limited and creates problems on some OS notably with
5443 code generated by bison.
5445 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5448 * configure.ac: Do not explicitly enable -Waddress as it's not
5449 supported by all gcc and when it is, it's already enabled by -Wall.
5451 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5453 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5454 desactivated use of EDID at all.
5456 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5459 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5460 video if no text is available.
5462 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5465 * configure.ac: Substitute TARGET_RANLIB.
5467 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5470 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5472 Based on patches from AROS.
5474 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5477 * grub-core/Makefile.am: Override STRIP and RANLIB.
5478 * configure.ac: compute TARGET_RANLIB.
5479 * INSTALL: Document TARGET_RANLIB
5481 Based on patches from AROS.
5483 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5485 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5486 that floppies are unpartitioned.
5488 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5490 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5491 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5493 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5495 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5496 less nice but more portable.
5497 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5499 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5501 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5503 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5505 (grub_cryptodisk_cheat_insert): Likewise.
5506 (grub_cryptodisk_close): Likewise.
5508 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5510 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5511 Use windows path for DEFAULT_DIRECTORY.
5513 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5515 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5516 difference was likely just gcc version, not anything mingw-related.
5518 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5520 Use Winapi on both cygwin and mingw32 to share more code between both.
5522 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5524 * util/grub-install.in: Add --grub-editenv option.
5525 * util/grub-install_header (grub_compress_file): Explicitly check for
5526 plain file to avoid cp error.
5528 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5530 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5531 names; fix LVM driver name (lvm, not lv).
5532 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5535 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5537 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5538 files rather than one file with loads of #if's.
5539 * util/getroot.c: Likewise.
5541 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5543 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5545 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5547 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5548 GNU/Hurd to the list of checked PRNG.
5550 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5552 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5554 2013-09-21 Ales Nesrsta <starous@volny.cz>
5556 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5558 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5560 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5561 * grub-core/disk/lvm.c: Add LVM UUIDs.
5562 * util/getroot.c: Use LVM UUIDs whenever possible.
5564 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5566 * docs/grub.texi (Networking commands): Add documentation for
5567 network related commands.
5569 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5571 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5572 to determine if device is handled by devmapper.
5573 (convert_system_partition_to_system_disk): Likewise.
5574 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5575 already done in grub_util_open_dm.
5577 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5579 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5580 Clean up stack manipulation (sync_caches_armv*)
5582 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5584 * util/lvm.c: Remove since unused. Remove remaining references.
5586 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5588 Handle the case of partitioned LVM properly.
5590 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5591 Stop on meeting LVM, mpath or DMRAID.
5592 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5593 (read_device_map): Likewise.
5594 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5595 device is full disk rather than erroring out on LVM and similar cases.
5597 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5599 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5601 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5603 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5605 Reported by: Leif Lindholm
5607 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5608 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5610 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5613 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5615 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5616 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5618 2013-09-18 Douglas Ray <dougray@cpan.org>
5620 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5623 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5625 * docs/grub.texi: Fix broken link.
5627 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5629 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5630 to break endless loop.
5632 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5634 * util/grub-fstest.c: Fix several printf formats.
5635 * util/grub-mkimage.c: Likewise.
5636 * util/grub-mkimagexx.c: Likewise.
5637 * util/grub-script-check.c: Likewise.
5639 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5641 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5644 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5646 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5648 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5650 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5651 removed in current versions cygwin_conv_*.
5653 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5655 * configure.ac: Disable efiemu runtime on cygwin.
5657 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5659 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5660 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5662 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5664 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5667 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5669 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5671 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5674 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5676 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5677 when on x86 and not cygwin.
5678 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5681 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5683 * configure.ac: Set CPP to build one when checkoing for freetype for
5686 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5688 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5689 [!GRUB_BUILD]: Remove has_argument.
5691 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5693 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5694 Replace with a dummy.
5696 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5698 * configure.ac: Don't change host_os from mingw to cygwin.
5700 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5702 * configure.ac: Change target_os from windows to cygwin.
5704 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5706 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5708 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5709 (build-grub-gen-asciih): Likewise.
5710 (build-grub-gen-widthspec): Likewise.
5711 * Makefile.util.def (grub-pe2elf): Remove.
5712 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5713 * configure.ac: Separate tests for build.
5714 Move ./build-grub-pe2elf to grub-core.
5716 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5717 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5719 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5721 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5722 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5723 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5725 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5727 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5728 mingw32 as well based on grub_util_get_disk_size.
5729 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5730 grub_util_get_fd_size.
5732 (fsync): Moved to ...
5733 * grub-core/kern/emu/misc.c (fsync): ... here.
5735 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5737 * include/grub/mm.h (grub_extend_alloc): Remove.
5738 * grub-core/loader/i386/pc/plan9.c: Use own version of
5739 grub_extend_alloc with appropriate types.
5741 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5743 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5745 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5747 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5749 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5751 Fix dependencies on cygwin.
5753 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5754 dependencies when used and defined.
5755 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5757 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5759 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5760 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5762 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5764 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5765 implementation available to cause compile-time rather than runtime
5768 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5770 * util/grub-fstest.c: Don't check for symlinks on windows.
5772 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5774 * INSTALL: Mention unavailability of man pages when cross-compiling.
5776 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5778 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5780 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5782 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5784 * INSTALL: Document cross-compilation.
5785 * acinclude.m4: Determine whether nm support -P and --defined-only.
5786 * configure.ac: Add TARGET_ to all variables pertaining to target
5787 that don't have it yet.
5788 * gentpl.py: Likewise.
5789 * grub-core/Makefile.am: Likewise.
5790 * grub-core/genmod.sh.in: Likewise.
5791 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5794 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5796 * configure.ac: Remove -Wempty-body. It's not essential and needs
5799 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5801 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5802 * util/getroot.c: Likewise.
5804 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5806 * grub-core/disk/ahci.c: Add needed explicit cast.
5807 * grub-core/lib/backtrace.c: Likewise.
5808 * grub-core/net/ip.c: Likewise.
5809 * grub-core/net/tcp.c: Likewise.
5810 * grub-core/net/udp.c: Likewise.
5812 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5814 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5816 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5818 * util/import_gcry.py: Add final newline in visibility.h.
5820 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5822 * conf/Makefile.common: Fix typo.
5824 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5826 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5828 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5830 * Makefile.am (widthspec.h): Fix typo.
5831 * util/grub-gen-widthspec.c: Likewise.
5833 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5835 Move ascii.h and widthspec.h generation to a separate build-time-only
5838 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5840 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5841 Always fill bootdisk info and improve check for NetBSD disklabel.
5843 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5845 * conf/Makefile.extra-dist: Add util/bin2h.c.
5846 Reported by: floppym.
5848 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5850 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5852 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5854 * configure.ac: Disable unifont and starfield if no freetype was found.
5856 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5858 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5859 on NetBSD and OpenBSD.
5861 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5863 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5865 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5867 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5868 reduced. Inheritant options are processed during the theme loading.
5870 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5872 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5874 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5876 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5878 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5880 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5883 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5885 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5886 remove-potcdate.sed.
5888 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5890 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5891 unused attribute from pull argument.
5893 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5895 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5898 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5900 * util/getroot.c (pull_lvm_by_command): add --separator option
5901 to vgs call to disable padding of output to 10 characters.
5903 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5905 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5907 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5910 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5912 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5915 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5917 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5918 full Canadian cross. Tested with build=x86_64, host=arm,
5919 target=ppc-ieee1275.
5921 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5923 * configure.ac: Error if no $BUILD_CC could be found.
5926 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5928 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5931 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5933 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5934 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5936 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5938 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5939 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5940 falling back to the partition device, otherwise a later call to this
5941 function may fail spuriously.
5942 Reported by Axel Beckert. Fixes Debian bug #708614.
5944 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5946 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5948 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5950 Prevent shadowing of stdlib's devname(3) on BSD.
5952 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5953 and devlast to diskname and disklast, respectively.
5955 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5957 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5959 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5961 * docs/grub.texi: Introduce terminal window position options:
5962 terminal-left: terminal window's left position
5963 terminal-top: terminal window's top position
5964 terminal-width: terminal window's width
5965 terminal-height: terminal window's height
5966 terminal-border: terminal window's border width
5967 * grub-core/gfxmenu/theme-loader.c: Likewise.
5968 * include/grub/gfxmenu_view.h: Likewise.
5969 * po/exlude.pot: Likewise.
5970 * grub-core/gfxmenu/view.c: Likewise.
5971 Also updated minimal window size.
5972 Also terminal_sanity_check function has been introduced.
5973 * grub-core/tests/checksums.h: Update (terminal window height
5974 is adjusted now for low resolution screen)
5976 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5978 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5981 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5983 * po/exclude.pot: Add few recent exceptions.
5985 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5987 * tests/grub_func_test.in: Add unicode.pf2.
5989 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5991 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5992 standard rather than noral color, in line with other terminals.
5994 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5996 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5999 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
6001 * grub-core/loader/arm/linux.c: Change printf to dprintf.
6003 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
6005 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
6006 inappropriate printf.
6008 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
6010 * .bzrignore: Remove grub-core/lib/dtc-grub,
6011 grub-core/Makefile.libfdt.def
6012 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
6014 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
6016 * include/grub/video.h (grub_video_register): Keep double-linked as
6017 well as single-linked invariants.
6018 Reported by: qwertial.
6020 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
6022 * grub-core/commands/nativedisk.c (get_uuid): Handle
6023 GRUB_DISK_DEVICE_UBOOTDISK_ID.
6025 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
6027 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
6028 maximum of NW, N, NE heights instead of N's height and maximum of
6029 NW, W, SW widths instead of W's width. (So the box will be always
6032 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
6034 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
6035 Fix misuse of variable count.
6037 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
6038 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
6039 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
6041 New ports to arm-uboot and arm-efi.
6042 Mostly by Leif Lindholm with some additions from
6043 Francesco Lavra and cleanup by Vladimir Serbinenko.
6045 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
6047 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
6049 Reported by: Leon Drugi.
6051 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
6053 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
6054 Reported by: Paulo Flabiano Smorigo.
6056 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
6058 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
6060 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
6062 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
6064 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6066 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
6068 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6070 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
6072 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
6074 * grub-core/net/bootp.c: Export net_* variables.
6075 * grub-core/net/net.c: Likewise.
6077 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6079 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
6081 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6083 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
6085 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6087 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
6089 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6091 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
6093 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6095 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
6098 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6100 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
6103 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6105 * grub-core/fs/zfs/zfs_lz4.c: New file.
6106 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
6108 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6110 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
6112 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6114 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
6115 (check_pool_label): Likewise.
6116 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
6118 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6120 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
6122 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6124 * docs/grub.texi (Commands): Document postition parameters
6125 for menuentry command.
6127 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6129 * util/grub-mknetdir.in: Remove stray line from help output.
6131 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6133 Remove early sm712 init as there is no reason for it (the "watchdog"
6134 effect was due to wrong GPIO map).
6136 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6138 * grub-core/commands/pcidump.c: Remove static variables.
6140 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6142 * grub-core/commands/sleep.c: Refresh screen before sleeping.
6144 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6146 * configure.ac: Move delimiter after the infos.
6148 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6150 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
6152 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6154 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
6155 not filling whole 8x16 space.
6157 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6159 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
6161 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6163 * configure.ac: Indicate which liblzma is used if any.
6165 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
6166 2013-06-21 Craig Sanders <savannah@taz.net.au>
6168 * util/grub-reboot.in: Document submenu usage.
6170 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6172 * .bzrignore: Update with a number of new test-related files.
6174 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6176 * util/grub-script-check.c: Fail on scripts containing no
6177 commands, to guard against corrupted grub-mkconfig setups that
6178 produce no useful output.
6179 * tests/grub_script_no_commands.in: New test.
6180 * Makefile.util.def (grub_script_no_commands): Add.
6181 Reported by Hans Putter. Fixes Debian bug #713886.
6183 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6185 * grub-core/disk/diskfilter.c: Forgot to remove comment
6186 from previous commit.
6188 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6190 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6191 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6193 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6195 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6197 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6199 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6200 rescan diskfilter devices until nothing new is found.
6202 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6204 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6206 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6208 Don't try to detect cbfs on *-emu.
6210 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6212 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6214 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6216 Add support for processed coreboot payload chainloading.
6218 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6220 Enable coreboot information commands even when not loaded as
6221 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6223 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6225 Support for cbfs. Also factor out the part which is common
6226 for all archives to a separate module. This splits tar from cpio
6227 as they are very different but keeps cpio, cpio_be, odc and newc
6228 together since they're very similar.
6230 2013-06-15 David Michael <fedora.dm0@gmail.com>
6232 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6233 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6235 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6237 * tests/grub_script_eval.in: Really add the eval test.
6239 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6241 Move flavour-specific parts out of common cpio.c file and
6242 rename remaining to cpio_common.c
6244 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6246 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6247 off new function grub_script_execute_new_scope. Change callers to use
6248 either of them as appropriate.
6249 * grub-core/commands/eval.c: New command eval.
6250 * docs/grub.texi (Commands): Document it.
6252 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6254 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6255 to fetch values when listing.
6257 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6259 Fix make dist on non-pc.
6261 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6263 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6264 without a device name.
6266 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6268 Remove enable_executable_check as it's not needed anymore.
6269 Reported by: dougray.
6271 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6273 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6274 ambigouos RAID before discovering RAIDs on top of it.
6277 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6279 Fix typo (failback vs fallback).
6281 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6283 * util/grub.d/30_os-prober.in: Add support for probing EFI
6284 System Partition (as of os-prober 1.58).
6286 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6288 * configure.ac: Add yet another path to unifont. For parabola.
6290 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6292 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6293 handling to copy the killed characters to the kill buffer as
6294 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6295 stored as char. Eliminates UCS4 truncation and corruption
6296 observed when killing characters with Ctrl-u and yanking them
6299 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6301 Detach optional parts of gfxterm and integrate in with coreboot init.
6303 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6305 Move blit and fill dispatcher to appropriate files to decrease export
6306 and relocation overhead.
6308 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6310 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6313 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6315 * grub-core/Makefile.am: Fix compilation problem with some
6318 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6320 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6322 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6324 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6327 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6329 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6332 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6334 * grub-core/partmap/dfly.c: New partition map.
6336 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6338 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6340 Reported by: Francesco Lavra.
6342 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6344 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6345 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6347 * conf/Makefile.common: define dist_grubconf_DATA
6349 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6351 Progressively skip menu elements on small terminals rather
6354 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6356 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6357 to avoid losing last column.
6359 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6361 * po/exclude.pot: Add missing string "%C".
6363 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6365 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6368 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6370 * util/grub-install.in: Gettextize "Not found" message.
6372 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6375 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6377 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6379 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6381 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6383 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6385 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6387 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6389 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6390 attribute since structure is not necessarily aligned.
6392 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6394 * docs/grub.texi (Device syntax): Clarify description of network
6397 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6399 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6400 for vasprintf presence.
6402 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6404 * util/grub-install.in: Handle efibootmgr presence check.
6405 Reported by: Leif Lindholm.
6407 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6409 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6410 new strings to translate.
6412 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6414 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6415 yet another string (pun intended) to translate.
6417 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6419 * po/POTFILES-shell.in: Autogenerate it.
6421 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6423 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6425 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6427 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6430 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6432 * docs/grub.texi (Network): Add description of net_default_interface,
6433 net_default_ip and net_default_mac. Rewrite variables description
6434 to emphasize that they are per-interface.
6436 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6438 New test: cmdline and cat.
6440 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6442 * grub-core/commands/cat.c: Show UTF-8 characters.
6444 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6446 * conf/Makefile.common: Poison float and double on non-emu.
6448 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6450 * configure.ac: Don't disable extended registers on emu.
6452 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6454 * configure.ac: Don't use extended registers on x86_64.
6455 Reported by: Peter Jones.
6457 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6459 * grub-core/term/efi/console.c: Fix compile error.
6461 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6463 Compressed HFS+ support.
6465 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6467 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6470 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6474 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6476 * grub-core/tests/setjmp_test.c: New test.
6478 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6480 New variables 'net_default_*' to determine MAC/IP of default interface.
6482 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6484 * tests/gettext_strings_test.in: A test to check for strings not
6485 marked for translation.
6487 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6489 * autogen.sh: Exclude unused libgcrypt files from translation.
6491 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6493 Simplify few strings.
6495 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6497 Mark few forgotten strings for translation.
6499 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6501 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6504 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6506 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6508 * grub-core/video/readers/tga.c: Likewise.
6510 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6512 * tests/priority_queue_unit_test.cc: New test.
6514 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6516 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6519 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6521 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6522 variable for one time boot menu entry.
6524 2013-05-05 Bean <bean123ch@gmail.com>
6526 * grub-core/commands/testspeed.c: New command testspeed.
6528 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6530 Factor-out human-size printing.
6532 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6534 Agglomerate more mallocs to speed-up gfxterm.
6536 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6538 Speed-up gfxterm by slightly agglomerating mallocs.
6540 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6544 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6546 Speed-up gfxterm by saving intermediate results in index+alpha
6549 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6551 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6554 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6556 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6557 line of timeout as it may contain the rest of long line.
6559 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6561 * grub-core/normal/main.c: Fix freed memory dereference.
6563 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6565 Fix several memory leaks.
6567 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6569 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6571 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6573 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6575 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6577 Fix test -a and -o precedence.
6578 Reported by: adrian15.
6580 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6582 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6584 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6586 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6587 and add it as source to functional_test module.
6589 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6591 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6593 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6595 New series of tests for gfxterm and gfxmenu.
6597 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6599 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6600 the theme path relative to $prefix/themes.
6602 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6604 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6606 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6608 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6610 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6613 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6615 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6616 grub_gfxmenu_timeout_notifications.
6617 (grub_gfxmenu_view_destroy): Likewise.
6619 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6621 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6623 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6625 Several fixes to ieee1275 and big-endian video.
6627 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6629 Add missing exports on mips.
6631 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6633 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6634 if no unifont is found.
6635 Restore original keyboard.
6637 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6639 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6640 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6642 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6644 First automated video test (running videotest and comparing results)
6646 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6648 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6649 instead of 2 to have full RGB/CMY test pattern.
6651 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6655 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6657 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6658 ARCS. All users updated.
6660 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6662 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6664 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6666 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6668 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6670 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6671 Reported by: qwertial.
6673 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6675 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6676 with syntax "XXX deg"/"XXX °".
6678 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6680 Make PCI init in i386-qemu port more robust.
6682 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6684 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6685 cached view is reused.
6686 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6689 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6691 Unify more code in grub-install_header.
6693 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6697 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6699 Enforce disabling of firmware disk drivers when native drivers kick in.
6701 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6703 * grub-core/commands/nativedisk.c: Customize the list of modules on
6704 platform. Don't try to search for disks already using native drivers.
6706 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6708 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6711 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6713 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6714 handling of variables containing backslash.
6716 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6718 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6720 Reported by: qwertial.
6722 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6724 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6726 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6728 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6730 Reported by: qwertial.
6732 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6734 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6736 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6738 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6740 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6742 New command `nativedisk'.
6744 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6746 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6747 * grub-core/loader/i386/bsd.c: Likewise.
6749 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6751 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6753 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6755 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6756 grub_get_unaligned16 rather than shifts.
6758 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6760 * grub-core/kern/file.c: Use const char * rather than casting to
6763 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6765 * grub-core/commands/probe.c: Add missing grub_device_close.
6767 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6769 * INSTALL: Document linguas.sh.
6771 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6773 Remove POTFILES.in and regenerate it in autogen.sh.
6775 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6777 Move --directory/--override-directorry to grub-install_header and unify.
6779 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6781 * grub-core/term/morse.c: Macroify dih and dah.
6783 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6785 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6787 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6789 * grub-core/term/ns8250.c: Systematically probe ports by writing
6790 to SR before using them.
6792 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6794 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6796 (check_sas): Get sas_adress info.
6798 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6800 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6803 2013-04-27 Leon Drugi <eyak>
6805 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6808 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6810 Core compression test.
6812 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6814 Implement grub_machine_get_bootlocation for ARC.
6816 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6818 Improve AHCI detection and command issuing.
6820 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6824 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6826 Make 'make check' work on emu.
6828 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6830 Replace libcurses with our own vt100 handling for the ease of testing
6831 and decreasing prerequisites.
6833 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6835 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6837 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6839 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6840 compile when not needed.
6842 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6844 * tests/pseries_test.in: New test.
6846 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6848 Add test to check that different boot mediums work.
6850 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6852 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6853 ofw limited ISO support.
6855 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6857 * configure.ac: Fix loongson conditional.
6859 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6863 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6865 Add serial on ARC platform.
6867 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6869 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6872 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6874 * tests/partmap_test.in: Add missing double semicolon.
6876 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6878 * util/grub-mkrescue.in: Fix loongson filename.
6880 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6882 * util/grub-mkrescue.in: Move all files that don't have a location
6883 set in stone under /boot/grub. Use ISO hard links rather than copies
6886 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6888 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6891 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6893 Make check work on mips-arc.
6895 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6897 * util/grub-mkrescue.in: Alias sashARCS as sash.
6899 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6901 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6904 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6906 * util/grub-install.in: Fix target fo qemu_mips.
6907 Fix extension on EFI.
6909 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6911 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6912 in front of chosen entry to mark it even if highlighting is lost.
6914 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6916 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6917 gfxpayload=keep if cbfb is active.
6919 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6921 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6923 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6925 Add missing video ids to coreboot and ieee1275 video.
6927 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6929 * util/grub-mkrescue.in: Add mips-arc support.
6931 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6933 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6935 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6937 Move mips-arc link address. Previous link address was chosen
6938 in belief that RAM on SGI platforms grows down while in fact it
6939 grows up from an unusual base.
6941 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6943 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6944 Fix a type which prevented CD-ROM and floppy boot.
6946 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6948 Support coreboot framebuffer.
6950 * grub-core/video/i386/coreboot/cbfb.c: New file.
6952 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6954 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6955 detecting too small regions.
6957 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6959 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6961 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6963 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6965 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6967 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6969 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6970 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6971 * grub-core/loader/powerpc/ieee1275/linux.c
6972 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6974 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6976 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6977 Look for /boot-rom as well as /rom/boot-rom.
6979 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6981 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6982 handling when creating text_layer failed.
6983 * grub-core/video/video.c (grub_video_create_render_target):
6984 Set result to 0 on error.
6985 (grub_video_delete_render_target): Do not dereference NULL.
6987 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6989 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6990 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6991 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6992 (grub_linux_load64): Mask out 2 high bits.
6994 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6996 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6999 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7001 Add support for pseries and other bootinfo machines to grub-mkrescue.
7003 Tested by: Paulo Flabiano Smorigo.
7005 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7007 * util/grub-mkrescue.in: Add GPT for EFI boot.
7009 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7011 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
7012 It improves performance in qemu.
7014 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7016 * build-aux/snippet: Add missing gnulib files.
7018 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
7020 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
7022 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
7024 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
7026 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7027 2013-04-15 Peter Jones <pjones@redhat.com>
7029 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
7031 Based on patch by Peter Jones.
7033 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7035 Fix DMRAID partition handling.
7037 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7039 * tests/grub_cmd_date.in: Skip on sparc64.
7041 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7043 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
7044 firmware error messages.
7046 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7048 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
7049 source and destination differ.
7051 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7053 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
7056 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7058 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
7059 match config-util.h to avoid warnings and increase compatibility.
7061 2013-04-14 Szymon Janc <szymon@janc.net.pl>
7062 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7064 Add option to compress files on install/image creation.
7066 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7068 * docs/grub-dev.texi: Rearrange menu to match the section order.
7069 Reported by: Bryan Hundven.
7071 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7073 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
7075 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7077 Move GRUB out of system area when using xorriso 1.2.9 or later.
7079 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7081 * tests/grub_cmd_date.in: Add missing exit 1.
7083 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7085 * tests/partmap_test.in: Skip on sparc64.
7087 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7089 Support grub-shell on sparc64.
7091 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7093 Support mkrescue on sparc64.
7095 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7097 Allow IEEE1275 ports on path even if it wasn't detected automatically.
7098 Needed on OpenBIOS due to incomplete device tree.
7100 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7102 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
7103 would be otherwise excluded.
7105 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7107 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
7108 Inline name defines used only once.
7110 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7112 Fix memory leaks in ofnet.
7113 Reported by: Francesco Lavra.
7115 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7117 * docs/man/grub-glue-efi.h2m: Add missing file.
7119 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7121 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
7123 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7125 Better support Apple Intel Macs on CD.
7127 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7129 Replace stpcpy with grub_stpcpy in tools.
7131 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7133 Handle Japanese special keys.
7134 Reported by: Hiroyuki YAMAMORI.
7135 Codes supplied by: Hiroyuki YAMAMORI.
7137 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7139 * util/grub-mkimage.c: Document memdisk implying --prefix.
7141 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7143 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
7144 much we can do about it anyway.
7146 2013-04-12 Aleš Nesrsta <starous@volny.cz>
7148 Fix handling of split transfers.
7150 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7152 * grub-core/net/http.c: Fix bad free.
7154 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7156 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
7159 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7161 Disable partmap check on i386-ieee1275 due to openfirmware issues.
7163 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7165 * tests/util/grub-shell.in: Fix it on powerpc.
7167 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7169 Turn off QEMU ACPI-way since new releases don't have shutdown port
7172 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7174 * docs/grub.texi: Update coreboot status info.
7176 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7178 * tests/grub_cmd_date.in: New test for datetime.
7180 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7182 * tests/partmap_test.in: Fix missing qemudisk setting.
7184 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7186 Support i386-ieee1275 grub-mkrescue and make check on it.
7188 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7190 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7193 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7195 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7196 GRUB_CMDLINE_XEN_DEFAULT.
7197 Reported by: Marc Warne (GigaTux) <gigatux>
7199 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7203 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7205 Use ACPI shutdown intests as traditional port was removed.
7207 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7209 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7212 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7214 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7215 Fix few warining messages and leaks while on it.
7217 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7219 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7220 links under grub-core/lib/libgcrypt-grub/mpi.
7222 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7224 Fix ia64-efi image generation on big-endian machines. Deduplicate
7225 some code while on it.
7226 Reported by: Leif Lindholm.
7228 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7230 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7233 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7235 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7237 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7239 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7242 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7244 * grub-core/normal/term.c: Few more fixes for menu entry editor
7246 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7248 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7250 * grub-core/normal/term.c: Few more fixes for menu entry editor
7252 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7254 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7256 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7257 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7259 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7261 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7262 instead of hardcoding grub.mo.
7264 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7266 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7268 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7270 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7271 grub-core/disk/geli.c.
7273 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7275 * util/grub-mkfont.c: Prefer enum to #define.
7277 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7279 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7281 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7283 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7285 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7287 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7289 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7291 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7293 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7295 * include/grub/bsdlabel.h: Use enums.
7297 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7299 Move GRUB_CHAR_BIT to types.h.
7301 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7303 * docs/grub.texi: Document more user commands.
7305 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7307 * docs/grub.texi: Document menuentry --id option.
7309 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7311 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7313 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7315 Unify file copying setup across different install scripts. Add
7316 options for performing partial install.
7318 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7319 2013-04-04 Peter Jones <pjones@redhat.com>
7321 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7323 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7325 Use TSC as a possible time source on i386-ieee1275.
7327 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7329 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7332 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7334 * util/grub-setup.c (setup): Handle some corner cases.
7336 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7338 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7340 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7342 * grub-core/commands/verify.c: Save verified file to avoid it being
7343 tampered with after verification was done.
7345 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7347 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7348 reported width by one to compensate for curesor algorithm problem.
7350 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7352 Fix screen corruption in menu entry editor and simplify the code
7355 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7357 * util/grub-mount.c (fuse_init): Return error if fuse_main
7360 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7362 * include/grub/elf.h: Add missing ARM relocation codes and fix
7365 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7367 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7369 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7370 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7372 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7373 into account when calculating radius.
7375 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7377 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7379 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7381 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7383 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7385 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7386 missing closing bracket.
7388 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7390 * INSTALL: Mention xorriso requirement.
7392 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7394 * grub-core/commands/verify.c: Fix hash algorithms values for
7395 the first three hashes - they start with 1, not with 0.
7397 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7399 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7400 Try terminating EFI services several times due to quirks in some
7403 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7405 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7406 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7407 BankField extended opcodes.
7408 (get_sleep_type): Add minimal scope handling (just enough to
7409 handle setting the scope to the root path).
7410 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7411 * include/grub/acpi.h: Add enumeration values for Event, Device,
7412 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7414 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7416 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7419 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7421 * grub-core/disk/ahci.c: Give more time for AHCI request.
7423 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7425 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7428 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7430 Replace the region at 0 from coreboot tables to available in BSD
7433 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7435 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7438 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7440 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7443 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7445 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7446 handling of multi-device filesystems.
7448 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7450 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7453 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7455 Add new 'proc' filesystem framework and put luks_script into it.
7457 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7459 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7462 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7464 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7466 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7468 Add ability to generate newc additions on runtime.
7470 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7472 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7475 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7477 * po/POTFILES.in: Regenerate.
7479 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7481 * grub-core/commands/verify.c (hashes): Add several hashes
7484 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7486 Slight improve in USB-related boot-time checkpoints.
7488 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7490 * grub-core/commands/boottime.c: Fix copyright header.
7492 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7494 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7495 coreboot tables content. Support for cbmemc.
7497 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7499 Fix a conflict between ports structures with 2 controllers of
7502 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7504 * include/grub/boottime.h: Add missing file.
7506 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7508 Initialize USB ports in parallel to speed-up boot.
7510 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7512 Fix USB devices not being detected when requested
7513 due to delayed attach.
7515 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7517 Implement boot time analysis framework.
7519 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7521 Remove get_endpoint_descriptor and change all functions needing
7522 descriptor to just receive it as argument rather than endpoint
7525 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7527 Better estimate the maximum USB transfer size.
7529 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7531 Resend a packet if we got the wrong buffer in status.
7533 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7535 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7536 multiplication rather than division.
7538 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7540 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7543 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7545 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7546 operations to have intended shifts and not divisions.
7548 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7550 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7551 intended shifts rather than division.
7553 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7555 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7556 computation for some years before epoch. Avode confusing division
7559 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7561 * grub-core/video/i386/pc/vbe.c
7562 (grub_video_vbe_print_adapter_specific_info): Replace division by
7565 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7567 Adjust types in gdb module to have intended unsigned shifts rather than
7570 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7572 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7573 maximum size is 4G - 1 on hfs
7575 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7577 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7579 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7581 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7584 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7586 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7587 causing gcc error with gcc 4.7.1.
7589 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7591 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7592 dereference null pointer. While the code is technically correct, gcc
7593 may eliminate a null check if pointer is already dereferenced.
7595 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7597 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7599 * grub-core/normal/term.c (read_terminal_list): Likewise.
7601 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7603 Lift up core size limits on some platforms. Fix potential memory
7604 corruption with big core on small memory systems. Document remaining
7607 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7609 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7612 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7614 Remove all trampoline support. Add -Wtrampolines when
7615 present. Remove symbols used for trampolines to make
7616 link fail if trampolines are present.
7618 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7620 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7621 append out of its parent.
7623 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7625 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7628 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7630 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7631 all vars to a macro. All users updated.
7633 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7635 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7638 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7640 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7642 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7644 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7646 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7648 Move to more hookless approach in IEEE1275 devices handling.
7650 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7652 * grub-core/kern/term.c (grub_term_normal_color),
7653 (grub_term_highlight_color): Add back lost defaults.
7655 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7657 Make elfload not use hooks. Opt for flags and iterators instead.
7659 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7661 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7662 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7664 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7666 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7668 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7670 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7671 hook pass-through parameter. All users updated and unnested.
7673 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7675 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7678 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7680 * grub-core/fs/hfs.c: Remove nested functions.
7682 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7684 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7685 the context through.
7686 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7688 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7690 * util/grub-editenv.c (list_variables): Move print_var out of its
7693 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7695 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7698 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7700 * grub-core/gentrigtables.c: Make tables const.
7702 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7704 Remove nested functions from videoinfo iterators.
7706 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7708 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7709 for 64-bit platforms.
7711 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7713 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7714 a FOR_CHILDREN macro.
7716 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7718 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7719 platform from firmware path.
7721 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7723 Enable linux16 on non-BIOS systems for i.a. memtest.
7725 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7727 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7729 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7731 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7732 Fix end of table condition.
7734 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7736 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7739 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7741 * grub-core/fs/jfs.c: Remove nested functions.
7743 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7745 * grub-core/fs/minix.c: Remove nested functions.
7747 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7749 * grub-core/fs/iso9660.c: Remove nested functions.
7751 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7753 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7756 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7758 * util/grub-fstest.c: Remove nested functions.
7760 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7762 * grub-core/loader/machoXX.c: Remove nested functions.
7764 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7766 Remove nested functions from disk and file read hooks.
7768 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7769 (struct grub_disk): Add read_hook_data member.
7770 * include/grub/file.h (struct grub_file): Likewise.
7771 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7776 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7778 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7779 Fix off by one error in enumerating extended partitions.
7781 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7783 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7784 memory leak if device name is not found.
7786 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7788 * grub-core/normal/menu_entry.c (update_screen): remove
7789 unused variable `off' which caused scroll down arrow to be always shown.
7791 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7793 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7794 access to unallocated memory.
7796 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7798 * Makefile.util.def: Add partmap/msdos.c to common library.
7799 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7800 * grub-core/disk/ldm.c: Check for existence of
7801 GRUB_PC_PARTITION_TYPE_LDM.
7803 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7805 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7806 sizes and display sector size.
7808 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7810 Implement new command cmosdump.
7812 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7814 Support Openfirmware disks with non-512B sectors.
7816 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7818 * (grub_ofdisk_get_block_size): New function.
7819 * (grub_ofdisk_prepare): Use the correct block size.
7820 * (grub_ofdisk_read): Likewise.
7821 * (grub_ofdisk_write): Likewise.
7822 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7825 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7827 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7829 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7831 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7834 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7836 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7839 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7841 Implement USBDebug (full USB stack variant).
7843 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7845 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7846 unless they have unexpected values.
7848 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7850 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7853 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7855 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7856 zero-out of port structure.
7858 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7860 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7861 of extended attributes.
7863 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7865 * util/grub-install.in: change misleading comment about
7868 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7870 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7871 when menu highlight color isn't set.
7873 2013-01-27 C. Masloch <pushbx@38.de>
7875 Improve FreeDOS direct loading support compatibility.
7877 * include/grub/i386/relocator.h (grub_relocator16_state):
7879 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7881 (grub_relocator16_boot): Handle %ebp.
7882 * grub-core/lib/i386/relocator16.S: Likewise.
7883 * grub-core/loader/i386/pc/freedos.c:
7884 Load BPB to pass kernel which partition to load from.
7885 Check that kernel file is not too large.
7886 Set register dl to BIOS unit number as well.
7888 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7890 * util/grub-reboot.in (usage): Document the need for
7892 * util/grub-set-default.in (usage): Likewise.
7893 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7895 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7897 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7898 than defining WORDS_BIGENDIAN manually.
7900 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7902 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7905 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7907 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7909 (blit_comb: add_device_width): Likewise.
7911 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7913 Remove nested functions from USB iterators.
7915 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7916 (grub_usb_controller_iterate_hook_t): Likewise.
7917 (grub_usb_iterate): Add hook_data argument.
7918 (grub_usb_controller_iterate): Likewise.
7919 (struct grub_usb_controller_dev.iterate): Likewise.
7921 Update all implementations and callers.
7923 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7925 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7926 margin when not needed.
7928 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7930 Make color variables global instead of it being per-terminal.
7932 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7934 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7937 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7939 Fix powerpc and sparc64 build failures caused by un-nesting memory
7942 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7944 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7945 parameter declarations.
7947 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7949 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7951 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7953 Improve spkmomdem reliability by adding a separator between bytes.
7955 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7957 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7958 an Acer registration utility with several sightings in the wild.
7959 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7961 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7963 Remove nested functions from filesystem directory iterators.
7965 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7966 (struct grub_fs.dir): Add hook_data argument.
7968 Update all implementations and callers.
7970 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7972 * docs/grub.texi (Multi-boot manual config): Fix typo for
7975 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7977 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7978 until after its use in generate_image.
7980 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7982 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7983 initrd size to addr_min, since the initrd will be allocated after
7986 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7988 * conf/Makefile.common: Fix autogen rules to pass definition
7989 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7991 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7993 * include/grub/elf.h: Update ARM definitions based on binutils.
7995 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7997 Split long USB transfers into short ones.
7999 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
8001 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
8002 is interrupted by ESC.
8004 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8006 * util/grub-script-check.c (main): Uniform the error message.
8008 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
8010 Remove nested functions from ELF iterators.
8012 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
8014 Remove nested functions from device iterators.
8016 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
8017 (grub_arc_iterate_devs): Add hook_data argument.
8018 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
8019 (struct grub_ata_dev.iterate): Add hook_data argument.
8020 * include/grub/device.h (grub_device_iterate_hook_t): New type.
8021 (grub_device_iterate): Add hook_data argument.
8022 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
8023 (struct grub_disk_dev.iterate): Add hook_data argument.
8024 (grub_disk_dev_iterate): Likewise.
8025 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
8027 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
8029 * include/grub/partition.h (grub_partition_iterate_hook_t): New
8031 (struct grub_partition_map.iterate): Add hook_data argument.
8032 (grub_partition_iterate): Likewise.
8033 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
8034 (struct grub_scsi_dev.iterate): Add hook_data argument.
8038 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
8040 Fix typos for "developer" and "development".
8042 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8044 Add license header to spkmodem-recv.c.
8046 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
8048 Rewrite spkmodem to use PIT for timing. Double the speed.
8050 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8052 Add new command pcidump.
8054 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8056 New terminal outputs using serial: morse and spkmodem.
8058 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8060 Improve bidi handling in entry editor.
8062 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8064 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
8065 argument to prevent name collision.
8067 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
8069 Remove nested functions from script reading and parsing.
8071 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
8072 getline_data argument, passed to getline.
8073 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
8074 getline_data argument, passed to grub_parser_split_cmdline.
8075 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
8076 lexerstate->getline_data to lexerstate->getline.
8077 (grub_script_lexer_init): Add getline_data argument, saved in
8078 lexerstate->getline_data.
8079 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
8080 argument, passed to grub_script_parse.
8081 * grub-core/script/script.c (grub_script_parse): Add getline_data
8082 argument, passed to grub_script_lexer_init.
8083 * include/grub/parser.h (grub_parser_split_cmdline): Update
8084 prototype. Update all callers to pass appropriate getline data.
8085 (struct grub_parser.parse_line): Likewise.
8086 (grub_rescue_parse_line): Likewise.
8087 * include/grub/reader.h (grub_reader_getline_t): Add void *
8089 * include/grub/script_sh.h (struct grub_lexer_param): Add
8090 getline_data member.
8091 (grub_script_parse): Update prototype. Update all callers to pass
8092 appropriate getline data.
8093 (grub_script_lexer_init): Likewise.
8094 (grub_normal_parse_line): Likewise.
8096 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
8098 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
8099 static instead of nested. Rename to ...
8100 (grub_parser_execute_getline): ... this.
8101 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
8103 * grub-core/normal/main.c (read_config_file: getline): Make static
8104 instead of nested. Rename to ...
8105 (read_config_file_getline): ... this.
8106 (grub_normal_read_line): Add unused data argument.
8107 * grub-core/script/execute.c (grub_script_execute_sourcecode:
8108 getline): Make static instead of nested. Rename to ...
8109 (grub_script_execute_sourcecode_getline): ... this.
8110 * util/grub-script-check.c (main: get_config_line): Make static
8113 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
8115 Remove nested functions from memory map iterators.
8117 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
8118 argument, passed to hook.
8119 * grub-core/kern/i386/coreboot/mmap.c
8120 (grub_linuxbios_table_iterate): Likewise.
8121 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
8123 (grub_machine_mmap_iterate): Add hook_data argument.
8124 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
8125 Add hook_data argument, passed to hook.
8126 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
8128 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
8130 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
8132 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
8134 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
8136 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
8138 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
8139 (grub_machine_mmap_iterate): Likewise.
8140 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
8141 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
8143 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
8144 Remove NESTED_FUNC_ATTR from here and from all users.
8145 (grub_mmap_iterate): Update prototype.
8146 (grub_efi_mmap_iterate): Update prototype. Update all callers to
8147 pass appropriate hook data.
8148 (grub_machine_mmap_iterate): Likewise.
8150 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
8151 static instead of nested.
8152 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
8154 (lsmmap_hook): ... this.
8155 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
8157 (grub_efiemu_mmap_fill: fill_hook): Likewise.
8158 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
8159 heap_init): Likewise.
8160 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
8162 (mmap_iterate_hook): ... this.
8163 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
8165 * grub-core/lib/ieee1275/relocator.c
8166 (grub_relocator_firmware_get_max_events: count): Likewise.
8167 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
8169 (grub_relocator_firmware_fill_events_iter): ... this.
8170 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
8171 hook): Likewise. Rename to ...
8172 (grub_relocator_alloc_chunk_align_iter): ... this.
8173 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
8175 (generate_e820_mmap_iter): ... this.
8176 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
8178 (count_hook): ... this.
8179 (grub_linux_boot: hook): Likewise. Rename to ...
8180 (grub_linux_boot_mmap_find): ... this.
8181 (grub_linux_boot: hook_fill): Likewise. Rename to ...
8182 (grub_linux_boot_mmap_fill): ... this.
8183 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8184 hook): Likewise. Rename to ...
8185 (grub_fill_multiboot_mmap_iter): ... this.
8186 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8187 hook): Likewise. Rename to ...
8188 (count_hook): ... this.
8189 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8190 hook): Likewise. Rename to ...
8191 (grub_fill_multiboot_mmap_iter): ... this.
8192 * grub-core/loader/powerpc/ieee1275/linux.c
8193 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8194 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8195 Likewise. Rename to ...
8196 (alloc_phys_choose): ... this.
8197 (determine_phys_base: get_physbase): Likewise.
8198 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8199 find_hook): Likewise.
8200 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8201 (malloc_hook: count_hook): Likewise.
8202 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8203 Likewise. Rename to ...
8204 (lower_hook): ... this.
8205 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8206 (upper_hook): ... this.
8207 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8208 (post64_hook): ... this.
8209 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8210 Likewise. Rename to ...
8211 (lower_hook): ... this.
8212 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8213 (upper_hook): ... this.
8214 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8215 (grub_mmap_iterate: fill_hook): Likewise.
8216 (fill_mask): Pass addr and mask within a single struct.
8217 (grub_cmd_badram: hook): Make static instead of nested. Rename
8219 (badram_iter): ... this.
8220 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8221 (cutmem_iter): ... this.
8223 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8225 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8226 delimit path in strings using quotes.
8227 * util/getroot.c (grub_guess_root_devices): Likewise.
8228 (grub_make_system_path_relative_to_its_root): Likewise.
8229 * util/grub-probe.c (probe): Likewise.
8230 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8231 (xrealpath): Likewise.
8233 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8235 Fix compilation with older compilers.
8237 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8238 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8240 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8241 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8242 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8244 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8245 * include/grub/crypto.h: Add type defines.
8246 * util/import_gcrypth.sed: Remove duplicate type defines.
8248 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8250 New command list_trusted.
8252 * grub-core/commands/verify.c (grub_cmd_list): New function.
8254 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8256 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8259 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8261 Remove nested functions from PCI iterators.
8263 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8264 passed to hook. Update all callers to pass appropriate hook data.
8265 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8266 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8267 Remove NESTED_FUNC_ATTR from here and from all users.
8268 (grub_pci_iterate): Update prototype.
8269 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8270 instead of nested. Rename to ...
8271 (grub_cs5536_find_iter): ... this.
8272 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8273 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8275 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8277 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8279 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8281 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8282 * grub-core/video/radeon_fuloong2e.c
8283 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8284 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8285 find_card): Likewise.
8286 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8289 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8291 * grub-core/commands/verify.c: Mark messages for translating.
8293 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8295 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8298 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8300 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8303 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8305 * autogen.sh: Do not try to delete nonexistant files.
8306 * util/import_gcrypth.sed: Add some missing header removals.
8308 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8310 Clean up dangling references to grub-setup.
8311 Fixes Ubuntu bug #1082045.
8313 * docs/grub.texi (Images): Refer generally to grub-install rather
8314 than directly to grub-setup.
8315 (Installing GRUB using grub-install): Remove direct reference to
8317 (Device map) Likewise.
8318 (Invoking grub-install): Likewise.
8319 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8320 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8321 * util/grub-install.in (usage): Likewise.
8323 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8324 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8326 * configure.ac: Remove grub_setup output variable.
8328 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8330 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8331 grub-setup to grub-sparc64-setup.
8333 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8335 Import gcrypt public-key cryptography and implement signature checking.
8337 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8339 * grub-core/fs/ntfs.c: Ue more appropriate types.
8340 * grub-core/fs/ntfscomp.c: Likewise.
8341 * include/grub/ntfs.h: Likewise.
8343 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8345 Support Apple FAT binaries on non-Apple platforms.
8347 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8348 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8350 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8353 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8355 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8358 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8360 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8361 explicitly zeroing elements.
8362 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8363 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8364 of elements in a structure already allocated using grub_zalloc.
8365 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8367 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8369 * docs/grub.texi (grub_cpu): New subsection.
8370 (grub_platform): Likewise.
8372 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8374 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8376 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8378 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8381 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8383 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8384 * grub-core/fs/ntfscomp.c: Likewise.
8385 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8386 (grub_ntfs_comp): Likewise.
8388 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8390 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8392 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8393 of groups_per_block. All users updated.
8395 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8397 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8398 grub_error properly.
8399 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8400 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8402 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8404 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8405 always in /boot/zfs.
8406 Reported by: Yuta Satoh.
8408 2013-01-03 Yuta Satoh <nigoro>
8410 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8413 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8415 * configure.ac: Extend -Wno-trampolines to host.
8417 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8419 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8422 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8424 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8425 (Invoking grub-script-check): Likewise.
8427 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8429 * docs/grub.texi (Invoking grub-mount): New section.
8430 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8432 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8434 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8435 test failures, so that a failing unit test correctly causes 'make
8438 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8440 Fix failing printf test.
8442 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8443 '$' in the correct order when collecting type information.
8445 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8447 * docs/grub.texi (configfile): Explain environment variable
8449 (source): New section.
8450 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8452 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8454 Remove several trivially-unnecessary uses of nested functions.
8456 * grub-core/commands/i386/pc/sendkey.c
8457 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8459 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8461 (legacy_file_getline): ... this.
8462 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8464 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8465 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8467 (probe_dummy_iter): ... this.
8468 * grub-core/kern/i386/coreboot/mmap.c
8469 (grub_linuxbios_table_iterate: check_signature): Likewise.
8470 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8471 check_varstate): Likewise. Mark inline.
8472 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8473 an additional parameter.
8474 (find_long: fnd_long): Likewise. Pass two additional parameters.
8475 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8476 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8477 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8478 Likewise. Rename to ...
8479 (grub_cmos_find_port_iter): ... this.
8480 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8482 (find_rtc_iter): ... this.
8484 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8485 function directly into the function body, since it is only called
8488 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8490 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8491 __attribute__ ((unused)).
8492 * grub-core/video/bochs.c (find_card): Likewise.
8493 * grub-core/video/cirrus.c (find_card): Likewise.
8494 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8495 * grub-core/video/sis315pro.c (find_card): Likewise.
8496 * grub-core/video/sm712.c (find_card): Likewise.
8498 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8500 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8501 Fixes Savannah bug #37821.
8503 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8505 Apply program name transformations at build-time rather than at
8506 run-time. Fixes Debian bug #696465.
8508 * acinclude.m4 (grub_TRANSFORM): New macro.
8509 * configure.ac: Create output variables with transformed names for
8511 * util/bash-completion.d/grub-completion.bash.in: Use
8512 pre-transformed variables for program names.
8513 * util/grub-install.in: Likewise.
8514 * util/grub-kbdcomp.in: Likewise.
8515 * util/grub-mkconfig.in: Likewise.
8516 * util/grub-mkconfig_lib.in: Likewise.
8517 * util/grub-mknetdir.in: Likewise.
8518 * util/grub-mkrescue.in: Likewise.
8519 * util/grub-mkstandalone.in: Likewise.
8520 * util/grub-reboot.in: Likewise.
8521 * util/grub-set-default.in: Likewise.
8522 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8523 * tests/util/grub-shell-tester.in: Remove unused assignment.
8524 * tests/util/grub-shell.in: Likewise.
8525 * util/grub.d/00_header.in: Likewise.
8527 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8529 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8531 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8533 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8535 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8537 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8538 Reported by: Eriks Latosheks <foresterlv>.
8540 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8542 * docs/grub.texi (Network): Update instructions on generating netboot
8545 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8547 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8548 around device name if necessarry.
8550 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8552 * util/grub-install.in: Follow the symbolic link parameter added
8553 to the file command.
8555 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8557 * util/grub-install.in: Remove stale TODO.
8559 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8561 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8562 dynamic allocation for the bootpath buffer.
8564 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8566 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8569 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8571 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8572 argument rather than font name. All users updated.
8573 (grub_gfxterm_set_window): Likewise.
8575 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8577 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8580 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8582 * util/getroot.c (convert_system_partition_to_system_disk): Support
8585 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8587 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8588 infinite loop on corrupted FS.
8590 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8592 Fix big-endian mtime.
8594 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8595 together sec and usec.
8596 (grub_ufs_dir): Use correct byteswapping for UFS time.
8598 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8600 Support big-endian UFS1.
8602 * Makefile.util.def (libgrubmods): Add ufs_be.c
8603 * grub-core/Makefile.core.def (ufs1_be): New module.
8604 * grub-core/fs/ufs_be.c: New file.
8605 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8608 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8610 * include/grub/types.h: Fix functionality unaffecting typo in
8611 GRUB_TARGET_WORDSIZE conditional macro.
8613 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8615 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8617 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8619 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8620 that /netbsd appears first (when it exists).
8622 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8624 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8625 Fixes Savannah bug #37558.
8627 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8629 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8630 description of extract_entries_configfile.
8632 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8634 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8636 (grub_cmd_linux): Likewise.
8637 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8638 preferred_lifetime. Update all users.
8640 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8642 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8643 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8645 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8647 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8648 errors from grub-probe to /dev/null, not stdout.
8650 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8652 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8655 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8657 * util/grub-install.in: Make the error message if $source_dir
8658 doesn't exist more useful.
8660 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8662 Fix grub-emu build on FreeBSD.
8664 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8665 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8667 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8668 implementation is currently Linux-specific.
8669 * util/getroot.c (exec_pipe): Define only on Linux or when either
8670 libzfs or libnvpair is unavailable.
8671 (find_root_devices_from_poolname): Remove unused path variable.
8673 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8675 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8676 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8677 should fit before end == 63.
8679 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8681 * util/grub-setup.c (write_rootdev): Remove unused core_img
8682 parameter. Update all callers.
8683 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8684 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8687 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8689 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8690 (grub_add_tab): New function.
8691 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8692 * util/grub.d/10_illumos.in: Likewise.
8693 * util/grub.d/10_kfreebsd.in: Likewise.
8694 * util/grub.d/10_linux.in: Likewise.
8695 * util/grub.d/10_netbsd.in: Likewise.
8696 * util/grub.d/10_windows.in: Likewise.
8697 * util/grub.d/10_xnu.in: Likewise.
8698 * util/grub.d/20_linux_xen.in: Likewise.
8699 * util/grub.d/30_os-prober.in: Likewise.
8701 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8703 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8704 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8705 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8706 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8707 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8709 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8710 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8712 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8714 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8716 Reported by: BURETTE, Bernard.
8718 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8720 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8723 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8725 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8726 IEEE1275 machines. Fixes powerpc-emu compilation.
8727 * include/grub/terminfo.h: Likewise.
8729 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8731 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8733 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8735 (efiemu_set_variable): Make vendor_guid a const pointer.
8737 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8739 Don't require grub-mkconfig_lib to generate manpages for programs.
8741 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8742 dependencies, don't add grub-mkconfig_lib.
8743 (program): Pass empty adddeps.
8744 (script): Pass grub-mkconfig_lib as adddeps.
8746 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8748 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8749 * util/getroot.c (grub_find_device): Likewise.
8750 (get_mdadm_uuid): Likewise.
8751 (grub_util_is_imsm): Likewise.
8752 (grub_util_pull_device): Likewise.
8753 * util/grub-probe.c (probe): Likewise.
8755 2012-09-10 Benoit Gschwind <gschwind>
8757 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8758 (devs): Add devpath_8.
8760 2012-09-08 Peter Jones <pjones@redhat.com>
8762 * grub-core/Makefile.core.def (efifwsetup): New module.
8763 * grub-core/commands/efi/efifwsetup.c: New file.
8764 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8765 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8767 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8769 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8771 * configure.ac: Add SuSe path.
8773 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8777 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8779 * util/import_gcry.py: Sort cipher_files, to make build system
8780 generation more deterministic.
8782 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8784 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8785 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8786 (grub_set_datetime): Likewise.
8788 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8790 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8793 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8795 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8797 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8799 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8801 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8803 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8804 required for checkouts from bzr, but it may be useful for users or
8805 distributors wishing to update translations against a tarball
8806 distribution, and it can be helpful for the tarball to be a superset
8809 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8811 * Makefile.am (EXTRA_DIST): Add
8812 grub-core/tests/boot/linux.init-mips.S,
8813 grub-core/tests/boot/linux.init-ppc.S, and
8814 grub-core/tests/boot/linux-ppc.cfg.
8816 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8818 * grub-core/mmap/mips/loongson: Remove empty directory.
8820 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8822 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8825 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8827 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8830 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8832 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8834 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8836 * po/POTFILES.in: Regenerated.
8838 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8840 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8841 (NetBSD): New subsection.
8843 2012-07-22 Ales Nesrsta <starous@volny.cz>
8845 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8846 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8848 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8850 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8851 * util/grub.d/10_hurd.in: Add missing quoting.
8852 * util/grub.d/10_illumos.in: Likewise.
8853 * util/grub.d/10_kfreebsd.in: Likewise.
8854 * util/grub.d/10_linux.in: Likewise.
8855 * util/grub.d/20_linux_xen.in: Likewise.
8857 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8859 New command `lsefi'.
8861 * grub-core/Makefile.core.def (lsefi): New module.
8862 * grub-core/commands/efi/lsefi.c: New file.
8863 * include/grub/efi/api.h: Add more GUIDs.
8865 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8867 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8868 (grub_bsd_elf32_hook): Likewise.
8869 (grub_bsd_elf64_size_hook): Likewise.
8870 (grub_bsd_elf64_hook): Likewise.
8871 (grub_bsd_load_elf): Likewise.
8873 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8875 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8876 if hash function is unavailable.
8877 (dec_stream_header): Likewise.
8879 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8881 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8884 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8886 Fix coreboot compilation.
8888 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8889 (grub_vga_text_init_real): ... this.
8890 (grub_vga_text_fini): Rename to ...
8891 (grub_vga_text_fini_real): ... this.
8893 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8895 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8897 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8899 * grub-core/lib/legacy_parse.c: Support clear and testload.
8901 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8903 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8905 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8907 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8909 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8911 * grub-core/net/tftp.c (ack): Fix endianness problem.
8912 (tftp_receive): Likewise.
8913 Reported by: Michael Davidsaver.
8915 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8917 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8919 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8921 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8922 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8923 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8925 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8927 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8929 Reported by: Stuart Hayes.
8931 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8933 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8935 * grub-core/Makefile.core.def (mda_text): New module.
8936 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8937 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8938 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8939 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8941 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8942 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8943 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8945 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8947 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8949 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8951 * grub-core/term/i386/vga_common.c: Removed.
8952 * include/grub/i386/vga_common.h: Likewise.
8953 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8954 (grub_vga_cr_bw_read): Likewise.
8955 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8956 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8957 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8958 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8959 grub_vga_cr_read/grub_vga_cr_write.
8960 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8962 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8964 * configure.ac: Bump version to 2.00.
8965 * grub-core/normal/main.c (features): Add feature_200_final.
8967 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8968 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8970 * NEWS: Fix unclarity and language mistakes.
8972 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8974 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8975 additional size to 3 pages.
8976 Reported by: Stuart Hayes.
8978 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8980 * NEWS: Add 2.00 entry.
8982 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8984 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8985 put explicit "/" for empty path.
8986 (wildcard_expand): Improve dprintf.
8988 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8990 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8991 it's equal to currnode. This can happen with "" symlink.
8993 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8995 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8996 echo shell command by printf command.
8998 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9000 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
9001 the value returned by firmware is the maximal position, not diumension.
9002 (grub_terminfo_output_state): Use a more sane fallback.
9004 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9006 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
9008 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9010 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
9011 frequency to 150 MHz.
9013 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9017 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
9019 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
9021 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
9023 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9025 Handle slash in HFS label.
9027 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
9028 (grub_hfs_dir): Tanslate slash.
9029 (grub_hfs_label): Don't translate slash.
9031 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9033 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
9034 network protocol listing since it introduces problematic dependency on
9037 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9039 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
9041 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9043 Init video early on yeeloong to avoid being rebooted by watchdog.
9045 * grub-core/Makefile.am (gensm712): New target.
9046 (sm712_start.S): Likewise.
9047 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
9048 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
9049 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
9051 * include/grub/vga.h: Move registry definitions to...
9052 * include/grub/vgaregs.h: ... here.
9054 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9056 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
9059 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9061 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
9062 platforms with firmware disk drivers in the core.
9064 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9066 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
9067 informative verbose message.
9068 (read_lv): Handle 64-bit segment size.
9070 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9072 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
9074 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9076 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
9077 character but still remove trainling spaces.
9078 (grub_fat_label): Ignore archive flag.
9080 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9082 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
9083 cast between linux_kernel_header and linux_kernel_params.
9085 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9087 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
9089 (grub_raid6_recover_func_t): Likewise.
9090 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
9091 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
9093 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9095 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
9097 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
9101 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
9102 [__NetBSD__]: Add explicit cast before bitshift.
9104 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9106 * configure.ac: Bump to 2.00~rc1.
9108 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9110 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
9113 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9114 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
9116 * docs/grub.texi: Fix search syntax.
9117 (Multi-boot manual config): Put msdos rather than GPT example.
9118 Grammar corrections.
9120 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9122 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
9124 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9126 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
9128 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9130 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
9131 message on double free. Put the value of magic in case of mismatch.
9133 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9135 Speed-up video on yeeloong.
9137 * grub-core/video/sm712.c (framebuffer): Remove render_target and
9139 (grub_video_sm712_video_fini): Unmap cached_ptr.
9140 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
9141 (grub_video_sm712_set_active_render_target): Removed.
9142 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9143 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
9146 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9148 Avoid flushing the same line multiple times on loongson.
9150 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
9151 Step in 32 bytes and not 1 byte.
9152 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
9155 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9157 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
9160 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9162 Implement flow control for http.
9164 * grub-core/net/http.c (parse_line): Handle response 206.
9165 (http_receive): Stall if too many packets are in the queue.
9166 (http_establish): Fix range header.
9167 (http_seek): Fix double free.
9168 (http_close): Likewise.
9169 (http_packets_pulled): New function.
9170 (grub_http_protocol): Set http_seek
9171 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
9172 (ack_real): Set window depending on i_stall.
9173 (grub_net_send_tcp_packet): Likewise.
9174 (grub_net_tcp_stall): New function.
9175 (grub_net_tcp_unstall): Likewise.
9176 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
9177 (grub_net_tcp_unstall): Likewise.
9179 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9181 * grub-core/net/tftp.c: Decrease stall to 50 packets.
9183 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9185 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9187 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9189 * tests/util/grub-shell.in: Fix a typo.
9191 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9193 Implement flow control for tftp.
9195 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9196 packets but stop only if stop condition is satisfied.
9197 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9198 `stall' instead of `eof' as stop condition.
9199 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9200 (http_err): Likewise.
9201 * grub-core/net/tftp.c (ack): Replace the first argument with data
9203 (tftp_receive): Stall if too many packets are in wait queue.
9204 (tftp_packets_pulled): New function.
9205 (grub_tftp_protocol): Set packets_pulled.
9206 * include/grub/net.h (grub_net_packets): New field count.
9207 (grub_net_put_packet): Increment count.
9208 (grub_net_remove_packet): Likewise.
9209 (grub_net_app_protocol): New field `packets_pulled'.
9210 (grub_net): New field `stall'.
9212 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9214 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9215 sync part to handle them.
9217 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9219 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9220 * grub-core/net/drivers/ieee1275/ofnet.c
9221 (grub_ieee1275_net_config_real): Likewise.
9223 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9225 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9226 the direct route for server/gateway.
9228 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9230 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9231 IP address to server name since we may not hame the DNS.
9233 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9235 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9236 freeing random buffer on failure.
9237 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9239 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9241 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9243 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9245 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9247 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9248 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9249 Handle malloc error correctly.
9251 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9253 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9256 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9258 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9261 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9263 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9264 none is explicitly specified.
9266 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9268 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9271 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9273 Respect netmask from bootp/dhcp.
9275 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9276 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9277 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9279 (grub_net_add_ipv4_local): ... this.
9280 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9281 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9282 (grub_net_add_ipv4_local): New proto.
9284 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9286 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9287 determining EFI memory map size.
9289 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9291 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9293 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9295 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9296 when looking for partition separator.
9298 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9300 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9303 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9305 Restructure FAT driver to avoid hook in label reading as it hits a
9308 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9309 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9310 (grub_fat_iterate_dir): Split into ...
9311 (grub_fat_iterate_init): ... this, ...
9312 (grub_fat_iterate_fini): ... this, ...
9313 (grub_fat_iterate_dir_next): ... and this. All users updated.
9315 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9317 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9318 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9319 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9320 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9321 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9322 New fields last_key and last_key_time.
9323 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9324 extended key-esc into extended key-extended key.
9326 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9328 Avoid unnecessary memcpy of whole video buffer.
9330 * grub-core/video/fb/video_fb.c (dirty): New struct.
9331 (framebuffer): Add members current_dirty and previous_dirty.
9332 (dirty): New function.
9333 (grub_video_fb_fill_rect): Update dirty.
9334 (common_blitter): Likewise.
9335 (grub_video_fb_scroll): Likewise.
9336 (doublebuf_blit_update_screen): Copy only dirty part.
9337 (doublebuf_pageflipping_update_screen): Likewise.
9338 (grub_video_fb_doublebuf_blit_init): Init dirty.
9339 (doublebuf_pageflipping_init): Likewise.
9340 (grub_video_fb_setup): Likewise.
9342 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9344 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9347 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9349 Fix wildcard regexp dot and other special characters handling.
9350 Reported by: Robert Mabee.
9352 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9353 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9354 (split_path): Trigger expansion on '?'.
9355 (unescape): New function.
9356 (wildcard_expand): Unescape parts copied without globbing.
9357 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9358 (grub_script_arglist_to_argv): Don't unescape expansions.
9360 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9362 * include/grub/net.h (grub_net_card): New member txbufsize.
9363 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9364 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9365 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9366 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9368 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9369 compatible property to check for macs. Set
9370 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9371 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9372 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9373 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9374 (send_card_buffer): Use txbuf.
9375 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9376 nested function out of the parent while on it.
9378 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9380 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9382 (grub_ieee1275_net_config_real): Fix config pointer.
9384 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9386 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9387 filename parsing to non-block devices.
9389 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9391 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9393 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9395 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9398 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9400 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9401 UUID search command even if hints probing failed.
9403 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9405 * po/POTFILES.in: Regenerated.
9407 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9409 Speed-up video on fuloong.
9411 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9413 (grub_pci_device_unmap_range): Handle non-cached address.
9414 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9416 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9417 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9418 (grub_video_sis315pro_set_active_render_target): Removed.
9419 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9420 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9421 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9423 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9426 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9428 * docs/grub.texi (Multi-boot manual config): New section.
9430 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9432 Avoid slow read-back from VRAM.
9434 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9436 * grub-core/video/fb/video_fb.c
9437 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9438 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9439 (front_target): Remove front_target. Add pages.
9440 (grub_video_fb_init): Skip setting front_pages.
9441 (grub_video_fb_fini): Likewise.
9442 (doublebuf_blit_update_screen): Use pages.
9443 (grub_video_fb_doublebuf_blit_init): Likewise.
9444 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9445 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9446 (grub_video_fb_setup): Prefer doublebuffing.
9448 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9450 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9453 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9457 * tests/util/grub-shell.in: Handle loongson.
9458 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9460 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9461 Reboot instead of shutdown if REBOOT is defined.
9463 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9465 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9466 sized ports since unlike on real hardware qemu supports only 32-bit
9469 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9471 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9472 * util/grub-mkrescue.in: Handle loongson.
9474 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9476 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9477 Set is_part appropriately.
9478 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9479 names. Canonicalize partition without full disk.
9481 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9483 Revert usb-quiesce since it's wrong.
9485 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9486 (grub_ofdisk_init): Don't do quiesce.
9488 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9490 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9491 PowerMac workaround to Xserves as well.
9492 Information supplied by: Benjamin Herrenschmidt.
9494 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9496 Don't assume that beginning address is also the entry point on ppc.
9498 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9499 (grub_linux_boot): Use linux_entry.
9500 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9501 (grub_linux_load64): Likewise.
9503 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9505 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9507 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9509 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9510 needlessly lose the console.
9512 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9514 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9517 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9519 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9520 than current grub_get_rtc() not implemented when booted with
9521 coreboot without TSC.
9523 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9524 Add machine/time.h to kernel headers on loongson.
9525 * grub-core/Makefile.core.def (kernel): Remove
9526 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9527 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9528 (grub_get_rtc): Likewise.
9529 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9530 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9531 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9532 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9533 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9534 rather than installing known non-working time source.
9535 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9536 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9537 * include/grub/time.h: Don't include machine/time.h.
9538 * include/grub/efi/time.h: Removed.
9539 * include/grub/i386/efi/time.h: Likewise.
9540 * include/grub/i386/ieee1275/time.h: Likewise.
9541 * include/grub/powerpc/ieee1275/time.h: Likewise.
9542 * include/grub/sparc64/ieee1275/time.h: Likewise.
9543 * include/grub/x86_64/efi/time.h: Likewise.
9545 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9547 Remove dot on i and j when combining with above diacritics.
9549 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9551 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9552 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9553 with dotless variants when any combining above is present.
9555 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9557 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9558 text and not binary.
9560 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9562 Stop polling as soon as we have the packet we were waiting for.
9564 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9566 * grub-core/net/arp.c (have_pending): New var.
9567 (pending_req): Likewise.
9568 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9570 (grub_net_arp_receive): Set have_pending.
9571 * grub-core/net/dns.c (recv_data): New field stop.
9572 (recv_hook): Set stop.
9573 (grub_net_dns_lookup): Init stop and use as stop condition.
9574 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9576 * grub-core/net/net.c (grub_net_poll_cards): New argument
9577 stop_condition. Stop when it goes true.
9578 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9580 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9582 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9584 Keep TX and RX buffers on EFI rather than always allocate new ones.
9586 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9587 card. All users updated.
9588 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9589 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9590 (get_card_packet): Likewise.
9591 (grub_efinet_findcards): Init new fields.
9593 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9595 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9596 compilation error on sparc64.
9598 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9600 Use ITC on IA64 rather than broken routine based on daytime.
9602 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9604 (grub_get_rtc) [__ia64__]: Likewise.
9605 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9606 (get_itc): New function.
9607 (grub_rtc_get_time_ms): Likewise.
9608 (grub_machine_init): Calibrate ITC.
9609 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9610 Keep only on non-ia64. Don't export since it's broken and used only
9611 if TSC is unavailable.
9613 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9615 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9617 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9618 Skip if parent is unused.
9620 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9622 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9624 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9626 Fix wildcard escaping.
9628 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9629 * grub-core/script/execute.c (wildcard_escape): .. to here.
9631 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9632 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9634 * grub-core/script/execute.c (gettext_append): Always escape.
9635 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9636 * grub-core/script/yylex.l: Don't cut away the escaping.
9637 * tests/grub_script_echo1.in: Add tests with wildcard.
9639 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9641 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9642 (ftdi_hw_configure): Likewise.
9643 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9645 (real_config): Handle 1.5 stop bits.
9646 (pl2303_hw_configure): Likewise.
9648 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9650 * Makefile.am: Add ppc linux bootcheck.
9651 * grub-core/tests/boot/linux-ppc.cfg: New file.
9652 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9654 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9656 * tests/grub_script_expansion.in: Skip network protocols.
9658 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9660 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9662 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9664 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9668 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9670 ESCC serial driver for conducting sautomated tests in qemu.
9671 Not tested on real hardware.
9673 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9674 * grub-core/term/ieee1275/escc.c: New file.
9675 * grub-core/Makefile.core.def (escc): New module.
9677 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9679 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9681 (serial_hw_fetch): Don't read invalid handle.
9682 (serial_hw_put): Don't write into invalid handle.
9684 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9686 Add a 1.5 stop bits value.
9688 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9689 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9690 GRUB_SERIAL_STOP_BITS_1_5.
9692 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9694 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9695 value rather than let it uninited.
9697 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9699 * grub-core/commands/wildcard.c (+check_file): New function.
9700 (wildcard_expand): Don't expand to non-existing files, expand with
9701 suffix and not attempt to expand if not needed.
9703 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9705 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9706 out of partitions containing other partitions.
9708 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9710 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9711 on some qemu versions with GRUB.
9713 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9715 (grub_openbsd_bootarg_pcibios): New struct.
9716 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9719 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9721 * tests/util/grub-shell.in: Trim firmware output on EFI.
9723 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9725 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9726 and coreboot since it's already in kernel.
9728 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9730 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9731 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9732 to here. New return value start. All users updated.
9733 Recursively scan linear mappings.
9734 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9736 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9737 Use grub_util_get_dm_node_linear_info.
9738 * util/getroot.c (convert_system_partition_to_system_disk): Use
9739 grub_util_info rather than grub_dprintf.
9740 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9742 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9744 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9746 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9747 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9749 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9751 * include/grub/types.h (grub_set_unaligned64): New function.
9752 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9755 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9757 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9758 (grub_ofdisk_fini): Quiesce USB devices.
9760 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9762 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9765 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9767 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9769 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9771 * grub-core/disk/pata.c (grub_pata_pio_read)
9772 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9773 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9775 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9777 Extend automated tests to qemu-mips.
9779 * Makefile.am: reorganise tests and enable qemu-mips.
9780 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9781 * grub-core/tests/boot/linux.init-mips.S: New file.
9782 * tests/partmap_test.in: Handle ata0 disks.
9783 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9786 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9788 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9790 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9793 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9795 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9796 (grub_halt): Likewise.
9797 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9799 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9801 * grub-core/term/serial.c (grub_serial_register)
9802 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9803 the behaviour in line with x86 platforms.
9805 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9807 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9808 (grub_ata_strncpy): Likewise.
9809 (grub_ata_identify): Add missing byteswaps.
9811 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9813 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9815 (screen_read_char): Likewise.
9816 (grub_vga_text_cls): Likewise.
9818 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9820 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9822 (make_file_path): Likewise.
9824 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9826 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9828 Tested by: Paulo Flabiano Smorigo.
9829 Crucial information about API supplied by: Coleen <Last name unknown>.
9830 Reviewed by: Coleen <Last name unknown>.
9832 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9834 * util/grub-mkimage.c: Disable -Wcast-align.
9836 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9838 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9841 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9843 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9845 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9847 * util/grub-probe.c (escape_of_path): Fix double free.
9849 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9851 * grub-core/commands/videoinfo.c (hook): Show pitch.
9853 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9855 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9857 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9859 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9860 (probe): Add ieee1275 to OFW devices.
9862 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9864 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9866 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9868 Handle IBM OFW path.
9870 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9872 (of_path_of_scsi): Handle vdevice.
9874 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9876 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9877 Allocate in multiples of 16 to avoid adding a few bytes free region the
9880 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9882 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9883 Allocate in multiples of 16 to avoid adding a few bytes free region the
9885 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9887 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9889 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9891 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9892 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9894 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9896 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9898 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9900 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9901 resulted in \\ at the end of the line.
9903 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9905 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9906 (grub_parser_cmdline_state): Likewise.
9907 (grub_parser_split_cmdline): Likewise.
9909 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9911 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9912 /dev/root and /dev/dm-*.
9914 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9916 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9917 fix partially stale display.
9919 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9921 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9924 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9926 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9927 Fix MBR remapping workaround.
9928 (grub_util_biosdisk_read) [__linux__]: Likewise.
9930 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9932 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9934 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9936 * configure.ac: Bump to beta6.
9938 2012-05-31 Christer Weinigel <christer@weinigel.se>
9940 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9942 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9944 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9945 (grub_cmd_linux): Likewise.
9947 2012-05-31 Christer Weinigel <christer@weinigel.se>
9951 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9952 (GRUB_EHCI_MULT_TWO): Likewise.
9953 (GRUB_EHCI_MULT_THREE): Likewise.
9954 (GRUB_EHCI_CMASK_MASK): New enum value.
9955 (GRUB_EHCI_SMASK_MASK): Likewise.
9956 (GRUB_EHCI_CMASK_OFF): Likewise.
9957 (GRUB_EHCI_SMASK_OFF): Likewise.
9958 (grub_ehci_pci_iter): Enable periodic schedule.
9959 (grub_ehci_parse_notrun): Likewise.
9960 (grub_ehci_restore_hw): Likewise.
9961 (grub_ehci_setup_qh): Set flags for low speed transfers.
9962 (grub_ehci_find_qh): Use periodic list for low speed.
9963 (grub_ehci_setup_transfer): Check periodic queue as well.
9964 (grub_ehci_check_transfer): Likewise.
9965 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9967 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9969 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9972 2012-05-31 Peter Jones <pjones@redhat.com>
9974 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9975 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9976 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9978 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9980 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9981 uninited variable. Allocate at least setup_sects.
9983 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9985 Fix handling of EFI with big memory maps.
9987 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9988 (real_mode_mem): Likewise.
9989 (real_mode_target): Likewise.
9990 (real_mode_pages): Likewise.
9991 (prot_mode_pages): Likewise.
9992 (linux_params): New var.
9993 (linux_cmdline): Likewise.
9994 (free_pages): Don't set real mode variables.
9995 (allocate_pages): Don't allocate real mode memory.
9996 (grub_e820_add_region): Remove the limit.
9997 (grub_linux_boot): Allocate and copy real mode memory.
9998 (grub_linux_unload): Free linux_cmdline.
9999 (grub_cmd_linux): Use temporary storage for parameters.
10000 (grub_cmd_initrd): Likewise.
10001 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
10002 (linux_kernel_params): Make it 1K big.
10004 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
10006 * Makefile.util.def: Remove -Wno-format.
10007 * grub-core/Makefile.core.def: Likewise.
10009 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
10011 * tests/cmp_unit_test.c: Add missing failure message.
10012 * tests/example_unit_test.c: Likewise.
10013 * tests/printf_unit_test.c: Likewise.
10015 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
10017 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
10018 relaxation of protective MBR requirements.
10020 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
10022 * configure.ac: Add condition for COND_HOST_XNU.
10023 * Makefile.util.def (10_xnu): New script.
10024 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
10026 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
10028 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
10031 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
10033 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
10034 Binary on other platforms stays identical.
10036 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10038 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
10041 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10043 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
10045 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10047 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
10048 rather than defining size_t ourselves to avoid conflict.
10050 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10052 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
10053 initialisation to avoid __bzero reference.
10055 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10057 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
10059 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
10060 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
10061 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
10062 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
10063 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
10065 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10067 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
10068 * grub-core/kern/misc.c: Likewise.
10069 * grub-core/loader/i386/xnu.c: Likewise.
10070 * include/grub/i386/tsc.h: Likewise.
10071 * include/grub/symbol.h: Likewise.
10073 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10075 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
10076 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
10079 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10081 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
10082 Implement Apple flavour.
10083 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
10085 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10087 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
10088 (memmove) [__APPLE__]: Likewise.
10089 (memcpy) [__APPLE__]: Likewise.
10090 (memset) [__APPLE__]: Likewise.
10091 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
10092 (memmove) [__APPLE__]: Likewise.
10093 (memcpy) [__APPLE__]: Likewise.
10094 (memset) [__APPLE__]: Likewise.
10096 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10098 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
10099 dependency discard.
10101 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10103 * grub-core/normal/main.c (read_config_file): Provide config_file and
10105 * util/grub.d/41_custom.in: Use config_directoy when available.
10107 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10109 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
10110 (grub_bfs_dir): Likewise.
10112 2012-05-27 Peter Jones <pjones@redhat.com>
10114 The old code gives arguments to a printf function which can't work
10115 correctly, and the compiler complains.
10117 * grub-core/tests/example_functional_test.c (example_test): Add
10119 * grub-core/tests/lib/test.c (add_failure): Rewrite.
10120 * include/grub/test.h (grub_test_assert_helper): New declaration.
10121 (grub_test_assert): Use grub_test_assert_helper.
10123 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10125 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
10126 (exfctest): ... this to avoid overlong filenames.
10129 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10131 Handle "." and ".." on squashfs.
10133 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
10134 Make inode numbers into stack.
10135 (grub_squash_read_symlink): Use stack.
10136 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
10137 (make_root_node): Fill stack.
10138 (grub_squash_open): Use stack.
10140 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10142 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
10145 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10147 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
10148 stderr on test calls.
10150 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10152 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
10154 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10156 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
10158 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10160 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
10163 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10165 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
10166 (grub_hfsplus_iterate_dir): Add "." and "..".
10168 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10170 * grub-core/fs/cpio.c (canonicalize): Handle "..".
10171 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
10173 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10175 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
10176 (find_path): Handle "." and "..".
10178 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10180 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
10181 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10182 (grub_affs_iterate_dir): Handle hardlinks.
10184 2012-05-26 Matthew Garrett <mjg@redhat.com>
10186 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10187 (grub_efi_console_fini): Likewise.
10188 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10189 (grub_video_gop_fill_mode_info): Rename to ...
10190 (grub_video_gop_fill_real_mode_info): ... this.
10191 (grub_video_gop_fill_mode_info): New function.
10192 (grub_video_gop_setup): Setup double framebuffer.
10193 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10195 (grub_video_gop_swap_buffers): Copy framebuffer.
10196 (grub_video_gop_fini): Free offscreen buffer.
10197 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10199 (grub_efi_gop_blt_pixel): New struct.
10201 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10203 * gentpl.py: Remove error disabling for objconv.
10205 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10207 * configure.ac: Remove -Wunitialized as it's not available on older
10210 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10212 Fix extent overflow comparator.
10214 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10215 (grub_hfsplus_read_block): Set type.
10216 (grub_hfsplus_cmp_extkey): Compare type.
10218 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10220 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10222 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10224 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10227 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10229 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10230 (dejavu_bold_14.pf2): New target.
10232 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10234 * configure.ac: Fix djvu font detection.
10236 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10238 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10239 ext* instead of ext2.
10241 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10243 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10246 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10248 * docs/grub-dev.texi: Remove dot from .png.
10250 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10252 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10253 protective entry in any slot.
10254 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10255 if protective entry is found in any slot.
10257 Protective entry in non-first slot make no sense but is a widespread
10260 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10262 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10264 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10266 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10268 (grub_reiserfs_open): Don't free root.
10270 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10272 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10273 after freeing for safety.
10275 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10277 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10278 Reported by: Jordan Uggla.
10280 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10282 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10283 actual implementation. Specifically, clarify that the grub menu will
10284 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10287 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10289 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10292 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10294 Remove unjustified hard dependency of normal.mod on gfxterm.
10296 * include/grub/term.h (grub_term_output): New member fullscreen.
10297 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10298 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10299 (grub_gfxterm): Set .fullscreen.
10300 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10301 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10303 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10305 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10306 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10307 Mention case-insensitive AFFS, SFS and JFS.
10309 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10311 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10313 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10315 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10318 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10320 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10321 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10323 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10325 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10326 (grub_jfs_mount): Fill caseins.
10327 (grub_jfs_find_file): Respect caseins.
10329 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10331 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10334 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10336 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10337 New argument origpath. All users updated.
10339 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10341 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10342 (read_attr): Ensure that we read start of possibly compressed block.
10344 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10346 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10347 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10350 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10352 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10353 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10354 (dejavu.pf2): Replace with ...
10355 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10358 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10360 * util/grub.d/20_linux_xen.in: Add missing line.
10362 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10364 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10365 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10366 (grub_utf16_to_utf8): Likewise.
10368 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10370 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10371 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10372 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10373 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10374 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10375 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10377 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10379 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10382 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10384 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10385 (grub_udf_read_symlink): Handle read_string failure.
10387 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10389 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10392 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10394 Fix handling of UDF symlinks.
10396 * grub-core/fs/udf.c (read_string): New argument outbuf.
10398 (grub_ufs_read_symlink): Rename to ...
10399 (grub_udf_read_symlink): ... this. All users updated.
10400 Handle symlinks with more than one component.
10402 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10404 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10405 symlinks. Replace leading colon with a slash.
10407 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10409 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10412 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10414 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10415 match in inner node.
10417 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10419 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10420 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10421 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10422 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10423 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10424 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10425 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10426 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10427 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10429 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10431 Use grub-probe and not cmp to check that disk is empty.
10433 * util/grub-install.in: Use grub-probe for zero-check.
10434 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10435 (probe): Handle PRINT_ZERO_CHECK.
10436 (argp_parser): Handle -t zero_check.
10438 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10440 Flush block cache on adding disk to device map.
10442 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10443 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10445 (read_device_map): Likewise.
10446 (open_device): Flush on opening.
10448 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10450 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10451 (handle_symlink): Fix off-by-one error.
10452 Canonicalize the target.
10453 (grub_cpio_dir): Canonicalize the name.
10456 (grub_cpio_open): Canonicalize the name.
10458 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10460 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10463 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10465 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10466 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10468 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10470 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10471 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10474 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10476 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10479 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10481 Fix UFS1 big file support.
10483 * grub-core/fs/ufs.c (INODE): Removed.
10484 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10486 (INODE_MODE): Simplify.
10487 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10488 (grub_ufs_lookup_symlink): Don't use INODE.
10490 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10492 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10494 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10495 (grub_minix_data): Replace log_block_size with block_size.
10496 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10497 (grub_minix_mount): Fill block_size.
10499 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10501 * configure.ac: Bump to beta5.
10503 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10505 Fix wrapped HFS+ handling.
10507 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10508 blocks_start. All users updated.
10509 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10511 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10513 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10515 Fix long symlinks on reiserfs.
10517 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10518 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10519 (grub_reiserfs_iterate_dir): Save size for non-directories.
10520 (grub_reiserfs_open): Don't reread stat block as we already know the
10522 (grub_reiserfs_read): Split into...
10523 (grub_reiserfs_read_real): ... and ...
10524 (grub_reiserfs_read): ...this.
10526 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10528 Fix non-indexed JFS.
10530 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10531 (grub_jfs_data): New field namecomponentlen.
10532 (grub_jfs_mount): Fill namecomponentlen.
10533 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10535 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10537 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10538 * tests/grub_script_echo1.in: Add tests.
10540 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10542 * util/grub-install.in: Ignore empty devicetree directory.
10544 2012-05-08 Bean <bean123ch@gmail.com>
10546 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10548 (free_rsm): Free header as well.
10549 (free_old_fragments): Fix memory leak.
10550 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10551 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10552 (destroy_pq): Likewise.
10553 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10555 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10557 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10558 resulting hash as a precaution.
10560 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10562 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10563 '_' in variable names.
10564 * grub-core/net/net.c (grub_net_network_level_interface_register):
10567 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10569 Fix AFFS with non-512B blocks.
10571 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10572 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10573 (grub_affs_data): Replace blocksize with log_blocksize.
10574 (grub_affs_read_block): Fix non-512B blocks.
10575 (grub_affs_read_symlink): Likewise.
10576 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10577 (grub_affs_read): Fix non-512B blocks.
10578 (grub_affs_label): Likewise.
10579 (grub_affs_mtime): Likewise.
10580 (grub_affs_mount): Fix block detection routine.
10582 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10584 Add filesystem mtime to AFFS.
10586 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10587 (aftime2ctime): New function.
10588 (grub_affs_dir): Use aftime2ctime.
10589 (grub_affs_label): Fix return value.
10590 (grub_affs_mtime): New function.
10591 (grub_affs_fs): Add mtime.
10593 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10595 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10598 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10600 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10603 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10605 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10607 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10609 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10611 (FLAGS_CASE_SENSITIVE): New enum value.
10612 (cache_entry): New struct.
10613 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10614 cache_size and cache.
10615 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10616 Add log_blocksize and fshelp_flags.
10617 (grub_sfs_read_extent): Handle non-512 blocks.
10618 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10619 (grub_sfs_read_file): Handle non-512 blocks.
10620 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10622 (grub_sfs_read_symlink): Handle non-512 blocks.
10623 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10624 (grub_sfs_dir): Free cache.
10625 (grub_sfs_close): Likewise.
10627 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10629 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10632 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10634 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10636 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10638 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10640 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10642 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10643 (grub_sfs_read_extent): Likewise.
10644 (grub_sfs_read_block): Likewise.
10645 (grub_sfs_mount): Likewise.
10646 (grub_sfs_iterate_dir): Likewise.
10647 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10648 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10650 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10652 Fix errors on compressed NTFS with 512B clusters.
10654 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10656 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10658 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10659 Relax check for inline extents.
10660 (ntfscomp): Return correct -1 on error and not 0.
10662 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10664 * util/grub-install.in: Fix handling of prefix containing spaces.
10666 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10668 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10669 (grub_squash_read_data): Fix offset byte-swapping.
10671 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10673 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10674 per common usage and preffered in several parts of code.
10675 (grub_memcmp): Likewise.
10676 (grub_strncmp): Likewise.
10677 * include/grub/misc.h (grub_strcasecmp): Likewise.
10678 (grub_strncasecmp): Likewise.
10679 * Makefile.util.def (cmp_test): New test.
10680 (grub_script_strcmp): Likewise.
10681 * tests/cmp_unit_test.c: New file.
10682 * tests/grub_script_strcmp.in: Likewise.
10683 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10685 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10687 * include/grub/pci.h: Move enums into no-asm part.
10689 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10691 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10693 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10695 * util/getroot.c (find_hurd_root_device): Try to make error message
10696 and comments to translators clearer.
10698 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10700 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10702 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10704 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10707 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10709 * docs/grub.cfg: Update.
10711 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10713 * docs/grub.texi (PXE): Remove not present variables.
10715 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10717 * grub-core/net/net.c (defserver_set_env): New function.
10718 (defserver_get_env): Likewise.
10719 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10721 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10723 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10726 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10728 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10729 * grub-core/kern/emu/hostdisk.c: Likewise.
10731 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10733 Handle hurd userspace partitions.
10735 * util/getroot.c (find_hurd_root_device): New function.
10736 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10738 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10740 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10742 Reported by: Bastian Blank.
10744 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10746 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10747 crossing page boundary.
10749 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10751 Fix B-tree search in BFS, especially in presence of non-ASCII
10754 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10755 (find_in_b_tree): Use standard bsearch + btree algorithm.
10757 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10759 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10762 2012-05-03 Matthew Garrett <mjg@redhat.com>
10763 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10765 Suspend broadcom cards in order to stop their DMA.
10767 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10768 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10769 (pci): Don't build on x86 EFI.
10770 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10771 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10773 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10774 stop_broadcom if running on EFI.
10775 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10776 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10777 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10778 (grub_pci_find_capability): New proto.
10780 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10782 * docs/grub.texi: Remove dot from the extension as it apparently
10783 doesn't work with some makeinfo versions.
10785 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10787 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10788 with GRUB expectance.
10790 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10792 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10794 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10796 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10797 zero after directory block since last entry may be not 0-terminated if
10798 it ends on block boundary. Use continue instead of if spanning whole
10801 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10803 Support 4K sectors UDF inline files.
10805 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10806 (grub_udf_extended_file_entry): Likewise.
10807 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10809 (get_fshelp_size): New function.
10810 (grub_udf_read_icb): Read whole block.
10811 (grub_udf_iterate_dir): Likewise.
10812 (grub_udf_dir): Likewise.
10813 (grub_udf_open): Likewise.
10815 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10817 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10819 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10821 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10822 inline symlinks in addition to workaround.
10824 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10826 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10828 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10830 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10832 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10834 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10836 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10838 Fix reiserfs big seek times.
10840 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10841 exact. All users updated.
10842 (grub_reiserfs_read): Use nearest btree search for seeking.
10843 Fix return value on error.
10845 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10847 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10849 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10850 * docs/grub.texi: Update menuentry description.
10852 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10854 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10855 crash when embedding onto filesystem.
10857 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10859 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10862 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10864 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10866 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10868 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10871 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10872 2012-05-01 Bean <bean123ch@gmail.com>
10874 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10876 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10878 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10879 Special behaviour for len = 0 to read whole file isn't used anywhere and
10880 can cause buffer ovewrflows in several places.
10882 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10884 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10886 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10888 Handle RAIDZ on non-512B sectors.
10890 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10891 max_children_ashift.
10892 (fill_vdev_info_real): Fill max_children_ashift.
10893 (read_device): Use max_children_ashift.
10895 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10897 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10899 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10901 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10903 * docs/grub.texi: Update device.map parts.
10905 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10907 Don't scan into non-diskfilter devices having diskfilter names.
10909 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10910 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10912 (scan_disk_hook): New function.
10914 2012-04-29 Bean <bean123ch@gmail.com>
10916 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10919 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10921 * configure.ac: Detect starfield theme font path
10922 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10924 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10926 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10927 geometry on serial consoles.
10929 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10931 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10932 because of network consoles.
10934 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10936 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10939 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10941 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10942 falls on Q syndrom.
10944 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10946 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10947 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10949 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10951 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10952 Allocate at lest 8192 for temporary buffer as required for lzo.
10954 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10956 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10957 to cluster_bits, since it's already added in.
10958 (grub_fat_read_data): Likewise.
10960 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10962 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10963 as long as cluster size is multiple of 512 bytes.
10965 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10967 * util/grub-mkrescue.in: Fix locale directory.
10969 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10971 * grub-core/kern/emu/hostdisk.c (map): Make static.
10973 2012-04-23 Bean <bean123ch@gmail.com>
10975 * util/grub-fstest.c (fstest): Add missing break.
10977 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10981 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10982 not define nr variable.
10983 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10984 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10985 grub_find_device): Do not define.
10987 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10989 Fix kfreebsd compile and behaviour.
10991 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10993 * util/getroot.c: Fix wait.h include.
10994 (grub_guess_root_devices): Error if grub_find_device fails.
10995 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10996 (grub_util_get_dev_abstraction): Likewise.
10997 (grub_util_pull_device): Likewise.
10998 (grub_util_get_grub_dev): Likewise.
10999 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
11001 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
11003 Fix and unify wholedisk detection.
11005 * util/getroot.c (convert_system_partition_to_system_disk): New argument
11006 is_part. All users updated.
11007 (device_is_wholedisk): Removed.
11008 (grub_util_biosdisk_get_grub_dev): Use is_part.
11010 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11012 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
11015 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11017 * configure.ac: Bump to beta4.
11019 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11021 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
11022 --fs-uuid --set UUID syntax.
11024 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11026 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
11029 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11031 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
11033 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
11035 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
11037 2012-04-18 Mike Gilbert <floppym@gentoo.org>
11039 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
11041 2012-04-18 Bean <bean123ch@gmail.com>
11043 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
11046 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11048 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
11050 (grub_util_biosdisk_read): Handle Linux partitions not exactly
11051 corresponding to GRUB partitions.
11052 (grub_util_biosdisk_write): Likewise.
11054 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11056 Scan mdraid before LVM.
11058 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
11059 (grub_diskfilter_register_front): ... this.
11060 (grub_diskfilter_register_back): New function.
11061 All users of grub_diskfilter_register updated.
11063 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11065 * util/grub-install.in: Fix an automatic target detection bug.
11067 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11069 * util/grub-install.in: New option --efi-directory.
11071 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
11073 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
11074 boot services if we have no other choice.
11076 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
11078 * util/grub-mknetdir.in: Rename --override-directory to --directory and
11080 * tests/util/grub-shell.in: Update to --directory.
11082 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11084 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
11086 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11088 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
11089 (grub_minix_read_file): Likewise.
11090 (grub_minix_read_inode): Likewise.
11091 (grub_minix_find_file): Likewise.
11092 (grub_minix_dir): Likewise.
11094 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11096 * util/grub-setup.c (setup): Fix partition handling and blocklist
11099 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11101 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
11102 redundant buggy overlap check.
11104 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11106 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
11109 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11111 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
11112 kh.loadflags on pre-2.00 kernels.
11114 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11116 Terminate UNDI and PXE before launching the payload to avoid problems
11119 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
11120 (grub_loader_flags): ... this. All users updated.
11121 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
11122 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
11123 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
11124 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
11126 (grub_pxe_restore): Likewise.
11127 (fini_hnd): New var.
11128 (GRUB_MOD_INIT): Register shutdown hook.
11129 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
11130 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
11131 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
11132 (grub_loader_set): Rename second argument to flags.
11134 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11136 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
11138 (grub_get_num_of_utf8_bytes): New function.
11139 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
11140 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
11142 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
11143 (grub_ucs4_to_utf8): Change return type.
11145 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11147 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
11149 * grub-core/fs/bfs.c (hop_level): Likewise.
11150 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
11152 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11154 * grub-core/lib/adler32.c: Recode due to license unclearness.
11156 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11158 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
11159 (test_header): Likewise.
11161 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11163 Fix --help formatting.
11165 * util/grub-mkconfig_lib.in (print_option_help): New function.
11166 (grub_fmt): Likewise.
11167 * util/grub-install.in: Use print_option_help and grub_fmt.
11168 * util/grub-kbdcomp.in: Likewise.
11169 * util/grub-mkconfig.in: Likewise.
11170 * util/grub-mknetdir.in: Likewise.
11171 * util/grub-mkrescue.in: Likewise.
11172 * util/grub-mkstandalone.in: Likewise.
11173 * util/grub-reboot.in: Likewise.
11174 * util/grub-set-default.in: Likewise.
11175 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11177 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11179 * linguas.sh: Remove autogenerated *.po.
11181 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11183 * po/README: Move language fetcing to ...
11184 * linguas.sh: ... here.
11185 * po/README: Point to linguas.sh.
11187 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11189 * po/README: Exclude ko.po due to disclaimer problems.
11191 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11193 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11195 (grub_gettext_translate_real): Handle 0th string.
11196 (grub_gettext_translate): Ensure that "" isn't translated.
11198 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11200 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11201 TRANSLATORS comment.
11202 (grub_diskfilter_print_partmap): Propagate changing of error into
11205 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11207 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11208 to uint64_t to prevent overflow.
11209 (grub_diskfilter_lv): Increase start_extent and extent_count
11210 to uint64_t to prevent overflow.
11212 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11214 * configure.ac: Increase version.
11216 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11218 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11220 * po/Rules-translit: New file.
11221 * po/arabic.sed: Likewise.
11222 * po/cyrillic.sed: Likewise.
11223 * po/greek.sed: Likewise.
11224 * po/hebrew.sed: Likewise.
11225 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11226 * po/Makefile.in.in: Add extra_dist4.
11228 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11230 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11232 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11233 modify names. Introduce MODE_BIGENDIAN.
11234 * grub-core/fs/minix_be.c: New file.
11235 * grub-core/fs/minix2_be.c: Likewise
11236 * grub-core/fs/minix3_be.c: Likewise.
11237 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11239 * grub-core/Makefile.core.def (minix_be): New module.
11240 (minix2_be): Likewise.
11241 (minix3_be): Likewise.
11243 2012-04-01 Felix <email@hamburg.de>
11245 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11246 (devs): Add MBP 2011.
11248 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11250 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11252 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11254 * grub-core/normal/cmdline.c (print_completion): New field
11256 (grub_cmdline_get): Handle width properly.
11258 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11260 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11262 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11264 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11265 after 29th of February.
11267 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11269 Fix exfat endianness handling.
11271 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11272 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11273 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11274 Byte-swap utf16 when necessary.
11275 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11277 2012-03-31 Anton Blanchard <anton@samba.org>
11278 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11280 Fix btrfs endianness handling.
11282 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11283 (lower_bound): Make root uint64_t. Use root in le.
11284 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11285 (find_path): Fix template key init.
11286 (grub_btrfs_dir): Fix mtime byteswap.
11287 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11289 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11291 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11292 recursion_depth. Break infinite resursions. All users updated.
11294 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11296 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11298 Reported by: Peter Jones.
11300 2012-03-31 Anton Blanchard <anton@samba.org>
11302 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11305 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11307 * util/grub-install.in: Fix nvram call for PreP.
11309 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11311 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11312 the error when some elements are missing into a warning.
11314 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11316 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11318 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11320 * docs/grub.texi (Invoking grub-probe): New section.
11321 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11323 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11325 Fix tab and wide character handling in editor and menu.
11327 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11328 agglomerate control characters with combining marks.
11329 (bidi_line_wrap): Allow break on tab.
11330 (grub_unicode_get_comb_start): New function.
11331 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11333 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11335 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11336 fixed_tab_size. All users updated.
11337 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11338 (grub_term_getcharwidth): Handle \t.
11339 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11342 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11344 Handle big-endian mdraid.
11346 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11347 * grub-core/Makefile.core.def (mdraid09_be): New module.
11348 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11349 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11350 * grub-core/disk/mdraid_linux_be.c: New file.
11352 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11354 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11356 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11358 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11359 missing quotes which caused confusion among translators.
11361 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11363 * util/grub-mkconfig_lib.in: Fix typo.
11365 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11367 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11369 * tests/grub_script_leading_whitespace.in: New file.
11370 * Makefile.util.def (grub_script_leading_whitespace): New test.
11372 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11374 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11377 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11379 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11380 starts with control character.
11382 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11384 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11386 (grub_gdb_outbuf): Likewise.
11388 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11390 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11391 zero terminator. Fixes a crash.
11393 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11395 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11397 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11398 images independently of preffered adderss field.
11400 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11402 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11403 * grub-core/commands/regexp.c: Likewise.
11404 * grub-core/loader/i386/linux.c: Likewise.
11405 * grub-core/partmap/msdos.c: Likewise.
11406 * grub-core/script/execute.c: Likewise.
11407 * grub-core/term/gfxterm.c: Likewise.
11409 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11411 Add variable parsing in $"..." and fix several mismatches with bash.
11413 * Makefile.util.def (grub_script_gettext): New test.
11414 * grub-core/script/execute.c (parse_string): New function.
11415 (gettext_append): Likewise.
11416 (grub_script_arglist_to_argv): Use gettext_append.
11417 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11418 * tests/grub_script_gettext.in: New file.
11420 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11422 Fix handling of leading spaces in scripts.
11424 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11426 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11427 other than skipping \r. All users updated.
11428 * tests/grub_script_echo1.in: Add space-related tests.
11429 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11431 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11433 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11435 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11437 * configure.ac: Bump up the version to beta2.
11439 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11441 Fix gettext reload bugs (e.g. inability to disable gettext
11444 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11445 main_context and secondary_context. All functions updated.
11446 (grub_gettext_translate): Rename to ...
11447 (grub_gettext_translate_real): ... this. Return NULL on failed
11449 (grub_gettext_translate): Handle secondary context.
11450 (grub_gettext_delete_list): Close file and zero-out the context.
11451 (grub_mofile_open): Don't call grub_gettext_delete_list.
11453 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11454 if locale="" to avoid pointless error message.
11455 (grub_gettext_env_write_lang): Update lang even if load fails.
11456 Handle secondary context.
11457 (grub_gettext_reread_prefix): New function.
11458 (read_main): Likewise.
11459 (read_secondary): Likewise.
11460 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11461 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11462 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11463 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11465 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11467 * configure.ac: Decrease warning level to avoid spurious warnings and
11468 to be able to compile with GCC 4.2.
11469 * Makefile.util.def: Remove -Wno-error=logical-op.
11471 2012-03-10 William Bittner <william.bittner@gmail.com>
11473 * util/import_unicode.py: Add missing brackets around string for
11476 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11478 Fix efi chainloader on network root.
11480 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11482 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11485 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11487 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11488 unused show_text member.
11489 * docs/grub.texi: Document "text" property.
11491 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11493 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11496 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11498 Fix IMSM handling on Fedora.
11500 * util/getroot.c (grub_util_is_imsm): New function.
11501 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11503 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11505 * Makefile.am: Strip gold section.
11506 * conf/Makefile.common: Likewise.
11507 * gentpl.py: Likewise.
11508 * grub-core/Makefile.core.def: Likewise.
11509 * grub-core/genmod.sh.in: Likewise.
11511 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11513 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11514 * util/grub.d/20_linux_xen.in: Likewise.
11515 Based on Debian patch.
11517 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11519 * util/grub.d/10_linux.in: Fix syntax error resulting in
11520 Richard Laager's patch.
11521 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11523 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11525 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11528 2012-03-10 Richard Laager <rlaager@wiktel.com>
11530 * util/grub.d/10_linux.in: Fix ZFS root passing.
11532 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11534 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11535 * grub-core/commands/xnu_uuid.c: Likewise.
11536 * grub-core/loader/efi/appleloader.c: Likewise.
11537 * grub-core/script/execute.c: Likewise.
11538 * grub-core/script/main.c: Likewise.
11539 * util/grub-mkfont.c: Likewise.
11541 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11543 * util/grub-mkfont.c (options): Use more appropriate "select" that
11544 "set" for face index.
11546 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11548 * util/grub-editenv.c (options): Gettextize command summaries.
11550 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11552 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11553 "out of memory" error messagge.
11555 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11557 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11558 of diskfilter for diskfilter on diskfilter support.
11560 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11562 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11564 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11566 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11569 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11571 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11573 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11575 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11577 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11579 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11582 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11584 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11586 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11588 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11590 * util/grub-install.in: Fix and gettextize error message.
11592 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11594 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11596 * util/grub-mount.c (options): Likewise.
11598 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11600 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11602 * grub-core/commands/search_wrap.c (options): Likewise.
11604 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11606 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11608 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11610 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11612 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11615 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11617 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11618 "temporary" since it's used in identifier and is limited in space.
11620 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11622 * po/POTFILES.in: Regenerate. Include *.h since they contain
11623 translatable strings as well.
11625 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11627 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11628 byte-swap on big-endian.
11629 Reported by: Lennart Sorensen
11631 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11633 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11634 (allocate_pages): Improve dprintf.
11635 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11636 code32_start. Fill code32_start and kernel_alignment in params.
11637 (grub_cmd_initrd): Use prot_init_space.
11639 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11641 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11643 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11645 * util/grub-install.in: Add missing dot at the end of sentence.
11647 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11649 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11650 * grub-core/commands/videotest.c: Likewise.
11651 * grub-core/loader/i386/linux.c: Likewise.
11653 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11655 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11657 Reported by: Milo Casagrande.
11659 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11661 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11662 * grub-core/commands/gptsync.c: Likewise.
11663 * grub-core/commands/hashsum.c: Likewise.
11664 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11665 * grub-core/commands/legacycfg.c: Likewise.
11666 * grub-core/io/gzio.c: Likewise.
11667 * grub-core/net/net.c: Likewise.
11668 * grub-core/term/gfxterm.c: Likewise.
11669 * grub-core/term/terminfo.c: Likewise.
11670 * grub-core/tests/test_blockarg.c: Likewise.
11671 * grub-core/video/video.c: Likewise.
11672 * util/grub-install.in: Likewise.
11673 * util/grub-mkfont.c: Likewise.
11675 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11677 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11679 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11681 * grub-core/commands/search_wrap.c (options): Fix a typo.
11682 Reported by: David Prévot.
11684 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11686 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11689 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11691 * util/grub-script-check.c (main): Fix a syntax error message which was
11694 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11696 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11698 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11700 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11703 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11705 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11707 * util/grub-mount.c (options): Likewise.
11709 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11711 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11713 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11715 * grub-core/net/http.c: Add TRANSLATORS comments.
11716 * grub-core/normal/cmdline.c: Likewise.
11717 * grub-core/normal/misc.c: Likewise.
11718 * grub-core/partmap/msdos.c: Likewise.
11719 * grub-core/parttool/msdospart.c: Likewise.
11720 * grub-core/script/execute.c: Likewise.
11721 * grub-core/script/main.c: Likewise.
11722 * grub-core/term/terminfo.c: Likewise.
11723 * grub-core/video/bitmap.c: Likewise.
11724 * util/grub-install.in: Likewise.
11725 * util/grub-mkimage.c: Likewise.
11726 * util/grub-mklayout.c: Likewise.
11727 * util/grub-setup.c: Likewise.
11729 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11731 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11732 with similar messages in grub-fstest.
11734 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11736 * util/grub-install.in: Unify "option requires an argument" message
11737 with similar messages in other files.
11738 * util/grub-mkconfig.in: Likewise.
11740 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11742 * util/grub-set-default.in: Replace printf with gettext_printf (the
11743 string in in question is already translated from grub-reboot)
11745 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11747 * configure.ac: Bump up the version to beta1.
11749 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11751 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11752 case when min_align = 0.
11754 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11756 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11757 and fix a case when line_start overflows.
11759 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11761 * util/grub-reboot.in (usage): Mention id posibility.
11762 * util/grub-set-default.in (usage): Likewise.
11764 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11766 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11767 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11768 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11769 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11770 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11771 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11772 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11774 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11776 * grub-core/commands/menuentry.c (options): Remove
11777 GRUB_ARG_OPTION_REPEATABLE.
11778 Reported by: Andreas Vogel
11780 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11782 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11784 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11786 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11789 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11791 Use sort -V by the idea of Georgi Georgiev.
11793 * util/grub-mkconfig_lib.in (version_sort): New function.
11794 (version_test_numeric): Use version_sort.
11796 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11798 Use submenus in grub-mkconfig.
11800 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11801 * util/grub-mkconfig_lib.in (grub_quote): New function.
11802 (gettext_printf): Use gettext and not gettext_quoted to fix several
11804 * util/grub.d/10_hurd.in: Use submenus.
11805 * util/grub.d/10_kfreebsd.in: Likewise.
11806 * util/grub.d/10_linux.in: Likewise.
11807 * util/grub.d/10_netbsd.in: Likewise.
11808 * util/grub.d/20_linux_xen.in: Likewise.
11809 * util/grub.d/30_os-prober.in: Likewise.
11810 * util/grub.d/10_illumos.in: Add missing quoting.
11811 * util/grub.d/10_windows.in: Likewise.
11813 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11815 Fix menu title instability bug.
11817 * grub-core/commands/menuentry.c (options): New option --id.
11818 (grub_normal_add_menu_entry): New argument id. All users updated.
11819 (grub_cmd_menuentry): Handle --id.
11820 (grub_menu_init): Accept unknown arguments.
11821 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11822 feature_menuentry_options.
11823 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11825 (get_entry_number): Match with id as well.
11826 * include/grub/menu.h (grub_menu_entry): New member id.
11827 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11828 * util/grub.d/00_header.in: Define menuentry_id_option.
11829 * util/grub.d/10_hurd.in: Define id.
11830 * util/grub.d/10_illumos.in: Likewise.
11831 * util/grub.d/10_kfreebsd.in: Likewise.
11832 * util/grub.d/10_linux.in: Likewise.
11833 * util/grub.d/10_netbsd.in: Likewise.
11834 * util/grub.d/10_windows.in: Likewise.
11835 * util/grub.d/20_linux_xen.in: Likewise.
11836 * util/grub.d/30_os-prober.in: Likewise.
11838 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11840 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11841 "scope" with "body".
11843 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11845 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11846 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11847 prot_size and prot_file_size.
11849 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11851 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11852 All users updated. If easily=1 require raid-5/-6 to be full.
11853 (is_node_readable): Likewise.
11854 (scan_devices): Scan incomplete but readable LVs at the end.
11855 (grub_diskfilter_memberlist): Pull missing devices.
11856 (insert_array): Skip scanning until device is complete or scan is
11858 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11860 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11861 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11863 2012-03-03 Matthew Garrett <mjg@redhat.com>
11864 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11866 Avoid EFI boot services when loading Linux.
11868 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11869 avoid_efi_bootservices. All users updated.
11870 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11871 argument avoid_efi_bootservices. All users updated.
11872 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11873 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11874 align, min_align, relocatable, prefered_address. All users updated.
11875 Allocate avoiding boot services if kernel is relocatable.
11876 (grub_cmd_linux): Check if kernel is relocatable.
11877 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11878 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11879 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11880 avoid_efi_boot_services.
11881 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11882 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11883 (linux_kernel_params): Likewise.
11885 2012-03-03 Matthew Garrett <mjg@redhat.com>
11886 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11890 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11892 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11893 modes. Set gop_handle.
11894 (grub_video_gop_get_edid): New function.
11895 (grub_gop_get_preferred_mode): Likewise.
11896 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11897 (grub_video_efi_gop_adapter): Set .get_edid.
11898 * include/grub/efi/edid.h: New file.
11899 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11901 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11903 * util/grub-install.in: Load efivars unconditionally.
11905 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11907 * po/Rules-piglatin: Change suffix from .po-update-en to
11908 .po-update-en-piglatin.
11910 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11914 * po/piglatin.sed: New file.
11915 * po/en@piglatin.header: Likewise.
11916 * po/Rules-piglatin: Likewise.
11917 * po/README: Add en@piglatin to autogenerated languages.
11919 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11921 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11923 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11924 "Check" since we don't check anything.
11925 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11927 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11928 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11929 (grub_md_sha512_real): Likewise.
11931 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11933 * grub-core/commands/gptsync.c: Fix typographic quoting.
11934 * grub-core/commands/ieee1275/suspend.c: Likewise.
11935 * grub-core/commands/parttool.c: Likewise.
11936 * grub-core/commands/search_wrap.c: Likewise.
11937 * grub-core/commands/videoinfo.c: Likewise.
11938 * grub-core/gfxmenu/gui_label.c: Likewise.
11939 * grub-core/hello/hello.c: Likewise.
11940 * grub-core/kern/emu/main.c: Likewise.
11941 * grub-core/net/net.c: Likewise.
11942 * grub-core/normal/menu.c: Likewise.
11943 * grub-core/normal/menu_text.c: Likewise.
11944 * grub-core/normal/misc.c: Likewise.
11945 * util/grub-editenv.c: Likewise.
11946 * util/grub-install.in: Likewise.
11947 * util/grub-kbdcomp.in: Likewise.
11948 * util/grub-mkconfig.in: Likewise.
11949 * util/grub-mknetdir.in: Likewise.
11950 * util/grub-mkrescue.in: Likewise.
11951 * util/grub-mkstandalone.in: Likewise.
11952 * util/grub-reboot.in: Likewise.
11953 * util/grub-set-default.in: Likewise.
11954 * util/grub-setup.c: Likewise.
11955 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11957 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11959 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11960 * grub-core/commands/keystatus.c: Likewise.
11961 * grub-core/commands/loadenv.c: Likewise.
11962 * grub-core/commands/probe.c: Likewise.
11963 * grub-core/commands/regexp.c: Likewise.
11964 * grub-core/commands/true.c: Likewise.
11965 * grub-core/commands/videoinfo.c: Likewise.
11966 * grub-core/disk/cryptodisk.c: Likewise.
11967 * grub-core/disk/ldm.c: Likewise.
11968 * grub-core/disk/loopback.c: Likewise.
11969 * grub-core/disk/luks.c: Likewise.
11970 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11971 * grub-core/kern/disk.c: Likewise.
11972 * grub-core/kern/emu/hostdisk.c: Likewise.
11974 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11976 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11977 * util/grub-install.in: Add missing quote in the comment.
11979 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11981 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11982 * grub-core/commands/lsmmap.c: Likewise.
11983 * grub-core/commands/minicmd.c: Likewise.
11984 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11985 * grub-core/commands/regexp.c: Likewise.
11986 * grub-core/gdb/gdb.c: Likewise.
11987 * grub-core/term/gfxterm.c: Likewise.
11988 * util/grub-mkconfig.in: Likewise.
11989 * util/grub-mkfont.c: Likewise.
11990 * util/grub-mklayout.c: Likewise.
11991 * util/grub-mknetdir.in: Likewise.
11992 * util/grub-mkrescue.in: Likewise.
11993 * util/grub.d/30_os-prober.in: Likewise.
11995 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11997 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11998 with "Direct color" and "Packed" with "Packed pixel".
11999 (grub_cmd_videoinfo): Simplify legend.
12001 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12003 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
12004 absolutely unclear error message.
12006 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12008 * util/grub-mkstandalone.in: Remove confusing leftover print.
12010 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12012 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
12014 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
12015 (GRUB_MOD_INIT): Likewise.
12016 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
12018 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
12020 * util/grub-install.in (usage): Likewise.
12021 Spell ID in whole letters.
12022 Add missing ending dot.
12024 * util/grub-reboot.in: Fix capitalisation.
12025 * util/grub-set-default.in: Likewise.
12027 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12029 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
12030 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
12031 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
12032 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
12033 Disable -Werror for -Wdeprecated-declarations.
12034 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
12035 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
12036 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
12037 (grub_util_get_grub_dev): Make luks handling dependent on
12038 HAVE_DEVICE_MAPPER and not __linux__.
12039 (get_win32_path): Fix format security.
12040 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
12041 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
12042 Don't try grub_find_zpool_from_dir.
12043 (grub_make_system_path_relative_to_its_root) [!__linux__]:
12044 #ifdef-out paresdir.
12046 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12048 * util/grub-pe2elf.c (usage): Add missing noreturn.
12049 (write_section_data): Rename name to shname to avoid shadowing.
12050 (write_symbol_table): Rename name to symname to avoid shadowing.
12051 Fix write_reloc_section call.
12053 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12055 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
12056 to ensure that it's after the last byte of .text.
12058 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12060 * util/ieee1275/ofpath.c (my_isdigit): New function.
12061 (trailing_digits): Use my_isdigit.
12062 (strip_trailing_digits): Likewise.
12064 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12066 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
12067 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
12069 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12071 * grub-core/kern/i386/pc/startup.S: Define __start.
12073 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12075 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
12076 strip already transforms he format.
12078 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12080 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
12082 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12084 * util/grub-install.in: Add missing gettext init.
12085 * util/grub-kbdcomp.in: Likewise.
12086 * util/grub-mkconfig.in: Likewise.
12087 * util/grub-mknetdir.in: Likewise.
12088 * util/grub-mkrescue.in: Likewise.
12089 * util/grub-mkstandalone.in: Likewise.
12090 * util/grub-reboot.in: Likewise.
12091 * util/grub-set-default.in: Likewise.
12092 * util/grub.d/00_header.in: Likewise.
12093 * util/grub.d/10_hurd.in: Likewise.
12094 * util/grub.d/10_windows.in: Likewise.
12095 * util/grub.d/30_os-prober.in: Likewise.
12096 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12098 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12100 * po/Rules-swiss: Fix header comment.
12102 2012-02-29 Andreas Vogel <anvoit>
12104 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
12105 resulted in leak of arguments.
12107 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12109 * grub-core/boot/i386/pc/startup_raw.S: Use separate
12110 reed_solomon_size const definition instead of computing it since
12111 Apple assembler doesn't support the later.
12113 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12115 * gentpl.py (kernel): Rewrite Apple part.
12117 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12119 * include/grub/kernel.h (FOR_MODULES): Check module magic.
12121 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12123 * util/grub-mkimagexx.c (locate_sections): Support non-standard
12125 (load_image): Likewise.
12127 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12129 * configure.ac: Fix a typo in previous commit.
12131 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12133 Don't add -Wl,-N on Apple platform.
12135 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
12136 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
12138 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12140 * grub-core/Makefile.core.def (lzma_decompress): Use
12141 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
12143 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12145 * grub-core/genmod.sh.in: Rewrite the Apple part.
12147 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12149 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
12152 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12154 * acinclude.m4 (grub_CHECK_PIC): New test.
12155 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
12157 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12159 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
12160 to avoid the warning.
12162 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12164 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
12165 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
12166 after. All users updated.
12168 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12170 Use the common size routine in hostfs so we can read disks as well.
12172 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
12173 (grub_util_get_fd_size): ... this. Return size in bytes.
12175 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
12176 grub_util_get_fd_size.
12178 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12180 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
12181 Add blocksize retrieval.
12183 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12185 * configure.ac: Restore CFLAGS after efiemu check.
12187 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12189 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12192 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12194 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12196 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12198 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12199 (grub_cmd_halt): Likewise.
12201 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12203 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12204 for local arithmetics.
12205 Break %sp init into 2 instructions.
12206 Add 0 byte at the end.
12208 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12210 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12213 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12215 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12218 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12220 * grub-core/disk/ldm.c (make_vg): Init part.name.
12221 (grub_ldm_detect): Silence spurious warning.
12222 (grub_util_is_ldm): Likewise.
12224 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12226 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12227 sane value to avoid a spurious warning.
12229 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12231 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12232 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12234 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12236 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12237 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12239 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12241 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12242 hardcoding the relevant info.
12244 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12246 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12247 missing const qualifiers.
12248 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12250 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12252 * util/getroot.c [__APPLE__]: Add missing includes.
12253 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12255 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12257 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12259 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12261 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12264 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12266 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12268 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12270 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12271 and grub_file_close call.
12273 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12275 Add LZSS Mach-O support (needed for new xnu kernelcache).
12277 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12278 * grub-core/loader/lzss.c: New file.
12279 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12280 on Mach-O open failure.
12281 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12282 Don't free cmdsXX in uncompressedXX is set.
12283 (grub_macho_file): Init new fields.
12284 New argument is_64bit. All users updated.
12285 Handle compressed. Error out if no suitable architecture is found.
12287 (grub_macho_open): New argument is_64bit. All users updated.
12288 * grub-core/loader/macho32.c: Add defines for new fields.
12289 * grub-core/loader/macho64.c: Likewise.
12290 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12291 (grub_macho_parse): Handle compressed.
12292 Defer actual processing if compressed.
12293 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12294 "filename". All users updated.
12295 (grub_macho_size): New argument "filename". All users updated.
12296 (grub_macho_get_entry_point): Likewise.
12297 (grub_macho_load): Handle compressed.
12298 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12299 (GRUB_MACHO_LZSS_OFFSET): New define.
12300 (grub_decompress_lzss): New proto.
12301 * include/grub/machoload.h (grub_macho_file): New fields to handle
12303 (grub_macho_contains_macho64): Remove proto.
12304 (grub_macho_contains_macho32): Likewise.
12305 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12307 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12309 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12311 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12315 * Makefile.am (starfield_theme_files): New var.
12316 (starfield_DATA): Use starfield_theme_files.
12317 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12318 Add bootcheck-related files.
12319 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12320 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12321 and font_char_metrics.txt.
12322 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12323 (setjmp): Add lib/ia64/longjmp.S.
12324 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12325 * po/POTFILES.in: Regenerate.
12326 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12327 DISTFILES.common.extra1.
12328 * util/devicemap.c: Removed.
12329 * grub-core/lib/i386/relocator_backward.S: Likewise.
12330 * util/import_gcry.py: Remove unused files. Add extra_dist for
12333 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12335 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12336 grub_gettext_delete_list before changing grub_gettext_max to avoid
12337 running out of array bounds.
12339 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12341 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12342 grub_vga_text_init/grub_vga_text_fini.
12344 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12346 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12348 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12350 * configure.ac: Bump to 2.00~beta0.
12352 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12354 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12355 missing initialisation.
12357 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12359 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12361 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12363 Support v2 xnu boot arguments.
12365 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12366 New argument fsbfreq_out.
12367 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12368 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12370 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12372 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12373 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12374 (grub_xnu_boot_params): Rename to ...
12375 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12376 (grub_xnu_boot_params_v2): New struct.
12378 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12380 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12381 zeroing of CRC field before computing CRC.
12383 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12385 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12386 Change order of allocations to decrease fragmentation.
12388 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12390 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12392 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12394 Use write-combining MTRR to speed up video with buggy BIOSes.
12396 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12397 (cpuid): New define.
12400 (mtrr_base): Likewise.
12401 (mtrr_mask): Likewise.
12402 (grub_vbe_enable_mtrr_entry): New function.
12403 (grub_vbe_enable_mtrr): Likewise.
12404 (grub_vbe_disable_mtrr): Likewise.
12405 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12406 control off to BIOS.
12407 (grub_video_vbe_init): Fill mtrr.
12408 (grub_video_vbe_fini): Disable mtrr.
12409 (grub_video_vbe_get_info_and_fini): Likewise.
12410 (grub_video_vbe_setup): Enable mtrr.
12412 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12414 * include/grub/partition.h (grub_partition_map): Change prototype of
12415 embed to take a maximum value for nsectors.
12416 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12417 * include/grub/fs.h (grub_fs): Likewise.
12418 * grub-core/partmap/msdos.c (embed_signatures): New array.
12419 (pc_partition_map_embed): Check for and avoid sectors matching any
12420 of the signatures in embed_signatures, up to max_nsectors.
12421 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12422 returned sector map to max_nsectors.
12423 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12424 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12425 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12426 * util/grub-setup.c (setup): Allow for the embedding area being
12427 split into multiple blocklists. Tell dest_partmap->embed the
12428 maximum number of sectors we care about.
12430 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12432 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12433 Specify blocklist_install and reserver_first_sector for all fs.
12434 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12437 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12439 * util/grub-install.in: Clarify strings.
12440 Fix source dir check.
12442 2012-02-27 Richard Laager <rlaager@wiktel.com>
12444 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12445 "zfs" and "fuse.zfs" as synonyms.
12447 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12449 * configure.ac: Put platform and target_cpu substitutions back since
12450 they are used for directories.
12452 2012-02-27 Richard Laager <rlaager@wiktel.com>
12453 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12455 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12456 * util/grub.d/20_linux_xen.in: Likewise.
12458 2012-02-27 Richard Laager <rlaager@wiktel.com>
12460 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12463 2012-02-27 Richard Laager <rlaager@wiktel.com>
12465 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12468 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12470 Don't use insecure popen in getroot.
12472 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12473 (exec_pipe): ... here.
12474 (find_root_devices_from_poolname): Use exec_pipe.
12476 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12478 Remove platform and target_cpu replacement.
12480 * configure.ac: Remove platform and target_cpu substitutions.
12481 * tests/util/grub-shell.in: Use modinfo.
12482 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12485 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12487 Autodetect platform in grub-install but allow override.
12489 * util/grub-install.in: Autodetect platform. Support --target and
12490 --directory. Read platform from modinfo.sh.
12492 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12494 Support btrfs multi-volume probe.
12496 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12497 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12498 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12499 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12500 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12501 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12502 grub_find_root_devices_from_btrfs if on btrfs.
12504 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12506 Remove any awareness of *.c util files about target.
12508 * Makefile.util.def (grub-setup): Split to ...
12509 (grub-bios-setup): ... and this.
12510 (grub-sparc64-setup): ... and this.
12511 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12512 * docs/man/grub-setup.h2m: Split into ...
12513 * docs/man/grub-sparc64-setup.h2m: ... this.
12514 * docs/man/grub-bios-setup.h2m: ... and this.
12515 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12516 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12517 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12518 (grub_target_addr_t): Remove.
12519 (grub_target_size_t): Remove.
12520 (grub_target_ssize_t): Remove.
12521 * util/grub-install.in: Use new grub-*-setup.
12522 * util/grub-mkimagexx.c (Elf_Word): New define.
12523 (Elf_Half): Likewise.
12524 (Elf_Section): Likewise.
12525 (ELF_ST_TYPE): Likewise.
12526 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12527 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12529 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12531 Replace grub_target_addr with more appropriate types.
12533 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12534 grub_target_addr with grub_addr.
12535 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12536 grub_target_addr with grub_port.
12537 (grub_cmd_write): Likewise.
12538 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12539 grub_target_addr with grub_addr.
12540 (grub_cmd_write): Likewise.
12541 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12543 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12545 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12546 const qualifier for vendor_guid.
12548 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12550 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12552 (efiemu_memequal): Likewise.
12553 (find_variable): Likewise.
12555 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12557 Fix missing console prototype on qemu-mips.
12559 * include/grub/mips/qemu_mips/console.h: New file.
12561 2012-02-27 Matthew Garrett <mjg@redhat.com>
12562 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12564 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12565 * include/grub/efi/efi.h: Likewise.
12566 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12567 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12568 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12569 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12570 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12571 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12573 2012-02-27 Matthew Garrett <mjg@redhat.com>
12575 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12577 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12579 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12582 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12584 * configure.ac: Remove inappropriate use of program_transform_name
12585 on grubdir and bootdir but allow explicit specification of those
12588 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12590 * util/grub-mknetdir.in (grub_prefix): Removed.
12591 (subdir): Use @bootdirname@ and @grubdirname@.
12593 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12595 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12597 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12599 * po/POTFILES.in: Regenerated.
12601 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12603 Remove improper use of program_transform_name on pkglibrootdir.
12605 * configure.ac (pkglibrootdir): Removed.
12606 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12607 * util/grub-mkimage.c: Likewise.
12609 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12611 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12614 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12616 * util/grub-install.in: Use file identifier if no UUID is available
12617 or user explicitly prompted for it.
12619 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12621 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12622 (freebsd_get_zfs): New function.
12623 (grub_freebsd_boot): Pass zfs UUID.
12624 (grub_cmd_freebsd): Set zfs UUID.
12626 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12628 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12631 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12633 Add configure flag to control libzfs integration.
12635 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12637 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12639 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12641 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12644 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12646 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12647 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12648 be used on non-modules.
12650 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12651 Rename to grub_boot_init.
12652 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12653 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12654 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12655 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12656 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12657 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12658 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12659 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12661 (grub_machine_init): Remove empty inits.
12662 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12664 (grub_machine_init): Remove empty inits.
12665 * grub-core/term/arc/console.c: Remove explicit proto.
12666 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12667 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12668 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12669 grub_at_keyboard_fini.
12670 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12671 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12672 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12674 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12675 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12676 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12678 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12679 * grub-core/term/serial.c (GRUB_MOD_INIT)
12680 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12681 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12683 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12684 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12685 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12686 grub_terminfo_fini.
12687 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12688 (GRUB_MOD_FINI): Likewise.
12689 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12690 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12691 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12692 grub_video_radeon_fuloong2e_fini.
12693 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12694 [LOONGSON]: Rename to grub_video_sis315pro_init.
12695 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12696 grub_video_sis315pro_fini.
12697 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12698 [LOONGSON]: Rename to grub_video_sm712_init.
12699 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12700 grub_video_sm712_fini.
12701 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12702 (grub_at_keyboard_fini): Likewise.
12703 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12704 Don't declare grub_{modname}_init.
12705 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12706 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12708 (grub_keylayouts_fini) [!EMU]: Likewise.
12709 * include/grub/serial.h (grub_serial_init) [!EMU]:
12711 (grub_serial_fini) [!EMU]: Likewise.
12712 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12714 (grub_terminfo_fini) [!EMU]: Likewise.
12715 * include/grub/video.h (grub_font_init) [!EMU]:
12717 (grub_font_fini) [!EMU]: Likewise.
12718 (grub_gfxterm_init) [!EMU]: Likewise.
12719 (grub_gfxterm_fini) [!EMU]: Likewise.
12720 (grub_video_sm712_init) [!EMU]: Likewise.
12721 (grub_video_sm712_fini) [!EMU]: Likewise.
12722 (grub_video_sis315pro_init) [!EMU]: Likewise.
12723 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12724 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12725 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12727 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12729 Make nand a prefix for nand devices.
12731 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12733 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12735 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12736 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12738 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12740 * include/grub/env.h (grub_env_find): Remove prototype.
12741 * grub-core/kern/env.c (grub_env_find): Make static.
12742 (grub_env_set): Remove useless set.
12744 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12746 * grub-core/kern/i386/realmode.S: Remove useless align.
12748 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12750 * include/grub/dl.h (grub_dl_load_file): Don't export.
12752 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12754 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12757 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12759 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12761 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12762 not reloading whole superblock but only the part which is really needed.
12763 Remove useless grub_errors.
12764 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12767 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12769 Don't export grub_get_rtc.
12771 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12772 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12774 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12776 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12778 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12780 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12781 argument since it can be deduced from diskfilter. All users updated.
12783 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12787 * include/grub/list.h (grub_prio_list): Removed.
12788 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12789 GRUB_COMMAND_PRIO_MASK.
12790 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12791 GRUB_COMMAND_FLAG_ACTIVE.
12792 (grub_prio_list_insert): Removed.
12793 (grub_prio_list_remove): Likewise.
12794 (GRUB_AS_PRIO_LIST): Likewise.
12795 (GRUB_AS_PRIO_LIST_P): Likewise.
12796 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12797 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12798 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12799 * grub-core/kern/command.c (grub_register_command_prio): Inline
12800 the prio_list code.
12801 (grub_unregister_command): Likewise.
12803 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12805 Fix interrupt mixup from previous commit.
12807 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12808 (grub_realidt): New var.
12809 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12811 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12813 (grub_relocator16_boot): Set grub_relocator16_idt.
12814 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12815 (LOCAL(realidt)): ... this.
12816 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12817 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12818 (grub_realidt): New variable.
12820 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12822 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12823 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12824 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12825 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12827 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12828 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12829 * po/POTFILES.in: Regenerate.
12831 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12833 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12836 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12838 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12840 (add_length): Likewise.
12842 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12843 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12845 GDB serial and backtrace support.
12847 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12848 (prot_to_real): Likewise.
12849 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12850 * grub-core/Makefile.core.def (backtrace): New module.
12852 * grub-core/gdb/cstub.c: New file.
12853 * grub-core/gdb/gdb.c: Likewise.
12854 * grub-core/gdb/i386/idt.c: Likewise.
12855 * grub-core/gdb/i386/machdep.S: Likewise.
12856 * grub-core/gdb/i386/signal.c: Likewise.
12857 * grub-core/lib/i386/backtrace.c: Likewise.
12858 * grub-core/lib/backtrace.c: Likewise.
12859 * include/grub/backtrace.h: Likewise.
12860 * include/grub/gdb.h: Likewise.
12861 * include/grub/i386/gdb.h: Likewise.
12863 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12865 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12867 (add_length): Likewise.
12868 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12869 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12871 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12872 __argp_get_display_len.
12874 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12876 $"..." support in scripts.
12878 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12879 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12880 * grub-core/script/yylex.l: Likewise.
12881 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12884 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12886 * gentpl.py: Remove obsolete pkglib_DATA handling.
12888 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12890 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12893 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12894 * util/grub-kbdcomp.in: Likewise.
12895 * util/grub-mkconfig.in: Likewise.
12896 * util/grub-mkconfig_lib.in: Likewise.
12897 * util/grub-mknetdir.in: Likewise.
12898 * util/grub-mkrescue.in: Likewise.
12899 * util/grub-mkstandalone.in: Likewise.
12900 * util/grub-reboot.in: Likewise.
12901 * util/grub-set-default.in: Likewise.
12902 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12904 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12906 Remove GRUB_PREFIX.
12908 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12909 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12910 used for backward compatibility.
12912 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12914 Add new all_video module.
12916 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12917 * grub-core/Makefile.core.def (all_video): New module.
12918 * grub-core/genmoddep.awk: Generate dependency of all_video from
12920 * grub-core/lib/fake_module.c: New file.
12921 * grub-core/normal/main.c (features): Add feature_all_video_module.
12922 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12923 don't do explicit search again.
12924 insmod all_video in load_video if available.
12926 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12928 Another round of string clarification and adding TRANSLATORS comments.
12930 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12932 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12934 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12936 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12938 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12939 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12941 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12943 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12944 trailing newline implicitly. All users updated.
12946 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12948 Implement serial on IEEE1275 and EFI.
12950 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12951 on emu. Mention arc and emu as the only platforms without serial
12953 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12954 ieee1275 platforms.
12955 * grub-core/term/efi/serial.c: New file.
12956 * grub-core/term/ieee1275/serial.c: Likewise.
12957 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12958 specification if no ns8250 driver is available.
12959 (grub_cmd_serial): Likewise.
12960 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12961 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12962 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12963 (grub_efi_parity_type_t): New type.
12964 (grub_efi_stop_bits_t): Likewise.
12965 (grub_efi_serial_io_interface): New struct.
12966 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12967 available for all interfaces.
12968 Add EFI and IEEE1275 fields.
12969 (grub_ofserial_init): New proto.
12970 (grub_efiserial_init): Likeiwse.
12971 * util/grub.d/00_header.in: Don't check for the presence of serial
12974 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12976 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12977 name as if it was an alias.
12979 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12981 * grub-core/commands/lsacpi.c (options): Fix typo.
12983 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12985 Convert grub-emu to argp.
12987 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12989 * util/argp_common.c: Rename to ...
12990 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12991 Add missing includes.
12992 * grub-core/kern/emu/main.c: Convert to argp.
12993 * po/POTFILES.in: Regenerate.
12994 * util/grub-install.in (usage): Make first letter lowcase in messages
12996 * util/grub-setup.c (options): Likewise.
12998 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13000 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
13001 Put back accidently commented-out code.
13003 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13005 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
13006 loop check using Brent algorithm.
13007 (grub_hfsplus_btree_search): Likewise.
13009 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13011 * util/grub-install.in: Fix usage of wrong device for PreP install.
13013 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13015 * conf/Makefile.common (CFLAGS_GNULIB): Add
13016 -Wno-unsafe-loop-optimizations.
13017 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
13019 * grub-core/commands/legacycfg.c: Add pragma to skip
13020 -Wunsafe-loop-optimizations.
13021 (check_password_md5_real): Fix loop counter type.
13022 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
13024 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
13025 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
13027 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
13028 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
13029 * grub-core/net/net.c (grub_net_route_address): Add safety loop
13031 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
13032 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
13033 avoid possible infinite loops.
13034 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
13035 and -Wunsafe-loop-optimizations.
13036 * grub-core/script/yylex.l: Likewise.
13037 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
13038 (print_glyphs): Avoid infinite loops.
13039 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
13041 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
13043 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
13044 to avoid infinite loop.
13045 (disp_acpi_rsdt_table): Likewise.
13047 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13049 * grub-core/font/font.c (grub_font_load): Add support for default
13050 path for fonts ($prefix/fonts).
13051 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
13052 for checking if string is a path.
13053 * grub-core/normal/main.c (features): Add feature_default_font_path.
13054 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
13055 * util/grub.d/00_header.in: Use default directory if possible.
13056 * util/grub-install.in: Install unicode.pf2.
13058 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13060 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
13061 * po/Rules-swiss: New file.
13062 * po/swiss.sed: Likewise.
13064 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
13066 * grub-core/fs/btrfs.c (find_device): Fix typos.
13067 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
13068 * util/grub-mkrelpath.c (argp_parser): Likewise.
13069 Reported by: Yuri Chornoivan.
13071 2012-02-23 Dalet Omega <daletomega@gmail.com>
13073 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
13074 for usual informative messages.
13076 2012-02-23 Dalet Omega <daletomega@gmail.com>
13080 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
13081 * conf/Makefile.common: Define starfielddir.
13082 * configure.ac: Configure starfield.
13083 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
13084 * themes/starfield/README: Likewise.
13085 * themes/starfield/blob_w.png: Likewise.
13086 * themes/starfield/boot_menu_c.png: Likewise.
13087 * themes/starfield/boot_menu_e.png: Likewise.
13088 * themes/starfield/boot_menu_n.png: Likewise.
13089 * themes/starfield/boot_menu_ne.png: Likewise.
13090 * themes/starfield/boot_menu_nw.png: Likewise.
13091 * themes/starfield/boot_menu_s.png: Likewise.
13092 * themes/starfield/boot_menu_se.png: Likewise.
13093 * themes/starfield/boot_menu_sw.png: Likewise.
13094 * themes/starfield/boot_menu_w.png: Likewise.
13095 * themes/starfield/slider_c.png: Likewise.
13096 * themes/starfield/slider_n.png: Likewise.
13097 * themes/starfield/slider_s.png: Likewise.
13098 * themes/starfield/src/blob_nw.xcf: Likewise.
13099 * themes/starfield/src/bootmenu/: Likewise.
13100 * themes/starfield/src/bootmenu/center.xcf: Likewise.
13101 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
13102 * themes/starfield/src/bootmenu/side.xcf: Likewise.
13103 * themes/starfield/src/slider_c.xcf: Likewise.
13104 * themes/starfield/src/slider_n.xcf: Likewise.
13105 * themes/starfield/src/slider_s.xcf: Likewise.
13106 * themes/starfield/src/terminalbox/: Likewise.
13107 * themes/starfield/src/terminalbox/center.xcf: Likewise.
13108 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
13109 * themes/starfield/src/terminalbox/side.xcf: Likewise.
13110 * themes/starfield/starfield.png: Likewise.
13111 * themes/starfield/terminal_box_c.png: Likewise.
13112 * themes/starfield/terminal_box_e.png: Likewise.
13113 * themes/starfield/terminal_box_n.png: Likewise.
13114 * themes/starfield/terminal_box_ne.png: Likewise.
13115 * themes/starfield/terminal_box_nw.png: Likewise.
13116 * themes/starfield/terminal_box_s.png: Likewise.
13117 * themes/starfield/terminal_box_se.png: Likewise.
13118 * themes/starfield/terminal_box_sw.png: Likewise.
13119 * themes/starfield/terminal_box_w.png: Likewise.
13120 * themes/starfield/theme.txt: Likewise.
13122 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
13124 * util/grub.d/00_header.in: Add missing export theme.
13126 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13128 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
13130 Reported by: Eren D.
13132 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13134 * conf/Makefile.common (grubdatadir): Removed.
13135 (Makefile.am): Move eveything grubdata to pkgdata.
13137 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13139 * grub-core/commands/acpihalt.c (get_sleep_type):
13140 Remove unused variable.
13142 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13144 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
13145 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
13146 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
13147 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
13148 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
13149 i18n with gettext no-op.
13150 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
13151 GRUB_ACPI_OPCODE_STRING_CONST.
13152 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
13153 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
13155 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13157 * po/POTFILES.in: Regenerate.
13159 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13161 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
13162 -Wno-error=missing-noreturn.
13164 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13166 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
13167 condition to avoid possibly infinite loops.
13168 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
13169 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
13171 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13173 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
13174 condition to avoid possibly infinite loops.
13176 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13178 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
13181 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13183 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13185 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13187 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13189 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13191 * util/bin2h.c (usage): Add missing attribute noreturn.
13193 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13195 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13196 if the size isn't divisible by 512.
13198 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13200 Make list_push and list_remove functions rather than inline functions
13201 to decrease size and avoid aliasing violations.
13203 * include/grub/list.h (grub_list_push): Move to ...
13204 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13205 * include/grub/list.h (grub_list_remove): Move to ...
13206 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13208 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13210 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13211 and -Wunused-result.
13213 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13215 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13216 Reported by: Seth Goldberg
13218 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13220 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13222 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13224 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13225 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13227 * docs/grub.texi (Simple configuration): Document
13228 GRUB_CMDLINE_GNUMACH.
13230 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13232 * conf/Makefile.common (platform_SCRIPTS): New variable.
13233 (platform_PROGRAMS): Likewise.
13234 * gentpl.py: Mark *,module and *.image for install.
13235 * grub-core/gdb_grub.in: Add a notice of expected environment.
13236 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13237 (gmodule.pl): Likewise.
13239 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13241 Replace grub_checkkey with grub_getkey_noblock.
13243 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13244 (grub_getkey_noblock): ... this. All users updated.
13246 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13248 * grub-core/kern/emu/console.c: Move to ...
13249 * grub-core/term/emu/console.c: ...here.
13250 (grub_ncurses_getkey): Fix return value if no key is detected.
13252 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13254 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13255 (grub_unit_test_fini): Likewise.
13256 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13258 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13260 * include/grub/test.h (GRUB_UNIT_TEST)
13262 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13264 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13265 Better error handling.
13266 (grub_script_return): Likewise.
13267 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13269 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13271 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13272 rimplicit redifinition.
13274 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13276 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13279 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13281 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13282 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13285 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13287 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13288 as GRUB_ERR_BUG. Don't malloc if no device is available.
13290 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13292 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13293 Mark calling with invalid term as GRUB_ERR_BUG.
13295 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13297 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13298 packets rather than raising an error.
13300 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13302 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13305 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13307 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13308 diagnostic to dprintf.
13309 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13311 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13313 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13316 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13318 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13319 (grub_ntfs_iterate_dir): Likewise.
13321 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13323 Efiemu stylistic fixes and gettext.
13325 * grub-core/efiemu/i386/loadcore32.c
13326 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13327 * grub-core/efiemu/i386/loadcore64.c
13328 (grub_arch_efiemu_relocate_symbols64): Likewise.
13329 * grub-core/efiemu/i386/pc/cfgtables.c
13330 (grub_machine_efiemu_init_tables): Likewise.
13331 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13332 (grub_efiemu_loadcore_initXX): Add a filename argument.
13334 Improved error message.
13335 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13336 Add a filename argument.
13338 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13339 Reclassify double relocation as GRUB_ERR_BUG.
13341 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13343 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13346 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13348 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13351 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13353 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13355 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13357 Improve string. Gettextize.
13359 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13361 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13363 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13365 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13367 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13368 [GRUB_UTIL]: New function.
13369 (insert_array) [GRUB_UTIL]: Store partmaps.
13370 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13372 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13373 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13374 (probe_abstraction): Print diskfilter and not raid.
13375 Reported by: Lennart Sorensen
13377 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13379 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13380 * util/grub-mkimagexx.c (MASK3): New define.
13381 (add_value_to_slot_20b): Use MASK3.
13382 (add_value_to_slot_21): Likewise.
13383 (relocate_addresses): Fix format specification.
13384 (load_image): Explicitly init symtab_section.
13386 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13388 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13389 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13391 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13393 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13395 Reported by: Lennart Sorensen
13397 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13399 * gentpl.py: Add missing license header.
13400 * docs/grub.texi: Update copyright year.
13402 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13404 Source grub-mkconfig_lib from the build directory at build time.
13405 Suggested by: Vladimir Serbinenko.
13407 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13408 * util/grub-install.in: Define pkgdatadir if not already set, and source
13409 grub-mkconfig_lib from there.
13410 * util/grub-kbdcomp.in: Likewise.
13411 * util/grub-mkconfig.in: Likewise.
13412 * util/grub-mknetdir.in: Likewise.
13413 * util/grub-mkrescue.in: Likewise.
13414 * util/grub-mkstandalone.in: Likewise.
13415 * util/grub-reboot.in: Likewise.
13416 * util/grub-set-default.in: Likewise.
13417 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13419 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13421 Increase warning level.
13423 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13424 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13425 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13426 (TARGET_CFLAGS): Likewise.
13427 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13428 * grub-core/Makefile.core.def (decompressor_xz): Add
13429 -Wno-unreachable-code.
13430 (normal): Add -Wno-redundant-decls.
13431 (xzio): Add -Wno-unreachable-code.
13432 (lzopio): Add -Wno-redundant-decls -Wno-error.
13433 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13434 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13435 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13436 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13437 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13438 * grub-core/kern/i386/coreboot/init.c: Add exception to
13439 -Wsuggest-attribute=noreturn.
13440 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13441 * grub-core/kern/ia64/dl_helper.c: Likewise.
13442 * grub-core/kern/mips/dl.c: Likewise.
13443 * grub-core/kern/sparc64/dl.c: Likewise.
13444 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13445 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13446 (memcmp): Likewise.
13447 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13448 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13449 * grub-core/loader/mips/linux.c: Likewise.
13450 * grub-core/loader/multiboot_elfxx.c: Likewise.
13451 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13452 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13453 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13454 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13456 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13457 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13460 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13462 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13465 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13467 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13468 Avoid improper use of strings.
13469 (grub_cmd_legacy_initrdnounzip): Likewise.
13471 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13473 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13475 (grub_util_info): Likewise.
13476 (grub_util_error): Likewise.
13478 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13480 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13481 * util/grub-fstest.c (fstest): Likewise.
13483 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13485 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13486 (grub_md_sha512_real): Likewise.
13487 (grub_util_get_geli_uuid): Likewise.
13488 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13489 (grub_util_biosdisk_open): Fix format specification.
13490 Respect format security.
13491 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13492 (xrealloc): Likewise.
13493 (xasprintf): Likewise.
13495 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13497 * util/import_gcry.py: Include grub/crypto.h in init.c.
13499 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13501 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13502 (generate_image): Make prefix a const char *.
13503 Fix format specifications. Respect format security.
13504 Avoid void * arithmetics.
13506 (argp_parser): Remove unused variable. Respect format security.
13507 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13508 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13509 (count_funcs): Remove unused variable.
13510 (relocate_addresses): Fix format specification.
13511 Disable x86-64 with elf32. Remove unused variables.
13512 (add_fixup_entry): Avoid shadowing.
13513 (make_reloc_section): Fix format specification.
13515 (locate_sections): Fix format specifications.
13516 (load_image): Avoid shadowing.
13518 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13520 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13521 Fix format specifications. Respect format security.
13522 Don't translate already translated grub_errmsg.
13523 (argp_parser): Remove unused variable
13525 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13527 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13529 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13531 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13532 (main): Likewise. Use xmalloc. Respect format security.
13534 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13536 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13538 (argp_parser): Remove unused variable.
13540 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13542 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13543 (add_pixel): Make static.
13544 (add_font): Likewise.
13545 (write_string_section): Make name and str a const char *.
13546 (write_be16_section): Make name a const char *.
13547 (print_glyphs): Make static.
13548 (write_font_ascii_bitmap): Likewise.
13549 (write_font_width_spec): Likewise.
13550 (write_font_pf2): Likewise.
13551 (argp_parser): Remove unused variable.
13552 Respect format security.
13553 (main): Avoid shadowing. Respect format security.
13555 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13557 * util/grub-editenv.c (argp_parser): Make static.
13558 (create_envblk_file): Use xmalloc.
13559 (open_envblk_file): Likewise.
13560 Resepect format security.
13561 (set_variables): Respect format security.
13563 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13565 * util/getroot.c (grub_find_device): Respect format security.
13566 (get_mdadm_uuid): Remove unused variable.
13567 (grub_util_pull_device): Dont call gettext on already translated
13569 (find_system_device): Remove unused variable.
13570 (grub_util_get_grub_dev): Likewise.
13571 (grub_make_system_path_relative_to_its_root): Respect format security.
13573 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13575 * util/grub-fstest.c (execute_command): Make first argument
13577 (read_file): Avoid shadowing.
13578 Reuse underlying error message if device open fails.
13579 (cmd_cmp): Respect format security.
13580 (root): Make const char *.
13581 (fstest): Remove args argument and use global copy.
13582 Respect format security.
13583 (argp_parser): Make static.
13584 (main): Make default_root const char *.
13586 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13588 * util/grub-mount.c (root): Make const char *.
13589 (execute_command): Make first argument a const char *.
13590 (fuse_init): Respect format security.
13591 (argp_parser): Make static. Remove unused variable.
13592 (main): Make default_root a const char *.
13593 Respect format security.
13595 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13597 * util/grub-probe.c (probe): Don't call gettext on already translated
13599 Remove unused variables.
13600 (argp_parser): Remove unused variable.
13602 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13604 * util/grub-script-check.c (argp_parser): Remove unused variable.
13605 (main): Rename read to curread to avoid shadowing.
13607 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13609 * util/misc.c (grub_util_write_image_at): Fix format specification.
13610 (grub_util_write_image): Likewise.
13611 (grub_script_execute_argument_to_string): Removed (unused).
13612 (grub_script_execute_menuentry): Likewise.
13613 (grub_putchar): Likewise.
13615 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13617 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13618 (FUNCTION) [GRUB_UTIL]: Likewise.
13619 (VARIABLE) [GRUB_UTIL]: Likewise.
13621 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13623 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13624 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13626 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13628 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13631 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13633 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13634 (LzmaEnc_SaveState): Removed (unused).
13635 (LzmaEnc_RestoreState): Likewise.
13636 (LzmaEnc_InitPriceTables): Made static.
13637 (LzmaEnc_Construct): Likewise.
13638 (LzmaEnc_FreeLits): Likewise.
13639 (LzmaEnc_Destruct): Likewise.
13640 (LzmaEnc_Init): Likewise.
13641 (LzmaEnc_InitPrices): Likewise.
13642 (LzmaEnc_Finish): Likewise.
13643 (LzmaEnc_PrepareForLzma2): Removed (unused).
13644 (LzmaEnc_MemPrepare): Likewise.
13645 (LzmaEnc_GetNumAvailableBytes): Likewise.
13646 (LzmaEnc_GetCurBuf): Likewise.
13647 (LzmaEnc_CodeOneMemBlock): Likewise.
13649 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13651 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13652 (grub_util_ldm_embed): Likewise.
13654 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13656 * util/grub-editenv.c (print_var): Rename name to varname to
13658 (main): Rename index to curindex to avoid shadowing.
13659 Make filename a const char *.
13661 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13663 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13664 to arg_getline to avoid shadowing.
13666 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13668 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13669 disk_ to avoid shadowing.
13671 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13673 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13674 curindex to avoid shadowing.
13676 (MatchFinder_GetNumAvailableBytes): Make static.
13678 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13680 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13683 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13685 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13686 argument from encrypt to do_encrypt to avoid shadowing.
13688 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13690 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13691 incorrect nesting of #if's.
13693 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13695 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13696 checks which are always false on some platforms.
13697 (grub_cmd_lsacpi): Likewise.
13698 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13699 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13702 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13704 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13705 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13707 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13709 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13710 re_dfa_t to avoid breaking alignment invariants.
13711 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13712 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13714 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13716 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13717 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13719 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13721 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13724 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13726 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13727 conserve alignment invariants.
13728 (grub_ehci_ehcc_read16): Likewise.
13729 (grub_ehci_oper_read32): Likewise.
13730 (grub_ehci_oper_write32): Likewise.
13731 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13732 Conserve alignment invariants.
13734 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13736 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13737 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13740 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13742 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13743 Remove unused variable.
13745 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13747 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13750 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13752 * include/grub/net.h: Remove double declarations.
13754 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13756 Remove "payload" command in ia64 Linux loader since I couldn't
13757 find any evidence of it being used for anything.
13758 Replace "relocate" command with an environment variable
13760 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13762 (ia64_boot_payload): Removed.
13763 (last_payload): Likewise.
13764 (RELOCATE_OFF): Likewise.
13765 (RELOCATE_ON): Likewise.
13766 (RELOCATE_FORCE): Likewise.
13767 (relocate): Likewise.
13768 (free_pages): Don't free payloads.
13769 (grub_load_elf64): Use common error messages.
13770 Use "linux_relocate" variable.
13771 Increase the space after boot_params.
13772 (grub_cmd_payload): Removed.
13773 (grub_cmd_relocate): Likewise.
13774 (grub_cmd_fpswa): Improve messages.
13775 (cmd_payload): Removed.
13776 (cmd_relocate): Likewise.
13777 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13778 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13780 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13782 Convert UHCI to DMA framework.
13784 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13785 (grub_uhci_pci_iter): Fill new members
13786 (grub_alloc_td): Use P2V and V2P functions.
13787 (grub_free_queue): Likewise.
13788 (grub_alloc_qh): Likewise.
13789 (grub_uhci_setup_transfer): Likewise.
13790 (grub_uhci_check_transfer): Likewise.
13792 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13794 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13795 Remove assignment in if while on it.
13797 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13799 * util/grub-mkstandalone.in: Fix modules directory.
13801 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13803 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13805 (argp_parser): Accept "auto" as compression specification.
13807 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13809 Fix `help' with unloaded modules.
13811 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13812 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13813 (grub_dyncmd_dispatcher): Small stylistic fix.
13814 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13815 explicit help is requested.
13817 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13819 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13820 Explicitly init restart while on it.
13822 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13824 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13827 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13829 * util/grub-mknetdir.in: Use . rather than source for POSIX
13832 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13834 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13836 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13838 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13841 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13843 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13846 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13848 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13850 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13852 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13853 iteration of partitions.
13855 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13857 Improve gettext support. Stylistic fixes and error handling fixes while
13860 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13862 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13863 part. Instead setup the correct stack in RM.
13864 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13866 * include/grub/i386/relocator_private.h: New file.
13868 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13870 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13872 * util/grub-fstest.c (options): Add missing DEVICE part.
13874 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13876 Clarify and unify messages.
13878 * grub-core/commands/hashsum.c (options): Unify messages.
13879 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13880 literal-only message as translatable.
13881 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13882 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13883 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13885 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13886 key, not the key used to unlock. Clarify what it's used for.
13887 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13888 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13889 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13890 * util/grub-editenv.c (options): Unify "verbose" message.
13891 * util/grub-fstest.c (read_file): Unify error message.
13892 (fstest): Add quotes around commands.
13893 (options): Unify "verbose" message.
13894 * util/grub-install.in: Add quotes around variable name.
13895 * util/grub-kbdcomp.in: Unify error message.
13896 * util/grub-mkfont.c (main): Likewise.
13897 * util/grub-mkrescue.in: Likewise.
13898 * util/grub-mklayout.c (options): Unify "verbose" message.
13899 * util/grub-mkstandalone.in: Unify help and verbose messages.
13900 * util/grub-mount.c (options): Unify "verbose" message.
13901 * util/grub-probe.c (options): Likewise.
13902 * util/grub-script-check.c (options): Likewise.
13903 * util/grub-setup.c (setup): Unify no-terminator message.
13904 (options): Use DEVICE and not DEV.
13905 Unify "verbose" message.
13906 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13908 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13910 Improve and unify messages.
13912 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13913 name. All users updated.
13914 Print filename in error.
13915 (read_device_map): Print filename in error.
13916 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13917 (grub_util_get_os_disk): Likewise.
13918 (grub_util_biosdisk_get_grub_dev): Likewise.
13919 (grub_util_check_block_device): Likewise.
13920 (grub_util_check_char_device): Likewise.
13921 (grub_make_system_path_relative_to_its_root): Likewise.
13922 * util/grub-editenv.c (create_envblk_file): Likewise.
13923 (open_envblk_file): Likewise.
13924 (write_envblk): Likewise.
13925 * util/grub-fstest.c (cmd_cp): Likewise.
13926 (cmd_cat): Likewise.
13927 (cmd_cmp): Likewise.
13928 * util/grub-menulst2cfg.c (main): Likewise.
13929 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13930 (write_font_width_spec): Likewise.
13931 (write_font_pf2): Likewise.
13932 * util/grub-mkimage.c (generate_image): New argument outname.
13934 Remove unreacheable message.
13935 (options): Unify messages.
13936 (help_filter): Likewise.
13937 * util/grub-mklayout.c (usage): Removed (unused).
13938 (main): Print filename in error.
13939 * util/grub-mkrescue.in: Fix wrong quoting.
13940 * util/grub-setup.c (setup): Print filename in error.
13941 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13942 (check_sas): Likewise.
13943 * util/misc.c (grub_util_get_fp_size): Removed.
13944 (grub_util_get_image_size): Print filename in error.
13945 (grub_util_read_at): Removed.
13946 (grub_util_read_image): Print filename in error.
13947 (grub_util_load_image): Likewise.
13948 (grub_util_write_image_at): New argument filename. All users updated.
13949 Print filename in error.
13950 (grub_util_write_image): New argument filename. All users updated.
13951 Print filename in error.
13952 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13953 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13955 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13957 * grub-core/Makefile.core.def (pxechain): New module.
13958 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13959 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13961 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13962 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13964 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13966 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13967 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13968 * include/grub/err.h (grub_error_saved): New struct.
13969 (grub_errmsg): Make array size explicit.
13970 * include/grub/misc.h (grub_error_save): New function.
13971 (grub_error_load): Likewise.
13972 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13973 (grub_error_push): Update `errno' member name.
13974 (grub_error_pop): Likewise
13975 * grub-core/net/tftp.c (tftp_data): New member save_err.
13976 (tftp_receive): Save error.
13977 (tftp_open): Restore error.
13979 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13981 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13982 to real mode down to execute A20-related code in protected mode as
13985 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13987 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13988 NULL when the argument `level' has an unexpected value.
13990 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13992 Move platform-dependent files from $prefix to $prefix/$platform.
13994 * config.h.in (GRUB_TARGET_CPU): New definition.
13995 (GRUB_PLATFORM): Likewise.
13996 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13997 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13998 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13999 * grub-core/kern/dl.c (grub_dl_load): Likewise.
14000 * grub-core/normal/autofs.c (read_fs_list): Likewise.
14001 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
14002 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
14003 * grub-core/normal/term.c (read_terminal_list): Likewise.
14004 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
14006 (grub_gettext_init_ext): Likewise.
14007 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
14009 * util/grub-install.in: Update directories.
14010 * util/grub-mknetdir.in: Likewise.
14011 * util/grub-mkrescue.in: Likewise.
14013 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
14015 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
14016 grub_error framework. All users updated.
14018 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
14020 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
14021 lists (by always binsearching), improve caching (cache strings
14022 used for binsearch, not only results), improve
14023 maintainability (by using more structured binary search) and correct
14026 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
14028 * grub-core/script/execute.c (grub_script_return): Fix warning.
14030 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
14032 * grub-core/script/execute.c (grub_script_return): Fix potential
14034 Reported by: Jim Meyering.
14036 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14038 * po/POTFILES.in: Regenerate.
14039 * util/grub-install.in: Gettextize the strings missed in first pass.
14041 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14043 * Makefile.util.def (grub-mkdevicemap): Removed.
14044 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
14045 * include/grub/util/deviceiter.h: Removed.
14046 * util/deviceiter.c: Likewise.
14047 * util/getroot.c (grub_util_get_os_disk): New function.
14048 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
14049 replacement for EFI.
14050 * util/grub-mkdevicemap.c: Removed.
14051 * util/grub-probe.c (probe): Handle PRINT_DISK.
14052 (argp_parser): Handle -t disk.
14054 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14056 * util/grub-mkfont.c: Migrate to argp.
14057 * util/grub-mklayout.c: Likewise.
14058 * util/grub-mkpasswd-pbkdf2.c: Likewise.
14059 * util/grub-mkrelpath.c: Likewise.
14060 * util/grub-probe.c: Likewise.
14061 * util/grub-script-check.c: Likewise.
14063 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14065 * util/grub-reboot.in: Add missing datarootdir.
14066 Add missing newline.
14067 * util/grub-set-default.in: Add missing datarootdir.
14068 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
14069 * util/grub-mkrescue.in: Likewise.
14071 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14073 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
14075 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14077 * util/grub-kbdcomp.in: Add decent help and gettextize.
14078 * docs/man/grub-kbdcomp.h2m: New file.
14080 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14082 Migrate grub-mkimage.c to argp.
14084 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
14085 (grub-setup): Likewise.
14086 * util/grub-setup.c (print_version): Move to ...
14087 * util/argp_common.c (print_version): ... here.
14088 * util/grub-setup.c (argp_program_version_hook): Move to ...
14089 * util/argp_common.c (argp_program_version_hook): ... here.
14090 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
14092 * util/grub-mkimage.c (main): Migrate to argp.
14094 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14096 * util/grub-mkrescue.in: Use same message as
14097 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
14098 for better translations.
14100 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14102 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
14103 options with generic grub-mkrescue.in with the goal of future
14106 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14108 * grub-core/kern/mm.c: Add missing include of i18n.h
14109 * grub-core/lib/relocator.c: Likewise.
14111 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14113 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
14115 (allocate_pages): Check return value.
14116 Replace fatal with error.
14117 (grub_linux_boot): Replace printf with dprintf.
14118 Check find_mmap_size return value.
14119 Replace fatal with error.
14120 Don't call grub_machine_fini.
14121 (grub_load_elf64): Replace printf with dprintf.
14122 (grub_cmd_linux): Likewise.
14123 (grub_cmd_initrd): Likewise.
14124 (grub_cmd_payload): Likewise.
14126 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14128 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
14130 * grub-core/video/radeon_fuloong2e.c
14131 (grub_video_radeon_fuloong2e_setup): Likewise.
14132 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
14133 * grub-core/video/video.c (grub_video_set_mode): Don't override
14134 standard out of memory message.
14136 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14138 NetBSD disk wedge support.
14140 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
14141 [__NetBSD__]: Handle NetBSD disk wedges.
14142 * util/getroot.c (convert_system_partition_to_system_disk)
14143 [__NetBSD__]: Likewise.
14145 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
14147 * util/grub-mkconfig.in: Use umask rather than chmod to create
14148 grub.cfg.new to avoid insecure grub.cfg.
14150 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14152 * grub-core/commands/ls.c: Gettextize.
14153 * grub-core/commands/setpci.c: Likewise.
14154 * grub-core/commands/videotest.c: Likewise.
14155 * grub-core/disk/geli.c: Likewise.
14156 * grub-core/kern/mm.c: Likewise.
14157 * grub-core/lib/relocator.c: Likewise.
14158 * grub-core/loader/efi/appleloader.c: Likewise.
14159 * grub-core/loader/i386/xnu.c: Likewise.
14160 * grub-core/loader/ia64/efi/linux.c: Likewise.
14161 * grub-core/loader/xnu.c: Likewise.
14162 * grub-core/net/dns.c: Likewise.
14163 * grub-core/net/net.c: Likewise.
14164 * grub-core/script/lexer.c: Likewise.
14165 * grub-core/script/parser.y: Likewise.
14166 * grub-core/script/yylex.l: Likewise.
14167 * util/getroot.c: Likewise.
14168 * util/grub-setup.c: Likewise.
14170 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14172 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
14175 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14177 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
14179 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14181 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14183 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14184 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14186 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14188 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14189 * util/grub-install.in: Gettextize.
14190 * util/grub-mkconfig.in: Likewise.
14191 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14193 (grub_warn): Gettextize.
14194 * util/grub-mknetdir.in: Gettextize.
14195 * util/grub-mkrescue.in: Likewise.
14196 * util/grub-mkstandalone.in: Likewise.
14197 * util/grub-reboot.in: Likewise.
14198 * util/grub-set-default.in: Likewise.
14199 * util/grub.d/00_header.in: Likewise.
14200 * util/grub.d/10_hurd.in: Likewise.
14201 * util/grub.d/10_kfreebsd.in: Likewise.
14202 * util/grub.d/10_linux.in: Likewise.
14203 * util/grub.d/10_netbsd.in: Likewise.
14204 * util/grub.d/10_windows.in: Likewise.
14205 * util/grub.d/20_linux_xen.in: Likewise.
14206 * util/grub.d/30_os-prober.in: Likewise.
14207 * po/POTFILES-shell.in: Regenerate.
14209 2012-02-03 Richard Laager <rlaager@wiktel.com>
14211 * util/grub-mkimage.c (main): Fix format-security warning.
14212 * util/grub-mkrelpath.c (main): Likewise.
14213 * util/grub-probe.c (main): Likewise.
14215 2012-02-03 Richard Laager <rlaager@wiktel.com>
14217 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14219 Put back lost PRINT_DRIVE.
14221 2012-02-03 Richard Laager <rlaager@wiktel.com>
14223 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14224 (grub_guess_root_devices): Replace strlen with sizeof.
14226 (find_root_devices_from_poolname): Remove unused variable.
14229 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14231 Support install on multi-device filesystems.
14233 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14234 (grub_guess_root_devices): ...this. Return char **. All users updated.
14235 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14237 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14238 (find_root_devices_from_poolname): ... here.
14239 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14241 (grub_guess_root_device): Rename to ...
14242 (grub_guess_root_devices): ... this. Return char **. All users updated.
14243 * util/grub-install.in: Handle multi-device filesystems.
14244 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14245 argument. All users updated.
14246 Handle multi-device filesystems.
14247 Use 'delim' as separator.
14248 Remove device check to allow filesystems on file.
14249 (main): Support -0 argument. Handle multi-device.
14250 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14251 Fix a cross-device check while on it.
14252 (arguments): Remove root_dev.
14253 (argp_parser): Remove -r.
14254 (main): Remove root_dev.
14256 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14258 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14260 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14262 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14264 Reported by: NODA, Kai <nodakai>.
14266 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14270 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14272 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14273 (grub_ehci_setup_qh): Likewise.
14274 (grub_ehci_find_qh): Likewise.
14275 (grub_ehci_transaction): Likewise.
14276 (grub_ehci_setup_transfer): Likewise.
14277 (grub_ehci_check_transfer): Likewise.
14278 (grub_ehci_portstatus): Likewise.
14279 (grub_ehci_detect_dev): Likewise.
14280 (grub_ehci_transfer_controller_data): New field td_last_phys.
14281 (grub_ehci_setup_transfer): Fill td_last_phys.
14282 (grub_ehci_check_transfer): Use td_last_phys.
14284 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14286 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14287 if no submenu is present.
14289 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14293 * include/grub/usb.h (grub_usbms_protocol_t): New values
14294 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14295 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14296 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14297 (grub_usbms_dev): Add subclass, protocol and intrpt.
14298 Remove in_maxsz and out_maxsz.
14299 (grub_usbms_reset): Rename to ...
14300 (grub_usbms_bo_reset): .. this.
14301 (grub_usbms_cbi_cmd): New function.
14302 (grub_usbms_cbi_reset): Likewise.
14303 (grub_usbms_reset): Likewise.
14304 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14305 (grub_usbms_transfer): Rename to ...
14306 (grub_usbms_transfer_bo): ... this.
14307 (grub_usbms_transfer_cbi): Likewise.
14308 (grub_usbms_transfer): Likewise.
14310 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14311 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14313 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14314 the support for the CS5536 modification thereos and few bugfixes.
14316 * grub-core/Makefile.core.def (ehci): New module.
14317 * grub-core/bus/usb/ehci.c: New file.
14318 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14319 port and hubaddr. All users updated.
14320 Save port and hubaddr into dev structure.
14321 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14323 * include/grub/pci.h (grub_dma_phys2virt): New function.
14324 (grub_dma_virt2phys): Likewise.
14325 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14327 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14329 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14330 check as some mkfs implementations omit it.
14332 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14334 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14336 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14338 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14339 Add new member volname2.
14340 (grub_jfs_label): Use volname2 if available.
14342 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14344 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14345 over last_mounted as seen in image generated by mkfs.nilfs2.
14346 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14348 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14350 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14351 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14352 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14354 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14356 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14359 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14361 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14362 subvolume name (by removing a bogus and useless check).
14364 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14366 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14367 sizeof while on it.
14369 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14371 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14372 (grub_scsi_read_capacity10): ... this.
14373 (grub_scsi_read_capacity16): New function.
14374 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14376 Fix off-by-one error.
14377 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14379 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14380 (grub_scsi_read_capacity10): ... this.
14381 (grub_scsi_read_capacity_data): Rename to ...
14382 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14383 (grub_scsi_read_capacity16): New struct.
14384 (grub_scsi_read_capacity16_data): Likewise.
14385 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14386 grub_scsi_cmd_read_capacity10.
14387 New command grub_scsi_cmd_read_capacity16.
14389 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14391 SCSI >2TiB support.
14393 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14394 (grub_scsi_write16): Likewise.
14395 (grub_scsi_read): Use read16 when necessary.
14396 (grub_scsi_write): Likewise.
14397 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14398 (grub_scsi_write16): Likewise.
14399 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14401 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14403 SCSI write support (for usbms mainly).
14405 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14407 (grub_scsi_write): Implement.
14408 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14410 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14412 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14415 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14417 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14419 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14421 * po/POTFILES.in: Regenerate.
14423 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14425 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14426 with grub_printf to avoid unnecessary fatal failure.
14428 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14430 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14431 (INT_MAX): Likewise.
14432 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14433 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14434 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14435 (strcpy): Likewise.
14436 (strstr): Likewise.
14437 (strchr): Likewise.
14438 (strncpy): Likewise.
14439 (strcat): Likewise.
14440 (strncat): Likewise.
14441 (strcoll): Likewise.
14442 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14443 (GRUB_INT_MAX): Likewise.
14445 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14447 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14449 (optimize_utf8): Likewise.
14450 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14452 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14454 * grub-core/boot/i386/pc/lnxboot.S: Use
14455 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14456 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14458 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14460 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14462 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14464 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14465 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14466 now to avoid double free.
14467 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14469 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14470 * util/grub-probe.c (escape_of_path): Always return a new copy.
14471 (print_full_name): Escape path.
14472 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14473 Fix hints on abstractions.
14475 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14477 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14478 Don't add "root" line if no compatibility hont is available.
14479 Suggested by: Seth Goldberg.
14481 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14483 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14484 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14485 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14486 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14488 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14490 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14492 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14494 * util/grub-pe2elf.c (ehdr): Make static.
14496 (num_sections): Likewise.
14497 (offset): Likewise.
14499 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14501 Eliminate ofpath limits and possible overflows.
14503 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14504 (OF_PATH_MAX): Removed.
14505 (MAX_DISK_CAT): New const.
14506 (find_obppath): Use allocated rather than preallocated buffer.
14507 Return result. Argument of_path removed. All users updated.
14508 Add missing fdstat.
14509 (xrealpath): New function.
14510 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14511 Allocate rather than use preallocated buffer. All users updated.
14512 (__of_path_common): Use allocated rather than preallocatecd buffer.
14513 Return result. Argument of_path removed. All users updated.
14514 (vendor_is_ATA): Read only needed part form the file.
14515 (check_sas): Allocate depending on contents rather than fixed.
14516 (main) [STANDALONE]: Handle NULL result.
14518 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14520 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14522 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14524 Cryptodisk write support.
14526 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14527 (grub_cryptodisk_decrypt): Moved logic to ...
14528 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14529 (grub_cryptodisk_write): Implement.
14530 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14531 (grub_util_fd_write): ... this. Make global.
14532 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14534 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14536 * include/grub/list.h (grub_list_remove): Don't crash if element is
14539 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14541 Rename ofconsole to console.
14543 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14544 as sysnonym to console.
14545 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14546 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14547 Rename grub_ofconsole_ to grub_console_. All users updated
14548 (grub_console_term_output): Rename "ofconsole" to "console".
14549 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14552 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14554 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14556 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14557 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14558 GRUB_DISK_DEVICE_FILE_ID.
14560 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14562 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14563 and improve performance.
14565 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14567 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14568 missing ieee1275/ prefix on whole disk.
14570 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14572 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14573 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14575 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14577 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14579 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14581 Merge common RAID and LVM logic to an abstract diskfilter.
14582 Add LDM support using the same framework.
14584 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14585 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14586 (libgrubmods): Remove grub-core/disk/raid.c and
14587 grub-core/partmap/gpt.c.
14588 * grub-core/Makefile.core.def (ldm): New module.
14589 (raid): Renamed to diskfilter. All users updated.
14590 * grub-core/disk/raid.c: Moved to ...
14591 * grub-core/disk/diskfilter.c: ... here.
14592 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14594 (find_array): Renamed to ...
14595 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14596 (grub_is_array_readable): Renamed to ...
14597 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14598 (insert_array): New argument id.
14599 (is_node_readable): New function.
14600 (scan_device): Rename to ...
14601 (scan_disk): .. this. Restrict to one disk.
14602 (scan_devices): New function.
14603 (grub_diskfilter_iterate): Support multi-LV.
14604 Skip invisible and nameless LVs.
14605 (grub_diskfilter_memberlist): Support multi-LV.
14606 (grub_diskfilter_read_node): New function.
14607 (grub_raid_read): Most of logic moved to ...
14608 (read_segment): ... here
14609 (read_lv): New function.
14610 (grub_diskfilter_get_vg_by_uuid): New function.
14611 (grub_diskfilter_make_raid): Likewise.
14612 * grub-core/disk/ldm.c: New file.
14613 * grub-core/disk/lvm.c (vg_list): Removed.
14614 (lv_count): Likewise.
14615 (scan_depth): Likewise.
14616 (is_lv_readable): Likewise.
14617 (grub_lvm_getvalue): Advance pointer past the number.
14618 (find_lv): Removed.
14619 (do_lvm_scan): Refactored into ...
14620 (grub_lvm_detect): ... this. Support raid.
14621 (grub_lvm_iterate): Removed.
14622 (grub_lvm_memberlist): Likewise.
14623 (grub_lvm_open): Likewise.
14624 (grub_lvm_close): Likewise.
14625 (read_lv): Likewise.
14626 (read_node): Likewise.
14627 (is_node_readable): Likewise.
14628 (is_lv_readable): Likewise.
14629 (grub_lvm_read): Likewise.
14630 (grub_lvm_write): Likewise.
14631 (grub_lvm_dev): Use diskfilter
14632 (GRUB_MOD_INIT): Likewise.
14633 (GRUB_MOD_FINI): Likewise.
14634 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14636 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14637 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14638 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14639 grub_diskfilter_read_node.
14640 Fix a bug with xor.
14641 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14642 grub_diskfilter_read_node.
14643 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14644 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14645 (grub_disk_dev_iterate): Move from here...
14646 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14647 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14649 (grub_hostdisk_find_partition_start): Likewise.
14650 (grub_hostdisk_os_dev_to_grub_drive): New function.
14651 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14652 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14653 * util/getroot.c (make_device_name): ... here.
14654 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14656 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14657 * grub-core/kern/emu/hostdisk.c
14658 (convert_system_partition_to_system_disk): Move to ...
14659 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14660 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14661 * util/getroot.c (device_is_wholedisk): ... here.
14662 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14663 * util/getroot.c (find_system_device): ... here.
14664 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14666 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14667 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14669 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14671 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14673 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14674 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14675 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14677 * include/grub/raid.h: Renamed to ...
14678 * include/grub/diskfilter.h: ... this.
14679 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14680 (GRUB_RAID_LAYOUT_*): Make into array.
14681 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14682 (grub_diskfilter_vg): New struct.
14683 (grub_diskfilter_pv_id): Likewise.
14684 (grub_raid_member): Removed.
14685 (grub_raid_array): Likewise.
14686 (grub_diskfilter_pv): New struct.
14687 (grub_diskfilter_lv): Likewise.
14688 (grub_diskfilter_segment): Likewise.
14689 (grub_diskfilter_node): Likewise.
14690 (grub_diskfilter_get_vg_by_uuid): New proto.
14691 (grub_raid_register): Inline.
14692 (grub_diskfilter_unregister): Likewise.
14693 (grub_diskfilter_make_raid): New proto.
14694 (grub_diskfilter_vg_register): Likewise.
14695 (grub_diskfilter_read_node): Likewise.
14696 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14697 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14698 (grub_util_is_ldm): Likewise.
14699 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14700 (grub_hostdisk_find_partition_start): Likewise.
14701 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14702 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14704 (grub_gpt_partition_map_iterate): New proto.
14705 * include/grub/lvm.h (grub_lvm_vg): Removed.
14706 (grub_lvm_pv): Likewise.
14707 (grub_lvm_lv): Likewise.
14708 (grub_lvm_segment): Likewise.
14709 (grub_lvm_node): Likewise.
14710 * util/getroot.c [...]
14711 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14712 (probe_abstraction): Likewise.
14713 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14714 (main): Remove dead logic.
14716 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14718 Simplify root device discover and don't fail when trying to open
14721 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14723 (get_diskname_from_path): Likewise.
14724 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14727 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14729 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14731 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14733 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14736 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14738 * util/grub-install.in: Add missing \.
14739 Reported by: gentoofan
14741 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14743 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14744 (direct_read): Use correct compressed size.
14745 (grub_squash_read_data): Likewise.
14747 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14749 * docs/grub.texi (Platform limitations): New section.
14750 (Platform-specific operations): Likewise.
14751 * docs/grub-dev.texi (Porting): Likewise.
14753 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14755 IEEE1275 disk write support.
14757 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14759 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14760 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14761 and seek loginc to ...
14762 (grub_ofdisk_prepare): ... here.
14763 (grub_ofdisk_write): Implement.
14765 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14767 ARC disk write support.
14769 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14770 (reopen): New argument writable. All users updated.
14771 Handle required access mode.
14772 (grub_arcdisk_write): Implement.
14773 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14774 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14776 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14778 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14779 (read_sblock): Don't attempt to read superblocks outside the disk size.
14781 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14783 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14784 first superblock to find the second one when possible.
14786 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14788 * util/grub-install.in: Fix an ARC bug.
14789 Print a warning if no platform-specific setup is available.
14791 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14793 Use static allocation rather than scratch pointer in reed_solomon.
14794 It decreases its size significantly and avoids a variable in .text.
14796 * grub-core/lib/reed_solomon.c (scratch): Removed.
14797 (chosenstat): New const or static array.
14799 (errpot): Likewise.
14800 (errpos): Likewise.
14803 (errvals): Likewise.
14804 (eqstat): Likewise.
14805 (pol_evaluate): Replace x with log_x argument. All users updated.
14806 (syndroms): Removed.
14807 (gauss_solve): Use statically allocated arrays.
14808 (rs_recover): Likewise.
14809 Calculate syndroms directly.
14810 (decode_block): Use statically allocated arrays.
14811 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14812 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14814 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14816 Eliminate fixed limit on reed solomon decoder length.
14818 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14819 rather than hardcoding the address.
14820 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14821 no_reed_solomon_length.
14822 Move gate_a20 to no-reed-solomon part.
14823 Don't force a particular size of no reed-solomon part.
14824 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14826 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14827 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14829 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14831 * grub-core/commands/wildcard.c (match_files): Handle filenames
14832 without explicit device.
14833 (wildcard_expand): Don't add explicit device if not already present.
14834 * tests/grub_script_echo1.in: Add a new expansion test.
14836 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14838 Replace single-linked with double-linked lists. It results in more
14839 compact and more efficient code.
14841 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14842 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14843 (grub_list_remove): Moved from here ...
14844 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14845 (grub_prio_list_insert): Set prev.
14846 * include/grub/list.h (grub_list): Add prev. All users updated.
14848 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14850 Handle newer autotools. Add some missing quotes while on it.
14852 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14853 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14854 (pkgdata_DATA): ... here.
14855 * Makefile.util.def (update-grub_lib): Removed.
14856 * conf/Makefile.common (pkglib_DATA): Removed.
14857 (pkglib_SCRIPTS): Likewise.
14858 (pkgdata_DATA): New variable.
14859 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14861 Add missing quotes.
14862 Remove unused variable while on it.
14863 * tests/util/grub-shell.in: Likewise.
14864 * util/grub-install.in: Likewise.
14865 * util/grub-mkconfig.in: Likewise.
14866 * util/grub-mknetdir.in: Likewise.
14867 * util/grub-mkrescue.in: Likewise.
14868 * util/grub-mkstandalone.in: Likewise.
14869 * util/grub.d/00_header.in: Likewise.
14870 * util/grub.d/10_hurd.in: Likewise.
14871 * util/grub.d/10_illumos.in: Likewise.
14872 * util/grub.d/10_kfreebsd.in: Likewise.
14873 * util/grub.d/10_linux.in: Likewise.
14874 * util/grub.d/10_netbsd.in: Likewise.
14875 * util/grub.d/10_windows.in: Likewise.
14876 * util/grub.d/20_linux_xen.in: Likewise.
14877 * util/grub.d/30_os-prober.in: Likewise.
14878 * util/update-grub_lib.in: Removed.
14880 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14882 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14883 a workaround for intel problem.
14885 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14886 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14887 2012-01-23 pfsmorigo
14889 * util/grub-install.in: Support dd'in into PreP partition.
14890 * util/grub-probe.c (probe): Support discovering partition type.
14891 (main): Support -t msdos_parttype.
14893 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14895 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14896 infinite recursion using counter.
14897 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14898 init to skip it if the magic check fails.
14899 (dec_stream_header): Init s->crc32.
14901 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14902 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14903 2012-01-22 Richard Laager <rlaager@wiktel.com>
14905 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14907 (find_bestub): Determine correct size.
14908 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14909 (scan_disk): Align the size down.
14910 Call check pool before find_bestub to have ashift.
14912 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14914 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14915 dprintf in no-malloc zone.
14917 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14919 * configure.ac: Add back in test for limits.h.
14921 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14923 Support 4K-sector NTFS.
14925 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14926 (grub_ntfs_data): Remove blocksize.
14927 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14928 Remove data argument. All users updated.
14930 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14932 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14933 being in .text to avoid dprel references.
14934 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14935 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14936 (grub_arch_highmemsize): Likewise.
14937 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14938 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14939 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14941 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14943 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14945 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14946 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14948 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14950 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14952 (grub_set_datetime_cmos): Likewise.
14954 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14956 Make XZ compression parameters dependent on target and not host CPU.
14958 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14959 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14961 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14963 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14964 set but not used variable.
14966 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14968 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14969 created when no uuid support is compiled into mkfs.reiser.
14971 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14973 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14974 (utf8_to_macroman): Do the opposite.
14975 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14977 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14979 * configure.ac: Refise build qemu_mips w/o unifont.
14981 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14983 Eliminate grub_min/grub_max prone to overflow usage.
14985 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14986 (poll_nonroot_hub): Likewise.
14987 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14988 (grub_affs_label): Likewise.
14989 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14990 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14991 (grub_hfs_label): Likewise.
14992 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14993 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14994 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14995 (zap_leaf_array_get): Likewise.
14996 (dnode_get_path): Likewise.
14997 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14998 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14999 * grub-core/script/execute.c (grub_script_break): Likewise.
15000 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
15002 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
15003 * include/grub/misc.h (grub_min): Removed.
15004 (grub_max): Likewise.
15006 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15008 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
15011 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15013 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
15015 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15017 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
15019 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15021 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
15022 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
15024 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15026 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
15027 rather than a hack for grub_strncasemap.
15029 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15031 Support multiple initrds
15032 Note: part of this was accidently committed in r3739.
15034 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
15036 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
15037 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
15038 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15039 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15040 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15042 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15044 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
15045 disks with unknown size.
15046 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
15048 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15050 Remove defines pertaining to arbitrary limits not affecting GRUB
15053 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
15054 (EXT2_MAX_SYMLINKCNT): Likewise.
15055 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
15056 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
15057 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
15058 (GRUB_PXE_MAX_BLKSIZE): Likewise.
15059 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
15060 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
15061 (DN_MAX_OBJECT_SHIFT): Likewise.
15062 (DN_MAX_OFFSET_SHIFT): Likewise.
15063 (DN_MAX_OBJECT): Likewise.
15064 (DNODES_PER_LEVEL_SHIFT): Likewise.
15065 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
15066 (SPA_MAXBLOCKSIZE): Likewise.
15067 (SPA_BLOCKSIZES): Likewise.
15068 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
15069 (MZAP_MAX_BLKSZ): Likewise.
15071 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15073 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
15074 handle NULL appropriately.
15077 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15081 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
15083 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
15084 * configure.ac: Fix efiemu check.
15086 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15088 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
15090 Reported by: adamwill
15092 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
15094 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
15096 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15098 Fix handling of wide characters in gfxterm.
15100 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
15101 (clear_char): Likewise.
15102 (paint_char): Skip code == NULL chars.
15103 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
15105 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15107 * grub-core/normal/charset.c: Move comment to right place.
15109 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15111 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
15112 (GRUB_AFFS_FLAG_FFS): Put back where it was.
15113 (grub_affs_mount): Revert the correct version checking.
15115 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15117 * docs/grub.texi (Unicode): Mention several other unsupported features.
15119 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15121 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
15122 case statements as compile-time one.
15123 (direct_read): Prevent spurious warnings.
15124 (grub_squash_read_data): Likewise.
15126 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15128 Various squash4 fixes and LZO and XZ support.
15130 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
15131 Add xzembed source files.
15132 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
15133 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
15134 (grub_squash_inode): New subtype long_dir.
15135 (SQUASH_TYPE_LONG_DIR): New inode type.
15136 (COMPRESSION): New enum.
15137 (XZBUFSIZ): New const.
15138 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
15139 (read_chunk): Use data->decompress.
15140 (zlib_decompress): New function.
15141 (lzo_decompress): Likewise.
15142 (xz_decompress): Likewise.
15143 (squash_mount): Set new data fields.
15144 (grub_squash_iterate_dir): Handle long dir.
15145 (squash_unmount): Free xzdec and xzbuf.
15146 (grub_squash_open): Check ino type.
15147 (direct_read): Stylistic fixes. Use data->decompress.
15148 (grub_squash_read_data): Likewise.
15149 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
15150 (get_byte): Likewise.
15151 (grub_zlib_disk_read): Removed.
15152 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
15153 (GRUB_POSIX_BOOL_DEFINED): New define.
15154 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
15155 * grub-core/lib/xzembed/xz.h: Addmissing includes.
15156 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
15157 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
15159 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15161 Don't override more informative errors.
15163 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
15164 * grub-core/font/font.c (open_section): Likewise.
15165 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
15166 filename. Don't override errors.
15167 (grub_cmd_openbsd_ramdisk): Don't override errors.
15168 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
15169 (grub_cmd_initrd): Likewise.
15170 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15171 (grub_cmd_initrd): Likewise.
15172 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
15173 (grub_cmd_linux): Likewise.
15174 (grub_cmd_initrd): Likewise.
15175 (grub_cmd_payload): Likewise.
15176 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15177 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
15178 (grub_cmd_module): Likewise.
15179 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15180 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15181 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15182 (grub_cmd_xnu_mkext): Likewise.
15183 (grub_cmd_xnu_ramdisk): Likewise.
15184 (grub_xnu_check_os_bundle_required): Likewise.
15185 (grub_xnu_load_kext_from_dir): Likewise.
15186 (grub_cmd_xnu_kextdir): Likewise.
15187 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15189 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15191 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15192 as 1024 in block size field. Found on one of my test images.
15193 Small optimisation while on it.
15195 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15197 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15198 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15199 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15200 performance fixes while on it.
15201 (grub_sfs_close): Fix memory leak while on it.
15202 (grub_sfs_label): Convert Latin1 to UTF-8.
15204 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15206 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15207 space to avoid overflows.
15208 (grub_hfs_label): Convert from macroman to UTF-8.
15210 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15212 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15214 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15216 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15218 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15220 * unicode: Import Unicode 6.0 data.
15222 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15224 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15227 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15229 Avoid cutting in the middle of UTF-8 character.
15231 * include/grub/charset.h (grub_getend): New function.
15232 * grub-core/script/function.c (grub_script_function_find): Use
15234 * grub-core/normal/completion.c (add_completion): Likewise.
15236 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15238 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15239 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15240 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15241 (GRUB_UNICODE_TAG_END): Likewise.
15242 (GRUB_UNICODE_LAST_VALID): Likewise.
15244 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15246 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15247 len and make it smaller. All users updated.
15248 * util/import_unicode.py: Put length and not end character.
15251 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15253 Make better Unicode-compliant and unify some UTF-8 code pathes.
15255 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15257 (grub_is_valid_utf8): Use grub_utf8_process.
15258 Check resulting code range.
15259 (grub_utf8_to_ucs4): Use grub_utf8_process.
15260 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15263 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15265 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15267 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15269 * docs/grub.texi (Filesystems): Mention AFS.
15271 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15273 * docs/grub.texi (Filesystems): Clarify restrictions.
15274 (Regexp): Mention non-Unicode regexp behaviour.
15275 (Other): Mention non-Unicode matching behaviour.
15277 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15279 Make HFS implementation use MacRoman.
15281 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15282 (macroman): New const array.
15283 (macroman_to_utf8): New function.
15284 (utf8_to_macroman): Likewise.
15285 (grub_hfs_find_dir): Use utf8_to_macroman.
15286 (grub_hfs_dir): Use macroman_to_utf8.
15287 Set case_insensitive.
15289 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15291 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15293 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15295 Integrate hints into autogeneration scripts.
15297 * docs/grub.texi (Filesystems): Add a hostdisk example.
15298 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15299 (grub-probe): Add ofpath.
15300 * gentpl.py: Remove group nosparc64.
15301 * grub-core/commands/search.c (cache_entry): New struct.
15303 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15304 * grub-core/commands/search_wrap.c (options): Add platform-specific
15306 (grub_cmd_search): Handle platform-specific hints.
15307 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15308 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15309 (grub_util_biosdisk_data): Likewise.
15310 (grub_util_biosdisk_open): Set device_map.
15311 (read_device_map): Handle "" as indication of no map.
15313 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15314 (grub_util_biosdisk_get_compatibility_hint): New function.
15315 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15316 * include/grub/emu/hostdisk.h
15317 (grub_util_biosdisk_get_compatibility_hint): New proto.
15318 * util/grub-install.in: Don't call grub-mkdevicemap.
15319 Add platform-specific hint to load.cfg.
15320 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15321 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15322 hints. Set root preliminary to compatibility hint, not to OS name.
15323 * util/grub-probe.c (PRINT_*): Add hints.
15324 (print): Make static.
15325 (escape_of_path): New function.
15326 (guess_bios_drive): Likewise.
15327 (guess_efi_drive): Likewise.
15328 (guess_baremetal_drive): Likewise.
15329 (print_full_name): Likewise.
15330 (probe): Handle hints.
15332 * util/ieee1275/devicemap.c: Removed.
15333 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15335 (grub_util_devname_to_ofpath): Return NULL on failure.
15337 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15339 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15341 * po/POTFILES.in: Regenerated.
15343 Allow purely long options
15345 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15346 (SHORT_ARG_USAGE): Likewise.
15347 (grub_arg_show_help): Compare opt with help_options.
15348 (parse_option): Receive opt as argument. If makes big simplificatons.
15351 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15353 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15354 Restructure to avoid warning.
15356 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15358 * util/grub-install.in: Account for possible escaped comma in device
15361 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15363 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15366 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15368 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15369 allocation and zero-setting.
15370 (grub_ieee1275_get_devname): Check that alias is complete.
15372 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15374 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15375 unaligned segments.
15377 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15379 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15381 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15382 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15383 Add ieee1275 prefix.
15385 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15387 * docs/grub.texi (Filesystems): Update.
15389 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15391 Support odc, newc and bigendian cpio formats.
15393 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15394 * grub-core/Makefile.core.def (newc): New module.
15396 (cpio_be): Likewise.
15397 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15399 (MAGIC2): Likewise.
15400 (head) [MODE_ODC]: Adapt for the format.
15401 (head) [MODE_NEWC]: Likewise.
15402 (head) [!MODE_*]: Write fields of interest as arrays.
15403 (MAGIC_USTAR): Removed.
15404 (read_number) [MODE_NEWC]: Change to hex.
15405 (read_number) [!MODE_*]: Parse binary arrays.
15406 (grub_cpio_find_file): Factor out the code for better structure and
15407 always use read_number.
15408 (grub_cpio_mount): Use MAGIC and MAGIC2.
15409 (grub_cpio_dir): Exit on first hook non-0 return.
15410 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15411 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15412 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15413 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15414 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15415 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15416 * grub-core/fs/newc.c: New file.
15417 * grub-core/fs/odc.c: Likewise.
15418 * grub-core/fs/cpio_be.c: Likewise.
15420 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15422 Fix handling of tar numbers occupying the whole field.
15424 * grub-core/fs/cpio.c (read_number): New function.
15425 (grub_cpio_find_file): Use read_number instead of strtoull.
15427 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15429 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15430 occupying the whole field size.
15432 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15434 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15436 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15438 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15440 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15442 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15443 TARGET_IMG_LDFLAGS.
15445 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15447 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15448 (mountinfo_entry): Increase the field size to take escaping into
15450 (find_root_device_from_libzfs): Add one byte to size of strings for
15453 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15455 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15457 * util/grub-setup.c (setup): Likewise.
15459 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15461 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15464 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15466 * docs/grub.texi (Internationalisation): New section.
15468 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15470 * docs/grub.texi (Loopback booting): New section.
15472 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15474 * util/grub-mkstandalone.in: Fix minor typo errors.
15476 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15478 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15480 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15481 net/icmp.c and net/icmp6.c.
15482 (http): New module.
15483 (priority_queue): Likewise.
15484 * grub-core/io/bufio.c: Rewritten.
15485 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15486 TYPE_WITH_CONFIGFILE_OPTION.
15487 (legacy_commands): Add bootp and dhcp.
15488 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15489 (grub_legacy_parse): Likewise.
15490 * grub-core/lib/priority_queue.c: New file.
15491 * grub-core/net/arp.c: Add missing license header.
15492 (arp_find_entry): Removed.
15493 (arp_find_entry): Likewise.
15494 (grub_net_arp_resolve): Rename to ...
15495 (grub_net_arp_send_request): ...this.
15496 (grub_net_arp_receive): New card argument.
15497 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15498 Set router and DNS server.
15499 (grub_net_configure_by_dhcp_ack): Handle routing information.
15500 (grub_cmd_bootp): Set checksum.
15501 (grub_bootp_init): Remove net_dhcp.
15502 * grub-core/net/dns.c: New file.
15503 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15505 (get_card_packet): Handle allocation.
15506 (grub_efinet_findcards): Set mtu.
15507 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15508 (get_card_packet): Handle allocation.
15509 (emucard): Set mtu.
15510 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15511 (GRUB_MOD_INIT): Set mtu.
15512 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15514 (get_card_packet): Handle allocation.
15515 (grub_ofnet_findcards): Set mtu.
15516 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15518 (grub_net_recv_ethernet_packet): Handle IPv6.
15519 * grub-core/net/http.c: New file.
15520 * grub-core/net/icmp.c: Likewise.
15521 * grub-core/net/icmp6.c: Likewise.
15522 * grub-core/net/ip.c (ip6addr): New type.
15523 (ip6hdr): Likewise.
15524 (reassemble): Likewise.
15525 (cmp): New function.
15526 (reassembles): New variable.
15527 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15528 (id): New variable.
15529 (send_fragmented): New function.
15530 (grub_net_send_ip_packet): Rename to ...
15531 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15533 (grub_net_recv_ip_packets): Rename to ...
15534 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15535 (free_rsm): New function.
15536 (free_old_fragments): Likewise.
15537 (grub_net_recv_ip4_packets): New function.
15538 (grub_net_send_ip6_packet): Likewise.
15539 (grub_net_send_ip_packet): Likewise.
15540 (grub_net_recv_ip6_packets): Likewise.
15541 (grub_net_recv_ip_packets): Likewise.
15542 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15543 (LINK_LAYER_CACHE_SIZE): New const.
15544 (link_layer_find_entry): New function.
15545 (grub_net_link_layer_add_address): Likewise.
15546 (grub_net_link_layer_resolve_check): Likewise.
15547 (grub_net_link_layer_resolve): Likewise.
15548 (grub_net_ipv6_get_slaac): Likewise.
15549 (grub_net_ipv6_get_link_local): Likewise.
15550 (grub_cmd_ipv6_autoconf): Likewise.
15551 (parse_ip): Handle one number representation.
15552 (parse_ip6): New functoion.
15553 (match_net): Handle IPv6.
15554 (grub_net_resolve_address): Handle IPv6 and DNS.
15555 (grub_net_resolve_net_address): Handle IPv6.
15556 (route_cmp): New function.
15557 (grub_net_route_address): Find best route.
15558 (grub_net_addr_to_str): Handle IPv6.
15559 (grub_net_addr_cmp): New function.
15560 (grub_net_add_addr): Register local route.
15561 (print_net_address): Handle net address.
15562 (grub_net_poll_cards): Retransmit TCP.
15563 (grub_net_poll_cards_idle_real): Likewise.
15564 (have_ahead): New function.
15565 (grub_net_seek_real): Use underlying seek.
15566 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15567 * grub-core/net/tcp.c: New file.
15568 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15569 (cmp): New function.
15571 (tftp_receive): Handle unordered input.
15572 (destroy_pq): New function.
15573 (tftp_close): Close pq.
15574 * grub-core/net/udp.c: Put missing license header.
15575 (grub_net_udp_socket): New function.
15576 (udp_socket_register): Likewise.
15577 (grub_net_udp_close): Likewise.
15578 (grub_net_recv_udp_packet): Check checksum.
15579 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15580 * include/grub/misc.h (grub_memchr): New function.
15581 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15582 (grub_net_card_driver): Return buf in recv.
15583 (grub_net_slaac_mac_list): New struct.
15584 (grub_network_level_protocol_id): Add ipv6.
15585 (grub_net_network_level_addr): Likewise.
15586 (grub_net_network_level_net_addr): Likewise.
15587 (grub_net_app_protocol): Add seek.
15588 (grub_net_socket): Removed.
15589 (grub_net_sockets): Likewise.
15590 (grub_net_socket_register): Likewise.
15591 (grub_net_socket_unregister): Likewise.
15592 (FOR_NET_SOCKETS): Likewise.
15593 (grub_net_add_addr): Add const.
15594 (GRUB_NET_BOOTP_*): New enum.
15595 (grub_net_addr_cmp): New proto.
15596 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15597 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15598 (grub_net_hwaddr_to_str): NEw proto.
15599 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15600 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15601 (grub_dns_init): New proto.
15602 (grub_dns_fini): Likewise.
15603 (grub_net_tcp_retransmit): Likewise.
15604 (grub_net_link_layer_add_address): Likewise.
15605 (grub_net_link_layer_resolve_check): Likewise.
15606 (grub_net_link_layer_resolve): Likewise.
15607 (grub_net_dns_lookup): Likewise.
15608 (grub_net_add_dns_server): Likewise.
15609 (grub_net_remove_dns_server): Likewise.
15610 (GRUB_NET_TRIES): New const.
15611 (GRUB_NET_INTERVAL): Likewise.
15612 * include/grub/net/arp.h: Mostly rewritten.
15613 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15614 * include/grub/net/ip.h: Mostly rewritten.
15615 * include/grub/net/netbuff.h: Indent.
15616 * include/grub/net/tcp.h: New file.
15617 * include/grub/net/udp.h: Mostly rewritten.
15618 * include/grub/priority_queue.h: New file.
15619 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15620 (grub_swap_bytes64_compile_time): Likewise.
15621 (grub_cpu_to_be16_compile_time): Likewise.
15622 (grub_cpu_to_be32_compile_time): Likewise.
15623 (grub_cpu_to_be64_compile_time): Likewise.
15624 (grub_be_to_cpu64_compile_time): Likewise.
15626 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15628 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15629 UINT_TO_PTR with cast.
15631 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15633 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15636 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15638 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15641 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15643 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15646 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15648 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15649 Add missing const attribute.
15650 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15652 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15655 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15657 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15659 (serpent_setkey): Likewise.
15660 (serpent_encrypt_internal): Likewise.
15661 (serpent_decrypt_internal): Likewise.
15662 (serpent_encrypt): Don't put an alignment-increasing cast.
15663 (serpent_decrypt): Likewise.
15664 (serpent_test): Likewise.
15666 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15668 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15670 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15672 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15674 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15676 (PTR_TO_UINT64): Likewise.
15677 (PTR_TO_UINT32): Likewise.
15679 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15681 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15683 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15686 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15688 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15689 text_width > available width a bit more gracefully.
15691 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15693 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15694 current address calculation.
15696 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15698 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15700 (encode_block): Likewise.
15702 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15704 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15707 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15709 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15710 non-RS part to avoid RS messing with GDT.
15711 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15712 Increase to suit in realmode routines.
15714 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15716 * grub-core/kern/i386/realmode.S: Increase alignment.
15717 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15719 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15721 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15723 (syndroms): Compute 0 syndrom.
15724 (rs_recover): Use 0 syndrom.
15726 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15728 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15730 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15732 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15735 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15737 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15739 (get_top_pad): Likewise.
15740 (get_right_pad): Likewise.
15741 (get_bottom_pad): Likewise.
15743 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15745 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15747 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15749 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15750 attribute as the structure isn't guaranteed to be properly aligned.
15751 (grub_efi_pci_device_path): Likewise.
15752 (grub_efi_pccard_device_path): Likewise.
15753 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15754 specify the size of `memory_type'.
15755 (grub_efi_vendor_device_path): Likewise.
15756 (grub_efi_controller_device_path): Likewise.
15757 (grub_efi_acpi_device_path): Likewise.
15758 (grub_efi_expanded_acpi_device_path): Likewise.
15759 (grub_efi_atapi_device_path): Likewise.
15760 (grub_efi_scsi_device_path): Likewise.
15761 (grub_efi_fibre_channel_device_path): Likewise.
15762 (grub_efi_1394_device_path): Likewise.
15763 (grub_efi_usb_device_path): Likewise.
15764 (grub_efi_usb_class_device_path): Likewise.
15765 (grub_efi_i2o_device_path): Likewise.
15766 (grub_efi_mac_address_device_path): Likewise.
15767 (grub_efi_ipv4_device_path): Likewise.
15768 (grub_efi_ipv6_device_path): Likewise.
15769 (grub_efi_infiniband_device_path): Likewise.
15770 (grub_efi_uart_device_path): Likewise.
15771 (grub_efi_vendor_messaging_device_path): Likewise.
15772 (grub_efi_hard_drive_device_path): Likewise.
15773 (grub_efi_cdrom_device_path): Likewise.
15774 (grub_efi_vendor_media_device_path): Likewise.
15775 (grub_efi_file_path_device_path): Likewise.
15776 (grub_efi_protocol_device_path): Likewise.
15777 (grub_efi_piwg_device_path): Likewise.
15778 (grub_efi_bios_device_path): Likewise.
15780 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15782 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15783 (grub_ucs4_to_utf8_alloc): Likewise.
15784 (grub_ucs4_to_utf8): Likewise.
15785 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15786 (grub_ucs4_to_utf8_alloc): Likewise.
15788 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15790 AFFS never uses unicode.
15792 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15793 (grub_latin1_to_utf8): New inline function.
15794 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15796 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15798 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15801 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15803 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15804 (grub_squash_dirent_header): Likewise.
15805 (read_chunk): Don't double swap.
15806 (grub_squash_iterate_dir): Fix swap sizes.
15808 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15810 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15812 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15814 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15815 (grub_hfs_iterate_dir): Likewise.
15817 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15819 Fix video on platforms where unaligned access is forbidden.
15820 Make several optimisations while on it.
15822 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15823 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15824 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15825 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15827 (grub_video_fbblit_replace_16bit_1bit):
15828 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15829 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15830 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15831 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15832 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15833 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15834 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15835 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15836 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15837 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15838 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15839 (grub_video_fbblit_replace_index_RGB888): Likewise.
15840 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15841 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15842 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15843 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15844 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15845 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15846 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15848 (grub_video_fbblit_blend_XXX565_1bit):
15849 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15850 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15851 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15853 * grub-core/video/fb/video_fb.c (common_blitter)
15854 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15855 (grub_video_fb_create_render_target_from_pointer)
15856 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15857 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15858 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15860 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15862 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15864 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15865 HH22 and HM10 relocations.
15867 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15869 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15871 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15873 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15874 allocation succeeded.
15876 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15878 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15879 argument a u8 pointer. All users updated.
15880 Handle unaligned buffers.
15882 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15884 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15885 add_part to workaround compiler bug.
15887 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15889 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15891 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15893 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15894 Reserve alignment invariants.
15895 (grub_multiboot_load): Likewise.
15896 (retrieve_video_parameters): Likewise.
15897 (grub_multiboot_make_mbi): Likewise.
15899 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15901 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15904 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15906 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15907 (grub_pata_pio_write): Likewise.
15909 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15911 Add noreturn attributes and remove unreachable code.
15913 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15915 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15916 code. Mark as noreturn.
15917 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15918 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15919 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15921 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15922 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15923 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15924 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15925 * include/grub/kernel.h (grub_main): Mark as noreturn.
15926 * include/grub/reader.h (grub_rescue_run): Likewise.
15928 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15930 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15931 redundant declaration.
15933 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15935 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15936 redundant declaration.
15937 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15939 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15941 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15942 to ensure alignment.
15943 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15944 alignment. Ensure tmp alignment.
15945 (grub_cmd_hdparm): Ensure buf alignment.
15946 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15947 to ensure alignment.
15948 (grub_ata_dumpinfo): Ensure text alignment.
15949 (grub_atapi_identify): Preserve alignment invariant.
15950 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15952 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15954 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15955 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15956 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15957 * include/grub/misc.h (grub_reboot)
15958 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15959 (grub_halt) [__mips__]: Likewise.
15961 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15963 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15964 Remove redundant declaration.
15965 (grub_mmap_get_post64): Likewise.
15966 (grub_mmap_get_upper): Likewise.
15967 (grub_mmap_get_lower): Likewise.
15969 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15971 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15972 uint32_t * to ensure alignment.
15973 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15975 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15977 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15978 uint16_t * to ensure alignment.
15979 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15982 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15984 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15985 to ensure alignment.
15986 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15988 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15990 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15991 Handle unaligned pointers.
15994 (fixup): Use byte access instead of v16at.
15995 (find_attr): Fix imporper usage of v32at.
15996 (read_data): Likewise.
15997 (list_file): Handle byte-swapping and unaligned strings.
15998 (grub_ntfs_label): Likewise.
16000 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16002 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
16003 as it's not necessarily aligned.
16005 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16007 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
16008 redundant declaration.
16009 (grub_serial_init): Likewise.
16010 (grub_terminfo_init): Likewise.
16012 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16014 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
16016 (ZAP_HASH_IDX): Likewise.
16017 (ZAP_LEAF_HASH_SHIFT): Likewise.
16018 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
16019 (LEAF_HASH): Likewise.
16020 (ZAP_LEAF_NUMCHUNKS): Likewise.
16021 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
16022 alignment invariants. Return pointer. All users updated.
16023 (ZAP_LEAF_ENTRY): Make into inline function.
16026 (xor_out): Use grub_crypto_xor.
16027 (dnode_get_path): Use grub_get_unaligned.
16028 (nvlist_find_value): Likewise.
16029 (grub_zfs_nvlist_lookup_uint64): Likewise.
16030 (grub_zfs_nvlist_lookup_string): Likewise.
16031 (get_nvlist_size): Likewise.
16032 (grub_zfs_open): Likewise.
16033 (fill_fs_info): Likewise.
16034 (grub_zfs_dir): Likewise.
16035 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
16036 alignment invariants.
16037 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
16038 necessarily aligned.
16040 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16042 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
16044 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16046 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
16047 arithmetic to conserve alignment invariants.
16049 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16051 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
16052 redundant declaration.
16053 (grub_efiemu_mm_obtain_request): Likewise.
16054 (grub_efiemu_prepare): Likewise.
16056 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16058 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
16061 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16063 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
16064 case of aunaligned recptr.
16065 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
16067 (grub_hfsplus_btree_search): Handle unaligned index.
16069 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16071 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
16072 to get freetag and skip.
16074 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16076 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
16078 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
16079 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
16081 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16083 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
16084 name for checksum and fix allocation algorithm.
16086 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16088 * include/grub/types.h (grub_properly_aligned_t): New type.
16089 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
16090 (grub_get_unaligned16): Add explicit casts.
16091 (grub_get_unaligned32): Likewise.
16092 (grub_get_unaligned64): Likewise.
16093 (grub_set_unaligned16): New function.
16094 (grub_set_unaligned32): Likewise.
16096 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16098 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16100 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16102 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
16103 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
16104 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
16106 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16108 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
16111 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16113 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
16114 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
16116 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16118 Unify and improve RAID and crypto xor.
16120 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
16121 changed to grub_crypto_xor
16122 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
16123 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
16124 Use bigger types when possible.
16126 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16128 * grub-core/disk/raid.c (scan_devices): Fix condition.
16130 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16132 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
16133 Make name a const ptr.
16135 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16137 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
16138 first argument a const pointer.
16139 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
16140 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
16142 (grub_children_iterate): Likewise.
16143 (grub_machine_mmap_iterate): Remove redundant declaration.
16145 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16147 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
16148 (grub_cmd_acpi) [!x86]: Disable EBDA.
16150 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16152 Enable UTF8 in gnulib regexp.
16154 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
16155 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
16156 (isupper): Use grub_isupper.
16157 (isascii): New inline function.
16158 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
16159 * grub-core/lib/posix_wrap/wctype.h: Likewise.
16160 * grub-core/normal/charset.c (grub_utf8_process): New function.
16161 (grub_utf8_to_utf16): Use grub_utf8_process.
16162 (grub_encode_utf8_character): New function.
16163 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
16164 * include/grub/charset.h (grub_utf8_process): New declaration.
16165 (grub_encode_utf8_character): Likewise.
16166 * include/grub/misc.h (grub_islower): New inline function.
16167 (grub_isupper): Likewise.
16168 (grub_strchrsub): Moved down to fix the definitions.
16170 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16172 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
16175 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16177 * include/grub/loader.h (grub_loader_register_preboot_hook):
16178 Use struct preboot * and not void * for handle. All users updated.
16179 (grub_loader_unregister_preboot_hook): Likewise.
16181 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16183 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16184 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16185 UTF-16-BE. All users updated.
16186 (grub_hfsplus_cmp_catkey): Fix unicode handling.
16187 (grub_hfsplus_iterate_dir): Likewise.
16188 (grub_hfsplus_label): Likewise.
16190 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16192 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16194 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16196 Add missing const qualifiers.
16198 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16199 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16200 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16201 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16202 (grub_lvm_check_flag): Likewise.
16203 * grub-core/efiemu/i386/coredetect.c
16204 (grub_efiemu_get_default_core_name): Likewise
16205 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16206 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16207 * grub-core/fs/ntfs.c (fixup): Likewise.
16208 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16209 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16210 (fzap_lookup): Likewise.
16211 (zap_lookup): Likewise.
16212 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16213 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16214 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16215 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16216 (grub_freebsd_add_meta_module): Likewise.
16217 (grub_cmd_freebsd_module): Likewise.
16218 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16219 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16220 (grub_xnu_writetree_get_size): Likewise.
16221 (grub_xnu_writetree_toheap_real): Likewise.
16222 (grub_xnu_find_key): Likewise.
16223 (grub_xnu_create_key): Likewise.
16224 (grub_xnu_create_value): Likewise.
16225 (grub_xnu_register_memory): Likewise.
16226 (grub_xnu_check_os_bundle_required): Likewise.
16227 (grub_xnu_scan_dir_for_kexts): Likewise.
16228 (grub_xnu_load_kext_from_dir): Likewise.
16229 * grub-core/normal/color.c (color_list): Likewise.
16230 * grub-core/normal/completion.c (current_word): Likewise.
16231 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16232 * grub-core/term/serial.c (grub_serial_find): Likewise.
16233 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16234 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16236 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16237 (grub_freebsd_add_meta_module): Likewise.
16238 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16239 * include/grub/net.h (grub_net_card_driver): Likewise.
16240 (grub_net_card): Likewise.
16241 (grub_net_app_protocol): Likewise.
16242 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16243 * include/grub/serial.h (grub_serial_find): Likewise.
16244 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16245 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16246 (grub_xnu_create_value): Likewise.
16247 (grub_xnu_find_key): Likewise.
16248 (grub_xnu_scan_dir_for_kexts): Likewise.
16249 (grub_xnu_load_kext_from_dir): Likewise.
16251 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16252 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16253 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16254 Moved from here ...
16255 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16257 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16259 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16261 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16263 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16264 (read_device): Fix size calculation.
16266 2011-11-25 Robert Millan <rmh@gnu.org>
16268 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16269 (find_root_device_from_libzfs): Add zpool output parser to be used
16270 as fallback when libzfs isn't available.
16272 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16274 * po/Makefile.in.in: Add missing escape-continuation.
16276 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16278 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16280 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16282 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16284 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16286 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16288 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16290 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16292 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16294 * grub-core/lib/adler32.c: Add missing license specification.
16295 * grub-core/lib/crc64.c: Likewise.
16296 * grub-core/loader/i386/pc/plan9.c: Likewise.
16297 * grub-core/partmap/plan.c: Likewise.
16299 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16301 Add facility to debug GRUB with gdb under qemu.
16303 * grub-core/gdb_grub.in: New file.
16304 * grub-core/gmodule.pl.in: Likewise.
16305 * grub-core/Makefile.core.def (gmodule.pl): New script.
16306 (gdb_grub): Likewise.
16308 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16310 * util/grub-mount.c (argp_parser): Accept relative pathes.
16311 * util/grub-fstest.c (argp_parser): Likewise.
16313 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16317 * Makefile.util.def (libgrubmods): Add
16318 grub-core/partmap/plan.c.
16319 * docs/grub.texi: Notice Plan9 support.
16320 * grub-core/Makefile.core.def (plan9): New module.
16321 (part_plan): Likewise.
16322 * grub-core/loader/i386/pc/plan9.c: New file.
16323 * grub-core/partmap/plan.c: Likewise.
16324 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16326 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16327 * include/grub/mm.h (grub_extend_alloc): New inline function.
16329 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16331 Make Reed-Solomon faster by using power of generator representation of
16334 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16335 (gf_double_t): Likewise.
16336 (gf_invert): Removed.
16337 (gf_powx): New array.
16338 (gf_powx_inv): Likewise.
16339 (scratch): Move higher.
16340 (gf_reduce): Removed.
16341 (gf_mul): Use powx.
16342 (gf_invert): Likewise.
16343 (init_inverts): Replaced with ...
16344 (init_powx): ...this. All users updated.
16345 (pol_evaluate): Replace multiplications with additions.
16346 (rs_encode): Likewise.
16347 (gauss_eliminate): Call gf_invert.
16348 (grub_reed_solomon_add_redundancy): Call init_powx.
16349 (grub_reed_solomon_recover): Call init_powx unconditionally.
16351 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16353 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16355 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16357 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16358 disk->partiton for safety.
16360 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16362 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16364 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16366 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16368 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16370 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16372 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16374 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16376 Fix spaces handling in proc/self/mountinfo.
16378 * util/getroot.c (unescape): New function.
16379 (grub_find_root_device_from_mountinfo): Use unescape.
16381 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16383 Support ZFS embedding.
16385 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16386 (grub_zfs_fs): Register grub_zfs_embed.
16388 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16390 Fix MIPS compilation.
16392 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16393 * include/grub/offsets.h: Rename decompressor fields from
16394 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16395 * util/grub-mkimage.c (image_targets): Use new names.
16397 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16399 Defer multiboot device parsing until we're in compressed part.
16401 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16402 bsd_part. setdevice has fallen into disuse.
16403 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16404 (bsd_part): Likewise.
16405 (boot_dev): New variable.
16406 (multiboot_trampoline): Don't parse multiboot device.
16407 Pass multiboot device in %edx.
16408 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16410 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16412 * grub-core/kern/i386/pc/startup.S: Save edx.
16413 (grub_boot_drive): Removed.
16414 (grub_install_dos_part): Likewise.
16415 (grub_install_bsd_part): Likewise.
16416 (grub_boot_device): New variable.
16417 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16418 (grub_install_bsd_part): Likewise.
16419 (grub_boot_drive): Likewise.
16420 (grub_boot_device): New variable.
16421 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16423 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16424 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16425 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16426 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16427 * util/grub-install.in: Remove redundant condition.
16429 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16431 Fix bug introduced by previous commit.
16433 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16435 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16437 Use decompressors framework on i386-pc. It increases core size
16438 by 46 bytes but improves compatibility and maintainability.
16440 * grub-core/Makefile.core.def (lzma_decompress): New image.
16441 (kernel): Add i386_pc_ldflags.
16442 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16443 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16444 to real_to_prot, prot_to_real and device info.
16445 * include/grub/offsets.h: Renamed decompressor offsets.
16446 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16447 (image_target_desc): Remove raw_size and rename decompressor fields.
16448 (compress_kernel): Handle lzma.
16449 (generate_image): Handle decompressors on i386-pc.
16451 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16453 * configure.ac: Add -fno-asynchronous-unwind-tables.
16455 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16457 Move assembly code to C by using intwrap. It increases core size
16458 by 88 bytes but improves compatibility and maintainability.
16460 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16461 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16462 ... here. Translated to C.
16463 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16464 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16465 ... here. Translated to C.
16466 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16467 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16468 ... here. Translated to C.
16469 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16470 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16471 ... here. Translated to C.
16472 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16473 * grub-core/term/i386/pc/console.c (grub_console_cls):
16474 ... here. Translated to C.
16475 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16476 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16477 ... here. Translated to C.
16478 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16479 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16481 * grub-core/term/i386/pc/console.c (int10_9): New function.
16482 (grub_console_putchar): Likewise.
16483 * include/grub/i386/pc/console.h: Removed the not anymore shared
16486 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16488 Move grub_chainloader_real_boot out of the kernel.
16490 * grub-core/Makefile.am: Remove machine/loader.h.
16491 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16493 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16495 (grub_relocator16_keep_a20_enabled): Likewise.
16496 (grub_relocator16_boot): Fill new variables.
16497 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16498 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16500 (grub_chainloader_unload): Likewise.
16501 (grub_chainloader_cmd): Likewise.
16502 * include/grub/i386/pc/loader.h: Removed.
16503 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16504 and esi. All initialisers updated.
16506 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16507 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16509 * Makefile.util.def (grub-mount): New util.
16510 * .bzrignore: Add grub-mount.
16511 * configure.ac: Check for fuse and enable grub-mount if available.
16512 * docs/man/grub-mount.h2m: New file.
16513 * util/grub-mount.c: Likewise.
16515 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16517 * grub-core/commands/efi/fixvideo.c: Gettextize.
16518 * grub-core/commands/hashsum.c: Likewise.
16519 * grub-core/commands/i386/cmostest.c: Likewise.
16520 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16521 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16522 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16523 * grub-core/commands/lsmmap.c: Likewise.
16524 * grub-core/commands/menuentry.c: Likewise.
16525 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16526 * grub-core/commands/setpci.c: Likewise.
16527 * grub-core/loader/i386/bsd.c: Likewise.
16528 * grub-core/loader/i386/linux.c: Likewise.
16529 * util/getroot.c: Likewise.
16530 * util/grub-editenv.c: Likewise.
16531 * util/grub-fstest.c: Likewise.
16532 * util/grub-mkfont.c: Likewise.
16533 * util/grub-mkimage.c: Likewise.
16534 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16535 * util/grub-pe2elf.c: Likewise.
16536 * util/grub-probe.c: Likewise.
16537 * util/grub-setup.c: Likewise.
16538 * util/ieee1275/ofpath.c: Likewise.
16539 * util/misc.c: Likewise.
16540 * util/raid.c: Likewise.
16542 2011-11-11 Robert Millan <rmh@gnu.org>
16544 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16545 __attribute__((unused)) from `os_dev', which *is* being used.
16547 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16549 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16551 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16552 GRUB_IA64_DL_GOT_ALIGN.
16553 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16554 GRUB_IA64_DL_TRAMP_ALIGN.
16556 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16558 Replace grub_fatal with normal errors in i386 linux loader.
16560 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16561 (allocate_pages): Check find_efi_mmap_size return value.
16562 (grub_e820_add_region): Return error.
16563 (grub_linux_boot): Check mmap return value.
16565 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16567 * grub-core/commands/acpihalt.c: Gettextized.
16568 * grub-core/commands/cacheinfo.c: Likewise.
16569 * grub-core/commands/cmp.c: Likewise.
16570 * grub-core/commands/efi/loadbios.c: Likewise.
16571 * grub-core/commands/gptsync.c: Likewise.
16572 * grub-core/commands/ieee1275/suspend.c: Likewise.
16573 * grub-core/commands/legacycfg.c: Likewise.
16574 * grub-core/commands/memrw.c: Likewise.
16575 * grub-core/commands/minicmd.c: Likewise.
16576 * grub-core/commands/parttool.c: Likewise.
16577 * grub-core/commands/time.c: Likewise.
16578 * grub-core/commands/videoinfo.c: Likewise.
16579 * grub-core/disk/geli.c: Likewise.
16580 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16581 * grub-core/disk/luks.c: Likewise.
16582 * grub-core/disk/lvm.c: Likewise.
16583 * grub-core/font/font_cmd.c: Likewise.
16584 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16585 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16586 * grub-core/gfxmenu/view.c: Likewise.
16587 * grub-core/kern/emu/hostdisk.c: Likewise.
16588 * grub-core/kern/emu/main.c: Likewise.
16589 * grub-core/kern/emu/misc.c: Likewise.
16590 * grub-core/kern/emu/mm.c: Likewise.
16591 * grub-core/kern/mips/arc/init.c: Likewise.
16592 * grub-core/kern/mips/loongson/init.c: Likewise.
16593 * grub-core/kern/partition.c: Likewise.
16594 * grub-core/lib/i386/halt.c: Likewise.
16595 * grub-core/lib/mips/arc/reboot.c: Likewise.
16596 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16597 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16598 * grub-core/loader/i386/xnu.c: Likewise.
16599 * grub-core/loader/multiboot.c: Likewise.
16600 * grub-core/net/bootp.c: Likewise.
16601 * grub-core/net/net.c: Likewise.
16602 * grub-core/normal/term.c: Likewise.
16603 * grub-core/partmap/bsdlabel.c: Likewise.
16604 * grub-core/parttool/msdospart.c: Likewise.
16605 * grub-core/term/gfxterm.c: Likewise.
16606 * grub-core/term/terminfo.c: Likewise.
16607 * grub-core/video/i386/pc/vbe.c: Likewise.
16608 * util/grub-menulst2cfg.c: Likewise.
16609 * util/grub-mkdevicemap.c: Likewise.
16610 * util/grub-mklayout.c: Likewise.
16611 * util/grub-mkrelpath.c: Likewise.
16612 * util/grub-script-check.c: Likewise.
16613 * util/ieee1275/grub-ofpathname.c: Likewise.
16614 * util/resolve.c: Likewise.
16616 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16618 Support %1$d syntax.
16620 * tests/printf_unit_test.c: New file.
16621 * Makefile.util.def (printf_test): New test.
16622 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16624 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16626 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16629 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16631 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16633 * grub-core/font/font.c (grub_font_load): Likewise.
16635 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16637 * util/grub-macho2img.c: Add comment concerning gettext.
16638 * grub-core/lib/legacy_parse.c: Likewise.
16640 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16642 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16643 (grub_xvasprintf): Likewise.
16645 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16647 Add const keyword to grub_env_get and gettextize week days.
16649 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16650 (grub_read_hook_datetime): Return const char *.
16651 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16653 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16655 (grub_get_weekday_name): Return const char *. Call gettext.
16656 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16657 char * and len as the argument. All users updated.
16658 (grub_script_argv_split_append): Receive const char *.
16659 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16660 * include/grub/env.h (grub_env_get): Likewise.
16661 (grub_env_read_hook_t): Return const char *.
16662 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16663 (grub_script_argv_split_append): Likewise.
16665 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16667 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16669 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16671 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16672 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16674 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16676 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16679 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16681 Fix mips compilation.
16683 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16685 (hashes): Use in embed decoder as well (for sizes).
16686 (dec_stream_header): Fix embed decompressor logic.
16687 (dec_stream_footer): Likewise.
16689 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16691 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16692 an error and not a fatal on unrecognised relocation types.
16694 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16696 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16697 Issue error rather than printf on unknown arguments.
16699 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16701 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16704 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16706 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16709 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16711 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16712 leftover debug printf.
16714 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16716 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16718 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16720 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16723 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16725 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16727 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16729 Allow all modules to perform serial IO
16731 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16732 * include/grub/serial.h (grub_serial_port_configure): New inline
16734 (grub_serial_port_fetch): Likewise.
16735 (grub_serial_port_put): Likewise.
16736 (grub_serial_port_fini): Likewise.
16737 (grub_serial_find): New proto.
16739 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16741 Put symlink at the end of the node and fix a potential
16744 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16745 Make symlink into an array.
16746 (set_rockridge): Set have_symlink and alloc_dirents.
16747 (grub_iso9660_read_symlink): Use new layout.
16748 (grub_iso9660_iterate_dir): Fix memory corruption.
16750 (grub_iso9660_dir): Set have_symlink.
16751 (grub_iso9660_open): Likewise.
16753 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16755 Remove local keyword.
16757 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16758 (version_test_gt): Likewise.
16759 (version_find_latest): Likewise.
16760 (gettext_printf): Likewise.
16761 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16763 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16765 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16767 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16769 Fix ZFS memory and resource leaks.
16771 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16774 (fill_vdev_info): New parameter inserted. All users updated.
16775 (check_pool_label): Likewise.
16776 (scan_disk): Likewise.
16777 (scan_devices): Close non-inserted disks.
16778 (fzap_iterate): Free l.
16779 (unmount_device): Free children descripto memory.
16781 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16783 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16784 argument (access out of bounds).
16786 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16788 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16791 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16793 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16796 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16798 Fix several memory leaks.
16800 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16801 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16802 (grub_cpio_dir): Likewise.
16803 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16804 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16805 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16806 (grub_romfs_label): Likewise.
16807 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16808 (squash_unmount): New function.
16809 (grub_squash_dir): Fix memory leak.
16810 (grub_squash_open): Likewise.
16811 (grub_squash_read): Likewise.
16812 (grub_squash_mtime): Likewise.
16813 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16814 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16815 * util/grub-fstest.c (fstest): Likewise.
16817 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16819 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16820 avoid accessing beyond the array.
16822 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16824 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16826 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16828 Several AFFS fixes.
16830 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16831 (GRUB_AFFS_FLAG_FFS): Removed.
16832 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16833 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16834 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16835 (grub_fshelp_node): Make block 32-bit.
16836 Add block_cache and last_block_cache.
16837 (grub_affs_read_block): Fill and use block cache.
16838 (grub_affs_read_file): Removed.
16839 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16841 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16843 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16845 (grub_affs_close): Free block cache.
16846 (grub_affs_read): Use grub_fshelp_read_file directly.
16848 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16850 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16853 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16855 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16857 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16860 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16862 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16864 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16865 byteswap when needed.
16867 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16869 Fix FreeBSD compilation.
16871 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16872 to avoid circular dependency.
16873 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16874 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16875 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16877 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16879 Fix ZFS crypto error types.
16881 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16882 (grub_gcm_decrypt): Likewise.
16883 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16886 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16890 * Makefile.util.def (10_illumos): New script.
16891 * configure.ac: Set COND_HOST_ILLUMOS.
16892 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16893 Support Illumos calls.
16894 (find_partition_start) [__sun__]: Likewise.
16895 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16896 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16897 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16898 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16900 * util/grub-probe.c (probe) [__sun__]: Do character check.
16901 * util/grub.d/10_illumos.in: New file.
16903 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16905 Support escaped commas in hostdisk.
16907 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16908 (find_grub_drive): Use unescape_cmp.
16909 (make_device_name): Escape commas.
16911 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16913 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16915 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16917 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16920 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16922 Support trampoline jumps on powerpc.
16924 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16926 (grub_dl_load_segments): Set mod->sz.
16927 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16929 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16931 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16933 (trampoline): New struct.
16934 (trampoline_template): New const.
16935 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16936 * include/grub/dl.h (grub_dl): Add sz element.
16937 [__powerpc__]: Follow __ia64__.
16938 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16939 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16940 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16941 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16943 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16945 ZFS crypto support.
16947 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16948 * grub-core/Makefile.core.def (zfscrypt): New module.
16949 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16950 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16951 it. All users updated.
16952 (grub_zfs_decrypt): New var.
16953 (grub_zfs_load_key): Likewise.
16954 (zio_checksum_functions): Add SHA256+MAC.
16955 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16956 (zio_read): Handle encrypted blocks.
16957 (zap_verify): Remove incorrect check.
16958 (fzap_iterate): Handle non-standard fzap.
16959 (zap_iterate): Likewise.
16960 (zap_iterate_u64): New function.
16961 (dnode_get_fullpath): Load keys.
16962 * grub-core/fs/zfs/zfscrypt.c: New file.
16963 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16964 (grub_crypto_ecb_encrypt): Make input const.
16965 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16966 (grub_crypto_ecb_encrypt): Make input const.
16967 (GRUB_CIPHER_AES): New macro.
16968 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16969 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16970 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16971 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16972 prefix. All users updated.
16973 (grub_zfs_add_key): New proto.
16974 (grub_zfs_decrypt): Likewise.
16975 (grub_zfs_load_key): Likewise.
16976 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16977 * util/grub-fstest.c (options): Add -K option.
16978 (argp_parser): Likewise.
16980 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16982 Support zle compression on ZFS.
16984 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16985 (decomp_table): Add zle.
16986 * include/grub/zfs/zio.h (zio_compress): Add zle.
16988 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16990 Support BtrFS embedding.
16992 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16993 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16994 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16995 * util/grub-setup.c (setup): Use fs embedding if available.
16996 Add additional sanity check.
16998 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
17000 * util/grub-install.in: Fix condition for config_opt.
17002 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17004 Support third redundancy strip on raidz3.
17006 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
17007 Return error on singularity. All users updated.
17008 (read_device): Don't stop on 3rd failure on raidz3.
17010 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17012 Support case-insensitive ZFS subvolumes.
17014 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
17016 (zap_hash): Likewise.
17017 (name_cmp): New function.
17018 (zap_leaf_array_equal): New parameter case_insensitive.
17020 (zap_leaf_lookup): Likewise.
17021 (fzap_lookup): Likewise.
17022 (zap_lookup): Likewise.
17023 (dnode_get_path): New parameter case_insensitive. Retrieve case
17024 sensitiviness of a volume. All users updated.
17025 (dnode_get_fullpath): New parameter case_insensitive.
17027 (grub_zfs_dir): Set info.case_insensitiveness.
17029 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17031 Support second redundancy strip on raidz(2,3).
17033 * grub-core/fs/zfs/zfs.c (powx): New array.
17034 (powx_inv): Likewise.
17036 (xor_out): New function.
17037 (gf_mul): Likewise.
17038 (recovery): Likewise.
17039 (read_device): Use second redundancy strip.
17041 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17043 Use a power of generator representation of GF(256) multiplication group
17044 to save space time and complexity.
17046 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
17047 (raid6_table2): Likewise.
17049 (powx_inv): Likewise.
17051 (grub_raid_block_mul): Replace with ...
17052 (grub_raid_block_mulx): ...this.
17053 (grub_raid6_init_table): Rewritten.
17054 (grub_raid6_recover): Use power of generator representation.
17056 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17058 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
17059 for the right device.
17061 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17063 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
17064 expected by grub-mkimage and it's more clear since there is no implicit
17067 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17069 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
17071 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17073 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
17075 * util/grub-mkrescue.in: Fix handling xorriso option.
17077 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17079 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
17082 2011-11-03 crocket <crockabiscuit@gmail.com>
17084 * util/grub.d/10_linux.in: Add Slackware initrd naming.
17086 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17088 XZ CRC64 and SHA256 support.
17090 * Makefile.util.def (libgrubmods): Add crc64.c.
17091 * grub-core/Makefile.core.def (crc64): New module.
17092 * grub-core/lib/crc64.c: New file.
17093 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
17094 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
17096 (MAX_HASH_SIZE): New define.
17097 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
17098 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
17099 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17100 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17101 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
17102 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
17103 Handle non-crc32 hashes.
17104 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
17105 (dec_stream_header): Handle non-crc32 hashes.
17106 (dec_stream_footer): Likewise.
17107 (dec_block_header): Likewise.
17108 (dec_main): Likewise.
17109 (xz_dec_init): Likewise.
17110 (xz_dec_reset): Likewise.
17111 (xz_dec_end): Likewise.
17112 * util/import_gcry.py: Add CRC64 line.
17114 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17116 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
17119 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17121 Make reiserfs label retrieval similar to other *_label functions.
17123 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
17124 (REISERFS_MAX_LABEL_LENGTH): Removed.
17125 (REISERFS_LABEL_OFFSET): Likewise.
17126 (grub_reiserfs_label): Rewritten.
17128 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17130 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
17133 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17135 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
17137 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17139 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
17140 drive failure on both raidz and raidz2.
17142 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17144 Fix RAIDZ(2) for >= 5 devices.
17146 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
17147 asize argument. All users updated.
17149 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17153 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
17154 (fill_vdev_info_real): Set ashift.
17155 (read_device): Rewrite RAIDZ part based on reverse engineering.
17157 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17159 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
17160 don't report potentially unavialiable fields in debug output.
17161 (find_path): Fix double-free and memory leak.
17163 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17165 Read label on UFS1.
17167 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
17168 (grub_ufs_fs): Always set .label.
17170 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17174 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
17175 (grub_ufs_data): New field log2_blksz.
17176 (grub_ufs_read_file): Use shifts.
17177 (grub_ufs_mount): Check block size and logarithm it.
17179 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17181 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17184 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17186 Handle symlinks and long names on tar and cpio.
17188 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17189 (ATTR_FILE): Likewise.
17190 (ATTR_DIR): Likewise.
17191 (ATTR_LNK): Likewise.
17192 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17193 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17195 (grub_cpio_mount): Zero-fill data.
17196 (handle_symlink): New function.
17197 (grub_cpio_dir): Handle symlinks.
17198 (grub_cpio_open): Likewise.
17199 (grub_cpio_close) [MODE_USTAR]: Free linkname.
17201 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17203 Fix iso9660 filename limitations and fix memory leaks.
17205 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17206 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17208 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17210 Fix JFS file name length limitations.
17212 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17213 (grub_jfs_diropen): Fix maximum filename length.
17214 (grub_jfs_getent): Fix filename length.
17215 (grub_jfs_lookup_symlink): Fix size checks.
17217 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17219 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17222 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17224 Leverage BFS implementation to read AFS.
17226 * Makefile.util.def (libgrubmods): Add afs.c.
17227 * grub-core/Makefile.core.def (afs): New module
17228 * grub-core/fs/afs.c: New file.
17229 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17231 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17233 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17235 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17237 * grub-core/fs/bfs.c: Run indent.
17239 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17241 BFS implementation based on the specification.
17243 * grub-core/fs/bfs.c: New file.
17244 * Makefile.util.def (libgrubmods): Add bfs.c.
17245 * grub-core/Makefile.core.def (bfs): New module.
17247 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17249 * util/grub-fstest.c (cmd_cp): Clarify error message.
17250 (cmd_cmp): Likewise.
17252 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17254 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17257 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17259 Remove afs and befs because of copyright problem.
17261 * grub-core/fs/afs.c: Removed.
17262 * grub-core/fs/afs_be.c: Removed.
17263 * grub-core/fs/befs.c: Removed.
17264 * grub-core/fs/befs_be.c: Removed.
17265 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17266 * grub-core/Makefile.core.def (afs): Removed.
17267 (afs_be): Likewise.
17269 (befs_be): Likewise.
17271 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17273 Prefer rockridge over Joliet.
17275 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17277 (set_rockridge): ... here.
17278 (grub_iso9660_mount): Check rockridge on the primary label when
17279 discovering. Ignore Joliet if Rockridge is present.
17281 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17283 Use shifts in nilfs2.
17285 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17286 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17287 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17288 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17289 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17290 (grub_nilfs2_entries_per_block): Replaced with ...
17291 (grub_nilfs2_log_entries_per_block_log): ... this.
17292 (grub_nilfs2_blocks_per_group): Replaced with ...
17293 (grub_nilfs2_blocks_per_group_log): ... this.
17294 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17295 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17296 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17297 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17298 (grub_nilfs2_palloc_entry_offset): Replaced ...
17299 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17300 (grub_nilfs2_dat_translate): Use shifts.
17301 (grub_nilfs2_read_inode): Likewise.
17302 (GRUB_MOD_INIT): Ensure that logs are correct.
17304 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17306 Use shifts in minix filesystem.
17308 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17309 (GRUB_MINIX_ZONE2SECT): Likewise.
17310 (grub_minix_data): Replace block_size with log_block_size.
17311 (grub_minix_read_file): Use shifts.
17312 (grub_minix_mount): Check block size and take a logarithm.
17314 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17316 Use shifts in squash4.
17318 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17319 (squash_mount): Check block size and take logarithm.
17320 (direct_read): Use shifts.
17322 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17324 Correct befs block counting logic.
17326 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17327 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17328 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17329 (grub_afs_read_inode): Use block_shift.
17330 (RANGE_SHIFT): New definition.
17331 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17332 unexpected conditions, use shifts and appropriate types.
17333 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17335 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17337 * grub-core/disk/raid.c (scan_devices): Check partition.
17338 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17340 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17342 Support BFS (befs) UUID.
17344 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17345 (grub_afs_small_data_element_header): New struct.
17346 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17347 (grub_afs_read_attribute) [MODE_BFS]: New function.
17348 (grub_afs_iterate_dir): Allocate for complete inode.
17349 (grub_afs_mount): Likewise.
17350 (grub_afs_uuid) [MODE_BFS]: New function.
17351 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17353 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17355 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17356 (zfs_unmount): Fix memory leak.
17358 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17360 Support NTFS reparse points.
17362 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17363 (symlink_descriptor): New struct.
17364 (grub_ntfs_read_symlink): New function.
17365 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17366 (grub_ntfs_open): Likewise.
17368 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17370 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17372 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17374 fstest xnu_uuid subcommand.
17376 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17377 grub-core/commands/xnu_uuid.c.
17378 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17379 (fstest): Handle xnu_uuid.
17380 (options): Document xnu_uuid.
17381 (argp_parser): Parse xnu_uuid.
17383 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17385 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17386 -l argument. Add newline at the end if printing.
17387 (GRUB_MOD_INIT): Document -l.
17389 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17391 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17393 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17395 ZFS multi-device and version 33 support.
17397 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17398 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17399 (grub_zfs_data): Add multidev-ice-related fields.
17400 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17401 (dva_get_offset): Make dva const.
17402 (zfs_fetch_nvlist): New function.
17403 (fill_vdev_info_real): Likewise.
17404 (fill_vdev_info): Likewise.
17405 (check_pool_label): Likewise.
17406 (scan_disk): Likewise.
17407 (scan_devices): Likewise.
17408 (read_device): Likewise.
17409 (read_dva): Likewise.
17410 (zio_read_gang): Use read_dva.
17411 (zio_read_data): Likewise.
17412 (zap_leaf_lookup): Add missing endian conversion.
17413 (zap_verify): Add missing endian conversion. All users updated.
17414 (fzap_lookup): Likewise.
17415 (fzap_iterate): Likewise.
17416 (dnode_get_path): Handle SA bonus.
17417 (nvlist_find_value): Make input const. All users updated.
17418 (unmount_device): New function.
17419 (zfs_unmount): Use unmount_device.
17420 (zfs_mount): Use scan_disk.
17421 (zfs_mtime): New function.
17422 (grub_zfs_open): Handle system attributes.
17423 (fill_fs_info): Likewise.
17424 (grub_zfs_dir): Likewise.
17425 (grub_zfs_fs): Add mtime.
17426 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17427 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17428 (SA_MTIME_OFFSET): Likewise.
17429 (SA_SYMLINK_OFFSET): Likewise.
17430 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17431 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17432 (fstest): Support zfsinfo.
17433 (argp_parser): Likewise.
17435 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17437 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17440 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17444 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17445 sharing the same block. Iterate over correct number of indices.
17446 (dnode_get_path): Handle symlinks correctly.
17448 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17450 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17452 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17454 Read label on HFS+.
17456 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17457 (grub_hfsplus_btree_search): Fix types.
17458 (grub_hfsplus_label): Implement.
17460 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17462 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17464 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17466 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17468 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17470 Fix symlink handling on iso9660.
17472 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17474 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17475 (grub_iso9660_read_symlink): Moved most of code ...
17476 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17478 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17480 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17481 Use union to avoid breaking strict-aliasing rules.
17483 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17485 Support multi-extent iso files.
17487 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17489 (grub_fshelp_node): Revamp. All users updated.
17490 (FLAG_*): New enum.
17491 (read_node): New function.
17492 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17494 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17495 (get_node_size): New function.
17496 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17498 Fix memory leak on . and ..
17499 (grub_iso9660_read): Use read_node.
17500 (grub_iso9660_close): Free node.
17502 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17504 Fix tar 4G limit and handle paths containing dot.
17506 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17507 (canonicalize): New function.
17508 (grub_cpio_find_file): Use canonicalize. Store offs in
17510 (grub_cpio_dir): Use grub_disk_addr_t.
17511 (grub_cpio_open): Likewise.
17513 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17515 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17517 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17519 (grub_squash_inode): Add long_file and block_size.
17520 (grub_squash_cache_inode): New struct.
17521 (grub_squash_dirent): Make types into enum.
17522 (SQUASH_TYPE_LONG_REGULAR): New type.
17523 (grub_squash_frag_desc): Add field size.
17524 (SQUASH_BLOCK_FLAGS): New enum.
17525 (grub_squash_data): Use grub_squash_cache_inode.
17526 (grub_fshelp_node): Make ino_chunk 64-bit.
17527 (read_chunk): Minor argument change. All users updated.
17528 (squash_mount): Use correct le_to_cpu.
17529 (grub_squash_open): Handle LONG_REGULAR.
17530 (direct_read): New function.
17531 (grub_squash_read_data): Handle blocks correctly.
17533 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17535 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17537 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17539 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17541 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17543 Fix 2G limit on ZFS.
17545 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17547 (uberblock_verify): Likewise.
17548 (dmu_read): Likewise.
17549 (grub_zfs_read): Likewise. Remove invalid cast.
17551 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17553 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17554 (grub_jfs_blkno): Fix incorrect shift.
17555 (grub_jfs_read_file): Use more appropriate types.
17557 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17559 Support triple indirect on minix2 and minix3.
17561 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17562 Declare triple_indir_zone.
17563 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17566 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17570 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17571 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17572 Rename ctime to mtime. All users updated.
17573 (grub_minix_get_file_block): Fix types and double indirect computations.
17575 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17577 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17578 if no label is found.
17579 (grub_fat_iterate_dir): Fix file size type.
17580 (grub_fat_iterate_dir): Likewise.
17582 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17584 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17586 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17587 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17589 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17591 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17593 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17595 * util/import_gcry.py: Accept space between # and include.
17597 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17599 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17601 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17603 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17605 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17606 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17608 * grub-core/script/yylex.l: Add fine-grained #pragma.
17610 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17612 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17613 New inline function.
17614 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17616 (memset) [GRUB_UTIL]: Likewise.
17617 (memcmp) [GRUB_UTIL]: Likewise.
17619 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17621 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17622 inline function rather than a define.
17624 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17626 * util/grub-setup.c: Add missing include.
17628 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17630 * util/ieee1275/grub-ofpathname.c: Add missing include.
17632 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17634 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17635 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17638 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17640 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17643 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17645 * util/grub-install.in: Add datarootdir as per automake manual
17647 * util/grub-mknetdir.in: Likewise.
17649 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17651 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17653 * util/grub.d/10_kfreebsd.in: Likewise.
17654 * util/grub.d/10_linux.in: Likewise.
17655 * util/grub.d/10_netbsd.in: Likewise.
17656 * util/grub.d/10_windows.in: Likewise.
17657 * util/grub.d/20_linux_xen.in: Likewise.
17659 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17661 Remove redundant grub_kernel_image_size.
17663 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17665 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17666 the small code. It moves it only by few bytes but simplifies the code.
17667 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17669 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17670 (grub_kernel_image_size): Removed.
17671 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17672 (grub_kernel_image_size): Removed.
17673 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17674 compiled with Apple toolchain.
17675 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17676 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17677 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17678 (grub_total_module_size): Likewise.
17679 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17681 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17682 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17683 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17684 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17685 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17686 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17687 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17688 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17690 (grub_total_module_size): Removed.
17691 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17692 (image_targets): Likewise.
17693 Set .compressed_size to no field on sparc.
17694 (generate_image): Remove kernel_image_size handling.
17696 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17698 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17699 NULL pointer dereference.
17701 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17703 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17704 done with a dedicated section.
17706 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17707 Ensure the correct position of boot_path.
17708 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17709 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17711 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17712 * include/grub/boot.h: Removed. All references removed.
17713 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17715 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17717 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17719 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17722 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17724 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17726 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17728 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17729 Don't add the bogus brackets.
17731 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17735 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17736 * grub-core/Makefile.core.def (exfat): New module.
17737 * grub-core/fs/exfat.c: New file.
17738 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17739 (GRUB_FAT_ATTR_*): Make into an enum.
17740 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17741 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17742 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17743 (GRUB_FAT_MAXFILE): Removed.
17744 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17745 (grub_current_fat_bpb_t): New type.
17746 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17747 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17748 (grub_fat_dir_node_t): New type.
17749 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17750 (fat_log2) [MODE_EXFAT]: Removed.
17751 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17752 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17753 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17754 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17755 (grub_fat_label) [MODE_EXFAT]: New function.
17756 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17757 reserved_first_sector to 0.
17759 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17761 Move grub_reboot out of the kernel.
17763 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17764 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17765 * grub-core/lib/efi/reboot.c: ... here.
17766 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17767 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17768 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17769 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17770 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17771 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17772 * grub-core/lib/ieee1275/reboot.c: ... here.
17773 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17774 * grub-core/lib/mips/arc/reboot.c: ... here.
17775 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17776 * grub-core/lib/mips/loongson/reboot.c: ...here.
17777 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17778 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17779 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17780 * include/grub/i386/reboot.h: New file.
17781 * include/grub/mips/loongson/ec.h: Fix includes.
17782 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17783 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17784 * grub-core/lib/i386/reboot.c: New file.
17786 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17788 Make grub_prefix into module to fix the arbitrary limit and save
17791 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17792 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17793 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17794 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17795 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17796 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17797 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17798 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17799 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17800 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17801 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17802 * include/grub/ia64/efi/kernel.h: Removed.
17803 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17804 (grub_prefix): Removed.
17805 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17806 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17807 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17808 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17809 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17810 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17811 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17812 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17813 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17814 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17815 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17816 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17817 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17818 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17819 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17820 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17821 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17822 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17823 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17824 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17825 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17826 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17827 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17828 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17829 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17830 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17831 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17832 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17833 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17835 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17837 (image_targets): Likewise.
17838 (generate_image): Put prefix as a module.
17840 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17842 Replace grub_module_iterate with FOR_MODULES.
17844 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17845 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17846 (grub_efi_modules_addr): ...this.
17847 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17848 (grub_efi_init): Set grub_modbase.
17849 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17850 (grub_modbase): New variable.
17851 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17852 (grub_modbase): New variable.
17853 (grub_machine_init): Set grub_modbase.
17854 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17855 (grub_modbase): New variable.
17856 (grub_machine_init): Set grub_modbase.
17857 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17858 (grub_modbase): New variable.
17859 (grub_machine_init): Set grub_modbase.
17860 * grub-core/kern/main.c (grub_module_iterate): Remove.
17861 (grub_modules_get_end): Use grub_modbase.
17862 (grub_load_modules): Use FOR_MODULES.
17863 (grub_load_config): Likewise.
17864 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17865 (grub_modbase): New variable.
17866 (grub_machine_init): Set grub_modbase.
17867 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17868 (grub_modbase): New variable.
17869 (grub_machine_init): Set grub_modbase.
17870 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17872 (grub_modbase): New variable.
17873 (grub_machine_init): Set grub_modbase.
17874 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17875 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17876 (grub_module_iterate): Likewise.
17877 (grub_modbase): New variable declaration.
17878 (FOR_MODULES): New macro.
17880 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17882 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17883 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17885 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17887 Fix few obvious type discrepancies.
17889 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17890 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17891 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17893 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17894 and connected types.
17895 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17897 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17898 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17899 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17900 and connected types.
17902 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17904 Fix python 3.x incompatibilities.
17906 * gentpl.py: Put brackets around print strings.
17907 * util/import_gcry.py: Open explicitly as utf-8.
17908 Use in instead of has_key.
17910 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17912 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17913 (GRUB_XFS_INO_AGBITS): Make into inline function.
17914 (GRUB_XFS_INO_INOINAG): Likewise.
17915 (GRUB_XFS_INO_AG): Likewise.
17916 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17917 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17918 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17919 (GRUB_XFS_EXTENT_SIZE): Likewise.
17920 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17921 (GRUB_XFS_NEXT_DIRENT): Likewise.
17922 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17923 (grub_xfs_read_file): Fix offset type.
17925 2011-10-15 Robert Millan <rmh@gnu.org>
17927 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17929 2011-10-15 Robert Millan <rmh@gnu.org>
17931 Fix build problem on FreeBSD and GNU/kFreeBSD.
17933 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17935 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17937 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17939 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17941 (grub_hfsplus_btree_recoffset): Likewise.
17942 (grub_hfsplus_btree_recptr): Likewise.
17943 (grub_hfsplus_find_block): Likewise.
17944 (grub_hfsplus_btree_search): Likewise.
17945 (grub_hfsplus_read_block): Likewise.
17946 (grub_hfsplus_read_file): Likewise.
17947 (grub_hfsplus_mount): Likewise.
17948 (grub_hfsplus_btree_iterate_node): Likewise.
17949 (grub_hfsplus_btree_search): Likewise.
17950 (grub_hfsplus_iterate_dir): Likewise.
17951 (grub_hfsplus_read): A small code simplification.
17953 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17955 * grub-core/kern/emu/hostdisk.c
17956 (convert_system_partition_to_system_disk): Don't assume that children
17957 of mapper nodes are mapper nodes.
17959 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17961 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17962 * include/grub/misc.h (grub_isxdigit): New function.
17963 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17964 switched to grub_isxdigit.
17965 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17966 number starting with a letter.
17968 2011-10-09 Robert Millan <rmh@gnu.org>
17970 LVM support for FreeBSD and GNU/kFreeBSD.
17972 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17974 (LVM_DEV_MAPPER_STRING): Move from here ...
17975 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17976 * util/getroot.c: Include `<grub/util/lvm.h>'.
17977 (grub_util_get_dev_abstraction): Enable
17978 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17979 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17980 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17981 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17983 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17985 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17986 when LVM abstraction is required for ${GRUB_DEVICE}.
17988 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17990 Add support for LZO compression in GRUB:
17991 - import of minilzo library,
17992 - LZO decompression for btrfs,
17993 - lzop files decompression.
17995 * grub-core/io/lzopio.c: New file.
17996 * grub-core/lib/adler32.c: Likewise.
17997 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17998 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17999 * grub-core/lib/minilzo/minilzo.c: Likewise.
18000 * grub-core/lib/minilzo/minilzo.h: Likewise.
18001 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
18002 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
18003 grub-core/lib/minilzo/minilzo.c to common.
18004 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
18005 cflags in cppflags.
18006 * grub-core/Makefile.core.def (btrfs): Likewise.
18007 * grub-core/Makefile.core.def (lzopio): New module.
18008 (adler32): Likewise.
18009 * grub-core/fs/btrfs.c: Include minilzo.h.
18010 (GRUB_BTRFS_COMPRESSION_LZO): New define.
18011 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
18012 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
18013 (grub_btrfs_lzo_decompress): New function.
18014 (grub_btrfs_extent_read): Add support for LZO compression type.
18015 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
18016 (GRUB_USHRT_MAX): Likewise.
18017 (GRUB_UINT_MAX): Likewise.
18018 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
18019 (UINT_MAX): Likewise.
18020 (CHAR_BIT): Likewise.
18021 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
18022 grub-core/lib/posix_wrap/limits.h
18023 (UCHAR_MAX): Likewise.
18024 * include/grub/file.h (grub_file_filter_id): New compression filter
18025 GRUB_FILE_FILTER_LZOPIO.
18026 * include/grub/file.h (grub_file_filter_id): Set
18027 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
18028 * include/grub/types.h (grub_get_unaligned16): New function.
18029 (grub_get_unaligned32): Likewise.
18030 (grub_get_unaligned64): Likewise.
18031 * util/import_gcry.py (cryptolist): Add adler32.
18033 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
18035 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
18036 in perspective decreases the complexity of build system and fixes
18037 compilation right now.
18039 2011-10-01 Ales Nesrsta <starous@volny.cz>
18041 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
18042 (fixed problem related to using UHCI with coreboot).
18044 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18046 * gentpl.py: Use Autogen macros so that the output template file
18047 (Makefile.tpl) size is reduced.
18049 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
18051 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
18054 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18056 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
18057 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
18059 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18061 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
18064 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18066 Remove extra declaration of sleep for mingw32.
18068 * util/misc.c (sleep) [__MINGW32__]: Removed.
18069 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
18071 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
18073 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
18075 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
18077 (NETBSD_BTINFO_BOOTWEDGE): New definition.
18078 (grub_netbsd_btinfo_bootwedge): New struct.
18079 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
18081 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
18083 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
18085 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
18088 2011-09-28 Andreas Born <futur.andy@googlemail.com>
18090 Fix incorrect identifiers in bash-completion.
18092 * util/bash-completion.d/grub-completion.bash.in
18093 (_grub_mkpasswd-pbkdf2): Rename to ...
18094 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
18095 (_grub_script-check): Rename to ...
18096 (_grub_script_check): ... this. All users updated.
18098 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
18100 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
18101 Return 0 if disk isn't biosdisk.
18103 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18105 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
18107 * Makefile.util.def (grub-fstest): Likewise.
18109 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18111 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
18112 Get sector size from disk label.
18114 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
18116 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
18117 */README* as well as README*.
18118 Reported by: Axel Beckert.
18120 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18122 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
18123 case of less than 256 MiB of RAM.
18125 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18127 * grub-core/commands/wildcard.c (make_regex): Handle @.
18129 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18131 * util/grub-install.in: Move cryptodisk logic to appropriate place.
18133 2011-08-21 Szymon Janc <szymon@janc.net.pl>
18135 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
18136 AC_LANG_CONFTEST macros.
18138 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18140 Add grub-fstest option to uncompress data for commands.
18142 * util/grub-fstest.c (uncompress): New var.
18143 (options): New option -u.
18145 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18147 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
18148 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
18150 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18152 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
18153 file type was not recognized correctly (not gzip or corrupted).
18155 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18157 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
18158 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
18160 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18162 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
18164 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18165 video_radeon_fuloong2e.
18166 * grub-core/video/radeon_fuloong2e.c: New file.
18167 * include/grub/video.h (grub_video_id_t): Add new ID
18168 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
18170 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18172 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
18174 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
18175 that PRID matches the detected subplatform and reset the subplatform
18178 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18180 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18182 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18184 Fix PCI iterating on functions >= 4.
18186 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18187 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18189 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18190 (grub_pci_read): Fix bitmask.
18191 (grub_pci_read_word): Likewise.
18192 (grub_pci_read_byte): Likewise.
18193 (grub_pci_write): Likewise.
18194 (grub_pci_write_word): Likewise.
18195 (grub_pci_write_byte): Likewise.
18197 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18199 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18200 can still be specified in TARGET_CFLAGS)
18202 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18204 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18206 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18207 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18208 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18209 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18210 (FULOONG): Rename to ...
18211 (FULOONG2F): ... this. All users updated.
18212 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18213 (machtype_fuloong2f_str): ... this.
18214 (machtype_fuloong2e_str): New string.
18215 Check for machtype_fuloong2e_str.
18216 * grub-core/loader/mips/linux.c (loongson_machtypes)
18217 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18218 * grub-core/term/serial.c (loongson_defserial)
18219 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18220 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18221 loongson_defserial.
18222 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18224 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18225 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18226 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18227 to IMAGE_FULOONG2F_FLASH. All users updated.
18228 (image_targets): Rename images.
18229 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18231 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18233 Make enable of disk cache statistics code configurable.
18235 * configure.ac: --enable-cache-stats added.
18236 * config.h.in (DISK_CACHE_STATS): New define.
18237 * grub-core/Makefile.core.def (cacheinfo): New command.
18238 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18239 * grub-core/commands/cacheinfo.c: New file.
18240 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18241 moved to cacheinfo.c.
18242 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18244 * include/grub/disk.h: Likewise.
18246 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18248 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18249 * grub-core/Makefile.am: Likewise.
18251 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18253 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18256 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18258 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18260 (grub_jfs_lookup_symlink): Use correct starting inode.
18262 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18264 * util/grub-setup.c (main): Add missing gcry initialisation.
18266 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18268 Don't accept text modes on EFI when booting Linux.
18270 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18271 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18273 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18274 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18276 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18277 use of "/path/.." as in grub-install for EFI as well as handling
18278 symlinks correctly.
18279 Fixes Debian bug #637768.
18281 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18283 * util/grub-probe.c: Remove duplicate #include.
18285 2011-08-10 Robert Millan <rmh@gnu.org>
18287 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18289 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18291 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18292 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18294 2011-08-03 Robert Millan <rmh@gnu.org>
18296 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18297 la_array as packed.
18298 Reported by: Zachary Bedell
18300 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18302 * configure.ac: The Loongson port requires grub-mkfont due to its
18303 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18306 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18308 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18309 processing arguments (otherwise help2man fails when GRUB has not yet
18312 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18314 New script grub-mkstandalone.
18316 * Makefile.util.def (grub-mkstandalone): New script.
18317 * docs/man/grub-mkstandalone.h2m: New file.
18318 * util/grub-mkstandalone.in: Likewise.
18320 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18322 Support ATA disks with 4K sectors.
18324 * include/grub/ata.h (grub_ata): New member log_sector_size.
18325 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18326 (grub_ata_identify): Read sector size.
18327 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18329 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18331 * util/grub-install.in: Don't use uhci outside of x86.
18333 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18335 * util/grub-mkrescue.in: Add missing quotes.
18337 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18339 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18342 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18344 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18346 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18348 * include/grub/video.h: add missing EXPORT_FUND on
18349 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18351 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18353 * include/grub/mips/kernel.h: Fix define conflict.
18355 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18357 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18360 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18362 Preferred resolution detection for VBE.
18364 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18365 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18366 the Flat Panel extension, in line with the X.org VESA driver.
18367 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18369 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18370 (grub_vbe_bios_read_edid): Likewise.
18371 (grub_vbe_get_preferred_mode): Likewise.
18372 (grub_video_vbe_setup): When the mode is "auto", try to get the
18373 preferred mode from VBE, and use the largest mode that is no larger
18374 than the preferred mode (some BIOSes expose a preferred mode that is
18375 not in their mode list!). If this fails, fall back to 640x480 as a
18376 safe conservative choice.
18377 (grub_video_vbe_get_edid): New function.
18378 (grub_video_vbe_adapter): Add get_edid.
18379 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18380 (struct grub_video_adapter): Add get_edid.
18381 (grub_video_edid_checksum): Add prototype.
18382 (grub_video_edid_preferred_mode): Likewise.
18383 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18386 * grub-core/commands/videoinfo.c (print_edid): New function.
18387 (grub_cmd_videoinfo): Print EDID if available.
18389 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18390 is more appropriate on a wider range of platforms than 640x480.
18391 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18394 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18396 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18398 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18400 * po/POTFILES.in: Regenerate.
18402 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18404 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18405 incorrect memory usage.
18407 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18409 * util/grub-install.in: Source grub-mkconfig_lib.
18411 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18413 Remove getroot.c from core on emu platform.
18415 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18417 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18419 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18420 * util/getroot.c (get_win32_path): ... here.
18421 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18422 * util/getroot.c (fini_libzfs): ... here.
18423 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18424 * util/getroot.c (grub_get_libzfs_handle): ... here.
18425 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18427 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18428 * grub-core/kern/emu/misc.c
18429 (grub_make_system_path_relative_to_its_root): Moved from here...
18430 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18431 * grub-core/kern/emu/getroot.c: Moved from here ...
18432 * util/getroot.c: ... here. All users updated.
18433 * grub-core/kern/emu/raid.c: Moved from here ...
18434 * util/raid.c: ... here. All users updated.
18436 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18438 * po/POTFILES.in: Regenerate.
18440 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18442 Fix compilation on GNU/Linux.
18444 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18446 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18447 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18448 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18450 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18451 2011-07-07 Michael Gorven <michael@gorven.za.net>
18452 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18454 LUKS and GELI support.
18456 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18457 grub-core/disk/luks.c, grub-core/disk/geli.c,
18458 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18459 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18460 grub-core/lib/arg.c.
18461 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18462 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18463 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18464 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18465 (grub-bin2h): Add libgcry.a.
18466 (grub-mkimage): Likewise.
18467 (grub-mkrelpath): Likewise.
18468 (grub-script-check): Likewise.
18469 (grub-editenv): Likewise.
18470 (grub-mkpasswd-pbkdf2): Likewise.
18471 (grub-pe2elf): Likewise.
18472 (grub-fstest): Likewise.
18473 (grub-mkfont): Likewise.
18474 (grub-mkdevicemap): Likewise.
18475 (grub-probe): Likewise.
18476 (grub-ofpath): Likewise.
18477 (grub-mklayout): Likewise.
18478 (example_unit_test): Likewise.
18479 (grub-menulst2cfg): Likewise.
18480 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18481 * grub-core/Makefile.core.def (cryptodisk): New module.
18484 * grub-core/disk/AFSplitter.c: New file.
18485 * grub-core/disk/cryptodisk.c: Likewise.
18486 * grub-core/disk/geli.c: Likewise.
18487 * grub-core/disk/luks.c: Likewise.
18488 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18490 (grub_util_get_dm_abstraction): New function.
18491 (grub_util_follow_gpart_up): Likewise.
18492 (grub_util_get_geom_abstraction): Likewise.
18493 (grub_util_get_dev_abstraction): Use new functions.
18494 (grub_util_pull_device): Pull GELI and LUKS.
18495 (grub_util_get_grub_dev): Handle LUKS and GELI.
18496 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18497 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18498 (follow_geom_up): Removed.
18499 (grub_util_fd_seek): New function.
18500 (open_device): Use grub_util_fd_seek.
18501 (nread): Rename to ..
18502 (grub_util_fd_read): ... this. All users updated.
18503 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18504 (grub_crypto_cbc_decrypt): Likewise.
18505 (grub_crypto_hmac_write): Likewise.
18506 (grub_crypto_hmac_buffer): Likewise.
18507 (grub_password_get): Extend to util.
18508 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18509 New member modname.
18510 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18511 * include/grub/cryptodisk.h: New file.
18512 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18513 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18515 (grub_util_follow_gpart_up): New proto.
18516 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18517 (grub_util_fd_read): Likewise.
18518 (grub_cryptodisk_cheat_mount): Likewise.
18519 (grub_util_cryptodisk_print_uuid): Likewise.
18520 (grub_util_get_fd_sectors): Likewise.
18521 * util/grub-fstest.c (mount_crypt): New var.
18522 (fstest): Mount crypto if requested.
18523 (options): New option -C.
18524 (argp_parser): Parse -C.
18525 (main): Init and fini gcry.
18526 * util/grub-install.in: Support cryptodisk install.
18527 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18528 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18530 (prepare_grub_to_access_device): Likewise.
18531 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18532 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18533 (probe_cryptodisk_uuid): New function.
18534 (probe_abstraction): Likewise.
18535 (probe): Use new functions.
18536 * util/import_gcry.py: Create Makefile.utilgcry.def.
18537 Add modname member.
18539 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18541 Lazy device scanning.
18543 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18544 (grub-setup): Remove util/raid.c.
18545 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18546 * grub-core/disk/lvm.c (scan_depth): New variable.
18547 (grub_lvm_iterate): Rescan if necessary.
18548 (find_lv): New function based on grub_lvm_open.
18549 (grub_lvm_open): Use find_lv. Rescan on error.
18550 (is_node_readable): New function.
18551 (is_lv_readable): Likewise.
18552 (grub_lvm_scan_device): Skip already found disks.
18553 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18554 Stop if searched device is found and readable.
18555 * grub-core/disk/raid.c (inscnt): New variable.
18556 (scan_depth): Likewise.
18557 (scan_devices): New function based on grub_raid_register. Abort if
18558 looked for device is found.
18559 (grub_raid_iterate): Rescan if needed.
18560 (find_array): NEw function based on -grub_raid_open.
18561 (grub_raid_open): Use find_array and rescan.
18562 (insert_array): Set became_readable_at.
18563 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18564 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18566 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18567 (grub_util_pull_device): New function.
18568 (grub_util_get_grub_dev): Call grub_util_pull_device.
18569 * util/raid.c: Moved to ..
18570 * grub-core/kern/emu/raid.c: ... here.
18571 (grub_util_raid_getmembers): New parameter "bootable".
18572 All users updated. Support 1.x.
18573 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18575 * include/grub/disk.h (grub_disk_pull_t): New enum.
18576 (grub_disk_dev): Change iterate prototype.
18578 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18580 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18581 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18582 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18583 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18585 * include/grub/util/raid.h: Removed.
18587 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18589 * po/POTFILES.in: Regenerate.
18591 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18593 Unify sparc init with other ieee1275.
18595 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18596 instead of kern/sparc64/ieee1275/init.c.
18597 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18598 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18599 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18600 grub/machine/kernel.h.
18601 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18602 (grub_claim_heap) [__sparc__]: Use sparc version.
18603 (grub_machine_init): Moved args parsing to
18604 (grub_parse_cmdline): ...this.
18605 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18606 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18608 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18610 Move BOOTP to separate file.
18612 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18613 * grub-core/net/net.c: Move all BOOTP functions to
18614 * grub-core/net/bootp.c: ... here.
18616 Use frame interface on PXE.
18618 * grub-core/Makefile.core.def (pxecmd): Removed.
18619 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18620 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18621 * grub-core/i386/pc/pxe.c: Moved from here ...
18622 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18623 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18624 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18626 EFI network support.
18628 * grub-core/Makefile.core.def (efinet): New module.
18629 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18631 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18633 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18634 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18635 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18636 * grub-core/net/drivers/efi/efinet.c: New file.
18637 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18638 (grub_efi_net_config): New extern var.
18640 Various cleanups and bugfixes.
18642 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18644 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18645 disk declared as partition.
18646 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18648 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18649 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18650 (grub_debug_zalloc): Likewise.
18651 (grub_debug_realloc): Likewise.
18652 (grub_debug_memalign): Likewise.
18653 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18654 Check that target is IPv4.
18655 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18656 local-mac-address as fallback.
18657 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18659 * grub-core/net/ip.c (ipchksum): Rename to ...
18660 (grub_net_ip_chksum): ... this. All users updated.
18661 (grub_net_recv_ip_packets): Special handling for DHCP.
18662 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18664 Unify prefix handling
18666 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18667 (grub_machine_get_bootlocation): ... this.
18668 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18669 (grub_machine_get_bootlocation): ... this.
18670 (grub_prefix): New variable.
18672 (root_dev): New variable.
18674 (main): Use new variables.
18675 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18677 (grub_machine_get_bootlocation): ... this.
18678 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18679 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18680 (grub_machine_get_bootlocation): ... this.
18681 (grub_machine_set_prefix): Removed.
18682 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18683 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18685 (grub_machine_get_bootlocation): ... this.
18686 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18687 (grub_set_prefix_and_root): ... this. All users updated.
18688 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18690 (grub_machine_get_bootlocation): ... this.
18691 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18692 (grub_machine_get_bootlocation): New proto.
18693 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18695 Less intrusive and more reliable seek on network implementation.
18697 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18698 (grub_file_seek): Don't call grub_file_net_seek.
18699 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18700 (grub_net_fs_read_real): .. this.
18701 (grub_net_seek_real): Use net->offset.
18702 (grub_net_fs_read): Seek if necessary.
18704 Unify IEEE1275 netwotk config with the other platforms.
18706 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18708 (grub_machine_get_bootlocation): Support network.
18709 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18710 Support type and device parsing.
18711 (grub_ieee1275_get_device_type): New function.
18712 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18714 (grub_ieee1275_net_config_real): ... this.
18715 (grub_ofnet_probecards): Removed.
18716 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18717 * include/grub/ieee1275/ofnet.h: Removed.
18718 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18720 (grub_ieee1275_get_device_type): New function.
18722 Unify network device closing across platforms and make more robust.
18724 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18726 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18728 * grub-core/net/net.c (grub_net_network_level_interface_register):
18730 (grub_net_card_unregister): Close all interfaces.
18731 (receive_packets): Don't poll if no iterfaces are registered.
18733 (grub_net_fini_hw): New function.
18734 (grub_net_restore_hw): Likewise.
18735 (fini_hnd): New variable.
18736 (GRUB_MOD_INIT): Register preboot hook.
18737 (GRUB_MOD_FINI): Run and unregister preboot hook.
18739 Poll network cards when idle.
18741 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18742 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18743 * grub-core/net/net.c (receive_packets): Save last poll time.
18744 (grub_net_poll_cards_idle_real): New function.
18745 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18746 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18747 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18749 Rename ofnet interfaces.
18751 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18752 (grub_ofnet_findcards): Use ofnet_%s names.
18754 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18756 Cleanup socket opening.
18758 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18759 (grub_net_fs_close): Likewise.
18760 (grub_net_fs_read_real): Use eof member.
18761 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18762 (+grub_net_udp_close): New inline function.
18764 * include/grub/net/tftp.h: Moved to the top of ...
18765 * grub-core/net/tftp.c: ... here.
18766 * include/grub/net/ip.h: Moved mostly to the top of ...
18767 * grub-core/net/ip.c: ... here.
18768 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18769 * grub-core/net/ethernet.c: ... here.
18771 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18773 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18776 * include/grub/net/ip.h (ipv4_ini): Removed.
18777 (ipv4_fini): Likewise.
18779 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18780 (grub_net_send_ip_packets): Likewise.
18782 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18784 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18785 grub_read_cmos prototype.
18787 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18789 VGA text support in qemu-mips
18791 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18792 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18793 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18795 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18796 * grub-core/kern/vga_init.c: ... this.
18797 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18798 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18799 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18801 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18802 GRUB_MACHINE_PCI_IO_BASE.
18804 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18806 MIPS qemu flash support.
18808 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18810 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18811 (grub_machine_init): Probe memory if its size isn't known.
18812 * util/grub-mkimage.c (image_targets): Add flash targets.
18813 (generate_image): Handle flash targets.
18815 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18817 MIPS qemu at_keyboard support.
18819 * gentpl.py (videoinkernel): Add qemu-mips.
18820 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18821 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18822 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18824 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18825 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18826 * grub-core/term/serial.c (grub_serial_register)
18827 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18829 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18831 CMOS support on sparc.
18833 * gentpl.py (cmos): Add powerpc and sparc.
18834 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18836 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18837 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18838 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18839 grub_set_datetime_cmos.
18840 * grub-core/lib/ieee1275/cmos.c: New file.
18841 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18842 (find_rtc): Set no_ieee1275_rtc on error.
18843 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18844 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18845 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18846 fail. Move value to argument. All users updated
18847 (grub_cmos_write): Likewise.
18848 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18849 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18850 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18851 grub_get_datetime_cmos and grub_set_datetime_cmos.
18853 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18855 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18856 sourcing grub-mkconfig_lib.
18857 * util/update-grub_lib.in: Likewise.
18858 * util/grub.d/00_header.in: Likewise.
18859 * util/grub.d/10_hurd.in: Likewise.
18860 * util/grub.d/10_kfreebsd.in: Likewise.
18861 * util/grub.d/10_linux.in: Likewise.
18862 * util/grub.d/10_netbsd.in: Likewise.
18863 * util/grub.d/10_windows.in: Likewise.
18864 * util/grub.d/20_linux_xen.in: Likewise.
18865 * util/grub.d/30_os-prober.in: Likewise.
18867 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18869 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18870 default_bg_color rather than black.
18871 (grub_gfxterm_fullscreen): Likewise.
18872 (grub_gfxterm_background_color_cmd): Save new background color in
18875 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18877 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18879 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18881 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18884 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18886 Chainloading on coreboot support.
18888 * grub-core/Makefile.core.def (chain): Add coreboot.
18889 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18891 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18893 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18896 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18898 Implement time command.
18900 * grub-core/Makefile.core.def (time): New module.
18901 * grub-core/commands/time.c: New file.
18902 * grub-core/script/parser.y: Remove "time" keyword.
18903 * grub-core/script/yylex.l: Likewise.
18905 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18907 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18909 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18911 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18912 when handling leftovers.
18914 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18916 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18917 so that help2man doesn't fail.
18919 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18921 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18922 type in pointers on sparc64.
18923 (get_card_packet): Likewise.
18925 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18927 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18929 (grub_cmd_videoinfo): Fetch current video mode.
18931 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18933 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18934 because of underlying system restrictions.
18936 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18938 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18941 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18943 Coreboot video support.
18945 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18947 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18948 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18950 * grub-core/kern/i386/int.S: ... here.
18951 * grub-core/video/i386/pc/vbe.c: Updated includes.
18952 * grub-core/video/i386/pc/vga.c: Likewise.
18953 * include/grub/i386/coreboot/memory.h
18954 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18955 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18956 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18957 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18958 Disable interrupts.
18959 * include/grub/i386/pc/vga.h: Removed. All users updated.
18961 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18963 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18964 definitions for dprintf.
18965 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18967 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18969 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18971 (get_card_packet): Likewise.
18973 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18975 Display the path of the file when file is not found
18977 * grub-core/fs/fat.c: Display the filename when file is not found.
18978 * grub-core/fs/fshelp.c: Likewise.
18979 * grub-core/fs/hfs.c: Likewise.
18980 * grub-core/fs/jfs.c: Likewise.
18981 * grub-core/fs/minix.c: Likewise.
18982 * grub-core/fs/ufs.c: Likewise.
18983 * grub-core/fs/btrfs.c: Likewise.
18984 * grub-core/commands/i386/pc/play.c: Likewise.
18986 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18988 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18989 pointer checks before calling grub_free().
18990 * grub-core/commands/wildcard.c (match_devices): Likewise.
18991 * grub-core/commands/wildcard.c (match_files): Likewise.
18992 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18993 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18994 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18995 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18996 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18997 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18998 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18999 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
19000 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
19002 2011-06-25 Patrick <p55@mailinator.com>
19004 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
19006 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
19008 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
19009 (grub_pxe_send): Likewise.
19010 (GRUB_MOD_INIT): Fix types.
19012 2011-06-24 Szymon Janc <szymon@janc.net.pl>
19014 * grub-core/io/xzio.c: Fix code style issues
19016 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19017 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
19019 Network infrastructure.
19020 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
19022 * include/grub/net/arp.h: New file.
19023 * include/grub/net/device.h: Likewise.
19024 * include/grub/net/ethernet.h: Likewise.
19025 * include/grub/net/ip.h: Likewise.
19026 * include/grub/net/netbuff.h: Likewise.
19027 * include/grub/net/tftp.h: Likewise.
19028 * include/grub/net/udp.h: Likewise.
19029 * include/grub/ieee1275/ofnet.h: Likewise.
19030 * include/grub/emu/export.h: Likewise.
19031 * include/grub/net.h: Likewise.
19032 * grub-core/net/arp.c: Likewise.
19033 * grub-core/net/ethernet.c: Likewise.
19034 * grub-core/net/ip.c: Likewise.
19035 * grub-core/net/udp.c: Likewise.
19036 * grub-core/net/tftp.c: Likewise.
19037 * grub-core/net/netbuff.c: Likewise.
19038 * grub-core/net/net.c: Likewise.
19039 * grub-core/net/drivers/emu/emunet.c: Likewise.
19040 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
19041 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
19043 * grub-core/Makefile.core.def (net): New module.
19046 (emunet): Likewise.
19047 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
19049 * grub-core/kern/device.c (grub_net_open) : New variable.
19050 (grub_device_open): Handle network device.
19051 (grub_device_close): Likewise.
19052 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
19053 (grub_grubnet_fini): Likewise.
19054 (grub_file_seek): Seek in network device.
19055 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
19056 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
19058 (grub_machine_fini): Call grub_grubnet_fini.
19059 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
19061 (grub_ieee1275_get_aliasdevname): New function.
19062 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
19063 Add unofficial Solaris network info.
19064 (grub_multiboot_make_mbi): Likewise.
19065 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
19066 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
19067 * include/grub/device.h (grub_fs): Removed.
19068 * include/grub/err.h (grub_err_t): Add network-related values.
19069 * include/grub/i386/pc/pxe.h: Removed bootp parts.
19070 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
19071 (grub_ieee1275_get_aliasdevname): New proto.
19072 * include/grub/net.h: Rewritten.
19074 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19076 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
19079 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19081 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
19082 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
19083 it truncates the output.
19084 Reported by: Ximin Luo.
19086 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19088 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
19090 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19092 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
19093 partmap before abstraction.
19095 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
19097 * util/grub-mkconfig_lib.in: Add missing quotes.
19099 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19101 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
19102 old method if mountinfo would return /dev/root and /dev/root doesn't
19105 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19109 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
19110 (decomp_table): Add zlib entries.
19111 (zio_read): USe 8 bits for compression function rather than 3.
19112 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
19114 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19116 * grub-core/disk/ahci.c: Add missing license statements.
19117 * grub-core/fs/romfs.c: Likewise.
19118 * grub-core/lib/ia64/setjmp.S: Likewise.
19119 * grub-core/loader/i386/pc/freedos.c: Likewise.
19120 * grub-core/loader/ia64/efi/linux.c: Likewise.
19121 * grub-core/video/colors.c: Likewise.
19122 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
19124 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19128 * grub-core/Makefile.core.def (ata_pthru): Removed.
19129 (ahci): New module.
19131 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
19133 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
19135 (grub_hdparm_do_check_powermode_cmd): Likewise.
19136 (grub_hdparm_do_smart_cmd): Likewise.
19137 (grub_hdparm_set_val_cmd): Likewise.
19138 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
19139 * grub-core/disk/ahci.c: New file.
19140 * grub-core/disk/ata.c: Factor out the low-level part into ...
19141 * grub-core/disk/pata.c: ... here.
19142 * grub-core/disk/ata_pthru.c: Contents moved to ...
19143 * grub-core/disk/pata.c: ... here.
19144 * grub-core/disk/scsi.c (grub_scsi_names): New array.
19145 (grub_scsi_iterate): Use grub_scsi_names.
19146 (grub_scsi_open): Likewise.
19147 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
19148 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
19149 (grub_ata_regs_t): New struct.
19150 (grub_disk_ata_pass_through_parms): Likewise.
19151 (grub_ata_device): Renamed to ...
19152 (grub_ata): ... this.
19153 (grub_ata_dev): New struct.
19154 Removed all low-level inline functions.
19155 * include/grub/scsi.h: Add PATA and AHCI subsystems.
19156 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
19157 iterate hooks and open. All users updated.
19158 * util/grub-install.in: Handle AHCI disk module.
19160 2011-06-23 Szymon Janc <szymon@janc.net.pl>
19162 Add support for DRI and RSTn markers in JPEG files.
19164 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
19165 (JPEG_MARKER_RST0): Likewise.
19166 (JPEG_MARKER_RST1): Likewise.
19167 (JPEG_MARKER_RST2): Likewise.
19168 (JPEG_MARKER_RST3): Likewise.
19169 (JPEG_MARKER_RST4): Likewise.
19170 (JPEG_MARKER_RST5): Likewise.
19171 (JPEG_MARKER_RST6): Likewise.
19172 (JPEG_MARKER_RST7): Likewise.
19173 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
19174 (grub_jpeg_decode_dri): New function.
19175 (grub_jpeg_decode_sos): Move image data related part into
19176 grub_jpeg_decode_data function.
19177 (grub_jpeg_decode_data): New function.
19178 (grub_jpeg_reset): New function.
19179 (grub_jpeg_decode_jpeg): Handle new markers.
19181 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19183 * util/ieee1275/ofpath.c (check_sas): Close fd.
19184 (main): Free of_path.
19185 Reported by: David Volgyes <dvolgyes>.
19187 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19189 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19190 Reported by: David Volgyes <dvolgyes>.
19192 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19194 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19196 Reported by: David Volgyes <dvolgyes>.
19198 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19200 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19202 Reported by: David Volgyes <dvolgyes>.
19204 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19206 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19207 Prevent memory leak.
19209 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19211 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19212 (main): Close file.
19213 Reported by: David Volgyes <dvolgyes>.
19215 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19217 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19218 to continue if allocation is failed.
19220 Reported by: David Volgyes <dvolgyes>.
19222 2011-06-23 David Volgyes <dvolgyes>
19224 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19227 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19229 Fix spurious warning.
19231 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19232 (acorn_partition_map_find): Use .bin member.
19234 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19236 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19237 /dev/root as a valid device.
19239 2011-06-23 Jim Meyering <meyering@redhat.com>
19241 Avoid NULL deref in grub_device_open.
19243 * grub-core/kern/device.c (grub_device_open): Don't dereference
19244 a NULL pointer upon failed grub_env_get.
19246 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19248 Support non-512B sectors and agglomerate reads.
19250 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19251 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19252 (disk_io_guid): Removed.
19253 (make_devices): Locate solely by BlockIO.
19254 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19255 (grub_efidisk_read): Use read_blocks.
19256 (grub_efidisk_write): Use write_blocks.
19257 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19259 (get_safe_sectors): Handle non-512B sectors.
19260 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19262 (grub_biosdisk_write): Handle non-512B sectors.
19263 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19264 (grub_scsi_read): Remove special non-512B block handling (now handled
19266 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19267 and do sanity checks.
19268 (grub_disk_adjust_range): Handle non-512B sectors.
19269 (transform_sector): New function.
19270 (grub_disk_read_small): Likewise.
19271 (grub_disk_read): Rewritten.
19272 (grub_disk_write): Handle non-512B sectors.
19273 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19275 (open_device): Use log_sector_size.
19276 (grub_util_biosdisk_read): Likewise.
19277 (grub_util_biosdisk_write): Likewise.
19278 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19280 (pc_partition_map_embed): Likewise.
19281 * include/grub/disk.h (grub_disk): New field log_sector_size.
19282 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19283 (GRUB_DISK_CACHE_BITS): Increased to 6.
19284 * util/grub-fstest.c (fstest): New command testload.
19285 (argp_parser): Likewise.
19287 2011-06-16 Robert Millan <rmh@gnu.org>
19289 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19290 `ata' driver on kernel of FreeBSD 9.
19292 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19293 (get_ataraid_disk_name): New functions.
19294 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19295 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19296 get_ataraid_disk_name() and get_ada_disk_name().
19298 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19300 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19303 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19305 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19306 `ftp.gnu.org' for `alpha.gnu.org'.
19308 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19310 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19311 partitions under /dev/disk/by-id/.
19313 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19315 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19316 after ten consecutive open failures. Scanning all the way up to
19317 10000 is excessive and can cause serious performance problems in
19318 some configurations.
19319 Fixes Ubuntu bug #787461.
19321 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19323 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19326 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19327 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19329 Don't stat devices unless we have to.
19331 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19332 dir == /dev/mapper.
19333 (grub_guess_root_device): Use already known os_dev if possible.
19334 * grub-core/kern/emu/hostdisk.c
19335 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19336 if device is known to be a dm one.
19338 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19340 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19341 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19342 Reported by: Pawel Tecza.
19344 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19346 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19347 (lsefisystab): Likewise.
19349 (lsefimmap): Likewise.
19350 (hdparm): Enable on qemu-mips.
19351 (setjmp): Add ia64 nodist.
19352 (serial): Simplify tags.
19354 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19356 * Makefile.util.def (grub-ofpathname): Install manual page.
19358 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19360 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19362 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19364 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19366 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19368 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19371 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19373 Use full 64-bit division.
19375 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19376 (grub_divmod64): ... this.
19377 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19380 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19382 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19385 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19387 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19388 to avoid accidents when debugging with 'sh -x'.
19389 * grub-core/gensyminfo.sh.in: Likewise.
19390 * tests/example_scripted_test.in: Likewise.
19391 * tests/grub_cmd_regexp.in: Likewise.
19392 * tests/grub_script_blanklines.in: Likewise.
19393 * tests/grub_script_dollar.in: Likewise.
19394 * tests/grub_script_expansion.in: Likewise.
19395 * tests/grub_script_final_semicolon.in: Likewise.
19396 * tests/partmap_test.in: Likewise.
19397 * tests/util/grub-shell-tester.in: Likewise.
19398 * tests/util/grub-shell.in: Likewise.
19400 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19402 Move gfxmenu color handling to video, so that gfxterm can use it
19405 * grub-core/gfxmenu/named_colors.c: Move to ...
19406 * grub-core/video/colors.c: ... here. Rename
19407 grub_gui_get_named_color to grub_video_get_named_color.
19408 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19409 * grub-core/video/colors.c (my_isxdigit): ... here.
19410 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19412 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19413 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19415 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19417 * include/grub/gui.h (grub_gui_color_t): Move to ...
19418 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19419 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19420 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19421 * include/grub/gui.h (grub_gui_map_color): Move to ...
19422 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19423 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19425 * include/grub/video.h (grub_video_get_named_color): ... here.
19426 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19427 * include/grub/video.h (grub_video_parse_color): ... here.
19429 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19431 (gfxmenu): Remove gfxmenu/named_colors.c.
19432 (video) [videomodules]: Add video/colors.c.
19434 Add a background_color command.
19436 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19438 (GRUB_MOD_INIT): Register background_color command.
19439 (GRUB_MOD_FINI): Unregister background_color command.
19440 (redraw_screen_rect): Allow blend/replace of text layer to be
19441 controlled independently from whether there is a background bitmap.
19442 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19445 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19447 Patch BPB in ntldr and chainloader --bpb.
19449 * grub-core/fs/fat.c: Include grub/fat.h.
19450 (grub_fat_bpb): Moved to ...
19451 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19452 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19454 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19456 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19458 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19460 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19461 (GRUB_MOD_INIT): Show --bpb.
19462 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19463 * grub-core/normal/main.c (features): New variable.
19464 (GRUB_MOD_INIT): Set feature_* variables.
19465 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19467 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19469 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19471 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19474 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19476 FreeDOS direct loading support.
19478 * docs/grub.texi (Supported OS): Add FreeDOS.
19479 * grub-core/Makefile.core.def (freedos): New module.
19480 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19482 (grub_relocator16_boot): Handle %ebx.
19483 * grub-core/lib/i386/relocator16.S: Likewise.
19484 * grub-core/loader/i386/pc/freedos.c: New file.
19486 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19488 Long Linux command line support.
19490 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19491 (maximal_cmdline_size): New variable.
19492 (allocate_pages): Use maximal_cmdline_size.
19493 (grub_cmd_linux): Set and use maximal_cmdline_size.
19494 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19495 (allocate_pages): Use maximal_cmdline_size.
19496 (grub_cmd_linux): Set and use maximal_cmdline_size.
19497 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19498 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19501 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19502 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19504 Improve devmapper support
19506 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19507 (grub_util_is_lvm): New function.
19508 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19509 than lvm if not dmraid.
19510 Handle mapped md nodes.
19511 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19512 (grub_util_device_is_mapped): ... this. Make always available. All users
19514 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19515 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19517 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19519 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19521 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19523 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19524 * grub-core/modinfo.sh.in: New file.
19525 * grub-core/Makefile.core.def (modinfo.sh): New script.
19526 * util/grub-mknetdir.in: Use modinfo.sh.
19527 * util/grub-mkrescue.in: Likewise.
19529 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19531 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19532 Fix potential usage of Elf32 instead of Elf64 when compiling on
19533 32-bit architecture. Add endianness macros while on it.
19535 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19537 Use mipsel- rather than mips- in directories involving mipsel ports to
19538 allow both endiannesses coexist.
19540 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19541 mips. All conditions adjusted.
19542 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19544 * util/grub-install.in: Adjust conditions to take renaming into account.
19545 * util/grub-mkimage.c (image_targets): Likewise. New target
19546 mips-qemu_mips-elf for bigendian mips.
19548 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19550 Avoid unnecessary copying on MIPS.
19552 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19553 early if src == dest.
19554 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19555 compression is none.
19557 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19559 Reduce memory footprint on SGI by putting modules before the kernel
19560 as opposed to after.
19562 * grub-core/Makefile.core.def (kernel): Increase linking address.
19563 (none_decompress): Likewise.
19564 (xz_decompress): Likewise.
19565 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19567 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19569 (grub_arch_modules_addr): New function.
19570 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19571 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19572 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19574 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19575 (grub_total_modules_size): ... this. Make global.
19576 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19577 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19579 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19580 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19581 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19582 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19583 * util/grub-mkimage.c (image_target_desc): New flag
19584 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19585 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19586 (generate_image): Handle images with modules before kernel.
19588 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19590 Prevent potential loss of memory map by overwrite on qemu-mips.
19592 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19593 Save ram size in $s4.
19594 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19595 All users changed to grub_arch_memsize.
19596 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19598 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19599 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19600 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19603 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19605 * .bzrignore: Remove grub-dumpbios.
19607 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19609 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19610 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19611 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19612 existing options which append).
19613 * docs/grub.texi (Simple configuration): Document new options.
19614 Reported by: Ian Jackson. Fixes Debian bug #617538.
19616 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19618 * util/grub-fstest.c (cmd_cat): New function.
19619 (fstest): Handle CMD_CAT.
19620 (options): Add cat.
19621 (argp_parser): Handle cat.
19623 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19625 * Makefile.util.def (grub-bin2h): Don't install.
19626 * docs/man/grub-bin2h.h2m: Remove.
19628 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19630 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19633 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19635 Reenable qemu-mips port.
19637 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19638 Fix small arc bug while on it.
19639 * gentpl.py: Handle qemu_mips.
19640 * grub-core/Makefile.am: Likewise.
19641 * grub-core/Makefile.core.def: Likewise.
19642 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19643 inappropriate includes.
19644 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19645 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19646 * grub-core/kern/main.c (grub_modules_get_end)
19647 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19648 * grub-core/kern/mips/qemu-mips: Moved to ..
19649 * grub-core/kern/mips/qemu_mips: ... this.
19650 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19651 (grub_machine_init): Call terminfo_init and serial_init.
19652 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19653 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19655 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19657 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19658 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19659 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19660 * include/grub/mips/qemu_mips/cmos.h: New file.
19661 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19662 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19664 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19665 Use correct mips-style address.
19666 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19667 (GRUB_TICKS_PER_SECOND): Removed.
19668 (grub_get_rtc): Likewise.
19669 (grub_cpu_idle): Likewise.
19670 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19672 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19673 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19674 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19675 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19676 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19677 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19678 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19679 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19681 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19685 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19686 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19688 * configure.ac: New target mips-arc.
19689 * gentpl.py: Likewise.
19690 * grub-core/Makefile.am: Likewise.
19691 * grub-core/Makefile.core.def: Likewise.
19692 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19693 (none_decompress): Likewise.
19694 (lsdev): New module.
19695 (datetime): Use lib/arc/datetime.c on ARC.
19696 (part_dvh): New module.
19697 * grub-core/commands/arc/lsdev.c: New file.
19698 * grub-core/disk/arc/arcdisk.c: Likewise.
19699 * grub-core/kern/mips/arc/init.c: Likewise.
19700 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19702 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19704 (grub_arch_dl_relocate_symbols): Likewise.
19705 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19706 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19707 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19709 * grub-core/lib/arc/datetime.c: New file.
19710 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19711 pci.h on non-loongson.
19712 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19713 (grub_linux_boot): Set unused registers to 0.
19714 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19715 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19716 * grub-core/mmap/mips/uppermem.c: ...here.
19717 * grub-core/partmap/dvh.c: New file.
19718 * grub-core/term/arc/console.c: Likewise.
19719 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19720 (grub_terminfo_set_current): Add terminal "arc".
19721 (grub_terminfo_readkey): Support ARC sequences.
19722 * include/grub/arc/arc.h: New file.
19723 * include/grub/arc/console.h: Likewise.
19724 * include/grub/disk.h (grub_disk_dev_id): Add
19725 GRUB_DISK_DEVICE_ARCDISK_ID.
19726 * include/grub/mips/arc/kernel.h: New file.
19727 * include/grub/mips/arc/memory.h: Likewise.
19728 * include/grub/mips/arc/time.h: Likewise.
19729 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19730 * include/grub/mips/kernel.h (grub_halt): ... here.
19731 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19733 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19734 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19735 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19736 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19738 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19740 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19741 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19742 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19743 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19744 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19745 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19746 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19747 (grub_phys_addr_t): Moved from here ...
19748 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19749 (grub_vtop): Moved from here ...
19750 * include/grub/mips/memory.h (grub_vtop): ... here.
19751 (grub_map_memory): Moved from here ...
19752 * include/grub/mips/memory.h (grub_map_memory): ... here.
19753 (grub_unmap_memory): Moved from here ...
19754 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19755 (grub_machine_mmap_iterate): Moved from here ...
19756 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19757 (grub_mmap_get_lower): Moved from here ...
19758 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19759 (grub_mmap_get_upper): Moved from here ...
19760 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19761 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19763 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19764 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19766 * include/grub/mips/time.h (grub_get_rtc): ... here.
19767 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19769 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19770 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19772 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19773 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19775 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19776 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19777 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19778 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19779 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19780 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19781 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19782 (GRUB_MACHINE_LINK_ADDR): Likewise.
19783 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19785 * util/grub-install.in: Run dvhtool on ARC.
19786 * util/grub-mkimage.c (image_targets): Add mips-arc.
19787 (generate_image): Handle ECOFF output for mips-arc.
19789 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19791 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19794 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19796 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19797 after enabling port.
19799 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19801 Skip incorrect USB devices.
19803 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19805 * include/grub/usb.h (grub_usb_err_t): New enum value
19806 GRUB_USB_ERR_BADDEVICE.
19808 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19810 Fuloong video init support.
19812 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19814 (grub_vga_read_arx): New function.
19815 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19817 (framebuffer): New members io, mmioptr and mmiobase.
19818 (read_sis_cmd): New function.
19819 (write_sis_cmd): Likewise.
19820 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19821 rather than 640x400.
19822 * grub-core/video/sis315_init.c: New file.
19824 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19826 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19828 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19829 to grub_dl_register_symbol.
19831 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19833 Fix compilation errors.
19835 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19836 potentially unused.
19837 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19838 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19839 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19840 to loongson machines.
19842 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19844 Several FS mtime support.
19846 * grub-core/fs/affs.c (grub_affs_time): New struct.
19847 (grub_affs_file): New field mtime.
19848 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19849 type. Removed 'size'. New field 'di'. All users updated.
19850 (grub_affs_mount): Simplify checsum checking.
19851 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19852 (grub_affs_dir): Handle mtime.
19853 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19854 (grub_cpio_dir): Likewise.
19855 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19856 (grub_hfs_filerec): New field mtime.
19857 (grub_hfs_dir): Handle mtime.
19858 (grub_hfs_mtime): New function.
19859 (grub_hfs_fs): Register grub_hfs_mtime.
19860 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19861 (grub_iso9660_dir): New field mtime.
19862 (grub_fshelp_node): New field dirent.
19863 (iso9660_to_unixtime): New function.
19864 (iso9660_to_unixtime2): Likewise.
19865 (grub_iso9660_read_symlink): Use node->dirent.
19866 (grub_iso9660_iterate_dir): Likewise.
19867 (grub_iso9660_dir): Set mtime.
19868 (grub_iso9660_mtime): New function.
19869 (grub_iso9660_fs): Register grub_iso9660_mtime.
19870 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19871 (grub_jfs_inode): New fields atime, ctime and mtime.
19872 (grub_jfs_dir): Set mtime.
19873 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19874 * grub-core/fs/ntfs.c (list_file): Set mtime.
19875 (grub_ntfs_dir): Likewise.
19876 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19877 (grub_reiserfs_iterate_dir): Set mtime.
19878 (grub_reiserfs_dir): Likewise.
19879 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19880 (grub_fshelp_node): Likewise.
19881 (grub_sfs_iterate_dir): Set mtime.
19882 (grub_sfs_dir): Likewise.
19883 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19884 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19885 (grub_xfs_inode): New fields atime, mtime, ctime.
19886 (grub_xfs_dir): Set mtime.
19887 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19888 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19889 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19891 Support UDF symlinks.
19893 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19894 (grub_ufs_read_symlink): New function. All users updated.
19896 Check amiga partmap checksum.
19898 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19899 (grub_amiga_partition): Likewise.
19900 (amiga_partition_map_checksum): New function.
19901 (amiga_partition_map_iterate): Check checksum.
19903 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19907 * Makefile.util.def (libgrubmods.a): Add romfs.
19908 * grub-core/Makefile.core.def (romfs): New module.
19909 * grub-core/fs/romfs.c: New file.
19911 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19913 Squashfs v4 support.
19915 * Makefile.util.def (libgrubmods.a): Add squash4.
19916 * grub-core/Makefile.core.def (squash4): New module.
19917 * grub-core/fs/squash4.c: New file.
19918 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19919 disk_input_start, disk_input.
19920 (get_byte): Handle disk_input.
19921 (grub_zlib_disk_read): New function.
19922 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19924 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19925 2011-05-15 Feiran Zheng <famcool@gmail.com>
19927 * Makefile.util.def (libgrubmods.a): Add minix3.
19928 * grub-core/Makefile.core.def (minix3): New module.
19929 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19930 (GRUB_MINIX_BSIZE): Removed.
19931 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19932 (grub_minix_ino_t): New type.
19933 (grub_minix_le_to_cpu_ino): New macro.
19934 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19935 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19936 (grub_minix_data): New field block_size.
19937 (grub_minix_read_file): Handle 64-bit correctly.
19938 * grub-core/fs/minix3.c: New file.
19940 2011-05-15 Tristan Gingold <gingold@free.fr>
19941 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19942 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19946 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19947 * configure.ac: Add ia64-efi target.
19948 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19949 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19950 * gentpl.py: Add ia64_efi platform.
19951 Rename x86_efi to efi and Add ia64-efi. All users updated.
19952 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19953 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19954 Remove kern/generic/rtc_get_time_ms.c on EFI.
19955 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19956 kern/ia64/dl_helper.c on ia64-efi.
19957 Add kern/emu/cache.c on emu.
19958 (linux): Use on loader/ia64/efi/linux.c on ia64.
19959 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19960 whether symbol is a function.
19961 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19962 (grub_symbol): New field 'isfunc'.
19963 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19964 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19965 (grub_dl_load_segments): Place all sections into the same region.
19966 [__ia64__]: Create trampolines and got.
19967 [GRUB_MACHINE_EMU]: Call mprotect.
19968 (grub_dl_resolve_symbols): Resolve symbol type as well.
19969 [__ia64__]: Create function descriptors.
19970 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19971 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19972 (grub_get_rtc): New function.
19973 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19974 * grub-core/kern/emu/cache.S: Renamed to ...
19975 * grub-core/kern/emu/cache_s.S: ... this.
19976 [__ia64__]: Add a nop.
19977 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19978 [__ia64__]: New function.
19979 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19980 * grub-core/kern/ia64/dl.c: New file.
19981 * grub-core/kern/ia64/dl_helper.c: Likewise.
19982 * grub-core/kern/ia64/efi/init.c: New file.
19983 * grub-core/kern/ia64/efi/startup.S: Likewise.
19984 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19985 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19986 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19987 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19988 * grub-core/loader/ia64/efi/linux.c: New file.
19989 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19990 (GRUB_MOD_DEP): Likewise.
19991 (grub_dl) [__ia64__]: New fields got and tramp.
19992 (grub_dl): New field 'base'.
19993 (grub_dl_register_symbol): New argument isfunc. All users updated.
19994 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19995 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19996 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19997 (grub_ia64_dl_get_tramp_got_size): New proto.
19998 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19999 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
20000 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
20001 * include/grub/efi/api.h: Skip call wrappers on ia64.
20002 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
20003 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
20004 * include/grub/elf.h (ELF_ST_INFO): New definition.
20005 * include/grub/ia64/efi/kernel.h: New file.
20006 * include/grub/ia64/efi/memory.h: Likewise.
20007 * include/grub/ia64/efi/time.h: Likewise.
20008 * include/grub/ia64/kernel.h: Likewise.
20009 * include/grub/ia64/setjmp.h: Likewise (from glibc).
20010 * include/grub/ia64/time.h: New file.
20011 * include/grub/ia64/types.h: Likewise.
20012 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
20013 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
20015 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
20016 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
20017 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
20018 * util/grub-mkimage.c (image_target_desc): New field pe_target.
20020 (EFI64_HEADER_SIZE): New definition. All users updated.
20021 (image_targets): Add ia64-efi.
20022 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
20023 jumpers_addr. All users updated.
20024 Create function descriptors.
20025 (count_funcs): New function.
20026 (unaligned_uint32): New struct.
20027 (MASK20): New definition.
20028 (MASK19): Likewise.
20029 (MASKF21): Likewise.
20030 (add_value_to_slot_20b): New function.
20031 (add_value_to_slot_21_real): Likewise.
20032 (add_value_to_slot_21): Likewise.
20033 (ia64_kernel_trampoline): New struct.
20034 (nopm): New variable.
20036 (make_trampoline): New function.
20037 (relocate_addresses): Handle ia64.
20038 (make_reloc_section): Likewise.
20039 (load_image): Likewise.
20041 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
20043 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
20044 warning. Move variables before code while on it.
20046 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
20050 * configure.ac: Rename yeeloong platform to loongson. All users updated.
20051 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
20052 * grub-core/boot/mips/loongson/fuloong.S: New file.
20053 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
20054 Explicitly init CS5536.
20055 [FULOONG]: Don't use serial until CS5536 is available.
20056 Set GPIO based on dumps.
20057 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
20058 [FULOONG]: Handle GPIO and memory controller differences.
20059 Parse machine type in $a2.
20060 * grub-core/boot/mips/startup_raw.S: Determine and save the
20062 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
20063 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
20064 init on architecture type.
20065 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
20066 SIS315E. Don't init at_keyboard on fuloong.
20067 (grub_halt): Support Fuloong.
20068 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
20069 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
20070 (loongson_machtypes): New array.
20071 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
20073 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
20074 config. All users updated. Handle CS5536 serial.
20075 * grub-core/term/serial.c (grub_serial_register): Conditionalise
20076 default port on machine type. Register serial as inactive.
20077 * grub-core/video/sis315pro.c: New file.
20078 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
20080 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
20081 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
20082 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
20083 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
20084 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
20085 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
20087 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
20088 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
20090 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
20091 (grub_arch_machine): New extern var.
20092 * include/grub/mips/loongson/serial.h
20093 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
20094 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
20095 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
20096 (GRUB_MACHINE_SERIAL_PORT0): ... this.
20097 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
20098 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
20099 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
20100 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
20101 * include/grub/term.h (grub_term_register_input_inactive): New inline
20103 (grub_term_register_output_inactive): Likewise.
20104 * include/grub/video.h (grub_video_driver_id): New value
20105 GRUB_VIDEO_DRIVER_SIS315PRO.
20106 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
20107 New field "names". All users updated.
20108 New field value IMAGE_FULOONG_FLASH.
20109 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
20111 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
20113 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
20114 and add some clarification.
20116 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20118 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
20119 platforms if kernel is compressed.
20121 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20123 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
20124 unused modules since currently referrence counter isn't reliable and
20125 there isn't much memory to recover there anyway.
20127 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20129 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
20130 rather than resetting it to allow modules to reference themselves
20133 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20135 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
20136 counter on dependencies since grub_dl_unref already handles this.
20138 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20140 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
20141 on error if not already done.
20143 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20145 Fix few potential memory misusage.
20147 * grub-core/font/font.c (load_font_index): Don't free char_index to
20149 (grub_font_load): Zero-fill font at alloc for safety.
20150 Close file on error.
20151 (free_font): Free bmp_idx.
20153 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20155 * docs/grub.texi (Installation): Fix several outdated claims.
20157 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20159 Handle module_license on windows.
20161 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
20163 (insert_string): Make argument const char * instead of char *.
20164 (write_section_data): Handle long section names.
20165 Handle module_license.
20167 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20169 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
20170 handle class-free menuentries.
20171 (grub_normal_add_menu_entry): Add a check to be sure.
20173 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20175 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
20178 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20180 * configure.ac: Bump version to 1.99.
20182 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20184 Give ATA device a bit more time on first try in order to allow disks
20187 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20188 if dev->present is 1. Reset dev->present on failure.
20189 (grub_ata_device_initialize): Set dev->present to 1.
20190 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20191 (grub_ata_device): New member 'present'.
20193 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20195 * util/grub-mkimage.c (generate_image): Update hash.
20197 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20199 Flush caches on DMA memory.
20201 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20202 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20203 (grub_dma_free): Likewise.
20204 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20206 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20208 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20209 to avoid asm treating ld and sd as macros.
20211 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20213 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20216 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20218 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20219 grub_decompress_core since later would fail if grub_decompress_core
20222 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20224 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20225 R_MIPS_JALR since it's used by newer compiler.
20227 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20229 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20231 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20233 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20234 file_path to 0 for surety.
20235 (grub_chainloader_boot): Set exit_data to NULL.
20236 Unset the loader once done.
20237 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20239 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20241 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20242 unknown key into a dprintf.
20244 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20246 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20247 on first non-existant partition.
20249 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20251 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20253 Reported by: Mark Korenberg.
20255 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20257 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20260 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20262 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20263 before closing to ensure that it will be readable by grub-setup.
20265 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20267 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20268 (devpath_1): Use MAKE_PIWG_PATH.
20269 (devpath_2): Likewise.
20270 (devpath_3): Likewise.
20271 (devpath_4): Likewise.
20272 (devpath_5): Likewise.
20273 (devpath_6): Likewise.
20275 The appleldr.mod was checked that to be binary identical to previous
20278 2011-05-05 Zach <mikezackles>
20280 Support 2010 Macbooks.
20282 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20283 (devs): Add devpath_6.
20285 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20287 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20288 /dev/random. /dev/urandom is good enough for our purposes (salting).
20290 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20292 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20294 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20296 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20299 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20301 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20302 and not 0 on failure.
20304 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20306 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20307 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20308 disk; otherwise grub_fs_probe will not fall back to the next
20310 (grub_pxefs_open): Likewise, for consistency.
20311 Reported and tested by: Ezekiel Grave.
20313 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20315 * tests/partmap_test.in: Don't hardcode path to parted.
20316 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20318 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20320 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20321 of `ls' to find out which devices are available.
20323 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20325 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20326 than source address for efi mmap buffer.
20328 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20330 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20331 wrong action on non-detecting the magic.
20333 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20335 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20336 already supplied by another part of the module (fixes compilation on
20339 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20341 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20342 match the one used by mdadm.
20344 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20346 * po/README: Add instructions for creating po/LINGUAS.
20348 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20350 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20353 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20354 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20355 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20356 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20357 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20358 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20359 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20360 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20361 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20362 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20363 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20364 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20365 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20366 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20367 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20368 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20369 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20370 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20371 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20372 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20373 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20374 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20376 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20378 * grub-core/kern/emu/getroot.c
20379 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20380 test that was incorrectly reintroduced in r3214.
20381 Reported by: Ian Dall. Fixes Savannah bug #33133.
20383 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20385 Fix stack pointer handling in 16-bit relocator.
20387 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20388 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20389 Fixes Ubuntu bug #683904.
20391 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20393 * configure.ac: Bump version to 1.99~rc2.
20395 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20397 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20398 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20399 * grub-core/lib/x86_64/setjmp.S: Likewise.
20400 * grub-core/lib/mips/setjmp.S: Likewise.
20401 * grub-core/lib/powerpc/setjmp.S: Likewise.
20402 * grub-core/lib/sparc64/setjmp.S: Likewise.
20404 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20406 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20407 * grub-core/lib/efi/datetime.c: Likewise.
20409 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20411 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20413 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20414 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20415 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20417 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20419 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20421 (grub_gfxterm_term_init): Likewise.
20423 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20425 Take into account the decorations the computing menu entry width.
20427 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20428 (grub_gfxmenu_create_box): Register get_border_width.
20429 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20431 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20434 2011-04-18 Endres Puschner <code@e7p.de>
20436 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20437 Don't skip first class.
20439 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20441 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20443 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20445 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20447 Complete 64-bit division support.
20449 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20450 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20451 * include/grub/misc.h (grub_divmod64): Rename to ...
20452 (grub_divmod64_full): ... this.
20453 (grub_divmod64): New inline function.
20455 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20457 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20459 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20461 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20462 performing the necessary test.
20464 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20466 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20467 (kfreebsd.elf): Likewise.
20468 (pc-chainloader.elf): Likewise.
20469 (ntldr.elf): Likewise.
20471 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20473 Identify RAID by its UUID rather than (guessed) name.
20475 * grub-core/disk/raid.c (ascii2hex): New function.
20476 (grub_raid_open): Accept mduuid/%s specification.
20477 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20478 (get_mdadm_uuid): ... this.
20479 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20481 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20483 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20486 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20488 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20490 * util/grub.d/20_linux_xen.in: Likewise.
20492 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20494 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20495 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20497 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20498 Build a list of relevant visible mounts using the mnt_id and
20499 parent_mnt_id fields, and then scan that list at the end.
20501 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20503 * docs/grub.texi (normal): New section.
20504 (normal_exit): New section.
20505 (Embedded configuration): Add reference to normal.
20506 (GRUB only offers a rescue shell): Likewise.
20507 * docs/grub-dev.texi (Error Handling): Fix typo.
20509 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20511 * NEWS: Drop obsolete entry about probe-only btrfs support.
20513 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20515 * util/import_gcry.py: Fix typo.
20517 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20519 * NEWS: Add btrfs support.
20521 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20522 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20524 BtrFS support. Written by me (Vladimir) with important bugfixes and
20525 even more important testing by Colin.
20527 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20528 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20529 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20530 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20531 mem_input_off and mem_input. All users updated to accept in-RAM input.
20532 (gzio_seek): New function.
20533 (test_zlib_header): Likewise.
20534 (grub_gzio_read): Likewise.
20535 (grub_zlib_decompress): Likewise.
20536 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20537 Accept partial and non-virtual mounts.
20538 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20539 avoid receiving /dev/dm-X as device.
20540 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20541 Handle bind and partial mounts.
20542 * grub-core/lib/crc.c: New file.
20543 * include/grub/deflate.h: Likewise.
20544 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20546 * include/grub/lib/crc.h: New file.
20548 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20550 Implement automatic module license checking according to new GNU
20553 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20554 (grub_dl_load_core): Use grub_dl_check_license.
20555 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20556 (GRUB_MOD_LICENSE): Likewise.
20557 (GRUB_MOD_DUAL_LICENSE): Likewise.
20558 All modules updated.
20560 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20562 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20563 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20565 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20567 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20569 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20571 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20573 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20576 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20578 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20579 parenthesis in the middle of the filename.
20581 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20583 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20584 rather than trying to put initrd way too high.
20585 Reported by: Ryan Lortie <desrt@desrt.ca>
20587 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20589 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20590 improperly removed string.
20592 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20594 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20596 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20597 (open_device) Likewise.
20598 (grub_util_biosdisk_close): Likewise.
20599 Reported by: Mark Korenberg.
20601 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20603 * util/grub-mkconfig_lib.in: Add missing quotes.
20605 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20607 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20610 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20612 Dynamically count the number of lines for the lower banner.
20614 * grub-core/normal/menu_entry.c (per_term_screen): New member
20616 (print_down): Use num_entries.
20617 (update_screen): Likewise.
20618 (grub_menu_entry_run): Set num_entries.
20619 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20621 (grub_print_message_indented): Move real part to ...
20622 (grub_print_message_indented_real): ... here. Additional argument
20624 (draw_border): Additional argument num_entries.
20625 (print_message): Additional argument dry_run.
20626 (print_entries): Receive menu viewer data.
20627 (grub_menu_init_page): New argment num_entries.
20628 (menu_text_set_chosen_entry): Use num_entries.
20629 (grub_menu_try_text): Likewise.
20630 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20632 (grub_ucs4_count_lines): New function.
20633 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20634 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20635 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20636 (grub_term_border_height): Likewise.
20637 (grub_term_num_entries): Likewise.
20639 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20641 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20642 Remove now unused string.
20644 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20646 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20648 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20650 (Comment): Fix typo.
20651 (Getting started): General copy-editing.
20652 (Typical Development Experience): Likewise.
20653 (Error Handling): Likewise.
20654 (Video API): Likewise.
20656 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20658 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20661 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20663 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20666 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20668 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20669 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20672 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20674 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20675 grub_strcpy since the lines aren't necessarily 0-terminated.
20677 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20679 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20682 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20684 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20685 (GRUB_MOD_INIT): DEVICE isn't optional.
20687 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20689 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20690 word on new line if it's too long anyway. Fixes a hang.
20692 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20694 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20696 * util/grub-setup.c (main): Reuse md device name if available.
20697 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20698 not GRUB name as argument.
20699 Based on patch by: Florian Wagner <fwagner>.
20701 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20703 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20704 Place mbi on low memory for better compatibility.
20706 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20708 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20710 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20711 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20713 * autogen.sh: Ensure that collate and ctype locale is C.
20714 * conf/Makefile.common: Likewise.
20716 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20718 * grub-core/normal/menu.c: Add missing include.
20720 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20722 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20724 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20726 * util/grub-mkconfig.in: Ignore emacsen backup.
20728 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20730 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20732 (grub_util_biosdisk_close): Likewise.
20734 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20736 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20737 const attribute and use grub_isdigit.
20739 2011-04-06 Andrey <dev_null@ukr.net>
20741 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20744 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20746 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20747 useful grub_dprintf's.
20749 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20751 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20753 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20755 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20757 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20759 Output errors if theme loading failed.
20761 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20762 grub_gfxterm_fullscreen on error paths to ...
20763 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20764 theme loading error.
20766 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20768 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20769 space for older compilers.
20770 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20772 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20774 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20775 and report them as not RAID members since they are useless for GRUB.
20776 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20778 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20780 Increase LVM implementation robustness in order not to crash on
20781 configurations like pvmove. Previously code assumed that in some places
20782 only lvs or only pvs are used whereas it seems that they are used
20785 * grub-core/disk/lvm.c (read_node): New function.
20786 (read_lv): Use read_node.
20787 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20788 Match volumes only at the end when all lvs are found. Take both
20789 pvs (first) and lvs (second) into account.
20790 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20791 mirror_* into node_*. All users updated.
20792 (grub_lvm_stripe): Merge this ...
20793 (grub_lvm_mirror): ... and this ...
20794 (grub_lvm_node): ... into this. All users updated.
20796 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20798 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20799 of function to allow further scanning for LVMs.
20801 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20803 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20804 on failed seek as it breaks open fd reusage.
20806 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20808 * util/grub-install.in: Add a recommendation to use --recheck before
20811 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20813 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20816 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20818 GRUB developper manual based on existing Internals section and
20819 contributions by the various authors with active copyright assignment.
20821 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20822 * docs/font_char_metrics.png: New file.
20823 * docs/font_char_metrics.txt: Likewise.
20824 * docs/grub-dev.texi: Likewise.
20825 * docs/grub.texi (Internals): Move from here ...
20826 * docs/grub-dev.texi: ... here.
20828 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20830 Store the loopback device as data on loopback grub_disk structures,
20831 rather than the file it points to. This fixes use of freed memory
20832 if an existing loopback device is replaced.
20834 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20835 disk->data, not dev->file.
20836 (grub_loopback_read): Adjust file assignment to match.
20837 Fixes Ubuntu bug #742967.
20839 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20841 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20842 when replacing an existing device.
20844 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20846 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20847 memory corruptions.
20849 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20851 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20852 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20853 (grub_jfs_read_inode): Likewise.
20854 (grub_jfs_opendir): Likewise. Remove now useless casts.
20855 (grub_jfs_getent): Likewise.
20856 Make ino a grub_uint32_t rather than int.
20857 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20858 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20859 division and module with bit operations.
20860 (grub_jfs_find_file): Make ino a grub_uint32_t.
20861 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20863 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20865 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20866 warning. (This was in fact always initialised before use, but GCC
20867 wasn't smart enough to prove that.)
20868 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20870 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20872 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20874 (efi_wrap_1): Likewise.
20875 (efi_wrap_2): Likewise.
20876 (efi_wrap_3): Likewise.
20877 (efi_wrap_4): Likewise.
20878 (efi_wrap_5): Likewise.
20879 (efi_wrap_6): Likewise.
20880 (efi_wrap_10): Likewise.
20881 Based on information by: Red Hat/Peter Jones.
20883 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20885 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20886 set-but-not-used variable.
20888 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20890 * docs/grub.texi (Simple configuration): Be more explicit about
20891 GRUB_DEFAULT, and add an example.
20892 Reported by: Leslie Rhorer.
20894 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20896 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20899 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20901 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20902 * util/grub.d/20_linux_xen.in: Likewise.
20904 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20906 * util/grub.d/10_linux.in: Try alternative config filenames where
20907 we parse config file.
20908 * util/grub.d/20_linux_xen.in: Likewise.
20910 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20912 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20913 * util/grub.d/20_linux_xen.in: Likewise.
20915 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20917 * grub-core/disk/raid.c (insert_array): Add few potentially
20918 useful grub_util_info.
20919 (grub_raid_register): Likewise.
20921 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20923 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20924 Preserve partition number in mdadm code path.
20926 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20928 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20929 few potentially useful grub_util_info.
20931 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20933 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20935 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20937 * docs/grub.texi (default): Use @example rather than nested
20938 itemized lists to avoid breaking gendocs.
20940 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20942 * docs/grub.texi (Future): Update.
20944 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20946 * docs/grub.texi (Environment): New chapter.
20947 (Changes from GRUB Legacy): Link to "Environment block" section for
20948 details of limitations.
20949 (Simple configuration): Likewise. Link to documentation of gfxmode
20950 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20952 (Shell-like scripting): Note that normal variables are stored in the
20954 (gettext): Link to documentation of lang and locale_dir.
20955 (list_env): New section.
20956 (load_env): New section.
20957 (save_env): New section.
20959 (Reporting bugs): Fix typo.
20961 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20963 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20966 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20968 * grub-core/term/at_keyboard.c (set_scancodes)
20969 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20971 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20973 * docs/grub.texi (Menu-specific commands): Remove some semantics
20974 that were true in GRUB Legacy but not in GRUB 2.
20975 (submenu): New section.
20976 (false): New section.
20977 (read): New section.
20978 (true): New section.
20980 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20982 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20984 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20986 * docs/grub.texi (Simple configuration): Explain some of the
20987 current limitations of grub-mkconfig.
20988 Reported by: Leslie Rhorer.
20990 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20992 Old macs search for boot.efi rather than for bootia32.efi.
20994 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20995 * util/grub-mkrescue.in: Likewise.
20996 Suggested by: Peter Jones.
20998 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21000 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
21002 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21004 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
21005 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
21006 (grub_lvm_mirror): New struct.
21007 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
21008 (grub_lvm_iterate): Iterate only visible volumes.
21009 (grub_lvm_read): Factor out to ..
21010 (read_lv): ... this. Support mirrors.
21011 (grub_lvm_read): New wrapper function.
21012 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
21013 stripped or mirrored.
21015 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21017 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
21019 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
21021 * docs/grub.texi (loopback): New section.
21023 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
21025 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
21028 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
21030 * docs/grub.texi (BIOS installation): New section, partly based on
21031 previous text in other sections.
21032 (Installing GRUB using grub-install): Replace BIOS discussion with a
21034 (Images): Likewise.
21036 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21038 * grub-core/kern/emu/hostdisk.c (find_partition_start)
21039 [HAVE_DIOCGDINFO]: Add safety checks.
21041 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21043 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
21044 per default compiled in kernel and prior to 8.0 isn't shipped at all.
21046 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
21048 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
21049 real_sb->size is zero (e.g. RAID-0), get the disk size from
21050 real_sb->data_size instead.
21051 Fixes Ubuntu bug #743136.
21053 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21055 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
21056 printf clauses for printing size and start.
21058 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21060 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
21061 Reported and tested by: Timothy Nikkel.
21063 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21065 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
21066 (dirty_region_add_real): ... this.
21067 (dirty_region_add): Don't discard margin refresh when performing
21070 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21072 * grub-core/lib/relocator.c (allocate_regstart)
21073 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
21074 terminals are capabple of malloc-free operation.
21075 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
21076 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
21078 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
21080 * util/grub-setup.c: Copy the partition table zone if floppy support
21081 is disabled, even if no partition table is found.
21083 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
21084 during POST if an invalid partition table is contained in the PBR
21085 of the active partition when GRUB is installed to a partition.
21087 2011-03-28 Colin Watson <cjwatson@debian.org>
21089 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
21092 2011-03-28 Colin Watson <cjwatson@debian.org>
21094 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
21095 to be specific about what kind of RAID device we're scanning for.
21097 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
21099 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
21100 return freed string.
21102 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21104 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
21106 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21108 Use libgeom on FreeBSD to detect partitions.
21110 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
21111 (grub-mkrelpath): Likewise.
21112 (grub-script-check): Likewise.
21113 (grub-editenv): Likewise.
21114 (grub-mkpasswd-pbkdf2): Likewise.
21115 (grub-fstest): Likewise.
21116 (grub-mkfont): Likewise.
21117 (grub-mkdevicemap): Likewise.
21118 (grub-probe): Likewise.
21119 (grub-setup): Likewise.
21120 (grub-ofpathname): Likewise.
21121 (grub-mklayout): Likewise.
21122 (example_unit_test): Likewise.
21123 (grub-menulst2cfg): Likewise.
21124 * grub-core/Makefile.core.def (grub-emu): Likewise.
21125 (grub-emu-lite): Likewise.
21126 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
21127 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
21128 define HAVE_DIOCGDINFO.
21129 (follow_geom_up) [FreeBSD]: New function.
21130 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
21131 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
21132 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
21133 unconditionally of HAVE_DIOCGDINFO.
21135 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21137 Fix FreeBSD compilation problem.
21139 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
21140 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
21142 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
21144 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
21145 Switch back to page zero before loading a kernel, since some kernel
21146 drivers expect that.
21147 Thanks to: Felix Kuehling.
21149 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21151 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
21152 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
21153 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
21155 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21157 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
21158 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
21160 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21162 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
21163 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
21164 malloc is disabled.
21166 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21168 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
21169 for modules headers when counting the needed allocation size.
21171 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21173 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
21174 if no ASCII character is found to prevent crash.
21176 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
21178 * grub-core/video/bitmap.c (match_extension): Ignore case.
21180 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21182 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21184 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21186 * grub-core/script/parser.y: Declare "time" as valid argument.
21188 2011-03-23 Peter Jones <pjones@redhat.com>
21190 Fix incorrect assert failure reporting.
21192 * grub-core/tests/example_functional_test.c (example_test): Add
21194 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21195 (failure_start): ...this. Check that malloc succeeded.
21196 Don't call xvasprintf. Return failure struct.
21197 (failure_append_vtext): New function.
21198 (failure_append_text): Likewise.
21199 (add_failure): Likewise.
21200 (grub_test_assert_helper): Likewise.
21201 * include/grub/test.h (grub_test_assert_helper): New declaration.
21202 (grub_test_assert): Macro rewritten.
21204 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21206 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21208 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21210 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21212 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21214 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21215 into GRUB-style one.
21217 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21219 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21220 error and not grub_errno.
21221 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21223 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21225 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21226 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21228 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21230 * grub-core/efiemu/i386/pc/cfgtables.c
21231 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21232 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21233 (grub_xnu_unlock): Likewise.
21234 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21236 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21238 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21239 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21240 * grub-core/commands/hashsum.c (aliases): Likewise.
21241 * grub-core/commands/setpci.c (pci_registers): Likewise.
21242 * grub-core/disk/usbms.c (attach_hook): Likewise.
21243 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21244 (zio_checksum_table): Likewise.
21245 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21246 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21247 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21248 * grub-core/lib/relocator.c (leftovers): Likewise.
21249 (extra_blocks): Likewise.
21250 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21251 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21252 (modules_last): Likewise.
21253 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21254 (devices): Likewise.
21255 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21256 (modules_last): Likewise.
21257 * grub-core/normal/auth.c (users): Likewise.
21258 * grub-core/normal/context.c (initial_menu): Likewise.
21259 (current_menu): Likewise.
21260 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21261 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21262 (grub_serial_terminfo_input_template): Likewise.
21263 (grub_serial_terminfo_output_template): Likewise.
21264 (grub_serial_terminfo_input): Likewise.
21265 (grub_serial_terminfo_output): Likewise.
21266 (registered): Likewise.
21267 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21269 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21271 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21272 grub_video_mode_type_t.
21273 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21274 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21275 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21277 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21279 * util/grub-install.in: Correct the x86-64 name as x86_64.
21281 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21283 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21284 initial chunk read from the kernel always includes GRUB's multiboot
21285 header, which is now outside the first sector.
21287 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21289 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21290 cached mmap_size, so that this works correctly when called multiple
21292 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21294 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21296 * docs/grub.texi (Simple configuration): Tidy up formatting.
21298 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21300 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21301 Set-but-not-used variable removed.
21303 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21305 Workaround yet another IEEE1275 bug.
21307 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21308 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21309 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21310 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21312 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21313 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21315 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21317 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21320 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21322 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21323 empty, since in that case we can only generate either nothing or a
21324 syntactically invalid configuration file.
21325 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21327 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21329 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21330 (Making a GRUB bootable CD-ROM): Likewise.
21331 (Invoking grub-mkrescue): New section.
21332 Reported by: Yann Dirson. Fixes Debian bug #612585.
21334 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21336 * util/grub-install.in: Remove unnecessary brackets from tr
21338 * util/grub.d/10_hurd.in: Likewise.
21339 * util/grub.d/10_kfreebsd.in: Likewise.
21340 * util/grub.d/10_linux.in: Likewise.
21341 * util/grub.d/20_linux_xen.in: Likewise.
21342 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21344 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21346 * include/grub/file.h (not_easly_seekable): Rename to ...
21347 (not_easily_seekable): ... this. Update all users.
21349 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21351 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21354 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21356 * util/grub-mkimage.c (generate_image): Refuse to create the images
21357 bigger than the actual flash (512K) in Loongson machines. 512K is also
21358 the biggest chip supported by them.
21360 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21362 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21364 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21366 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21367 super_offset field.
21369 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21371 * util/grub-install.in: Ignore install device on platforms
21372 where it doesn't make sense. Always use UUIDs except on pc, efi and
21374 Reported by: Daniel Kahn Gillmor.
21376 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21378 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21380 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21382 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21383 (iterate_real): Don't rely on partition being non-NULL.
21385 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21387 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21388 supported platforms. Put a compile time assert for this rather than
21389 generate a warning with 32-bit shift.
21391 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21393 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21394 logical expression more readable.
21396 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21398 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21399 even if some elements have a name.
21400 Reported by: Alexander GQ Gerasiov.
21402 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21404 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21405 path unreadable if `grub-probe -t abstraction' fails, for example if
21406 memberlist fails on an LVM volume group.
21407 Reported by: Darius Jahandarie.
21409 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21411 * docs/grub.texi (Simple configuration): Document
21412 GRUB_PRELOAD_MODULES.
21414 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21416 * .bzrignore: Remove nonexistent grub-pbkdf2.
21418 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21420 * configure.ac: Bump version to 1.99~rc1.
21422 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21424 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21427 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21429 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21432 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21434 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21436 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21438 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21441 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21443 Fix compilation on cygwin.
21445 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21446 -R .drectve on cygwin.
21447 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21448 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21449 (COND_CYGWIN): New condition.
21450 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21451 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21452 not @TARGET_OBJ2ELF@.
21453 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21454 type to determine whether aux is to be used.
21456 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21458 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21459 realpath'ed device string.
21460 Handle floppy (somewhat).
21461 Issue error in unknown case rather than garbage.
21462 Reported by: Axel Beckert.
21464 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21466 * util/grub.d/00_header.in (load_video): Handle the case when no video
21468 Thanks to: Axel Beckert.
21470 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21472 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21473 variable. Fixes problem on big endian platforms.
21475 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21477 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21478 It doesn't work well there.
21480 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21482 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21484 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21485 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21488 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21490 Use alias->path rather than buggy "canon".
21492 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21493 (ofdisk_hash_add): New argument curcan. All users updated.
21495 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21497 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21499 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21501 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21502 loadmask before doing any calculations. Use correct type for offset.
21503 (grub_linux_load64): Likewise.
21505 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21507 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21509 (console_grub_equivalences_unshift): Likewise.
21510 Reported by: Daniel Dehennin.
21512 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21514 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21515 (set_env_limn_ro): Likewise.
21516 (GRUB_MOD_INIT): Likewise.
21517 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21518 ARRAY_SIZE while on it.
21519 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21520 * grub-core/normal/context.c (grub_env_export): Move from here ...
21521 * grub-core/kern/env.c (grub_env_export): ... here.
21522 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21524 * grub-core/kern/main.c (grub_main): Export root and prefix.
21525 * include/grub/env.h (grub_env_export): Export.
21526 Reported by: Seth Goldberg.
21528 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21530 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21531 Take into account space used by ELF sections and multiboot palette.
21532 Reported by: Grégoire Sutre.
21534 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21538 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21540 Pass more appropriate video id to Linux.
21542 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21543 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21545 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21546 shift params->lfb_size.
21547 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21549 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21551 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21553 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21555 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21556 separator and pass bootpath/devid even if only one of them is available.
21557 Reported by: Seth Goldberg.
21559 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21561 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21562 implementations bug on them.
21564 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21566 (filter_memory_map): Likewise.
21568 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21570 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21571 Reported by: nebuchadnezzar.
21573 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21575 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21576 Reported by: nebuchadnezzar.
21578 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21580 Submenu default support.
21582 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21583 auto_boot. All users updated.
21585 Handle chosen and default with submenus.
21586 (grub_menu_execute_with_fallback): Declared static.
21587 Don't notify failure if autobooted. Upper level does it.
21588 (menuentry_eq): New function.
21589 (get_entry_number): Use menuentry_eq.
21590 (show_menu): New parameter "autobooted". All users updated.
21591 (grub_show_menu): Likewise.
21592 * include/grub/normal.h (grub_show_menu): Likewise.
21593 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21594 (grub_menu_execute_with_fallback): Likewise.
21596 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21598 * util/grub-mklayout.c (usage): Update help text.
21600 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21602 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21604 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21606 * util/grub-menulst2cfg.c (main): Trim the line.
21608 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21610 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21611 (grub_machine_init): Don't check amount of low memory as reportedly
21612 INT 12h can be broken and if low memory is too low we wouldn't have
21613 gotten into grub_machine_init anyway.
21615 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21617 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21618 (grub_machine_mmap_iterate): Take low memory into account
21620 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21622 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21624 Reported by: TiCPU.
21626 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21628 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21631 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21633 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21634 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21636 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21638 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21639 openbsd and netbsd types being in part_bsd module.
21641 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21643 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21644 (_FILE_OFFSET_BITS): Likewise.
21645 Reported by: Seth Goldberg.
21647 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21649 * configure.ac: Check for libdevmapper header.
21651 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21653 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21655 (fzap_lookup): Likewise.
21656 (dnode_get): Likewise.
21657 (make_mdn): Likewise.
21658 (zfs_mount): Likewise.
21659 (fzap_iterate): Use temporary pointer to avoid aliasing.
21660 (grub_zfs_read): Likewise.
21661 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21662 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21663 pointers to avoid aliasing.
21664 (grub_cmd_xnu_kernel64): Likewise.
21665 (grub_xnu_load_driver): Likewise.
21667 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21669 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21671 (grub_cmd_terminal_output): Likewise.
21672 Reported and tested by: Grégoire Sutre.
21674 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21676 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21678 Reported and tested by: Grégoire Sutre.
21680 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21682 * configure.ac: Do CPU substitution even if it's specified explicitly.
21683 Reported and tested by: Alain Greppin.
21685 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21687 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21688 Reported and tested by: Alain Greppin.
21690 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21692 Satisfy some bison versions need for inttypes.h.
21694 * grub-core/lib/posix_wrap/inttypes.h: New file.
21695 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21696 (int16_t): Likewise.
21697 (int32_t): Likewise.
21698 (int64_t): Likewise.
21699 Reported and tested by: Alain Greppin.
21701 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21703 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21704 Silence spurious warning.
21705 Reported and tested by: Alain Greppin.
21707 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21709 * docs/grub.texi (Support automatic decompression): Update with xz
21710 decompression support.
21712 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21714 Improve loaders' kernel command line handling.
21716 * grub-core/lib/cmdline.c: New file.
21717 * include/grub/lib/cmdline.h: Likewise.
21718 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21719 grub_create_loader_cmdline to create kernel command line.
21720 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21721 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21722 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21723 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21724 (linux): Add lib/cmdline.c on common.
21726 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21728 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21729 inopos might be unaligned.
21731 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21733 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21734 endian transformations.
21735 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21736 Based on report by: Doug Nazar.
21738 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21740 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21741 array->members[i].start_sector.
21742 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21744 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21746 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21747 Reported and tested by: Grégoire Sutre.
21749 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21751 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21752 avoid causing test failures by clearing the screen.
21754 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21756 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21757 Fix prefix check to handle the case where dir ends with a slash
21758 (most significantly, "/" itself).
21759 Reported by: Michael Vogt.
21761 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21763 Run terminfo_cls on initing terminfo output to clear the screen and
21764 move the cursor to (0,0).
21766 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21767 Call grub_terminfo_output_init.
21768 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21769 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21770 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21772 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21774 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21777 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21779 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21782 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21784 The E820 type 5 is BADRAM, not EXEC_CODE.
21786 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21787 (GRUB_E820_BADRAM): New define.
21788 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21789 into reserved. Propagate BADRAM.
21790 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21791 (GRUB_E820_BADRAM): New define.
21793 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21795 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21796 Ignore the memory post-4G.
21797 (grub_relocator_firmware_alloc_region): Additional debug statement.
21799 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21801 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21803 Reported by: David Pravec.
21805 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21807 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21810 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21812 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21814 (grub_reed_solomon_recover): Likewise.
21816 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21818 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21820 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21822 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21825 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21827 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21828 descriptions of extract_legacy_entries_source and
21829 extract_legacy_entries_configfile.
21830 Reported by: Seung Soo, Ha.
21832 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21834 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21835 on devices that do not implement function 0.
21837 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21839 * grub-core/fs/hfsplus.c: Make parent unsigned.
21840 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21842 (grub_hfsplus_cmp_extkey): Likewise
21844 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21846 * util/grub-install.in: Correctly use bootloader_id and not
21847 GRUB_DISTRIBUTOR on efibootmgr line.
21849 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21851 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21853 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21855 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21856 Xen and reorder menu item wording to make it clearer that this entry
21857 will launch Xen. Print separate messages when loading Xen and
21860 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21862 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21863 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21864 loop in case of incorrect amiga partmap.
21866 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21868 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21869 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21872 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21874 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21876 Reported by: crocket
21878 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21880 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21882 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21884 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21886 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21888 (grub_cmd_xnu_kextdir): Likewise.
21889 (grub_cmd_xnu_splash): Likewise.
21891 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21893 Avoid using Reed-Solomon with 0 redundancy.
21895 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21896 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21898 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21899 (grub_reed_solomon_recover): Likewise.
21901 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21903 Don't use disk subsystem in freebsd_boot.
21905 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21906 (freebsd_biosdev): Likewise.
21907 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21908 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21910 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21912 Handling of files of unknown size is currently limited. They can't be
21913 used e.g. for initrd or modules. Moreover gzip handling of not
21914 easily seekable files is buggy. Disable unknown file size for now. May
21915 be inefficient but works.
21917 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21918 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21920 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21922 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21925 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21927 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21929 2010-12-25 Shea Levy <shlevy>
21931 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21933 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21935 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21936 Windows Server 2008.
21937 Reported by: Devin Giddings.
21939 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21941 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21942 writing an error message because of async power management.
21943 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21944 (grub_reboot): Likewise.
21946 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21948 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21949 keep unit tests from failing when they shouldn't.
21951 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21953 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21954 previous patch increased the size of the RS code by 20 bytes (at
21955 least with gcc-4.4), so increase this by 20 bytes to match.
21956 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21958 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21960 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21961 scratch area. Make sure to initialise chosen in standalone mode as
21962 well as non-standalone.
21963 Reported by: Robert Hooker and Andy Whitcroft.
21964 Tested by: Andy Whitcroft.
21966 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21968 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21969 constructing a new unescaped string and passing it to grub_xputs in
21970 one go, rather than passing characters to grub_printf one at a time.
21972 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21974 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21975 initialising utf16.
21977 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21979 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21980 comment. Add an extra layer of quotation, requiring the output of
21981 this function to be used in a printf format string.
21982 (gettext_printf): New function.
21983 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21984 Extract translatable strings from here-documents and use a temporary
21985 variable instead, so that xgettext can find them.
21986 * util/grub.d/10_kfreebsd.in: Likewise.
21987 * util/grub.d/10_linux.in: Likewise.
21988 * util/grub.d/20_linux_xen.in: Likewise.
21990 * po/grub.d.sed: New file.
21991 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21992 arguments. Set c-format flags on all strings extracted from
21993 util/grub.d/ (xgettext refuses to include these itself for strings
21994 it extracted from a shell file, but these really are c-format).
21996 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21998 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21999 Avoid next pointing to nowhere.
22001 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
22003 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
22004 rather than assuming than rootblock is exactly in the middle.
22005 (grub_affs_label): Likewise.
22007 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
22009 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
22010 reserved_first_sector to 0.
22011 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
22012 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
22013 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
22015 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
22017 Fix handling of UTF-16 UDF labels.
22019 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
22020 (read_string): .. here.
22021 (grub_udf_label): Use read_string.
22023 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
22025 * grub-core/normal/menu_entry.c (run): Execute commands from menu
22026 editor under argument scope.
22027 Reported by: Jordan Uggla
22029 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
22031 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
22033 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
22035 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
22036 line, and other keys scroll an entire page (previous handling was
22037 for \r and \n to scroll a page and other keys to scroll two lines).
22039 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
22041 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
22042 Set ptrdest to correct get_physical_target_address rather than
22043 incorrect get_virtual_current_address.
22045 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
22047 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
22048 correct cat to grub_uint8_t * rather than grub_uint32_t *.
22050 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
22052 * .bzrignore: Ignore grub-core/rs_decoder.S.
22054 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
22056 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
22057 .mo/.mo.gz opening sequence to ...
22058 (grub_mofile_open_lang): ... here.
22059 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
22060 * util/grub.d/00_header.in (grub_lang): Include country part of
22062 Reported by: Mario Limonciello.
22064 2010-12-09 Robert Millan <rmh@gnu.org>
22066 * NEWS: Document addition of ZFS support.
22068 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
22070 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
22071 rather than `/ 2', as the latter requires -Wa,--divide which would
22072 require bumping our minimum binutils version.
22074 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
22076 * util/grub-script-check.c (main): Print script line number on
22079 2010-12-01 Robert Millan <rmh@gnu.org>
22081 * grub-core/fs/zfs/zfs.c: New file.
22082 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
22083 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
22084 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
22085 * grub-core/fs/zfs/zfsinfo.c: Likewise.
22087 * include/grub/zfs/dmu.h: Likewise.
22088 * include/grub/zfs/dmu_objset.h: Likewise.
22089 * include/grub/zfs/dnode.h: Likewise.
22090 * include/grub/zfs/dsl_dataset.h: Likewise.
22091 * include/grub/zfs/dsl_dir.h: Likewise.
22092 * include/grub/zfs/sa_impl.h: Likewise.
22093 * include/grub/zfs/spa.h: Likewise.
22094 * include/grub/zfs/uberblock_impl.h: Likewise.
22095 * include/grub/zfs/vdev_impl.h: Likewise.
22096 * include/grub/zfs/zap_impl.h: Likewise.
22097 * include/grub/zfs/zap_leaf.h: Likewise.
22098 * include/grub/zfs/zfs.h: Likewise.
22099 * include/grub/zfs/zfs_acl.h: Likewise.
22100 * include/grub/zfs/zfs_znode.h: Likewise.
22101 * include/grub/zfs/zil.h: Likewise.
22102 * include/grub/zfs/zio.h: Likewise.
22103 * include/grub/zfs/zio_checksum.h: Likewise.
22105 * Makefile.util.def: Build ZFS into libgrubmods.
22106 * grub-core/Makefile.core.def: Build zfs.mod.
22108 2010-11-30 Szymon Janc <szymon@janc.net.pl>
22110 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
22112 * grub-core/commands/wildcard.c (match_files): Likewise.
22114 2010-11-30 Robert Millan <rmh@gnu.org>
22116 * grub-core/loader/i386/bsd.c
22117 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
22118 whether kernel is loaded using grub_loader_is_loaded(), rather
22119 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
22120 certain error conditions.
22122 2010-11-30 Robert Millan <rmh@gnu.org>
22124 * grub-core/commands/echo.c: Include `<grub/term.h>'.
22125 (grub_cmd_echo): Call grub_refresh() after printing a message.
22127 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22129 Avoid using tricks for initialising endian variables.
22131 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
22133 (GRUB_MOD_INIT): Don't byte-swap.
22134 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22135 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
22136 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
22137 (grub_swap_bytes32_compile_time): Likewise.
22138 (grub_cpu_to_le32_compile_time): Likewise.
22139 (grub_cpu_to_le16_compile_time): Likewise.
22141 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22143 * util/grub-setup.c (setup): Stop recommending --force. People who
22144 understand the dangers of blocklists are able to find this option
22145 anyway and the ones who don't shouldn't use it anyway.
22147 2010-11-26 Robert Millan <rmh@gnu.org>
22149 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
22152 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
22154 Fix LVM-on-RAID probing.
22156 * util/grub-probe.c (probe): Remember which disk was detected as
22157 RAID (perhaps an LVM physical volume). Use that disk's raidname
22158 rather than that of the top-level disk.
22160 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
22162 Fix cmdline argument quotes for setparams command of menuentry
22165 * grub-core/commands/menuentry.c (setparams_prefix): Use single
22166 quotes for arguments.
22167 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
22168 grub_strchrsub function instead.
22170 * include/grub/misc.h (grub_strchrsub): New function.
22172 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22174 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
22175 effort by skipping "." and ".." entries up-front.
22176 Suggested by: Michael Lazarev.
22178 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22180 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
22181 ldflags to ldadd, to fix link line ordering.
22182 (none_decompress): Likewise.
22184 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22186 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22188 (grub-emu-lite): Remove kern/emu/cache.S.
22190 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22192 * util/deviceiter.c (compare_devices): If the by-id link for a
22193 device couldn't be resolved, fall back to sorting by the by-id link
22194 rather than segfaulting.
22195 Reported and tested by: Daniel Mierswa.
22197 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22199 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22200 ldflags, to fix link line ordering.
22202 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22204 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22205 linkers are picky about this.
22207 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22209 * grub-core/Makefile.am (command.lst): Adjust sed expression
22210 ordering so that extended and priority commands aren't treated as
22213 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22215 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22216 Remove byte-swapping function calls, which are not valid in
22217 structure initialisers.
22218 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22220 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22221 grub_gpt_partition_type_bios_boot.
22223 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22225 Fix test program build on GNU/kFreeBSD.
22227 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22228 $(LIBNVPAIR)' library dependencies.
22230 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22232 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22234 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22236 * util/grub-install.in: Remove excessive quoting that broke
22237 installations to RAID devices.
22239 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22241 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22242 bootloader version instead of 0.
22244 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22246 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22249 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22251 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22252 retrieve the metadat sector if size isn't known.
22253 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22255 2010-11-18 Robert Millan <rmh@gnu.org>
22257 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22258 with grub_memcmp().
22260 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22262 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22264 Reported by: Jordan Uggla.
22266 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22268 Make better UTF compliant.
22270 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22271 sequences as incorrect.
22272 (grub_is_valid_utf8): Likewise.
22273 (grub_utf8_to_ucs4): Likewise.
22274 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22275 (grub_ucs4_to_utf8_alloc): Likewise.
22276 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22278 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22280 Make legacy_source behave like source.
22282 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22284 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22286 2010-11-16 Colin Watson <cjwatson@debian.org>
22288 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22289 (-Wunused implies -Wunused-parameter, but not vice versa).
22291 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22293 * configure.ac: Make error messages less confusing by testing for
22294 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22295 accepted, but produces a diagnostic if something else is wrong).
22297 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22299 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22300 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22302 (grub_keyboard_controller_init)
22303 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22304 read the initial state since controller isn't inited yet.
22306 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22308 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22309 allocate_regbeg may need to create new chunk header.
22311 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22313 Fix quoting in legacy parser.
22315 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22317 (grub_legacy_parse): Likewise.
22318 Reported by: Jordan Uggla.
22319 Tested by: Jordan Uggla.
22321 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22323 Don't add -lgcc on i386 and x86_64.
22325 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22326 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22327 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22329 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22331 * configure.ac: Add -Wno-trampolines when supported.
22333 2010-11-14 Modestas Vainius <modax@debian.org>
22335 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22338 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22340 Add generic logical block size support for UDF.
22342 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22343 (GRUB_UDF_BLKSZ): Removed.
22344 (struct grub_udf_data): New field "lbshift" to hold the logical block
22345 size of the file system in log2 format. All users updated.
22346 (sblocklist): Change type to unsigned.
22347 (grub_udf_mount): Change type of "sblklist" to unsigned.
22348 Move AVDP search before VRS recognition, because the latter requires
22349 knowledge of the logical block size, which is detected during the
22351 Detect and validate logical block size during AVDP search, adding
22352 support for block sizes 512, 1024 and 4096.
22353 Make VRS recognition independent of block size.
22355 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22357 Properly handle deleted files on UDF.
22359 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22360 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22363 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22365 Support reading files larger than 2 GiB.
22367 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22368 "offset" to grub_off_t.
22369 (grub_udf_read_file): Likewise for parameter "pos".
22371 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22373 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22375 (Simple configuration): Refer to Changes from GRUB Legacy about
22376 save_env availability.
22378 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22380 * util/grub-install.in: Ignore empty partition table detection
22381 instead of trying to include part_ module.
22383 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22385 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22386 LVM on RAID support.
22388 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22390 Properly define WORDS_BIGENDIAN in wrapped environments.
22392 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22394 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22396 Reported by: Manoel Rebelo Abranches.
22397 Tested by: Manoel Rebelo Abranches.
22399 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22401 * util/grub-mkconfig.in: Fix quoting.
22403 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22405 Support big ext2 files.
22407 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22408 (grub_ext2_read_block): Support triple indirect blocks.
22409 (grub_ext2_read_file): Use 64-bit types and read size_high.
22410 (grub_ext2_open): Read size_high.
22411 Reported by: Ximin Luo.
22412 Tested by: Manoel Rebelo Abranches.
22414 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22416 * util/grub-install.in: Handle filenames containing spaces.
22417 Reported by: Jordan Uggla.
22418 Tested by: Jordan Uggla.
22420 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22422 * util/grub-mkconfig.in (grub_script_check): New variable.
22423 Use grub_script_check instead of grub-script-check.
22424 Reported by: Barry Jackson.
22426 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22428 * docs/grub.texi (menu): Correct the order.
22429 Reported by: D. Hugh Redelmeier.
22431 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22433 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22436 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22438 * include/grub/elfload.h (grub_elf32_size): New parameter.
22440 Return maximum segments alignment.
22441 (grub_elf64_size): Likewise.
22442 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22443 Return maximum segments alignment.
22444 (grub_elf64_size): Likewise.
22445 * grub-core/loader/powerpc/ieee1275/linux.c:
22446 (grub_linux_claimmap_iterate): New function. Uses the
22447 "available" property in the "memory" node for memory allocation
22448 for kernel in the PowerPC loader.
22449 (grub_linux_load32): Correctly find linux entry point offset.
22450 (grub_linux_load64): Likewise.
22452 2010-11-07 Robert Millan <rmh@gnu.org>
22454 On mips-yeeloong, build with -march=loongson2f when this flag is
22455 available (GCC >= 4.4).
22456 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22458 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22459 or otherwise add -march=mips3.
22461 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22463 Suppress shell expansion on echo '*' and echo "*" like cases.
22464 Reported by: Jordan Uggla.
22466 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22467 string arguments before shell expansion.
22468 * tests/grub_cmd_echo.in: New testcases.
22470 2010-11-07 Robert Millan <rmh@gnu.org>
22472 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22475 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22477 * grub-core/kern/emu/hostdisk.c
22478 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22480 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22482 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22483 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22484 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22486 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22488 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22490 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22492 * util/grub-install.in: Replace useless recomendation to pass
22493 --modules with a recomendation to report a bug.
22495 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22497 Properly register serial terminfo.
22498 Reported by: Jordan Uggla
22500 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22502 (grub_serial_terminfo_output_template): Likewise.
22503 (grub_cmd_serial): Register "serial" with terminfo.
22504 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22505 grub_serial_terminfo_output.
22507 2010-11-05 Robert Millan <rmh@gnu.org>
22509 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22512 2010-11-05 Robert Millan <rmh@gnu.org>
22514 On Yeeloong, pass machine type information to Linux.
22516 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22517 (LOONGSON_MACHTYPE): New macro, set to
22518 "machtype=lemote-yeeloong-2f-8.9inches".
22519 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22520 additional argument to Linux.
22522 2010-11-04 Robert Millan <rmh@gnu.org>
22524 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22525 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22526 (its SATA disks are detected as slaveless IDE master drives on
22528 Reported by Carsten Aulbert.
22530 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22532 * util/bin2h.c (main): Fix spelling error in generated output.
22534 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22536 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22538 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22540 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22541 vga= option is supplied.
22543 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22545 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22546 * util/grub.d/10_kfreebsd.in: Likewise.
22547 * util/grub.d/10_linux.in: Likewise.
22548 * util/grub.d/20_linux_xen.in: Likewise.
22550 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22552 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22553 argument as an argument to no-argument option.
22555 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22557 * util/grub.d/10_linux.in: Add missing load_video with explicit
22558 GRUB_GFXPAYLOAD_LINUX.
22560 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22562 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22564 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22566 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22567 elements with invlid index.
22568 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22569 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22571 * include/grub/raid.h (grub_raid_member): New struct.
22572 (grub_raid_array): Transform devices and start_sector into usage of
22573 grub_raid_member. All users updated
22574 (allocated_devs): New member.
22576 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22578 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22581 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22583 NetBSD build fix for getline function conflict from gnulib.
22585 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22586 components that depend on gnulib headers.
22587 (libgrubmods.a): Renamed from earlier libgrub.a.
22588 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22590 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22592 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22593 install rather than creating a broken install.
22595 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22597 * util/grub-setup.c (argp): Remove misleading example of installing to
22600 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22602 * util/grub-setup.c (setup): Clarify the error message.
22604 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22606 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22608 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22610 * grub-core/kern/emu/misc.c
22611 (grub_make_system_path_relative_to_its_root)
22612 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22614 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22616 * grub-core/kern/emu/misc.c
22617 (grub_make_system_path_relative_to_its_root): Revert r2882.
22619 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22621 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22622 useless field head. All users updated.
22623 (free_subchunk): Correct handling of IN_REGION subchunk.
22625 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22627 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22628 (Supported kernels): Likewise.
22630 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22632 Make mktemp invocations portable.
22634 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22635 exit if mktemp fails.
22636 * tests/grub_script_blockarg.in: Likewise.
22637 * tests/partmap_test.in: Likewise.
22638 * tests/util/grub-shell-tester.in: Likewise.
22639 * tests/util/grub-shell.in: Likewise.
22640 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22641 * Makefile.am: Likewise, and chain shell commands with `&&'
22643 * util/grub-mkrescue.in: Use the same explicit template as above, and
22644 exit if mktemp fails.
22646 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22648 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22649 Linux kernel, reported by Dennis Schridde.
22651 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22653 * grub-core/normal/auth.c (grub_auth_check_authentication):
22654 Set-but-not-used variable removed.
22656 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22658 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22659 32-bit linux protocol.
22661 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22663 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22664 cursor shape for sanity.
22666 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22668 * docs/grub.texi (Installation): Document buggy BIOS install.
22670 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22672 * docs/grub.texi (Installation): Indent.
22674 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22676 * util/grub-setup.c (setup): New parameter allow_floppy.
22677 (arguments): New member allow_floppy.
22678 (argp_parser): Handle --allow-floppy.
22679 (main): Pass allow_floppy.
22680 * util/grub-install.in: New option --allow-floppy passed though to
22683 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22685 * util/grub-install.in: Handle partitionless disks.
22687 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22689 * util/grub-setup.c (setup): Don't clean blocklists before readability
22692 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22694 * docs/grub.texi (Installation): Document embedding zone. Remove
22695 obsolete grub-install example.
22697 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22699 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22700 Set-but-not-used variable ifdef'ed.
22701 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22702 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22704 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22705 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22706 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22707 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22708 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22709 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22710 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22711 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22712 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22713 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22714 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22717 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22719 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22720 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22723 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22725 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22726 synonym to _S5_. Needed for some DSDTs.
22728 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22730 Userspace ACPI parser debugging.
22732 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22733 headers and add relevant defines. Don't include standard headers.
22734 (main) [GRUB_DSDT_TEST]: New function.
22735 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22736 Don't declare functions.
22738 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22740 Remove dead grub_efi_mm_fini.
22742 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22743 (ALLOCATED_PAGES_SIZE): Likewise.
22744 (MAX_ALLOCATED_PAGES): Likewise.
22745 (allocated_pages): Likewise.
22746 (grub_efi_allocate_pages): Don't record allocated pages.
22747 (grub_efi_free_pages): Likewise.
22748 (grub_efi_mm_init): Likewise.
22749 (grub_efi_mm_fini): Removed.
22751 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22753 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22754 (grub_efi_mm_init): Take into account the memory map size increase.
22756 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22758 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22759 (serial_hw_put): Wait based on real time rather than port reads. Don't
22761 * include/grub/serial.h (grub_serial_port): New field broken.
22763 2010-10-16 Robert Millan <rmh@gnu.org>
22765 * grub-core/kern/emu/misc.c
22766 (grub_make_system_path_relative_to_its_root): Fix premature return
22767 when processing non-root ZFS filesystems.
22768 Reported by Sergio Talens-Oliag.
22770 2010-10-15 Robert Millan <rmh@gnu.org>
22772 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22773 guarantee compressed ones are processed first.
22775 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22777 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22778 grub_efiemu_autocore.
22780 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22782 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22784 (grub_console_getkey): Use correct jae opcode rather than ja.
22786 2010-10-12 Robert Millan <rmh@gnu.org>
22788 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22789 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22790 variable. All references updated.
22792 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22794 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22796 Correctly distinguish mdraid flavours.
22798 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22799 (insert_array): New argument raid.
22800 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22801 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22802 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22804 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22806 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22807 handling of special keys.
22809 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22811 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22812 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22814 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22816 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22817 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22819 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22820 Use right endpoint when querying descriptor.
22822 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22824 Clear out 0x80 color bit on EFI.
22826 Reported by: decoder and meta tech.
22828 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22829 (grub_console_setcolorstate): Clear out 0x80 bit.
22830 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22831 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22832 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22834 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22836 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22839 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22841 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22842 mo_file after freeing.
22844 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22846 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22848 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22850 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22853 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22855 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22858 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22860 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22862 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22863 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22864 and terminfo.h when needed.
22865 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22866 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22867 (terminfo): Enable only on terminfokernel.
22868 (extcmd): Likewise.
22869 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22870 * include/grub/lib/arg.h: Likewise.
22871 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22872 incorrect usage of ->.
22874 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22876 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22877 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22879 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22881 Fix coreboot compilation.
22883 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22884 Take VBE info into account even if only text is supported.
22885 (fill_vbe_info): Take into account the case when only VGA text
22887 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22888 on coreboot, multiboot and qemu.
22890 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22892 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22894 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22896 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22898 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22901 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22903 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22904 if they were BSD-style.
22906 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22908 * grub-core/boot/i386/pc/lnxboot.S: Replace
22909 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22910 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22912 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22914 Write embedding zone using Reed-Solomon.
22916 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22917 * grub-core/Makefile.am (rs_decoder.S): New target.
22918 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22919 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22920 (multiboot): Move to RS part.
22921 (post_reed_solomon): New label.
22922 (grub_boot_drive): Move to non-RS part since it's modified in memory
22924 Include rs_decoder.S.
22925 * grub-core/lib/reed_solomon.c: New file.
22926 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22928 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22929 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22930 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22931 * include/grub/partition.h (grub_partition_map): Change prototype of
22932 embed to allow returning additional sectors.
22933 * include/grub/reed_solomon.h: New file.
22934 * util/grub-setup.c (setup): Handle Reed-Solomon.
22936 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22938 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22939 i386 and x86-64 definedness tests.
22941 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22943 Fix generation of kernel_syms.lst
22945 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22948 2010-09-26 Robert Millan <rmh@gnu.org>
22950 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22952 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22953 the pool is an array of devices, iterate through it and return the
22954 first device that passes a stat() test (instead of blindly returning
22957 2010-09-26 Robert Millan <rmh@gnu.org>
22959 Build fixes for GNU/kFreeBSD.
22961 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22962 to programs that require ZFS conversion.
22963 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22964 kernels that don't have FLOPPY_MAJOR.
22966 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22968 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22970 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22972 Fix grub-emu build.
22974 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22975 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22976 mdraid09 and mdraid1x.
22978 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22980 Re-enable grub-extras.
22982 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22983 avoid confusing Automake. Run autogen only twice, once for the top
22984 level and once for grub-core. Add Makefile.util.def and
22985 Makefile.core.def from extra modules to the appropriate autogen
22986 invocations. If Makefile.common exists in an extra module, include
22987 it in both Makefile.util.am and grub-core/Makefile.core.am;
22988 similarly, include any Makefile.util.common file in Makefile.util.am
22989 and any Makefile.core.common file in grub-core/Makefile.core.am.
22990 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22991 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22992 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22993 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22995 * gentpl.py (gvar_add): Turn GVARS into a set.
22996 (global_variable_initializers): Sort global variables on output.
22997 (vars_init): New function.
22998 (first_time): Likewise.
22999 (library): Ensure that non-global variable initialisations are
23000 emitted before the first time we emit code for a library block.
23001 Append to variables rather than setting them. Only emit
23002 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
23003 each conditional path.
23004 (program): installdir() emits an Autogen macro, so must be passed to
23005 var_add rather than gvar_add.
23007 (script): Likewise.
23008 (rules): New function, centralising handling for different target
23009 types. Set up Guile association lists for first_time and vars_init,
23010 and send most output to a diversion so that variable initialisations
23011 can be emitted first.
23012 (module_rules): Use new rules function.
23013 (kernel_rules): Likewise.
23014 (image_rules): Likewise.
23015 (library_rules): Likewise.
23016 (program_rules): Likewise.
23017 (script_rules): Likewise.
23018 (data_rules): Likewise.
23020 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
23022 * .bzrignore: Add contrib and grub-core/contrib. Remove
23023 grub-core/Makefile.gcry.am.
23025 2010-09-24 Yves Blusseau <blusseau@zetam.org>
23027 * grub-core/lib/LzFind.c: Add missing include.
23028 * grub-core/lib/LzmaEnc.c: Likewise.
23029 * grub-core/script/lexer.c: Likewise.
23030 * grub-core/script/yylex.l: Likewise.
23031 * util/grub-macho2img.c: Likewise.
23032 * util/grub-menulst2cfg.c: Likewise.
23033 * util/grub-mklayout.c: Likewise.
23034 * util/grub-mkpasswd-pbkdf2.c
23035 * util/grub-mkrelpath.c: Likewise.
23036 * util/resolve.c: Likewise.
23038 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
23040 * Makefile.util.def (example_unit_test): Add
23041 grub-core/gnulib/libgnu.a.
23043 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
23045 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
23047 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
23049 Support xz compression on yeeloong.
23051 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
23052 * configure.ac: Check for LZMA.
23053 * grub-core/Makefile.core.def (xz_decompress): New target.
23054 (none_decompress): Likewise.
23055 * grub-core/boot/decompressor/minilib.c: New file.
23056 * grub-core/boot/decompressor/none.c: Likewise.
23057 * grub-core/boot/decompressor/xz.c: Likewise.
23058 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
23059 * grub-core/kern/mips/cache_flush.S: Likewise.
23060 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
23061 * grub-core/kern/mips/startup.S: Move first stage to ...
23062 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
23064 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
23065 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
23066 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
23067 Allocate statically.
23068 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
23069 Allocate statically or use scratch. Don't check CRC32.
23070 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
23071 Allocate statically. Don't check CRC32.
23072 * include/grub/decompressor.h: New file.
23073 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
23075 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
23076 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
23077 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
23078 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
23079 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
23080 * util/grub-mkimage.c (grub_compression_t): New type.
23081 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
23082 (image_target_desc): New field default_compression.
23083 (image_targets): Adjust yeeloong targets.
23084 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
23085 (compress_kernel): New parameter comp.
23086 (generate_image): Likewise. Handle new compression case.
23087 (options): New option --compression
23089 (main): Handle new option.
23091 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
23093 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
23095 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
23097 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
23098 typo in __i386__ conditional.
23100 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
23102 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
23105 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
23107 Implement EFI and ACPI multiboot2 extensions.
23109 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
23110 new tags as supported.
23111 (acpiv2_size): New function.
23112 (grub_multiboot_get_mbi_size): Take new tags into account.
23113 (grub_multiboot_make_mbi): Add new tags.
23114 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
23116 2010-09-21 Aleš Nesrsta <starous@volny.cz>
23118 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
23119 Added missing configuration of USB device.
23121 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23123 * grub-core/normal/menu_entry.c (run): Make sure we always return
23126 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23128 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
23129 NumberOfPages is UINT64 according to the UEFI specification, not
23130 UINTN. Fix printf format.
23132 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23134 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
23135 `err' to grub_usb_err_t.
23136 Reported and tested by: KESHAV P.R.
23138 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23140 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
23141 tpart non-const, so that we can assign to it. (Since this is a
23142 typedef, the constness refers to the pointer rather than what it
23145 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23147 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
23148 $(top_srcdir)/grub-core/gnulib as well as
23149 $(top_builddir)/grub-core/gnulib.
23150 Reported by: KESHAV P.R.
23152 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23154 * util/grub-install.in: Fix the bootloader ID option to be
23155 consistently --bootloader-id, not --bootloader_id.
23156 Reported by: KESHAV P.R.
23158 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23160 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
23161 check hash checksum." consistently translatable.
23163 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23165 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
23168 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23170 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
23171 (GRUB_MOD_INIT): Register sha1sum command.
23172 (GRUB_MOD_FINI): Unregister sha1sum command.
23174 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23176 Keep boot and grub directory names in sync with utils scripts
23178 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
23179 * config.h.in: Add previous macros.
23180 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
23181 * util/grub-install.in: Use $bootdir and $grubdir variables.
23183 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23185 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23186 convert partition names to disk names if the new `convert' parameter
23188 (grub_util_biosdisk_get_grub_dev): If opening the disk device
23189 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23190 disk in its own right. This can happen with Xen disk images.
23192 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23194 * util/grub-editenv.c: Update strings to avoid warnings when generating
23196 * util/grub-setup.c: Likewise.
23198 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23200 * configure.ac: Change version to 1.99~beta0.
23202 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23204 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23206 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23208 * include/multiboot.h: Resynced with specification.
23209 * include/multiboot2.h: Likewise.
23211 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23213 Fix po directory handling.
23215 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23216 * grub-core/gnulib/Makefile.am: Import gettext module.
23217 * m4/gnulib-cache.m4: Likewise.
23218 * m4/gnulib-comp.m4: Likewise.
23219 * m4/gettext.m4: New file, from gnulib.
23220 * m4/glibc2.m4: Likewise.
23221 * m4/iconv.m4: Likewise.
23222 * m4/intdiv0.m4: Likewise.
23223 * m4/intl.m4: Likewise.
23224 * m4/intldir.m4: Likewise.
23225 * m4/intlmacosx.m4: Likewise.
23226 * m4/intmax.m4: Likewise.
23227 * m4/inttypes-pri.m4: Likewise.
23228 * m4/lcmessage.m4: Likewise.
23229 * m4/lib-ld.m4: Likewise.
23230 * m4/lib-link.m4: Likewise.
23231 * m4/lib-prefix.m4: Likewise.
23232 * m4/lock.m4: Likewise.
23233 * m4/nls.m4: Likewise.
23234 * m4/po.m4: Likewise.
23235 * m4/printf-posix.m4: Likewise.
23236 * m4/progtest.m4: Likewise.
23237 * m4/threadlib.m4: Likewise.
23238 * m4/uintmax_t.m4: Likewise.
23239 * m4/visibility.m4: Likewise.
23240 * po/Makefile.am: Remove.
23241 * po/Makefile.in.in: New file, from gettext.
23242 ($(DOMAIN).pot-update): Support POTFILES-shell.
23243 * po/Makevars: New file.
23244 * po/POTFILES-shell: Rename to ...
23245 * po/POTFILES-shell.in: ... this. Update.
23246 * po/POTFILES: Rename to ...
23247 * po/POTFILES.in: ... this. Update.
23248 * po/Rules-quot: New file, from gettext.
23249 * po/boldquot.sed: Likewise.
23250 * po/en@boldquot.header: Likewise.
23251 * po/en@quot.header: Likewise.
23252 * po/insert-header.sin: Likewise.
23253 * po/quot.sed: Likewise.
23254 * po/remove-potcdate.sin: Likewise.
23256 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23258 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23260 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23262 * util/grub.d/20_linux_xen.in: Use submenus.
23264 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23268 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23269 parameter submenu. All users updated.
23270 * grub-core/normal/main.c (free_menu): Rename to ...
23271 (grub_normal_free_menu): ... this. Made global.
23272 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23274 * grub-core/normal/menu_entry.c (screen): New field submenu.
23275 (make_screen): Set submenu.
23276 (run): Open new context if requested.
23277 * include/grub/menu.h (grub_menu_entry): New field submenu.
23278 * include/grub/normal.h (grub_normal_free_menu): New proto.
23280 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23282 Menu entries extractor.
23284 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23286 (GRUB_MOD_INIT): Register new variants.
23287 (GRUB_MOD_FINI): Unregister new variants.
23288 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23289 into grub_cmd_legacy_source.
23290 (grub_cmd_legacy_source): Implement extractor variants.
23291 (GRUB_MOD_INIT): Register new variants.
23292 (GRUB_MOD_FINI): Unregister new variants.
23293 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23295 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23296 search as an extractor.
23297 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23298 test as an extractor.
23299 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23301 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23302 (grub_env_new_context): New function.
23303 (grub_env_context_open): Likewise.
23304 (grub_env_extractor_open): Likewise.
23305 (grub_env_extractor_close): Likewise.
23306 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23307 grub_extractor_level.
23308 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23309 * include/grub/env.h (grub_env_extractor_open): New proto.
23310 (grub_env_extractor_close): Likewise.
23311 * include/grub/normal.h (grub_extractor_level): New external variable.
23313 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23315 Make cutmem accept a region specification.
23316 Suggested by: Samuel Thibault
23318 * grub-core/mmap/mmap.c (parsemem): New function.
23319 (grub_cmd_cutmem): Handle new arguments.
23321 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23323 New command cutmem.
23325 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23326 (GRUB_MOD_INIT): Register new command.
23327 (GRUB_MOD_FINI): Unregister new command.
23329 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23331 Support some annoying BSD and Minix subpartitions.
23333 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23334 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23335 Properly handle concatenation.
23336 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23337 * grub-core/normal/completion.c (iterate_partition): Likewise.
23338 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23339 contain partition. All users updated.
23340 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23342 (grub_openbsdlabel_partition_map): Likewise.
23343 (bsdlabel_partition_map_iterate): Rename to ..
23344 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23345 (bsdlabel_partition_map_iterate): New function.
23346 (netopenbsdlabel_partition_map_iterate): Likewise.
23347 (netbsdlabel_partition_map_iterate): Likewise.
23348 (openbsdlabel_partition_map_iterate): Likewise.
23349 (GRUB_MOD_INIT): Register new partmaps.
23350 (GRUB_MOD_FINI): Unregister new partmaps.
23351 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23352 (grub_partition_msdos_iterate): ... this. All users updated.
23353 Don't support embedding other than in a minix partition.
23354 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23356 * include/grub/partition.h (grub_partition): New field msdostype.
23357 * util/grub-install.in: Handle openbsd and netbsd types being in
23360 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23362 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23364 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23365 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23366 (mdraid09): ... this.
23367 (mdraid1x): New module.
23368 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23369 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23371 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23373 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23376 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23378 * grub-core/commands/efi/lsefimmap.c: Correct header.
23381 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23383 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23384 as printf format strings; the translations might contain '%' which
23385 could cause a crash.
23387 * util/grub-fstest.c (argp_parser): Likewise.
23388 * util/grub-setup.c (argp_parser): Likewise.
23391 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23393 Use argp in grub-fstest.
23395 * util/grub-fstest.c: Don't include getopt.h.
23397 (root): New variable.
23398 (args_count): Likewise.
23400 (num_disks): Likewise.
23401 (images): Likewise.
23403 (debug_str): Likewise.
23405 (options): Transformed to argp.
23407 (main): Split argument parsing into ...
23408 (argp_parser): ... this. Changed to argp format.
23409 (argp): New variable.
23410 (main): Use argp_parse.
23412 2010-09-20 Tristan Gingold <gingold@free.fr>
23413 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23414 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23416 * grub-core/commands/efi/lsefimmap.c: New file.
23417 * grub-core/Makefile.core.def (lsefimmap): New module.
23418 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23420 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23422 Pause the execution (10s max) if any errors are displayed so the user
23423 has a chance to see them.
23425 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23426 (grub_print_error): Increment grub_err_printed_errors.
23427 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23428 execution if any errors were displayed.
23429 (show_menu): Remove old code for pause.
23430 * grub-core/normal/menu_entry.c (run): Likewise.
23431 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23433 (grub_normal_get_char_counter): Likewise.
23434 * include/grub/err.h (grub_err_printed_errors): New external variable.
23435 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23437 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23439 Support multiboot VBE info.
23441 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23442 Take VBE info into account.
23443 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23444 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23445 Call fill_vbe_info when appropriate.
23446 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23447 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23449 (grub_multiboot_get_mbi_size): Take new tags into account.
23450 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23451 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23452 Call fill_vbe_tag when appropriate.
23453 (grub_multiboot_make_mbi): Properly align tags.
23454 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23456 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23458 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23460 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23462 Suport manual terminal geometry specification.
23464 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23465 Save state in grub_ofconsole_terminfo_output.
23466 (grub_ofconsole_term): Use grub_terminfo_getwh.
23467 (grub_ofconsole_getwh): Removed.
23468 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23469 (grub_serial_term): Use grub_terminfo_getwh.
23470 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23471 (options): New struct.
23472 (OPTION_*): New enum.
23473 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23474 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23476 (grub_terminfo_getwh): New proto.
23477 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23479 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23481 Handle legacy "terminal" command.
23483 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23485 (legacy_commands): Add terminal and title.
23486 (grub_legacy_parse): Handle terminal. Simplify title handling.
23488 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23490 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23491 parameters overflow.
23493 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23495 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23498 * docs/grub.texi (Shell-like scripting): Document `!'.
23499 (Network): Simplify using new i386-pc-pxe format. Mention
23504 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23506 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23507 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23510 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23512 * grub-core/commands/efi/lsefisystab.c: Correct header.
23513 * grub-core/commands/efi/lssal.c: Likewise.
23514 * grub-core/commands/testload.c: Likewise.
23516 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23518 * util/grub-mkrescue.in: Add explicit root argument to --set to
23519 prevent the UUID being interpreted as an argument to --set (matches
23520 previous change to prepare_grub_to_access_device).
23522 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23524 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23525 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23526 the verbosity of later #ifs.
23527 (find_partition_start): Define this function on FreeBSD too.
23528 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23530 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23533 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23535 * util/grub-editenv.c: Use argp instead of getopt.
23537 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23539 * util/grub-setup.c: Use argp instead of getopt.
23541 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23543 Use gnulib-tool to create gnulib source files.
23545 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23546 grub-core/gnulib directories
23547 * .bzignore: Add **/.deps and autogenerated gnulib files
23548 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23549 of gnulib macros, add grub-core/gnulib/Makefile
23550 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23551 include m4 directory to aclocal.
23552 * Makefile.util.def: Remove direct compilation of gnulib source files
23553 and use the new grub-core/gnulib/libgnu.a.
23554 * build-aux/config.rpath: move config.rpath from top directory to
23556 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23558 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23559 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23560 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23562 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23565 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23567 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23568 grub-core/genmod.sh and grub-core/gensyminfo.sh
23570 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23572 Add a test for echo command options.
23574 * tests/grub_cmd_echo.in: New test.
23575 * Makefile.util.def: Rules for new test.
23577 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23579 Remove crc.mod and move crc command to hashsum.mod.
23580 Remove lib/crc.c - users updated to use gcrypt implementation.
23582 * grub-core/commands/crc.c: Removed.
23583 * grub-core/Makefile.core.def (crc): Module removed.
23584 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23585 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23586 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23587 * grub-core/lib/crc.c: Removed.
23588 * include/grub/lib/crc.h: Removed.
23589 * Makefile.util.def (crc): Remove lib/crc.c
23590 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23591 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23592 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23593 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23594 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23595 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23597 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23599 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23601 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23603 Split config.h for util and core.
23605 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23606 (ADDR32): Likewise.
23607 (DATA32): Likewise.
23608 (BSS_START_SYMBOL): Likewise.
23609 (END_SYMBOL): Likewise.
23610 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23611 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23612 * config.h.in: New file.
23613 * configure.ac: Use config-util.h as config define file.
23614 Rename MACHINE into GRUB_MACHINE. All users updated.
23615 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23617 (NESTED_FUNC_ATTR): Likewise.
23618 Substitue new variables.
23619 (COND_HAVE_ASM_USCORE): New conditional.
23620 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23621 (kernel_syms.lst): Use ASM_PREFIX.
23622 * grub-core/kern/emu/console.c: Include config-util.h.
23623 * grub-core/kern/emu/misc.c: Likewise.
23624 * grub-core/kern/emu/mm.c: Likewise.
23625 * include/grub/emu/misc.h: Likewise.
23626 * include/grub/libgcc.h: Likewise.
23628 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23630 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23632 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23633 Fix GRUB_TERM_KEY_* constants usage.
23634 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23636 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23638 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23640 * grub-core/bus/usb/uhci.c: Remove empty define.
23641 (grub_uhci_check_transfer): Add missing cast.
23642 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23644 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23646 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23648 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23650 * grub-core/Makefile.core.def (legacycfg): Add
23651 lib/i386/pc/vesa_modes_table.c on emu.
23653 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23655 Reduce number of temporary files generated by build system.
23657 * grub-core/gencmdlist.sh: Removed.
23658 * grub-core/genfslist.sh: Removed.
23659 * grub-core/genhandlerlist.sh: Removed.
23660 * grub-core/genmodsrc.sh: Removed.
23661 * grub-core/genpartmaplist.sh: Removed.
23662 * grub-core/genparttoollist.sh: Removed.
23663 * grub-core/gentermiinallist.sh: Removed.
23664 * grub-core/genvideolist.sh: Removed.
23666 * grub-core/genmod.sh.in: New file.
23667 * grub-core/gensyminfo.sh.in: New file.
23669 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23670 * conf/Makefile.extra-dist: Update with new files.
23671 * gentpl.py: Remove rules related to unnecessary temporary files.
23672 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23674 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23676 * grub-core/bus/usb/uhci.c: Remove empty #define.
23677 * grub-core/genmoddep.awk: Updated with new syminfo format.
23678 * util/bash-completion.d/Makefile.am: Add config.log to
23681 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23683 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23685 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23687 * util/grub-mkconfig.in: Check the config script for syntax errors
23690 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23691 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23693 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23695 * util/grub-install.in: Add EFI and IEEE1275 support.
23696 * util/i386/efi/grub-install.in: Removed.
23697 * util/ieee1275/grub-install.in: Likewise.
23699 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23701 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23702 (grub_cmd_cmosclean): Likewise.
23703 (GRUB_MOD_INIT): Register command cmosclean.
23704 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23705 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23707 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23708 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23709 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23711 Add keyboard layouts support.
23713 * Makefile.util.def (grub-mklayout): New file.
23714 (grub-kbdcomp): New script.
23715 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23716 Add keyboard_layouts.h.
23717 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23718 commands/boot.c on yeeloong.
23719 (keylayouts): New module.
23720 * grub-core/bus/usb/ohci.c
23721 * grub-core/bus/usb/uhci.c
23722 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23723 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23724 (attach_root_port): Likewise.
23725 (poll_nonroot_hub): Likewise.
23726 (grub_usb_poll_devices): Likewise.
23727 (detach_device): Close transfer.
23728 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23730 (grub_usb_bulk_setup_readwrite): Likewise.
23731 (grub_usb_bulk_finish_readwrite): Likewise.
23732 * grub-core/commands/keylayouts.c: New file.
23733 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23734 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23736 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23737 support scancode 2.
23738 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23739 * include/grub/keyboard_layouts.h: New file.
23740 * util/grub-mklayout.c: New file.
23741 * util/grub-kbdcomp.in: Likewise.
23743 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23745 Unify memory types.
23747 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23748 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23750 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23751 (grub_upper_mem): Likewise.
23752 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23753 * include/grub/memory.h (grub_memory_type_t): New enum.
23756 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23758 * grub-core/Makefile.core.def (lsapm): New module.
23759 * grub-core/commands/i386/pc/lsapm.c: New file.
23760 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23761 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23763 * include/grub/i386/pc/apm.h: New file.
23764 * include/multiboot.h (multiboot_apm_info): New struct.
23766 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23768 GRUB-legacy configuration file support.
23770 * Makefile.util.def (grub-menulst2cfg): New util.
23771 * docs/man/grub-menulst2cfg.h2m: New file.
23772 * grub-core/Makefile.core.def (legacycfg): New module.
23773 * grub-core/commands/legacycfg.c: New file.
23774 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23775 (grub_normal_add_menu_entry): ... this.
23776 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23777 (grub_normal_set_password): ...this.
23778 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23779 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23780 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23781 * grub-core/lib/legacy_parse.c: New file.
23782 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23783 * include/grub/i386/pc/vesa_modes_table.h: New file.
23784 * include/grub/legacy_parse.h: Likewise.
23785 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23786 * util/grub-menulst2cfg.c: New file.
23788 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23790 * grub-core/kern/emu/hostdisk.c
23791 (convert_system_partition_to_system_disk): Initialise node.
23793 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23795 * grub-core/kern/emu/hostdisk.c
23796 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23798 Reported and based on patch by: Modestas Vainius.
23800 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23802 Fix DM-RAID probing with recent versions of device-mapper udev
23805 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23806 canonicalise device paths under /dev/mapper/.
23807 (convert_system_partition_to_system_disk): Compare the
23808 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23809 path, since device nodes under /dev/mapper/ are often symlinks.
23811 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23813 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23815 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23817 * configure.ac: Avoid some annoying error messages if freetype-config
23818 program is not found.
23820 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23822 Support RAID on virtio devices, and others.
23824 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23826 [__MINGW32__] (grub_find_device): ... this.
23827 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23828 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23829 reasonable default if dir is NULL.
23830 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23832 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23833 (grub_guess_root_device): Update callers.
23834 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23836 * util/raid.c (grub_util_getdiskname): Remove.
23837 (grub_util_raid_getmembers): Use grub_find_device rather than
23838 grub_util_getdiskname.
23840 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23842 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23843 needing to be compiled with serial support.
23844 (ls): Indicate that multiple files are accepted.
23845 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23846 indicate that multiple files are accepted.
23848 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23850 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23851 libgrub_a_init.c, and util/bash-completion.d/grub.
23853 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23855 * util/grub-setup.c (setup): Fix incorrect container semantics.
23857 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23859 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23861 Reported by: J. Nick Terry
23863 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23865 Move embedding routines to partmap sources files.
23867 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23868 [GRUB_UTIL]: New variable.
23869 (gpt_partition_map_iterate): Set part.parent.
23870 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23871 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23872 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23874 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23875 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23876 (grub_partition_map) [GRUB_UTIL]: New field embed.
23877 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23878 (setup): Use ->embed.
23880 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23882 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23884 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23885 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23887 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23889 Add function to get completions from usage.
23891 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23892 completions from usage. Use LC_ALL=C to get options properly.
23894 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23896 * grub-core/gnulib/basename-lgpl.c: Imported.
23897 * grub-core/gnulib/basename.c: Likewise.
23898 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23899 * grub-core/gnulib/dirname.c: Likewise.
23900 * grub-core/gnulib/dirname.h: Likewise.
23901 * grub-core/gnulib/stripslash.c: Likewise.
23903 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23905 * grub-core/gnulib/error.c: Resynced.
23906 * grub-core/gnulib/getopt.c: Likewise.
23907 * grub-core/gnulib/getopt_int.h: Likewise.
23908 * grub-core/gnulib/regex.h: Likewise.
23909 * grub-core/gnulib/regex_internal.c: Likewise.
23910 * grub-core/gnulib/regex_internal.h: Likewise.
23912 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23914 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23915 CRC calculations and validity checks.
23916 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23919 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23921 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23923 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23925 Fix incorrect echo options handling.
23926 Reported by: Yves Blusseau.
23928 * include/grub/command.h (grub_command_flags_t): New flags
23929 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23930 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23931 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23933 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23935 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23937 (GRUB_COMMAND_FLAG_MENU): Likewise.
23938 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23939 (GRUB_COMMAND_FLAG_TITLE): Removed.
23940 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23941 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23942 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23943 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23944 (grub_command_flags_t): New enum. All users updated.
23946 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23948 Fix solaris compilation.
23950 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23951 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23952 (grub-emu-list): Likewise.
23954 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23956 Remove deprecated root command.
23958 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23961 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23963 * util/i386/pc/grub-setup.c: Merge this ...
23964 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23965 * util/grub-setup.c: ... into this.
23966 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23969 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23971 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23974 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23976 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23979 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23981 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23982 explicit root argument to set to prevent UUID to be interpreted as
23985 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23987 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23989 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23991 Don't export grub_gate_a20.
23993 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23994 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23996 (grub_gate_a20): ... this. All users updated.
23997 * include/grub/i386/pc/init.h: Removed. All users updated.
23999 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
24001 Create euro.pf2 which supports most European languages.
24003 * Makefile.am (grubdata_DATA): Add euro.pf2.
24004 (euro.pf2): New target.
24005 (CLEANFILES): Add euro.pf2.
24007 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
24009 * configure.ac: Disable emu-usb by default to prevent inadvertent
24012 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24014 Disable usbserial on grub-emu since our libusb code isn't good enough
24017 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
24018 (usbserial_pl2303): Likewise.
24019 (usbserial_ftdi): Likewise.
24021 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24023 * include/grub/disk.h (grub_disk): Remove has_partitions.
24025 * disk/loopback.c (grub_loopback): Remove has_partitions.
24027 (options): Remove partitions. All users updated.
24028 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
24029 * util/i386/pc/grub-setup.c (setup): copy partition table only when
24030 actual partition table is found.
24032 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24034 Remove readability checks (too many false negatives).
24036 * util/grub-install.in: Remove readability checks.
24037 * util/grub-mkconfig.in: Likewise.
24038 * util/grub.d/10_hurd.in: Likewise.
24039 * util/grub.d/10_kfreebsd.in: Likewise.
24040 * util/grub.d/10_linux.in: Likewise.
24041 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
24044 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24046 Enable acpi shutdown on all ACPI platforms.
24048 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
24049 on coreboo, multiboot and EFI.
24050 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
24051 (grub_acpi_halt): Likewise.
24052 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
24053 (grub_cmd_halt): Don't call grub_acpi_halt directly.
24054 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
24055 * grub-core/lib/i386/halt.c (grub_halt)
24056 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
24058 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24060 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
24063 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24065 * grub-core/video/efi_gop.c: Fix over-80-chars line.
24066 * grub-core/video/efi_uga.c: Likewise.
24068 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24070 Filter devaliases and never open same device twice.
24072 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
24073 (last_ihandle): Likewise.
24074 (ofdisk_hash_ent): New member shortest.
24075 (ofdisk_hash_add): Add canonical path too.
24076 (scan): New function.
24077 (grub_ofdisk_iterate): Iterate over hashed entries.
24078 (compute_dev_path): Don't add :0.
24079 (grub_ofdisk_open): Don't really open the disk.
24080 (grub_ofdisk_close): Avoid closing unrelated disk.
24081 (grub_ofdisk_read): Implement reopen logic.
24082 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
24084 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
24087 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24091 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
24092 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
24093 right address. Add sparc64_ieee1275_ldflags.
24094 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
24095 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
24096 to grub_host_to_target_addr
24097 (load_image): Likewise.
24099 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24101 * grub-core/normal/completion.c (complete_file): Handle device
24103 Fix based on patch by Doug Nazar.
24105 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24107 grub-mknetdir script.
24109 * Makefile.util.def (grub-mknetdir): New module.
24110 * tests/util/grub-shell.in: Support boot=net
24111 * util/grub-mknetdir.in: New file.
24113 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24115 videoinfo on non-vbe.
24117 * grub-core/Makefile.core.def (vbeinfo): Removed.
24118 (vbetest): Removed.
24119 (videoinfo): New module.
24120 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
24121 * grub-core/commands/i386/pc/vbetest.c: Removed.
24122 * grub-core/commands/videoinfo.c: New file.
24123 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
24125 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
24127 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
24128 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
24129 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
24130 mode_number. New parameter mode. All users updated.
24131 (grub_video_gop_iterate): New function.
24132 (grub_video_efi_gop): New member iterate.
24133 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
24134 (grub_vbe_set_video_mode): Remove setting useless fields.
24135 (vbe2videoinfo): New function.
24136 (grub_video_vbe_iterate): Likewise.
24137 (grub_video_vbe_setup): Use vbe2videoinfo.
24138 (grub_video_vbe_print_adapter_specific_info): New function.
24139 (grub_video_vbe_adapter): New fields iterate and
24140 print_adapter_specific_info.
24141 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
24143 (grub_video_mode_info): New field mode_number.
24144 (grub_video_adapter): New fields iterate and
24145 print_adapter_specific_info.
24147 2010-09-13 Tristan Gingold <gingold@free.fr>
24148 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
24149 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24151 * grub-core/commands/efi/lsefisystab.c: New file.
24152 * grub-core/commands/efi/lssal.c: Likewise.
24153 * grub-core/Makefile.core.def (lsacpi): New module.
24154 (lsefisystab): Likewise.
24155 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
24156 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
24157 (grub_efi_sal_system_table): New struct.
24158 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
24159 (grub_efi_sal_system_table_memory_descriptor): Likewise.
24160 (grub_efi_sal_system_table_platform_features): Likewise.
24161 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
24162 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
24163 (grub_efi_sal_system_table_ap_wakeup): Likewise.
24164 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
24166 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24168 Support explicit user claim that a device is BIOS-visible.
24170 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
24171 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
24172 * grub-core/kern/emu/hostdisk.c
24173 (convert_system_partition_to_system_disk): Support mdX.
24174 (find_system_device): New parameter add. All users updated.
24175 (grub_util_biosdisk_is_present): New function.
24176 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
24179 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24181 Search hints support.
24183 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24186 2010-09-13 Yves Blusseau <blusseau@zetam.org>
24188 Bash completion script for util commands
24190 * Makefile.am: Add util/bash-completion.d directory
24191 * configure.ac: Likewise.
24192 * util/bash-completion.d/Makefile.am: New file.
24193 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24195 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24197 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24198 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24199 Reported by: Yves Blusseau.
24201 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24203 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24204 partition size and offset.
24206 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24208 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24210 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24212 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24214 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24216 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24217 (grub_xvasprintf): Likewise.
24219 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24221 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24223 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24225 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24226 args ending with NULL.
24228 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24230 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24233 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24235 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24237 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24239 Shutdown using ACPI.
24241 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24242 * grub-core/commands/acpihalt.c: New file.
24243 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24244 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24245 (grub_acpi_halt): New proto.
24246 (GRUB_ACPI_SLP_EN): New const.
24247 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24248 (GRUB_ACPI_OPCODE_*): New enum.
24249 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24251 2010-09-11 Tristan Gingold <gingold@free.fr>
24252 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24253 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24255 * commands/lsacpi.c: New file.
24256 * grub-core/Makefile.core.def (lsacpi): New module.
24257 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24258 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24259 (grub_acpi_madt_entry_header): New struct.
24260 (grub_acpi_madt): Likewise.
24261 (grub_acpi_madt_entry_interrupt_override): Likewise.
24262 (grub_acpi_madt_entry_sapic): Likewise.
24263 (grub_acpi_madt_entry_lsapic): Likewise.
24264 (grub_acpi_madt_entry_platform_int_source): Likewise.
24265 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24266 (PRIuGRUB_UINT32_T): Likewise.
24267 (PRIxGRUB_UINT64_T): Likewise.
24269 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24271 Implement loading palette on ieee1275_fb.
24273 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24274 (have_setcolors): Likewise.
24275 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24276 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24277 (grub_video_ieee1275_set_palette): Implement.
24279 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24280 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24282 * util/grub-install.in (grub_partition): New variable.
24283 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24284 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24285 Fixes a bug reported by Yves Blusseau.
24287 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24291 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24292 =grub_cpu_flush_cache on all mips and not only yeeloong.
24293 * configure.ac (COND_mips): New conditional.
24294 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24296 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24297 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24298 [GRUB_LINKER_HAVE_INIT]: New function.
24299 (grub_emu_post_init): Likewise.
24300 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24301 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24302 * include/grub/cache.h (_mips): Include mips/cache.h.
24303 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24304 LVM and RAID prototypes.
24305 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24306 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24309 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24311 * util/grub-install.in: Don't try to verify core.img until after
24312 running grub-mkimage to create it.
24314 2010-09-10 Robert Millan <rmh@gnu.org>
24316 * util/grub.d/10_hurd.in: Add misc readability checks.
24317 * util/grub.d/10_kfreebsd.in: Likewise.
24318 * util/grub.d/10_linux.in: Likewise.
24320 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24322 * util/grub-install.in: ${imgext} won't be defined here until the
24323 install branch is merged. For the meantime, only verify core.img on
24324 i386-pc and sparc64-ieee1275 platforms.
24326 2010-09-10 Robert Millan <rmh@gnu.org>
24328 Solaris support in grub_find_zpool_from_dir(). Thanks
24329 Seth Goldberg for referring to getextmntent() facility.
24331 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24333 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24335 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24336 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24337 method for finding zpool name.
24339 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24341 grub-fstest needs the host and hostfs modules while other utilities
24342 actively require those modules to be absent, so grub-fstest needs
24343 its own initialisation and finalisation code.
24345 * Makefile.am (grub_fstest.pp): New target.
24346 (grub_fstest_init.lst): Likewise.
24347 (grub_fstest_init.c): Likewise.
24348 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24350 2010-09-10 Robert Millan <rmh@gnu.org>
24352 * configure.ac: Check for `struct statfs.f_fstypename' and
24353 `struct statfs.f_mntfromname'.
24355 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24356 kFreeBSD-specific code.
24358 2010-09-10 Robert Millan <rmh@gnu.org>
24360 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24361 on ZFS. Now non-main filesystems are supported as / too.
24363 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24365 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24366 and grub-core/disk/host.c to ...
24367 (grub-fstest): ... here. Having the host disk implementation
24368 present confuses grub-probe and other utility programs.
24370 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24371 when writing to a file, not when writing to stdout.
24373 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24375 * tests/partmap_test.in: New test for partitions.
24376 * Makefile.util.def: Rules for new test.
24378 2010-09-09 Robert Millan <rmh@gnu.org>
24380 * util/grub-probe.c (probe): Fix a pair of unhandled error
24383 2010-09-09 Robert Millan <rmh@gnu.org>
24385 Basic Btrfs support (detection and UUID).
24387 * grub-core/fs/btrfs.c: New file.
24388 * Makefile.util.def (library): Register btrfs.c.
24389 * grub-core/Makefile.core.def: Likewise.
24391 2010-09-08 Robert Millan <rmh@gnu.org>
24393 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24394 with (optional) parameters to specify device and relative path.
24395 * util/grub-install.in: Use is_path_readable_by_grub() to
24396 verify readability of a few critical files.
24397 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24398 verify readability of grub.cfg.new.
24400 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24402 Split minix.mod into minix.mod and minix2.mod.
24404 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24405 * grub-core/Makefile.core.def (minix2): New module.
24406 * grub-core/fs/minix.c: Use definitions instead of runtime version
24408 * grub-core/fs/minix2.c: New file.
24410 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24412 Add new --boot-directory option to replace --root-directory
24414 * util/grub-install.in: Add new --boot-directory option
24415 * util/grub-reboot.in: Likewise.
24416 * util/grub-set-default.in: Likewise.
24418 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24420 * util/grub-mkconfig.in: Use new variable.
24422 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24424 * configure.ac: Define some useful variables.
24426 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24428 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24429 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24430 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24431 Use terminfo and don't use cursor-on/cursor-off unless it's known
24433 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24434 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24436 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24438 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24439 starts with "(,", fill the drive containing the loaded image in
24440 between those two characters, but expect that a full partition
24441 specification including partition map names will follow.
24443 2010-09-08 Robert Millan <rmh@gnu.org>
24445 * configure.ac: Remove `--enable-grub-fstest' option.
24446 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24448 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24449 `grub-fstest' instead of `grub-probe' for readability verification.
24450 * util/grub-probe.c (probe): Remove readability verification kludge.
24452 2010-09-08 Robert Millan <rmh@gnu.org>
24454 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24455 initializing `GRUB_FS'.
24457 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24459 Not command (!) support to GRUB script.
24461 * tests/grub_script_not.in: New test.
24462 * Makefile.util.def: Rules for new test.
24464 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24465 ! command as a special case.
24466 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24468 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24470 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24473 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24475 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24477 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24479 * docs/grub.texi (Shell-like scripting): Documentation for break,
24480 continue, shift and return commands.
24482 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24484 Rename CD-ROM to cd on BIOS.
24486 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24488 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24490 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24492 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24493 * util/grub-probe.c (main): Likewise.
24494 * util/i386/pc/grub-setup.c (main): Likewise.
24495 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24496 Reported and debugged by: alexxy
24498 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24500 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24503 2010-09-05 Jo Shields <directhex@apebox.org>
24505 * util/grub.d/30_os-prober.in: Add missing classes.
24507 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24509 * docs/grub.texi (Theme file format): Document new position format.
24511 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24513 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24514 a table. Use @code instead of @verbatim.
24516 2010-09-05 Colin D Bennett <colin@gibibit.com>
24518 Gfxmenu documentation.
24520 * docs/grub.texi (Theme file format): New chapter.
24522 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24524 * grub-core/Makefile.core.def (xzio): New module.
24525 * grub-core/io/xzio.c: New file.
24526 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24527 * grub-core/lib/xzembed/xz_config.h: Likewise.
24528 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24529 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24530 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24531 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24532 * grub-core/lib/xzembed/xz_private.h: Likewise.
24533 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24534 * include/grub/file.h (grub_file_filter_id): New compression filter
24535 GRUB_FILE_FILTER_XZIO.
24537 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24539 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24540 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24543 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24545 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24546 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24548 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24550 Uncompressed checksum support.
24552 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24553 (check_list): New parameter uncompress.
24554 (grub_cmd_hashsum): Handle --uncompress.
24556 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24558 Reintroduce testload.
24560 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24562 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24563 (GRUB_MOD_INIT): New function.
24564 (GRUB_MOD_FINI): Likewise.
24565 * grub-core/Makefile.core.def (testload): New module.
24567 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24569 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24570 (uint8_t): New type.
24571 (uint16_t): Likewise.
24572 (uint32_t): Likewise.
24573 (uint64_t): Likewise.
24575 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24577 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24579 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24581 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24583 (grub_gzfile_open): Removed. All users updated.
24584 (GRUB_MOD_INIT): New function.
24585 (GRUB_MOD_FINI): Likewise.
24586 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24587 (grub_file_filters_enabled): Likewise.
24588 (grub_file_open): Handle filters.
24589 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24590 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24591 * include/grub/file.h (grub_file_filter_id_t): New type.
24592 (grub_file_filter_t): Likewise.
24593 (grub_file_filters_all): New extern variable.
24594 (grub_file_filters_enabled): Likewise.
24595 (grub_file_filter_register): New inline function.
24596 (grub_file_filter_unregister): Likewise.
24597 (grub_file_filter_disable): Likewise.
24598 (grub_file_filter_disable_compression): Likewise.
24599 * include/grub/gzio.h: Removed.
24601 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24603 Filename expansion support for wildcards in GRUB script.
24605 * tests/grub_script_expansion.in: New test.
24606 * Makefile.util.def: Rule for new test.
24608 * grub-core/commands/wildcard.c: New file, implements filename
24609 expansion support for GRUB script.
24610 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24611 * grub-core/script/argv.c: Cosmetic changes.
24612 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24613 Refactored to perform wildcard expansion on arguments.
24614 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24617 * tests/util/grub-shell.in: Fix quoting for read input.
24619 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24621 Support for updating environment variables with matched substrings
24624 * tests/grub_cmd_regexp.in: New test.
24625 * Makefile.util.def: Rule for new test.
24627 * grub-core/commands/regexp.c: New option -s to update environment
24628 variables with regexp matches.
24630 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24632 * include/grub/file.h (grub_file): New member not_easly_seekable.
24633 (grub_file_seekable): New inline function.
24634 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24636 (grub_gzio_open): Set not_easly_seekable.
24637 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24638 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24640 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24642 Support for options to appear multiple times on cmdline.
24644 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24645 * grub-core/commands/extcmd.c: Support for repeatable option.
24646 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24647 repeatable option support.
24649 Refactor menuentry into a regular command.
24651 * grub-core/commands/menuentry.c: New file, menuentry command
24653 * grub-core/Makefile.core.def: Rule update for normal.mod.
24654 * grub-core/normal/main.c: Moved menuentry creation to
24655 grub-core/commands/menuentry.c.
24656 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24657 (grub_menu_execute_entry_real): Removed.
24658 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24660 (grub_script_execute_menuentry): Removed.
24661 * grub-core/script/parser.y (menuentry): Removed.
24662 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24663 * grub-core/script/yylex.l (menuentry): Removed.
24664 * include/grub/menu.h (grub_menu_init): New prototype.
24665 (grub_menu_fini): New prototype.
24666 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24667 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24668 (grub_script_execute_sourcecode): New prototype.
24670 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24672 "return" command for GRUB script functions.
24674 * tests/grub_script_return.in: New test.
24675 * Makefile.util.def: Rules for new test.
24677 * grub-core/script/execute.c (grub_script_return): New function.
24678 * grub-core/script/main.c: Register/unregister return commaond.
24679 * include/grub/script_sh.h (grub_script_return): New prototype.
24681 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24683 "setparams" command to update positional parameters.
24685 * tests/grub_script_setparams.in: New test.
24686 * Makefile.util.def: Rules for new test.
24688 * grub-core/script/argv.c (grub_script_argv_make): New function.
24689 * grub-core/script/execute.c (replace_scope): New function.
24690 (grub_script_setparams): New function.
24691 * grub-core/script/lexer.c: Remove unused variables.
24692 * grub-core/script/main.c: Register/unregister setparams command.
24693 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24694 (grub_script_setparams): New prototype.
24696 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24698 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24701 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24703 Support for passing block of commands as an argument to extcmds.
24705 * Makefile.util.def: Rules for new test.
24706 * tests/grub_script_blockarg.in: New test.
24707 * grub-core/tests/test_blockarg.c: New file, block argument
24708 command used in the test.
24710 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24711 (grub_register_extcmd_prio): New function prototype.
24712 (grub_extcmd_dispatcher): New function prototype.
24713 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24715 * include/grub/script_sh.h (struct grub_script): New members
24716 `children', `next_siblings' and `refcnt' for block arguments and
24717 reference counting.
24718 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24719 (grub_script_arg): New member `script' for block argument.
24720 (grub_script_argv): New member `script' for block argument.
24721 (grub_parser_param): New member `scripts' for block argument.
24722 (grub_script_mem_free): New extern function prototype.
24723 (grub_script_ref): New function prototype.
24724 (grub_script_unref): New function prototype.
24726 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24727 extcmd form to support block arguments.
24728 * grub-core/script/argv.c: Block arguments support.
24729 * grub-core/script/execute.c: Likewise.
24730 * grub-core/script/lexer.c: Likewise.
24731 * grub-core/script/main.c: Likewise.
24732 * grub-core/script/script.c: Likewise.
24733 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24736 * grub-core/commands/acpi.c: Update extcmd implementations with
24737 grub_extcmd_context_t.
24738 * grub-core/commands/cat.c: Likewise.
24739 * grub-core/commands/echo.c: Likewise.
24740 * grub-core/commands/extcmd.c: Likewise.
24741 * grub-core/commands/hashsum.c: Likewise.
24742 * grub-core/commands/hdparm.c: Likewise.
24743 * grub-core/commands/help.c: Likewise.
24744 * grub-core/commands/hexdump.c: Likewise.
24745 * grub-core/commands/i386/cpuid.c: Likewise.
24746 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24747 * grub-core/commands/i386/pc/halt.c: Likewise.
24748 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24749 * grub-core/commands/iorw.c: Likewise.
24750 * grub-core/commands/keystatus.c: Likewise.
24751 * grub-core/commands/loadenv.c: Likewise.
24752 * grub-core/commands/ls.c: Likewise.
24753 * grub-core/commands/lspci.c: Likewise.
24754 * grub-core/commands/memrw.c: Likewise.
24755 * grub-core/commands/probe.c: Likewise.
24756 * grub-core/commands/search_wrap.c: Likewise.
24757 * grub-core/commands/setpci.c: Likewise.
24758 * grub-core/commands/sleep.c: Likewise.
24759 * grub-core/disk/loopback.c: Likewise.
24760 * grub-core/hello/hello.c: Likewise.
24761 * grub-core/loader/i386/bsd.c: Likewise.
24762 * grub-core/loader/xnu.c: Likewise.
24763 * grub-core/term/gfxterm.c: Likewise.
24764 * grub-core/term/serial.c: Likewise.
24765 * grub-core/tests/lib/functional_test.c: Likewise.
24767 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24769 Multi-line quoted strings support.
24771 * grub-core/script/lexer.c (append_newline): Removed.
24772 (grub_script_lexer_yywrap): Refactored.
24773 (grub_script_lexer_init): Refactored.
24774 * grub-core/script/yylex.l (yywrap): New function.
24775 (grub_lexer_resplit): New function.
24776 (grub_lexer_unput): New function.
24777 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24779 * tests/grub_script_echo1.in: Added few more testcases.
24781 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24783 * grub-core/kern/misc.c: Don't add abort alias in utils.
24784 Reported by: echoline.
24786 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24788 Add missing files into "make dist" tarball for other platforms.
24790 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24791 * conf/Makefile.common (dist_noinst_DATA): New variable.
24792 * conf/Makefile.extra-dist: Added missing make dist files.
24793 * grub-core/Makefile.core.def: Likewise.
24795 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24797 Compress grub_prefix.
24799 * grub-core/boot/i386/pc/lnxboot.S: Use
24800 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24801 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24802 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24803 GRUB_MACHINE_PREFIX_END. All users updated.
24804 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24805 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24807 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24808 * util/grub-mkimage.c (image_target_desc): Change data_end to
24809 prefix_end. All users updated.
24811 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24813 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24815 (grub_openbsd_boot): Likewise.
24816 (grub_netbsd_boot): Likewise.
24817 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24818 (grub_xnu_boot): Likewise.
24820 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24822 * configure.ac: Clean LIBS variable after tests.
24824 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24826 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24828 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24830 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24831 echo if libdevmapper will be used.
24833 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24835 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24836 constant for the same file.
24838 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24840 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24842 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24844 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24847 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24849 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24850 required by the boot protocol.
24852 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24853 ebp and edi members.
24854 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24855 state.ebp and state.edi.
24856 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24857 %ebp and %edi according to grub_relocator32_ebp and
24858 grub_relocator32_edi respectively.
24859 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24862 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24864 Add i386-pc-pxe image target.
24866 * util/grub-mkimage.c (image_target_desc): New enum value
24868 (image_targets): New target i386-pc-pxe.
24869 (generate_image): Handle i386-pc-pxe image.
24871 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24875 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24876 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24878 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24879 (grub_pxe_pxenv): Correct type.
24881 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24883 * NEWS: Document most of the important changes since 1.98.
24885 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24887 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24888 generated manual page) a little.
24890 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24892 * docs/grub.texi: Add myself as an author.
24894 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24896 * Makefile.util.def (libgrub.a): Add missing sunpc.
24897 Reported by: Seth Goldberg.
24899 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24901 Interrupt wrapping and code simplifications.
24903 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24904 x86_noieee1275 which are functionaly equivalent in this case.
24905 (grub-install): Make source on each platform explicit. Enable on
24907 * gentpl.py (x86_efi_pc): Removed group.
24908 (x86_noefi): Likewise.
24909 (i386_noefi): Likewise.
24910 (x86_noieee1275): Likewise.
24911 (i386_noieee1275): Likewise.
24912 (i386_noefi_noieee1275): Likewise.
24913 (i386_pc_qemu_coreboot): Likewise.
24914 (i386_coreboot_multiboot): Likewise.
24915 (i386_pc_coreboot_multiboot_qemu): Likewise.
24916 (x86_noefi_mips): Likewise.
24917 (noieee1275): Likewise.
24918 (ieee1275_mips): Likewise.
24919 (noemu_noieee1275): Likewise.
24922 (videoinkernel): Likewise.
24923 (videomodules): Likewise.
24924 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24925 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24926 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24927 include/grub/loader.h, include/grub/msdos_partition.h,
24928 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24929 include/grub/machine/console.h, include/grub/machine/vga.h,
24930 include/grub/machine/vbe.h, include/grub/machine/init.h,
24931 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24932 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24933 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24934 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24935 * grub-core/Makefile.core.def (kernel): Explicit the source for
24936 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24937 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24938 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24939 Use videoinkernel tag.
24940 (usb): Enable on all usb.
24941 (usbserial_common): Likewise.
24942 (usbserial_pl2303): Likewise.
24943 (usbserial_ftdi): Likewise.
24944 (uhci): Enable on all x86.
24945 (ohci): Enable on all pci.
24946 (cmostest): Enable on all CMOS.
24947 (acpi): Include commands/acpi.c on all platforms.
24948 (halt): Add relevant lib/*/halt.c.
24949 (hdparm): Enable on all pci.
24951 (usbtest): Enable on all usb.
24952 (ata): Enable on all pci.
24953 (ata_pthru): Likewise.
24954 (usbms): Enable on all usb.
24955 (usb_keyboard): Likewise.
24956 (font): Use tag videomodules.
24958 (datetime): Use tag cmos. Enable on all noemu.
24959 (mmap): Use tags common and x86.
24960 (gfxterm): Use tag videomodules.
24961 (bitmap): Likewise.
24962 (bitmap_scale): Likewise.
24963 (video_fb): Likewise.
24965 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24966 adjust padding accordingly. All users updated.
24967 (grub_ohci_transaction): Fix bad format specification.
24968 (GRUB_MOD_INIT): Add asserts for struct size.
24969 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24970 (grub_alloc_td): Likewise.
24971 (grub_free_queue): Likewise.
24972 (grub_uhci_transfer): Likewise.
24973 (grub_uhci_transaction): Fix bad format specification.
24974 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24975 (grub_usb_bulk_readwrite): Likewise.
24976 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24977 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24979 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24981 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24982 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24983 Transformed into C.
24984 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24985 Moved from here ...
24986 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24987 ... here. Transformed into C. Made static.
24988 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24989 Moved from here ...
24990 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24991 ... here. Transformed into C. Made static.
24992 * grub-core/kern/i386/pc/startup.S
24993 (grub_biosdisk_check_int13_extensions): Moved from here ...
24994 * grub-core/disk/i386/pc/biosdisk.c
24995 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24997 * grub-core/kern/i386/pc/startup.S
24998 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24999 * grub-core/disk/i386/pc/biosdisk.c
25000 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
25001 Transformed into C. Made static.
25002 * grub-core/kern/i386/pc/startup.S
25003 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
25004 * grub-core/disk/i386/pc/biosdisk.c
25005 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
25006 Transformed into C. Made static.
25007 * grub-core/kern/i386/pc/startup.S
25008 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
25009 * grub-core/disk/i386/pc/biosdisk.c
25010 (grub_biosdisk_get_diskinfo_standard): ... here.
25011 Transformed into C. Made static.
25012 * grub-core/kern/i386/pc/startup.S
25013 (grub_biosdisk_get_num_floppies): Moved from here ...
25014 * grub-core/disk/i386/pc/biosdisk.c
25015 (grub_biosdisk_get_num_floppies): ... here.
25016 Transformed into C. Made static.
25017 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
25019 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
25020 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
25021 Transformed into C. Made static.
25022 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
25023 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
25024 Transformed into C. Made static.
25025 * grub-core/kern/i386/ieee1275/init.c: Removed.
25026 * grub-core/kern/i386/misc.S: Likewise.
25027 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
25028 Splitted from here ...
25029 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
25030 Transformed into C. Made static. All users updated.
25031 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
25032 Transformed into C. Made static. All users updated.
25033 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
25035 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
25036 Transformed into C. Made static. All users updated.
25037 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
25039 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
25040 Transformed into C. Made static. All users updated.
25041 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
25042 Removed (replaced by C version).
25043 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
25045 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
25046 Transformed into C. Made static.
25047 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
25049 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
25050 ... here. Transformed into C.
25051 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
25053 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
25054 ... here. Transformed into C.
25055 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
25057 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
25058 ... here. Transformed into C. Made static.
25059 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
25061 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
25062 ... here. Transformed into C.
25063 * grub-core/kern/i386/pc/startup.S
25064 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
25065 * grub-core/video/i386/pc/vbe.c
25066 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
25067 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
25069 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
25070 ... here. Transformed into C.
25071 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
25073 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
25074 ... here. Transformed into C.
25075 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
25077 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
25078 ... here. Transformed into C.
25079 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
25081 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
25082 ... here. Transformed into C.
25083 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
25085 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
25086 ... here. Transformed into C. Made static.
25087 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
25089 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
25090 ... here. Transformed into C. Made static.
25091 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
25093 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
25094 ... here. Transformed into C. Made static.
25095 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
25096 pxe_rm_entry as third argument.
25097 (grub_bios_interrupt): New function.
25098 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
25099 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
25100 of calling grub_stop.
25101 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
25102 * grub-core/lib/efi/halt.c (grub_halt): ...here.
25103 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
25104 * grub-core/lib/emu/halt.c (grub_halt): ... here.
25105 * grub-core/lib/i386/halt.c: Moved from here ...
25106 * grub-core/lib/i386/halt.c: ... here.
25107 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
25108 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
25109 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
25111 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
25112 * include/grub/i386/coreboot/init.h: Removed.
25113 * include/grub/i386/multiboot/init.h: Likewise.
25114 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
25115 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
25116 * include/grub/i386/pc/int.h: New file.
25117 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
25118 (grub_pxe_scan): Removed.
25119 (grub_pxe_call): Update prototype.
25120 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
25122 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
25123 * include/grub/i386/qemu/init.h: Removed.
25124 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
25126 (grub_halt): Likewise.
25127 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
25128 (grub_reboot): Likewise.
25129 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
25130 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
25131 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
25133 2010-08-30 Robert Millan <rmh@gnu.org>
25135 * NEWS: Document addition of ZFS support in `grub-install' and
25138 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
25140 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
25143 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25145 Remove leftover embedding of font objects.
25147 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25148 * util/grub-install.in (font): Removed.
25149 * util/grub-mkimage.c (generate_image): Remove font support. All users
25152 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25154 Remove leftover embedding of font objects.
25156 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25157 * util/grub-install.in (font): Removed.
25158 * util/grub-mkimage.c (generate_image): Remove font support. All users
25161 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25163 * docs/grub.texi (Network): Fix reference to pxe_blksize.
25164 Reported by: Ian Turner
25166 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25168 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
25169 timeout to avoid indefinite boot stalling.
25171 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25173 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
25174 (grub_env_write_color_highlight): Likewise.
25176 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25178 * grub-core/normal/term.c (print_more): Return to normal and not
25179 to standard state after printing "---MORE---".
25181 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25183 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25184 Mask out the bit 0x80 since it has other meaning that specifiing color.
25186 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25188 New relocator. Allows for more kernel support and more straightforward
25191 * Makefile.am (BOOTTARGET): New variable.
25192 (QEMU32): Likewise.
25193 (linux.init.x86_64): New target.
25194 (linux.init.i386): Likewise.
25195 (multiboot.elf): Likewise.
25196 (kfreebsd.elf): Likewise.
25197 (kfreebsd.aout): Likewise.
25198 (pc-chainloader.elf): Likewise.
25199 (pc-chainloader.bin): Likewise.
25200 (ntldr.elf): Likewise.
25201 (ntldr.bin): Likewise.
25202 (multiboot2.elf): Likewise.
25203 (kfreebsd.init.x86_64): Likewise.
25204 (kfreebsd.init.i386): Likewise.
25205 (knetbsd.init.i386): Likewise.
25206 (kopenbsd.init.i386): Likewise.
25207 (knetbsd.init.x86_64): Likewise.
25208 (kopenbsd.init.x86_64): Likewise.
25209 (linux-initramfs.i386): Likewise.
25210 (linux-initramfs.x86_64): Likewise.
25211 (kfreebsd-mfsroot.i386.img): Likewise.
25212 (knetbsd.image.i386): Likewise.
25213 (kopenbsd.image.i386): Likewise.
25214 (kopenbsd.image.x86_64): Likewise.
25215 (knetbsd.miniroot-image.i386.img): Likewise.
25216 (kfreebsd-mfsroot.x86_64.img): Likewise.
25217 (knetbsd.image.x86_64): Likewise.
25218 (knetbsd.miniroot-image.x86_64.img): Likewise.
25219 (kfreebsd-mfsroot.i386.gz): Likewise.
25220 (bootcheck-kfreebsd-i386): Likewise.
25221 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25222 (bootcheck-kfreebsd-x86_64): Likewise.
25223 (knetbsd.miniroot-image.i386.gz): Likewise.
25224 (bootcheck-knetbsd-i386): Likewise.
25225 (bootcheck-kopenbsd-i386): Likewise.
25226 (bootcheck-kopenbsd-x86_64): Likewise.
25227 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25228 (bootcheck-knetbsd-x86_64): Likewise.
25229 (bootcheck-linux-i386): Likewise.
25230 (bootcheck-linux-x86_64): Likewise.
25231 (bootcheck-linux16-i386): Likewise.
25232 (bootcheck-linux16-x86_64): Likewise.
25233 (bootcheck-multiboot): Likewise.
25234 (bootcheck-multiboot2): Likewise.
25235 (bootcheck-kfreebsd-aout): Likewise.
25236 (bootcheck-pc-chainloader): Likewise.
25237 (bootcheck-ntldr): Likewise.
25238 (CLEANFILES): Add new targets.
25239 (BOOTCHECKS): New variable.
25240 (.PHONY): Add bootchecks.
25241 (SUCCESSFUL_BOOT_STRING): New variable.
25242 (BOOTCHECK_TIMEOUT): Likewise.
25243 (bootcheck): New target
25244 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25245 * configure.ac: Correct efiemu excuse.
25246 * docs/grub.texi (Supported kernels): New chapter.
25247 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25248 include/grub/mm_private.h. Simplify inclusion of
25249 include/grub/boot.h, include/grub/loader.h
25250 and include/grub/msdos_partition.h
25251 (KERNEL_HEADER_FILES) [i386_coreboot]:
25252 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25253 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25254 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25255 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25256 include/grub/machine/loader.h.
25257 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25258 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25260 (pci.mod): Enable on i386-multiboot.
25261 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25262 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25264 (relocator.mod): Rewritten.
25265 (aout.mod): Enable on all x86.
25266 (bsd.mod): Likewise.
25267 (ntldr.mod): New module.
25268 (linux.mod): Use loader/i386/linux.c on all x86.
25269 (xnu.mod): Enable on all x86.
25270 (vga_text.mod): disable on EFI and QEMU.
25271 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25272 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25273 * grub-core/efiemu/loadcore.c: Likewise.
25274 * grub-core/efiemu/main.c: Likewise.
25275 (grub_efiemu_exit_boot_services): Removed.
25276 (grub_efiemu_finish_boot_services): Likewise.
25277 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25279 * grub-core/efiemu/i386/nocfgtables.c: New file.
25280 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25281 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25282 (grub_efi_finish_boot_services): Moved from here ...
25283 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25284 Fille finish memory map and related data.
25285 (finish_mmap_buf): New variable.
25286 (grub_efi_uintn_t finish_mmap_size): Likewise.
25287 (grub_efi_uintn_t finish_key): Likewise.
25288 (grub_efi_uintn_t finish_desc_size): Likewise.
25289 (grub_efi_uint32_t finish_desc_version): Likewise.
25290 (grub_efi_is_finished): Likewise.
25291 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25293 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25294 (grub_elf64_phdr_iterate): Likewise.
25295 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25296 (grub_os_area_size): Likewise.
25297 (grub_machine_init): Don't reserve os area.
25298 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25299 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25300 * grub-core/kern/i386/loader.S: Removed.
25301 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25302 (grub_os_area_size): Likewise.
25303 (grub_machine_init): Don't reserve os area.
25304 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25305 Don't call grub_dl_unload_all.
25306 Don't include loader.S.
25307 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25308 Declare the memory after _end as available.
25309 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25310 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25311 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25312 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25313 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25314 * include/grub/mm_private.h (grub_mm_header): ... here.
25315 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25316 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25317 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25318 (grub_mm_region): ..here. Removed addr. Added pre_size.
25320 * grub-core/kern/mm.c (base): Renamed to ...
25321 (grub_mm_base): ... this. Made global.
25322 (grub_real_malloc): Alloc from end of region.
25323 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25324 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25325 * grub-core/kern/powerpc/cache_flush.S: ... here.
25326 * grub-core/lib/efi/relocator.c: New file.
25327 * grub-core/lib/i386/relocator.c: Rewritten.
25328 * grub-core/lib/i386/relocator16.S: New file.
25329 * grub-core/lib/i386/relocator32.S: Likewise.
25330 * grub-core/lib/i386/relocator64.S: Likewise.
25331 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25332 * grub-core/lib/i386/relocator_common.S: New file.
25333 * grub-core/lib/ieee1275/relocator.c: Likewise.
25334 * grub-core/lib/mips/relocator.c: Rewritten.
25335 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25336 stylistic adjustments.
25337 * grub-core/lib/powerpc/relocator.c: New file.
25338 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25339 * grub-core/lib/relocator.c: Rewritten.
25340 * grub-core/lib/x86_64/relocator_asm.S: New file.
25341 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25342 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25343 (bsd_tag): New struct.
25344 (tags): New variable.
25345 (tags_last): Likewise.
25346 (netbsd_module): New struct.
25347 (netbsd_mods): New variable.
25348 (netbsd_mods_last): Likewise.
25349 (openbsd_opts): New parameter "serial".
25350 (OPENBSD_SERIAL_ARG): New definition.
25351 (netbsd_opts): New parameter "serial".
25352 (NETBSD_SERIAL_ARG): New definition.
25353 (grub_freebsd_add_meta): Reorganised into ...
25354 (grub_bsd_add_meta): ...this. All users updated.
25355 (grub_freebsd_add_mmap): Reorganised into ...
25356 (generate_e820_mmap): ...this...
25357 (grub_bsd_add_mmap): ...and this. All users updated.
25358 (grub_freebsd_list_modules): Use tags.
25359 (grub_netbsd_add_meta_module): New function.
25360 (grub_netbsd_list_modules): Likewise.
25361 (grub_freebsd_boot): Use relocator and finish EFI.
25362 (grub_openbsd_boot): Likewise.
25363 (grub_netbsd_setup_video): New function.
25364 (grub_netbsd_add_modules): Likewise.
25365 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25367 (grub_bsd_unload): Unload tags.
25368 (grub_bsd_load_aout): Use relocator.
25369 (grub_bsd_elf32_size_hook): New function.
25370 (grub_bsd_elf32_hook): Use relocator.
25371 (grub_bsd_elf64_size_hook): New function.
25372 (grub_bsd_elf64_hook): Use relocator.
25373 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25374 (grub_bsd_load): Zero-out openbsd_ramdisk.
25375 (grub_bsd_load): Use relocator.
25376 (grub_cmd_openbsd): Support serial.
25377 (grub_cmd_netbsd): Support modules.
25378 (grub_cmd_freebsd_module): Use relocator.
25379 (grub_netbsd_module_load): New function.
25380 (grub_cmd_netbsd_module): Likewise.
25381 (grub_cmd_openbsd_ramdisk): Likewise.
25382 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25384 (GRUB_MOD_FINI): Unregister new commands.
25385 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25386 (grub_freebsd_load_elfmodule_obj): Use relocator.
25387 (grub_freebsd_load_elfmodule): Likewise.
25388 (grub_freebsd_load_elf_meta): Likewise.
25389 (grub_netbsd_load_elf_meta): New function.
25390 (grub_openbsd_find_ramdisk): Likewise.
25391 * grub-core/loader/i386/bsd_helper.S: Removed.
25392 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25393 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25394 * grub-core/loader/i386/efi/linux.c: Likewise.
25395 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25396 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25397 (DEFAULT_VIDEO_MODE): Likewise.
25398 (real_mode_target): New variable.
25399 (prot_mode_target): Likewise.
25400 (initrd_mem_target): Likewise.
25401 (relocator): Likewise.
25402 (efi_mmap_buf): Likewise.
25403 (efi_mmap_size): Likewise.
25404 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25405 (free_pages): Use relocator.
25406 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25407 (grub_linux_setup_video): Return error.
25408 (grub_linux_trampoline_start): Removed.
25409 (grub_linux_trampoline_end): Likewise.
25410 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25411 andd video parameters depending on firmware.
25412 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25413 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25414 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25415 (grub_cmd_initrd): Use relocator.
25416 * grub-core/loader/i386/linux_trampoline.S: Removed.
25417 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25418 (elf_sec_entsize): Likewise.
25419 (elf_sec_shstrndx): Likewise.
25420 (elf_sections): Likewise.
25421 (grub_multiboot_load): Use relocator.
25422 (grub_multiboot_get_mbi_size): Account for sections.
25423 (grub_multiboot_make_mbi): Use relocator and support sections.
25424 (grub_multiboot_add_elfsyms): New function.
25425 (grub_multiboot_free_mbi): Free sections.
25426 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25427 (grub_linux_real_target): Likewise.
25428 (grub_linux_real_chunk): Likewise.
25429 (grub_linux16_prot_size): Likewise.
25430 (grub_linux16_boot): Use relocator.
25431 (grub_linux_unload): Unload relocator.
25432 (grub_cmd_linux): Use relocator.
25433 (grub_cmd_initrd): Likewise.
25434 * grub-core/loader/i386/pc/ntldr.c: New file.
25435 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25436 Don't try to guess CPU frequency.
25437 (grub_xnu_set_video): Stretch bitmap.
25438 (grub_xnu_boot): Use relocator.
25439 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25440 (grub_linux_unload): Free relocator.
25441 (grub_linux_load32): Use relocator.
25442 (grub_linux_load64): Likewise.
25443 (grub_cmd_initrd): Likewise.
25444 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25445 (grub_multiboot_unload): Unload relocator.
25446 (grub_cmd_multiboot): Use relocator.
25447 (grub_cmd_module): Likewise.
25448 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25449 Use relocator and support sections.
25450 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25451 (elf_sec_entsize): Likewise.
25452 (elf_sec_shstrndx): Likewise.
25453 (elf_sections): Likewise.
25454 (grub_multiboot_load): Use relocator.
25455 (grub_multiboot_get_mbi_size): Account for sections.
25456 (grub_multiboot_make_mbi): Use relocator and support sections.
25457 (grub_multiboot_add_elfsyms): New function.
25458 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25459 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25460 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25461 Prototype changed. All users updated.
25462 (grub_xnu_align_heap): Simplified.
25463 (grub_xnu_writetree_toheap): Likewise.
25464 (grub_xnu_unload): Unload relocator.
25465 (grub_cmd_xnu_kernel): Use relocator.
25466 (grub_cmd_xnu_kernel64): Likewise.
25467 (grub_xnu_register_memory): Simplified.
25468 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25469 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25471 (grub_console_checkkey): Likewise.
25472 (grub_console_getkey): Likewise.
25473 (grub_console_getwh): Likewise.
25474 (grub_console_getxy): Likewise.
25475 (grub_console_gotoxy): Likewise.
25476 (grub_console_cls): Likewise.
25477 (grub_console_setcolorstate): Likewise.
25478 (grub_console_setcursor): Likewise.
25479 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25480 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25481 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25482 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25483 * grub-core/tests/boot/kernel-8086.S: Likewise.
25484 * grub-core/tests/boot/kernel-i386.S: Likewise.
25485 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25486 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25487 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25488 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25489 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25490 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25491 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25492 * grub-core/tests/boot/linux.cfg: Likewise.
25493 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25494 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25495 * grub-core/tests/boot/linux16.cfg: Likewise.
25496 * grub-core/tests/boot/multiboot.cfg: Likewise.
25497 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25498 * grub-core/tests/boot/ntldr.cfg: Likewise.
25499 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25500 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25501 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25503 * include/grub/dl.h (grub_dl_unload_all): Removed.
25504 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25505 (grub_efi_finish_boot_services): Change prototype.
25506 (grub_efi_is_finished): New variable.
25507 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25509 (grub_efiemu_finish_boot_services): Removed.
25510 (grub_machine_efiemu_init_tables): New prototype.
25511 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25512 (grub_elf64_phdr_iterate): Likewise.
25513 * include/grub/i386/bsd.h: Include relocator.h.
25514 (freebsd_tag_header): New struct.
25515 (grub_openbsd_bios_mmap): Removed.
25516 (grub_unix_real_boot): Removed.
25517 (grub_freebsd_load_elfmodule32): Changed prototype.
25518 (grub_freebsd_load_elfmodule_obj64): Likewise.
25519 (grub_freebsd_load_elf_meta32): Likewise.
25520 (grub_freebsd_load_elf_meta64): Likewise.
25521 (grub_freebsd_add_meta): Removed.
25522 (grub_netbsd_load_elf_meta32): New prototype.
25523 (grub_netbsd_load_elf_meta64): Likewise.
25524 (grub_bsd_add_meta): Likewise.
25525 (grub_openbsd_ramdisk_descriptor): New struct.
25526 (grub_openbsd_find_ramdisk32): New prototype.
25527 (grub_openbsd_find_ramdisk64): Likewise.
25528 * include/grub/i386/coreboot/loader.h: Removed.
25529 * include/grub/i386/efi/loader.h: Likewise.
25530 * include/grub/i386/ieee1275/loader.h: Likewise.
25531 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25533 * include/grub/i386/loader.h: Removed.
25534 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25536 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25537 (grub_phys_addr_t): New type.
25538 (grub_vtop): New inline function.
25539 (grub_map_memory): Likewise.
25540 (grub_unmap_memory): Likewise.
25541 * include/grub/i386/multiboot/loader.h: Removed.
25542 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25543 (NETBSD_BTINFO_CONSOLE): New definition.
25544 (NETBSD_BTINFO_SYMTAB): Likewise.
25545 (NETBSD_BTINFO_MODULES): Likewise.
25546 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25547 (grub_netbsd_bootinfo): New struct.
25548 (grub_netbsd_btinfo_common): Use explicit bitsize.
25549 (grub_netbsd_btinfo_mmap_entry): Removed.
25550 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25551 (grub_netbsd_btinfo_bootdisk): New struct.
25552 (grub_netbsd_btinfo_symtab): Likewise.
25553 (grub_netbsd_btinfo_serial): Likewise.
25554 (grub_netbsd_btinfo_modules): Likewise.
25555 (grub_netbsd_btinfo_framebuf): Likewise.
25556 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25557 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25559 (grub_openbsd_bootargs): Use explicit bitsize.
25560 (grub_openbsd_bootarg_console): New struct.
25561 (GRUB_OPENBSD_COM_MAJOR): New definition.
25562 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25563 * include/grub/i386/pc/efiemu.h: Removed.
25564 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25565 * include/grub/i386/qemu/loader.h: Removed.
25566 * include/grub/i386/relocator.h: Rewritten.
25567 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25568 * include/grub/mips/memory.h: New file.
25569 * include/grub/mips/multiboot.h: Rewritten.
25570 * include/grub/mips/relocator.h: Rewritten.
25571 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25572 (grub_vtop): New function.
25573 (grub_map_memory): Likewise.
25574 (grub_unmap_memory): Likewise.
25575 * include/grub/misc.h (ALIGN_DOWN): New definition.
25576 * include/grub/mm.h (grub_mm_check_real): New proto.
25577 (GRUB_MM_CHECK): New definition.
25578 * include/grub/mm_private.h: New file.
25579 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25580 (grub_multiboot_get_mbi_size): Removed.
25581 (grub_multiboot_make_mbi): Change prottype.
25582 (grub_multiboot_set_accepts_video): New proto.
25583 (grub_multiboot_add_elfsyms): Likewise.
25584 (grub_multiboot_payload_eip): New variable.
25585 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25587 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25589 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25590 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25591 * include/grub/powerpc/ieee1275/loader.h: Removed.
25592 * include/grub/powerpc/memory.h: New file.
25593 * include/grub/powerpc/relocator.h: Likewise.
25594 * include/grub/relocator.h: Likewise.
25595 * include/grub/relocator_private.h: Likewise.
25596 * include/grub/sparc64/ieee1275/loader.h: Removed.
25597 * include/grub/x86_64/memory.h: New file.
25598 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25599 (grub_xnu_heap_malloc): Likewise.
25600 (grub_xnu_heap_real_start): Removed.
25601 (grub_xnu_heap_start): Likewise.
25602 (grub_xnu_relocator): New variable.
25603 (grub_xnu_heap_target_start): Likewise.
25604 * tests/util/grub-shell.in: Support non-pc.
25605 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25607 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25609 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25611 (grub_bidi_logical_to_visual): Check that malloc succeded.
25612 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25614 (grub_xputs_normal): Likewise.
25616 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25618 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25621 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25623 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25625 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25627 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25629 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25631 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25634 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25636 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25638 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25640 * grub-core/normal/term.c (print_more): Fix a memory leak.
25641 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25642 (grub_xputs_normal): Likewise.
25644 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25646 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25647 the begining of the string
25649 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25651 * grub-core/script/script.c (grub_script_parse): Free parsed on
25654 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25656 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25659 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25661 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25664 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25666 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25667 (scroll_up): Fix a memory leak.
25669 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25671 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25674 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25676 Handle USB pendrives exposed as floppies.
25678 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25680 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25681 Check for partitions on all devices.
25683 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25685 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25686 (readkey): Likewise.
25688 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25690 Multiple variable names support to "export" command.
25692 * normal/context.c (grub_cmd_export): "export" command supports
25693 multiple variable names.
25695 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25697 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25698 --target=drive output to Mach device name.
25700 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25702 New Automake based build system for GRUB.
25704 * ABOUT-NLS: New file.
25705 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25706 in Makefile.util.def file.
25707 * Makefile.util.def: New file. Autogen build definitions file for
25709 * conf/Makefile.common: New file. Common variables for GRUB host
25710 utils and target modules.
25711 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25712 * docs/Makefile.am: New file. Automake file for docs.
25713 * gentpl.py: New file. Python script to generate Autogen
25715 * grub-core/Makefile.am: New file. GRUB target modules' rules
25716 that doesn't fit in Makefile.core.def file.
25717 * grub-core/Makefile.core.def: New file. Autogen build
25718 definitions file for GRUB target modules.
25719 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25720 specific setjmp.S file.
25721 * po/Makefile.am: New file.
25723 * .bzrignore: New ignores.
25724 * INSTALL: New requirements, without Ruby.
25725 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25726 * autogen.sh: Updated to invoke autogen as necessary.
25727 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25728 and defines for Automake conditionals.
25729 * geninit.sh: Refactoring.
25731 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25733 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25736 * include/grub/test.h: Fix functional test modules' naming.
25737 * grub-core/tests/example_functional_test.c: Fix test module name.
25739 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25740 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25741 * util/grub-editenv.c: Likewise.
25742 * util/grub-fstest.c: Likewise.
25743 * util/grub-mkdevicemap.c: Likewise.
25744 * util/grub-mkfont.c: Likewise.
25745 * util/grub-mkimage.c: Likewise.
25746 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25747 * util/grub-probe.c: Likewise.
25748 * util/grub-script-check.c: Likewise.
25749 * util/i386/pc/grub-setup.c: Likewise.
25750 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25752 * tests/util/grub-shell.in: Fix override directory path.
25753 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25754 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25756 * util/lvm.c: Update #includes.
25757 * util/raid.c: Likewise.
25758 * util/resolve.c: Likewise.
25759 * grub-core/bus/emu/pci.c: Likewise.
25760 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25761 * grub-core/lib/posix_wrap/string.h: Likewise.
25762 * grub-core/kern/emu/main.c: Likewise.
25764 * grub-core/gensymlist.sh: New file. Script for generating kernel
25766 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25768 * grub-core/gentrigtables.c: Fix unused variable warnings.
25770 * Makefile.in: Removed.
25771 * conf/any-emu.rmk: Removed.
25772 * conf/common.rmk: Removed.
25773 * conf/i386-coreboot.rmk: Removed.
25774 * conf/i386-efi.rmk: Removed.
25775 * conf/i386-ieee1275.rmk: Removed.
25776 * conf/i386-multiboot.rmk: Removed.
25777 * conf/i386-pc.rmk: Removed.
25778 * conf/i386-qemu.rmk: Removed.
25779 * conf/i386.rmk: Removed.
25780 * conf/mips-yeeloong.rmk: Removed.
25781 * conf/mips.rmk: Removed.
25782 * conf/powerpc-ieee1275.rmk: Removed.
25783 * conf/sparc64-ieee1275.rmk: Removed.
25784 * conf/tests.rmk: Removed.
25785 * conf/x86-efi.rmk: Removed.
25786 * conf/x86_64-efi.rmk: Removed.
25787 * gendistlist.sh: Removed.
25788 * geninitheader.sh: Removed.
25789 * genkernsyms.sh.in: Removed.
25790 * genmk.rb: Removed.
25791 * gensymlist.sh.in: Removed.
25792 * mkinstalldirs: Removed.
25794 * grub-core/boot: ... to here.
25796 * grub-core/bus: ... to here.
25797 * commands: Moved ...
25798 * grub-core/commands: ... to here.
25800 * grub-core/disk: ... to here.
25801 * efiemu: Moved ...
25802 * grub-core/efiemu: ... to here.
25804 * grub-core/font: ... to here.
25806 * grub-core/fs: ... to here.
25807 * gencmdlist.sh: Moved ...
25808 * grub-core/gencmdlist.sh: ... to here.
25809 * genemuinit.sh: Moved ...
25810 * grub-core/genemuinit.sh: ... to here.
25811 * genemuinitheader.sh: Moved ...
25812 * grub-core/genemuinitheader.sh: ... to here.
25813 * genfslist.sh: Moved ...
25814 * grub-core/genfslist.sh: ... to here.
25815 * genhandlerlist.sh: Moved ...
25816 * grub-core/genhandlerlist.sh: ... to here.
25817 * genmoddep.awk: Moved ...
25818 * grub-core/genmoddep.awk: ... to here.
25819 * genmodsrc.sh: Moved ...
25820 * grub-core/genmodsrc.sh: ... to here.
25821 * genpartmaplist.sh: Moved ...
25822 * grub-core/genpartmaplist.sh: ... to here.
25823 * genparttoollist.sh: Moved ...
25824 * grub-core/genparttoollist.sh: ... to here.
25825 * genterminallist.sh: Moved ...
25826 * grub-core/genterminallist.sh: ... to here.
25827 * gentrigtables.c: Moved ...
25828 * grub-core/gentrigtables.c: ... to here.
25829 * genvideolist.sh: Moved ...
25830 * grub-core/genvideolist.sh: ... to here.
25831 * gettext: Moved ...
25832 * grub-core/gettext: ... to here.
25833 * gfxmenu: Moved ...
25834 * grub-core/gfxmenu: ... to here.
25835 * gnulib: Moved ...
25836 * grub-core/gnulib: ... to here.
25838 * grub-core/hello: ... to here.
25840 * grub-core/hook: ... to here.
25842 * grub-core/io: ... to here.
25844 * grub-core/kern: ... to here.
25846 * grub-core/lib: ... to here.
25847 * loader: Moved ...
25848 * grub-core/loader: ... to here.
25850 * grub-core/mmap: ... to here.
25851 * normal: Moved ...
25852 * grub-core/normal: ... to here.
25853 * partmap: Moved ...
25854 * grub-core/partmap: ... to here.
25855 * parttool: Moved ...
25856 * grub-core/parttool: ... to here.
25857 * script: Moved ...
25858 * grub-core/script: ... to here.
25860 * grub-core/term: ... to here
25861 * tests/example_functional_test.c: Moved ...
25862 * grub-core/tests/example_functional_test.c: ... to here.
25863 * tests/lib/functional_test.c: Moved ...
25864 * grub-core/tests/lib/functional_test.c: ... to here.
25865 * tests/lib/test.c: Moved ...
25866 * grub-core/tests/lib/test.c: ... to here.
25868 * grub-core/video: ... to here.
25870 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25872 Replace --enable-grub-emu-modules with grub-emu-lite.
25874 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25877 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25878 * kern/emu/full.c: New file. For grub-emu specific initialization.
25879 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25880 * kern/emu/main.c: Call initialization function grub_emu_init.
25882 * Makefile.in: Include grub-emu-lite in install.
25883 * commands/parttool.c: Use grub_no_autoload to differentiate
25884 between grub-emu and grub-emu-lite.
25885 * include/grub/misc.h: New variable grub_no_autoload.
25887 * conf/any-emu.rmk: New rules for grub-emu-lite.
25888 * configure.ac: Remove --enable-grub-emu-modules.
25889 * genmk.rb: Cleanup unnecessary rules.
25890 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25892 * normal/main.c: Don't load list files on grub-emu-lite.
25893 * util/misc.c (grub_arch_sync_caches): Removed.
25895 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25897 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25898 grub-mkimage rather than grub-mkelfimage.
25899 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25901 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25903 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25904 a key after CapsLock or NumLock. It's just a qemu bug.
25906 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25908 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25909 needed by libusb wrapper.
25911 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25913 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25915 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25917 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25918 --nounzip is passed.
25920 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25922 USB hotunplugging and USB serial support.
25924 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25925 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25926 (grub_uhci_transfer): Respect timeout and set *actual.
25927 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25928 non-standard length.
25929 (grub_usb_device_attach): Autoload modules.
25930 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25931 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25932 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25934 (grub_usb_add_hub): Fill nports and children.
25935 (attach_root_port): Receive hub instead of controller.
25936 All users updated. Fill hub->devices.
25937 (grub_usb_root_hub): Allocate hub->devices.
25938 (detach_device): New function.
25939 (poll_nonroot_hub): Fill children and detach devices.
25940 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25941 actual arguments. All users updated.
25942 (grub_usb_bulk_read_extended): New function.
25943 * bus/usb/serial/common.c: New file.
25944 * bus/usb/serial/ftdi.c: Likewise.
25945 * bus/usb/serial/pl2303.c: Likewise.
25946 * commands/terminal.c (handle_command): Support wildcard.
25947 * commands/usbtest.c: Output "Unknown" instead of empty string.
25948 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25949 (usbserial_common_mod_SOURCES): New variable.
25950 (usbserial_common_mod_CFLAGS): Likewise.
25951 (usbserial_common_mod_LDFLAGS): Likewise.
25952 (pkglib_MODULES): Add usbserial_pl2303.mod.
25953 (usbserial_pl2303_mod_SOURCES): New variable.
25954 (usbserial_pl2303_mod_CFLAGS): Likewise.
25955 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25956 (pkglib_MODULES): Add usbserial_ftdi.mod.
25957 (usbserial_ftdi_mod_SOURCES): New variable.
25958 (usbserial_ftdi_mod_CFLAGS): Likewise.
25959 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25960 (pkglib_MODULES): Add serial.mod.
25961 (serial_mod_SOURCES): New variable.
25962 (serial_mod_CFLAGS): Likewise.
25963 (serial_mod_LDFLAGS): Likewise.
25964 * conf/i386-pc.rmk: Likewise.
25965 * conf/mips-yeeloong.rmk: Likewise.
25966 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25967 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25968 * disk/usbms.c (first_available_slot): New variable.
25969 (grub_usbms_attach): Don't reuse free slots due to potential cache
25971 * include/grub/serial.h: Moved to ..
25972 * include/grub/ns8250.h: ...this.
25973 * include/grub/serial.h: New file.
25974 * include/grub/term.h (grub_term_poll_usb): New variable.
25975 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25976 readkey. All users updated.
25977 (grub_terminfo_output_state): Pass term to put.
25978 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25979 (grub_usb_controller_dev): Add timeout and actual arguments to
25980 transfer. All users updated.
25981 (grub_usb_interface): New field detach_data.
25982 (grub_usb_device): New fields children and nports.
25983 (grub_usb_ep_type_t): New type.
25984 (grub_usb_get_ep_type): New function.
25985 (grub_usb_bulk_read_extended): Likewise.
25986 * include/grub/usbdesc.h (grub_usb_desc): New type.
25987 * include/grub/usbserial.h: New file.
25988 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25989 * kern/term.c (grub_term_poll_usb): New variable.
25990 (grub_getkey): Call grub_term_poll_usb if set.
25991 (grub_checkkey): Likewise.
25992 (grub_getkeystatus): Likewise.
25993 * term/serial.c: Moved controller-specific parts to ...
25994 * term/ns8250.c: ... here.
25995 * term/serial.c: Mostly rewritten.
25996 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25999 2010-08-20 Robert Millan <rmh@gnu.org>
26001 Make kFreeBSD code more generic to support ext2fs as root, ufs as
26002 a separate module and maybe other interesting combinations.
26004 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
26005 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
26006 (kfreebsd_entry): Add generic filesystem module load routine.
26007 Map GRUB `ext2' to kFreeBSD `ext2fs'.
26009 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
26011 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
26012 "numcenter" (I misunderstood the purpose of this entry).
26013 * docs/grub.texi (sendkey): Likewise.
26015 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
26017 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
26018 status flag options; simply omitting the option is equivalent and
26019 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
26020 (keysym_table): Rename "num5numlock" to "numlock".
26021 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
26022 can uniformly say that only the last of multiple `sendkey'
26023 invocations has any effect.
26024 * docs/grub.texi (sendkey): New section.
26026 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
26028 * commands/i386/pc/sendkey.c (options): Fix three typos.
26030 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
26032 Implement sendkey support.
26034 * commands/i386/pc/sendkey.c: New file.
26035 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
26036 (sendkey_mod_SOURCES): New variable.
26037 (sendkey_mod_CFLAGS): Likewise.
26038 (sendkey_mod_LDFLAGS): Likewise.
26040 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
26042 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
26043 fix warnings from Autoconf.
26045 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
26047 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
26048 to avoid false positives with some assemblers that output things
26049 like "someprefix_func" as part of their output.
26051 2010-08-15 Robert Millan <rmh@gnu.org>
26053 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
26055 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
26056 grub_get_libzfs_handle() errors.
26058 2010-08-14 Robert Millan <rmh@gnu.org>
26060 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
26061 filesystem is not ZFS.
26063 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26065 Fix for misspelled color names defaulting to black/black (bug
26066 reported by Doug Nazar)
26068 * include/grub/normal.h (grub_parse_color_name_pair): Add return
26069 status to prototype.
26070 * normal/color.c (grub_parse_color_name_pair): Return failure
26072 (grub_env_write_color_normal): Ignore bad color names.
26073 (grub_env_write_color_highlight): Likewise.
26074 * normal/main.c (GRUB_MOD_INIT): Set default color names.
26076 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26078 "shift" command support to GRUB script.
26080 * include/grub/script_sh.h (grub_script_shift): New prototype.
26081 * script/execute.c (grub_script_shift): New function.
26082 * script/main.c (grub_script_init): Register shift command.
26083 (grub_script_fini): Unregister shift command.
26084 * util/grub-script-check.c (grub_script_cmd_shift): New function.
26086 * tests/grub_script_shift.in: New testcase.
26087 * conf/tests.rmk: Rules for new testcase.
26089 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26091 "continue" command support to GRUB script.
26093 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
26094 (grub_script_break): Continue support.
26095 * script/main.c (grub_script_init): Register continue command.
26096 (grub_script_fini): Unregister continue command.
26098 * tests/grub_script_continue.in: New testcase.
26099 * conf/tests.rmk: Rules for new testcase.
26101 2010-08-12 BVK Chaitanya <bvk@dbook>
26103 "break" command support to GRUB script.
26105 * conf/common.rmk: Rule updates to grub-script-check.
26106 * include/grub/misc.h (grub_min): New function.
26107 * include/grub/script_sh.h (grub_script_init): New prototype.
26108 (grub_script_fini): New prototype.
26109 (grub_script_break): New prototype.
26110 * script/main.c (grub_script_init): New function.
26111 (grub_script_fini): New function.
26112 * script/execute.c (grub_script_break): New function.
26113 * normal/main.c: Calls to grub_script_{init,fini}.
26114 * util/grub-script-check.c (grub_script_break): New function.
26116 * tests/grub_script_break.in: New testcase.
26117 * conf/tests.rmk: Rules for new test case.
26119 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26121 Function parameters support to GRUB script.
26123 * script/yylex.l (VARIABLE): Regular expression update.
26124 * script/function.c (grub_script_function_call): Moved ...
26125 * script/execute.c (grub_script_function_call): ... to here.
26126 (grub_script_execute_arglist_to_argv): Removed.
26127 (grub_script_arglist_to_argv): New function.
26128 * script/argv.c: New file.
26129 (grub_script_argv_free): New function.
26130 (grub_script_argv_next): Likewise.
26131 (grub_script_argv_append): Likewise.
26132 (grub_script_argv_split_append): Likewise.
26133 * include/grub/script_sh.h (grub_script_argv): New struct.
26134 (grub_script_argv_free): New function.
26135 (grub_script_argv_next): Likewise.
26136 (grub_script_argv_append): Likewise.
26137 (grub_script_argv_split_append): Likewise.
26139 * conf/common.rmk (normal.mod): New source script/argv.c.
26141 * tests/grub_script_echo1.in: More tests.
26142 * tests/grub_script_vars1.in: Likewise.
26143 * tests/grub_script_functions.in: New test case.
26144 * conf/tests.rmk: Rules for new testcase.
26146 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26148 Remove grub_script_cmdblock struct.
26150 * include/grub/script_sh.h: Remove grub_script_cmdblock.
26151 * script/parser.y: Likewise.
26152 * script/execute.c: Rename cmdblock suffix to cmdlist.
26153 * script/script.c: Likewise.
26154 * util/grub-script-check.c: Likewise.
26156 2010-08-11 Yves Blusseau <blusseau@zetam.org>
26158 * .bzrignore: add grub-macho2img
26160 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26162 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
26164 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26166 Remove the dump of sm712 initialisation sequence.
26168 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
26169 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
26170 (GRUB_VGA_IO_MISC_WRITE): Likewise.
26171 (GRUB_VGA_CR_*): Added many registers.
26172 (GRUB_VGA_SR_*): Likewise.
26173 (GRUB_VGA_GR_*): Likewise.
26174 (grub_vga_write_arx): New function.
26175 (grub_video_hw_config): New struct.
26176 (grub_vga_set_geometry): New function.
26177 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
26178 GRUB_PCI_CLASS_SUBCLASS_VGA.
26179 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
26180 * video/sm712.c (grub_sm712_write_reg): New function
26181 (grub_sm712_read_reg): Likewise.
26182 (grub_sm712_sr_write): Likewise.
26183 (grub_sm712_gr_write): Likewise.
26184 (grub_sm712_cr_write): Likewise.
26185 (grub_sm712_write_arx): Likewise.
26186 (grub_sm712_cr_shadow_write): Likewise.
26187 (grub_sm712_write_dda_lookup): Likewise.
26188 (grub_video_sm712_setup): Initialise the video rather then
26189 blindly replay the dump.
26190 (main) [TEST]: Add a routine to be able to compile as standalone for
26192 * video/sm712_init.c (sm712_init): Removed.
26193 (sm712_sr_seq1): New array.
26194 (sm712_sr_seq2): Likewise.
26196 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26198 * include/grub/vga.h: Add missing grub/pci.h include.
26200 2010-08-10 Yves Blusseau <blusseau@zetam.org>
26202 * util/grub-macho2img.c (main): fix typo
26204 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26206 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26207 (grub_vga_gr_read): Likewise.
26208 (grub_vga_cr_write): Likewise.
26209 (grub_vga_cr_read): Likewise.
26210 (grub_vga_sr_write): Likewise.
26211 (grub_vga_sr_read): Likewise.
26212 (grub_vga_palette_read): Likewise.
26213 (grub_vga_palette_write): Likewise.
26214 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26215 (grub_sm712_sr_read): New function.
26216 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26217 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26219 2010-08-09 Robert Millan <rmh@gnu.org>
26221 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26222 out unused variables on non-ZFS build.
26224 2010-08-08 Robert Millan <rmh@gnu.org>
26226 Fix path generation for sub-filesystems in ZFS.
26228 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26231 2010-08-08 Robert Millan <rmh@gnu.org>
26233 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26235 2010-08-08 Robert Millan <rmh@gnu.org>
26237 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26238 exist, issue a proper error message (rely on `ls' for translated
26241 2010-08-08 Robert Millan <rmh@gnu.org>
26243 Fix grub-probe invocation.
26245 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26247 2010-08-04 Robert Millan <rmh@gnu.org>
26249 * configure.ac: Remove checks for getfsstat() and getmntany().
26250 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26251 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26252 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26253 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26254 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26256 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26257 via find_mount_point_from_dir() and getfsstat() / getmntany().
26259 2010-08-04 Robert Millan <rmh@gnu.org>
26261 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26262 (grub_find_zpool_from_mount_point): Merge into ...
26263 (grub_find_zpool_from_dir): ... this.
26264 * kern/emu/misc.c: Likewise.
26267 (grub_make_system_path_relative_to_its_root): Replace
26268 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26269 with grub_find_zpool_from_dir().
26270 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26272 2010-08-04 Robert Millan <rmh@gnu.org>
26274 Support OpenSolaris in ZFS device resolution.
26276 * configure.ac: Check for getmntany().
26277 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26278 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26281 2010-08-03 Robert Millan <rmh@gnu.org>
26283 Fix grub-emu build.
26285 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26286 * include/grub/emu/misc.h: ... here.
26288 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26289 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26291 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26292 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26293 (grub_get_libzfs_handle): Move to ...
26294 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26295 (grub_get_libzfs_handle): ... here.
26297 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26299 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26300 as command name case.
26302 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26304 * disk/raid.c (insert_array): Select unique numbers for named arrays
26305 as well, for use as keys in the disk cache.
26307 2010-08-01 Robert Millan <rmh@gnu.org>
26309 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26310 kFreeBSD device name, except on ZFS where the filesystem label is
26312 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26313 `/boot/zfs/zpool.cache'.
26314 Set mountfrom kernel variable using ${kfreebsd_device}.
26316 2010-08-01 Robert Millan <rmh@gnu.org>
26318 Make it even harder to use uninitialized `libzfs_handle' (and
26319 make the interface a bit simpler).
26321 * include/grub/util/misc.h (grub_util_init_libzfs)
26322 (libzfs_handle): Remove.
26323 (grub_get_libzfs_handle): New prototype.
26325 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26327 (grub_util_init_libzfs): Remove.
26328 (grub_get_libzfs_handle): New function.
26330 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26331 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26332 accessing `libzfs_handle' directly.
26334 2010-08-01 Robert Millan <rmh@gnu.org>
26336 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26337 (grub_find_zpool_from_mount_point): New function prototypes.
26339 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26340 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26342 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26343 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26344 `static' attribute.
26346 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26347 finding zpool from mount point into ...
26348 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26350 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26351 requested path is part of a ZFS pool, use
26352 grub_find_zpool_from_mount_point() to detect its filesystem name,
26353 and generate a path with `/fsname@path' syntax.
26355 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26357 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26358 (void) rather than () so that this is a proper prototype.
26360 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26362 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26364 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26366 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26367 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26369 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26371 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26373 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26375 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26377 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26379 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26380 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26381 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26382 disable gfxpayload.
26383 (Shell-like scripting): Add real content.
26384 (Serial terminal): Suggest `terminal_input serial; terminal_output
26385 serial' rather than putting the two commands on separate lines,
26386 since console input will be inoperative after the first command.
26387 (menuentry): Document --class, --users, and --hotkey options.
26388 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26389 Vladimir Serbinenko).
26391 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26392 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26394 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26396 2010-08-01 Robert Millan <rmh@gnu.org>
26398 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26399 (grub_find_zpool_from_mount_point): New function prototypes.
26401 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26402 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26404 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26405 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26406 `static' attribute.
26408 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26409 finding zpool from mount point into ...
26410 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26412 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26413 requested path is part of a ZFS pool, use
26414 grub_find_zpool_from_mount_point() to detect its filesystem name,
26415 and generate a path with `/fsname@path' syntax.
26417 2010-08-01 Robert Millan <rmh@gnu.org>
26419 Prevent accidental use of uninitialized libzfs_handle.
26421 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26422 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26423 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26425 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26427 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26428 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26430 2010-08-01 Robert Millan <rmh@gnu.org>
26432 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26434 2010-07-31 Robert Millan <rmh@gnu.org>
26436 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26438 2010-07-31 Robert Millan <rmh@gnu.org>
26440 * kern/emu/misc.c: Add missing license header.
26442 2010-07-31 Robert Millan <rmh@gnu.org>
26444 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26446 * include/grub/util/libnvpair.h: Include `<config.h>'.
26447 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26448 declaring libnvpair prototypes ourselves.
26449 * include/grub/util/libzfs.h: Include `<config.h>'.
26450 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26451 declaring libzfs prototypes ourselves.
26453 (libzfs_handle): Moved to ...
26454 * include/grub/util/misc.h (libzfs_handle): ... here.
26455 Include `<grub/util/libzfs.h>'.
26457 2010-07-30 Robert Millan <rmh@gnu.org>
26459 * include/grub/emu/misc.h: Add missing license header.
26461 2010-07-30 Robert Millan <rmh@gnu.org>
26463 Enable `grub-probe -t device' resolution on ZFS.
26465 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26466 * include/grub/util/libnvpair.h: New file.
26467 * include/grub/util/libzfs.h: New file.
26469 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26470 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26471 `<grub/util/libnvpair.h>'.
26472 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26474 (find_mount_point_from_dir): New static function.
26475 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26477 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26478 find_root_device_from_libzfs() before ressorting to find_root_device().
26480 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26482 * util/misc.c: Include `<grub/util/libzfs.h>'.
26483 (grub_util_init_libzfs): New function.
26484 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26485 [HAVE_LIBZFS] (fini_libzfs): New static function.
26486 (grub_util_init_libzfs): New function.
26487 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26489 2010-07-30 Robert Millan <rmh@gnu.org>
26491 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26492 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26493 `warn_unused_result' attribute.
26494 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26495 (grub_xasprintf, grub_xvasprintf): Likewise.
26496 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26498 2010-07-29 Robert Millan <rmh@gnu.org>
26500 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26501 (probe): Handle `PRINT_FS_LABEL'.
26502 (main): Handle `-t fs_label'.
26504 2010-07-29 Robert Millan <rmh@gnu.org>
26506 * configure.ac: Remove grub-mkisofs checks.
26508 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26510 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26511 Reported by: Lennart Sorensen.
26513 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26515 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26516 prior to terminal_input/terminal_output separation. It's been over 1.5
26517 years and those versions weren't widely deployed.
26519 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26521 * disk/raid.c (insert_array): Don't count named arrays when looking
26522 for unused array numbers.
26523 Reported and tested by: Michael Guntsche.
26525 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26527 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26528 implementation of this so that grub-emu links again, with a note
26529 that this should support hotplugging in the future.
26531 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26533 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26535 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26537 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26539 (grub_loopback_close): Remove empty function.
26540 (grub_loopback_dev): Remove close method.
26542 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26544 Disable EFI cursor when the EFI console becomes inactive.
26546 * term/efi/console.c (grub_efi_console_init): New function.
26547 (grub_efi_console_fini): New function.
26548 (grub_console_term_output): Register init and fini methods.
26550 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26552 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26555 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26557 * disk/loopback.c (grub_loopback): Replace filename with file.
26558 (delete_loopback): Handle new semantics.
26559 (grub_cmd_loopback): Likewise.
26560 (grub_loopback_iterate): Likewise.
26561 (grub_loopback_close): Likewise.
26563 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26565 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26567 Reported by: Tito Keitel.
26569 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26571 * docs/grub.texi (Naming convention): Document new naming convention.
26573 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26574 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26576 Generate device.map in something closer to the old ordering.
26578 * util/deviceiter.c (struct device): New declaration.
26579 (compare_file_names): Rename to ...
26580 (compare_devices): ... this. Sort by kernel name in preference to
26581 the stable by-id name, but keep the latter as a fallback comparison.
26582 Update header comment.
26583 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26584 of `struct device' rather than of plain file names.
26586 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26588 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26591 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26593 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26595 (setv1table): Likewise.
26597 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26599 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26600 removing the homehost if present.
26601 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26602 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26603 removing the homehost if present.
26604 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26606 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26608 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26609 parameter. Set its pointer target to 0.
26610 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26611 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26612 `data_offset' value from the superblock for 1.x metadata.
26613 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26614 data on the device.
26615 (insert_array): Record the start sector of data on the device.
26616 (grub_raid_register): Pass start_sector parameters to
26617 grub_raid_list->detect and insert_array.
26618 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26620 (struct grub_raid): Add start_sector parameter to `detect'.
26622 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26623 __attribute__ ((packed)), leaving a comment.
26624 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26625 (grub_mdraid_detect_09): ... here and ...
26626 (grub_mdraid_detect_1x): ... here.
26628 2010-07-20 Peter Henn <peter.henn@web.de>
26630 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26631 chunk size and disk size, which are already given as sector counts
26632 as distinct from the 0.90 units. Fetch the correct device number
26633 from the role table instead of using the table index.
26635 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26637 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26638 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26639 (WriteMostly1): New macro.
26640 Set array->name to NULL for metadata format 0.90. Add support for
26641 metadata 1.x. Fix some comments.
26642 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26644 * util/getroot.c (grub_util_get_grub_dev): Add support for
26645 /dev/md/name style devices.
26647 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26649 * .bzrignore: Ignore 20_linux_xen.
26651 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26653 * util/import_unicode.py: Remove unnecessary imports.
26655 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26657 Hotplugging and USB hub support.
26659 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26660 (grub_ohci): Likewise.
26661 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26662 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26663 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26664 (GRUB_OHCI_CTRL_EDS): Likewise.
26665 (GRUB_OHCI_BULK_EDS): Likewise.
26666 (GRUB_OHCI_TDS): Likewise.
26667 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26668 (grub_ohci_ed_phys2virt): New function.
26669 (grub_ohci_virt_to_phys): Likewise.
26670 (grub_ohci_td_phys2virt): Likewise.
26671 (grub_ohci_td_virt2phys): Likewise.
26672 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26674 (grub_ohci_find_ed): New function.
26675 (grub_ohci_alloc_td): Likewise.
26676 (grub_ohci_free_td): Likewise.
26677 (grub_ohci_free_tds): Likewise.
26678 (grub_ohci_transfer): Use previously allocated memory.
26679 (grub_ohci_portstatus): Reset status changed bit.
26680 (grub_ohci_detect_dev): Supply status changed.
26681 (grub_ohci_fini_hw): Free memory.
26682 (grub_ohci_restore_hw): Reallocate memory.
26683 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26684 Reset status change.
26685 (grub_uhci_detect_dev): Supply status_change.
26686 * bus/usb/usb.c (attach_hooks): New var.
26687 (grub_usb_device_attach): New function.
26688 (grub_usb_register_attach_hook_class): Likewise.
26689 (grub_usb_unregister_attach_hook_class): Likewise.
26690 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26691 (grub_usb_add_hub): Reset connection changed bit.
26692 (attach_root_port): New function.
26693 (grub_usb_root_hub): Likewise.
26694 (poll_nonroot_hub): Likewise.
26695 (grub_usb_poll_devices): Likewise.
26696 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26697 * disk/usbms.c (grub_usbms_open): Use device hooks.
26698 (grub_usbms_iterate) :Poll devices.
26699 (grub_usbms_finddevs): Split into ...
26700 (grub_usbms_attach): ... this ...
26701 (grub_usbms_attach): ... and this.
26702 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26704 (grub_usb_interface): New fields attached and detach_hook.
26705 (grub_usb_attach_hook_class): New type.
26706 (grub_usb_attach_desc): New struct.
26707 (grub_usb_register_attach_hook_class): New function.
26708 (grub_usb_unregister_attach_hook_class): Likewise.
26709 (grub_usb_poll_devices): Likewise.
26710 (grub_usb_device_attach): Likewise.
26711 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26712 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26714 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26716 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26717 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26718 delta determination style. Works with most NetBSD partitions too.
26720 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26722 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26723 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26725 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26727 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26729 2010-07-14 Anton Blanchard <anton@samba.org>
26731 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26734 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26736 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26738 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26740 * kern/partition.c (grub_partition_check_containment): New function to
26741 check that a partition is physically contained in a parent. Since
26742 offsets are relative (and non-negative), this reduces to checking that
26743 the partition ends before its parent.
26744 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26745 (grub_partition_iterate): Likewise.
26746 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26748 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26749 partitions that start before their parent, and add debug printfs.
26751 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26753 * Makefile.in (.SUFFIX): Spell correctly, as ...
26754 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26755 bare module name without `.mod', e.g. `test') tried to invoke a
26758 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26760 * README: Point to the Info manual.
26762 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26764 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26765 2nd superblock position from partition size.
26767 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26769 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26770 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26771 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26774 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26776 Restructure SCSI .id handling.
26777 Reported and tested by: Aleš Nesrsta.
26779 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26780 (grub_atapi_dev): Changed .name to "ata". New field .id.
26781 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26782 (grub_usbms_dev): New field .id.
26783 * disk/scsi.c (grub_scsi_iterate): Generate name.
26784 (grub_scsi_open): Parse name.
26785 * include/grub/scsi.h (grub_make_scsi_id): New function.
26786 (grub_scsi_dev): Change iterate and open to number instead of naming
26787 busses. All users updated.
26788 (grub_scsi): Remove name. Add .bus.
26790 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26792 * commands/help.c (grub_cmd_help): Fix a typo.
26794 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26796 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26797 Reported and tested by: Colin Watson.
26799 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26801 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26804 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26806 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26808 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26810 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26813 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26815 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26816 and disk/raid6_recover.c.
26817 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26818 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26820 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26822 * term/gfxterm.c (repaint_schedulded): Rename to ...
26823 (repaint_scheduled): ... this. Update all callers.
26824 (repaint_was_schedulded): Rename to ...
26825 (repaint_was_scheduled): ... this. Update all callers.
26827 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26829 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26830 which we expect to be handled by upper layers.
26832 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26834 * bus/usb/usbhub.c: #include time.h header.
26836 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26838 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26839 entry_name also for entries without stat blocks (e.g. ".."); fixes
26840 corruption of the first entry in a directory.
26842 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26844 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26845 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26846 doesn't work otherwise.
26848 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26850 * docs/grub.texi (Features): Update list of supported file systems.
26851 (GNU/Linux): Update for GRUB 2.
26852 (Serial terminal): Remove mention of --disable-serial, which was a
26853 GRUB Legacy configure option. Update instructions to use
26854 `terminal_input' and `terminal_output' rather than `terminal'.
26855 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26856 configuration' and `Installing GRUB using grub-install'.
26857 (Menu entry editor): Update for GRUB 2.
26858 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26859 Document new -a, -u, and -v options.
26860 (initrd): New section.
26861 (initrd16): New section.
26862 (linux): New section.
26863 (linux16): New section.
26864 (search): The `var' argument to `--set' is optional.
26865 (GRUB only offers a rescue shell): Go into a little more detail on
26868 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26870 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26872 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26874 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26875 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26877 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26879 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26880 install_prefix, in line with install_dos_part and install_bsd_part.
26881 Add new prefix variable, which is copied to install_prefix after
26882 comparing core.img in memory with the one read from disk in the
26883 no-embedding case, and use that rather than overwriting
26884 install_prefix immediately when installing to a partition.
26885 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26888 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26890 * configure.ac: Avoid == in test command, it's not portable.
26891 * util/grub.d/30_os-prober.in: Likewise.
26893 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26895 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26897 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26899 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26900 multiple (top-level) partmaps.
26902 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26904 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26905 Reported by: Tino Keitel.
26907 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26909 Bidi and diacritics support.
26911 * Makefile.in (widthspec.bin): New target.
26912 (widthspec.h): Likewise.
26913 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26914 * autogen.sh: Generate unidata.c.
26915 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26916 * commands/ls.c (grub_ls_list_devices): Likewise.
26917 (grub_ls_list_files): Likewise.
26918 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26919 (grub_mini_cmd_lsmod): Likewise.
26920 * commands/read.c: Likewise.
26921 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26922 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26923 * lib/arg.c (grub_arg_show_help): Likewise.
26924 * lib/crypto.c (grub_password_get): Likewise.
26925 * normal/auth.c (grub_username_get): Likewise.
26926 * normal/misc.c (grub_normal_print_device_info): Likewise.
26927 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26928 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26929 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26930 (normal/charset.c_DEPENDENCIES): New variable.
26931 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26932 (pkglib_MODULES): Remove charset.mod.
26933 (charset_mod_SOURCES): Removed.
26934 (charset_mod_CFLAGS): Likewise.
26935 (charset_mod_LDFLAGS): Likewise.
26936 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26937 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26939 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26940 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26941 (kernel_img_HEADERS): Add terminfo.h.
26942 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26943 Fill ->font. Reverse ascii bitmaps.
26944 (grub_font_get_xheight): New function.
26945 * font/font.c (grub_font_get_string_width): Moved from here ...
26946 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26947 * font/font.c (grub_font_draw_string): Moved from here ...
26948 * gfxmenu/font.c (grub_font_draw_string): ... here.
26949 * font/font.c (grub_font_dup_glyph): New function.
26950 (grub_font_blit_glyph): Likewise.
26951 (grub_font_blit_glyph_mirror): Likewise.
26952 (blit_comb): Likewise.
26953 (grub_font_construct_dry_run): Likewise.
26954 (grub_font_get_constructed_device_width): Likewise.
26955 (grub_font_construct_glyph): Likewise.
26956 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26957 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26958 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26959 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26960 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26961 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26962 (grub_font_get_xheight): New proto.
26963 (grub_font_get_constructed_device_width): Likewise.
26964 (grub_font_construct_glyph): Likewise.
26965 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26966 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26967 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26968 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26969 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26970 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26971 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26972 (grub_console_getcharwidth): Likewise.
26973 * include/grub/misc.h (grub_xputs): New proto.
26974 (grub_puts): Inlined.
26975 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26976 (grub_normal_get_line_counter): Removed.
26977 (grub_install_newline_hook): Likewise.
26978 (grub_normal_get_char_counter): New proto.
26979 (grub_normal_reset_more): Likewise.
26980 (grub_xputs_normal): Likewise.
26981 * include/grub/powerpc/ieee1275/console.h: Removed.
26982 * include/grub/sparc64/ieee1275/console.h: Likewise.
26983 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26984 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26985 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26986 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26987 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26988 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26989 (grub_term_input): Pass reference to self. All users updated.
26990 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26991 Pass reference to self. New fields normal_color, highlight_color and
26992 data. All users updated.
26993 (grub_putchar): Removed.
26994 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26995 (grub_unicode_estimate_width): New function.
26996 (grub_term_getcharwidth): Add defaults.
26997 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26998 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26999 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
27000 (grub_cls): Remove EXPORT_FUNC.
27001 (grub_setcolorstate): Inline.
27002 (grub_newline_hook): Removed.
27003 * include/grub/terminfo.h: Rewritten. All users updated.
27004 * include/grub/unicode.h: New file.
27005 * include/grub/video.h (grub_video_signed_rect): New type.
27006 * kern/emu/console.c (grub_console_highlight_color): Removed.
27007 (grub_console_normal_color): Likewise.
27008 (grub_console_standard_color): Made static.
27009 (grub_ncurses_putchar): Remove mapping.
27010 (grub_ncurses_getcharwidth): Removed.
27011 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
27012 (grub_ncurses_setcolor): Removed.
27013 (grub_ncurses_getcolor): Likewise.
27014 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
27015 (grub_console_putchar): ... this.
27016 (grub_console_putchar): Handle argument difference.
27017 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
27018 console_init_early and console_init_lately.
27019 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
27020 * kern/misc.c (grub_puts): Removed.
27021 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
27022 (grub_vsnprintf_real): Remove str = NULL support.
27023 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
27024 * normal/charset.c (grub_utf8_to_ucs4): ... here.
27025 * kern/term.c (grub_putcode): Renamed to ...
27026 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
27027 (grub_putchar): Removed.
27028 (grub_xputs_dumb): New function.
27029 (grub_xputs): New variable.
27030 * lib/charset.c: Move from here ...
27031 * normal/charset.c: ... to here.
27032 (grub_ucs4_to_utf8): New function.
27033 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
27034 (join_types): New variable.
27035 (unpack_join): New function.
27036 (bidi_types): New variable.
27037 (unpack_bidi): New function.
27038 (get_bidi_type): Likewise.
27039 (get_join_type): Likewise.
27040 (is_mirrored): Likewise.
27041 (grub_unicode_get_comb_type): Likewise.
27042 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
27043 (is_type_after): Likewise.
27044 (grub_unicode_aglomerate_comb): Likewise.
27045 (bidi_line_wrap): Likewise.
27046 (grub_bidi_line_logical_to_visual): Likewise.
27047 (grub_bidi_logical_to_visual): Likewise.
27048 (grub_unicode_mirror_code): Likewise.
27049 (grub_unicode_shape_code): Likewise.
27050 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
27051 Don't use grub_putchar.
27052 * normal/main.c (grub_normal_init_page): Use grub_putcode.
27053 (grub_normal_reader_init): Likewise.
27054 (grub_xputs_saved): New variable.
27055 (GRUB_MOD_INIT): Set grub_xputs.
27056 (GRUB_MOD_FINI): Restore grub_xputs.
27057 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
27058 (menu_init): Avoid printing gfxmenu error.
27059 (show_menu): Use grub_normal_get_char_counter.
27060 * normal/menu_entry.c (update_screen): Fix out-of-array.
27061 (complete): Avoid NULL dereferencing.
27062 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
27063 * normal/menu_text.c (print_spaces): Removed.
27064 (grub_print_ucs4): Likewise.
27065 (grub_print_message_indented): Use grub_print_ucs4.
27066 (print_message): Use grub_putcode.
27067 (print_entry): Hanlde diacritics.
27068 * normal/term.c (term_state): New type.
27069 (grub_more_lines): Removed.
27070 (term_states): New variable.
27071 (grub_normal_line_counter): Renamed to ..
27072 (grub_normal_char_counter): ...this. All users updated.
27073 (grub_normal_get_line_counter): Renamed to ...
27074 (grub_normal_get_char_counter): ... this.
27075 (grub_normal_reset_more): New function.
27076 (process_newline): Removed.
27077 (print_more): New function.
27078 (grub_install_newline_hook): Removed.
27079 (map_code): New function.
27080 (grub_puts_terminal): Use grub_print_ucs4.
27081 (putglyph): New function.
27082 (putcode_real): Likewise.
27083 (grub_putcode): Use putcode_real.
27084 (get_maxwidth): New function.
27085 (get_startwidth): Likewise.
27086 (print_ucs4_terminal): Likewise.
27087 (find_term_state): Likewise.
27088 (put_glyphs_terminal): Likewise.
27089 (print_backlog): Likewise.
27090 (print_ucs4_real): Likewise.
27091 (grub_print_ucs4): Likewise.
27092 (grub_xputs_normal): Likewise.
27093 * term/efi/console.c (grub_console_putchar): Output diacritics.
27094 (grub_console_getcharwidth): Removed.
27095 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27096 * term/gfxterm.c (clear_char): Free chars.
27097 (scroll_up): Avoid leaking memory.
27098 (grub_gfxterm_putchar): Support diacritics.
27099 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27100 * term/i386/pc/console.c (grub_console_term_output): Declare as
27101 GRUB_TERM_CODE_TYPE_VGA.
27102 * term/i386/pc/vga.c (grub_vga_term): Declare as
27103 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
27104 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
27105 GRUB_TERM_CODE_TYPE_VGA.
27106 * term/i386/vga_common.c (map_char): Removed.
27107 (grub_console_putchar): Likewise.
27108 (grub_console_getcharwidth): Likewise.
27109 * term/ieee1275/ofconsole.c: Simplify using terminfo.
27110 (colors): Reordered to match terminfo.
27111 (grub_ofconsole_normal_color): Removed.
27112 (grub_ofconsole_writeesc): Likewise.
27113 (grub_ofconsole_highlight_color): Likewise.
27114 (grub_ofconsole_getcharwidth): Likewise.
27115 (grub_ofconsole_setcolorstate): Likewise.
27116 (grub_ofconsole_setcolor): Likewise.
27117 (grub_ofconsole_getcolor): Likewise.
27118 (grub_ofconsole_readkey): Renamed to ...
27119 (readkey): ... this. Remove escape sequence handling. Return -1 on no
27121 (grub_ofconsole_checkkey): Removed.
27122 (grub_ofconsole_getkey): Likewise.
27123 (grub_ofconsole_getxy): Likewise.
27124 (grub_ofconsole_gotoxy): Likewise.
27125 (grub_ofconsole_cls): Likewise.
27126 (grub_ofconsole_refresh): Likewise.
27127 (grub_ofconsole_terminfo_input): New struct.
27128 (grub_ofconsole_terminfo_output): Likewise.
27129 (grub_ofconsole_term_input): Use terminfo.
27130 (grub_ofconsole_term_output): Likewise.
27131 (grub_console_init): Split into ...
27132 (grub_console_init_early): ...this and ...
27133 (grub_console_init_lately): ...this. Use terminfo.
27134 (grub_ofconsole_putchar): Renamed to ...
27135 (put): ... this. Remove mapping.
27136 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
27137 * term/serial.c: Simplify using terminfo.
27140 (keep_track): Likewise.
27141 (registered): Likewise.
27142 (input_buf): Likewise.
27143 (npending): Likewise.
27144 (serial_translate_key_sequence): Likewise.
27145 (fill_input_buf): Likewise.
27146 (grub_serial_checkkey): Likewise.
27147 (grub_serial_getkey): Likewise.
27148 (grub_serial_getxy): Likewise.
27149 (grub_serial_gotoxy): Likewise.
27150 (grub_serial_putchar): Likewise.
27151 (grub_serial_cls): Likewise.
27152 (grub_serial_setcolorstate): Likewise.
27153 (grub_serial_setcursor): Likewise.
27154 (serial_hw_init): Use serial_hw_fetch.
27155 (grub_serial_terminfo_input): New variable.
27156 (grub_serial_terminfo_output): Likewise.
27157 (grub_serial_term_input): Use terminfo.
27158 (grub_serial_term_output): Likewise.
27159 * term/terminfo.c (putstr): Use put.
27160 (grub_terminfo_all_free): New function
27161 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
27162 (grub_terminfo_output_register): New function.
27163 (grub_terminfo_output_unregister): Likewise.
27164 (grub_terminfo_getxy): Likewise.
27165 (grub_terminfo_readkey): Likewise.
27166 (grub_terminfo_checkkey): Likewise.
27167 (grub_terminfo_getkey): Likewise.
27168 (grub_terminfo_input_init): Likewise.
27169 (print_terminfo): Likewise.
27170 (grub_cmd_terminfo): Handle encoding.
27171 (grub_terminfo_gotoxy): Track position.
27172 (grub_terminfo_cls): Likewise.
27173 (grub_terminfo_putchar): Likewise.
27174 (grub_terminfo_setcolorstate): Handle colors
27175 (grub_terminfo_cursor_on): This ...
27176 (grub_terminfo_cursor_off): ... and this merged into ...
27177 (grub_terminfo_setcursor): ... this.
27178 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
27179 * unicode/ArabicShaping.txt: New file (imported from Unicode).
27180 * unicode/BidiMirroring.txt: Likewise.
27181 * unicode/UnicodeData.txt: Likewise.
27182 * unicode/COPYING: Likewise.
27183 * util/grub-editenv.c (grub_putchar): Removed.
27184 (grub_xputs_real): New function.
27185 (grub_xputs): New variable.
27186 * util/grub-fstest.c (grub_putchar): Removed.
27187 (grub_xputs_real): New function.
27188 (grub_xputs): New variable.
27189 * util/grub-mkdevicemap.c (grub_putchar): Removed.
27190 (grub_xputs_real): New function.
27191 (grub_xputs): New variable.
27192 * util/grub-probe.c (grub_putchar): Removed.
27193 (grub_xputs_real): New function.
27194 (grub_xputs): New variable.
27195 * util/grub-script-check.c (grub_putchar): Removed.
27196 (grub_xputs_real): New function.
27197 (grub_xputs): New variable.
27198 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27199 (grub_xputs_real): New function.
27200 (grub_xputs): New variable.
27201 * util/import_unicode.py: New file.
27202 * util/grub-mkfont.c (ft_errmsgs): New array.
27203 (grub_glyph_info): Make bitmap a pointer.
27204 (file_formats): New type WIDTH_SPEC.
27205 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27206 (options): Add width-spec.
27208 (add_char): Renamed to ...
27209 (add_glyph): ... this.
27210 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27211 (glyph_replace): New type.
27212 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27213 (add_char): New function.
27214 (add_subst): Likewise.
27215 (process_cursive): Likewise.
27216 (add_font): Handle GSUB.
27217 (write_font_width_spec): New function.
27218 (main): Sort glyphs.
27219 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27220 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27221 * kern/term.c (grub_cls): Moved from here...
27222 * normal/term.c (grub_cls): ... here.
27224 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27226 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27227 suitable for using within the format argument of printf when
27228 converting grub_size_t.
27229 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27230 "x" to convert grub_size_t arguments.
27232 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27234 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27236 (list_get_minimal_size): Take selection box into account.
27238 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27240 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27243 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27245 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27246 devices when iterating over /dev/disk/by-id; they will be handled
27247 later if appropriate, which they aren't always (e.g. LVM).
27249 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27251 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27252 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27254 (grub_halt): Likewise.
27255 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27257 (grub_halt): Don't return, even if all of shut-down, power-off, and
27260 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27262 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27263 arguments, not three.
27265 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27267 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27268 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27269 LVM-on-RAID is handled correctly.
27271 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27273 * docs/grub.texi (Changes from GRUB Legacy): New section.
27274 (Future): Fix typo.
27276 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27278 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27279 grub.d/README accidentally ends up executable for one reason or
27280 another. Ignore it.
27282 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27284 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27285 (gpt_partition_map_iterate): Support non-512B sectors.
27287 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27289 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27290 Tested by: Seth Goldberg.
27292 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27294 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27295 Properly align mbi.
27296 Reported by: Seth Goldberg.
27298 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27300 * util/grub-mkrescue.in: Avoid module duplication.
27302 2010-07-01 Sean Finney <seanius@seanius.net>
27304 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27306 2010-07-01 Sean Finney <seanius@seanius.net>
27308 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27310 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27312 * disk/lvm.c (grub_lvm_checkvalue): New function.
27313 (grub_lvm_check_flag): Likewise.
27315 2010-07-01 Robert Millan <rmh@gnu.org>
27317 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27318 Support 'p' as partition separator on kernel of FreeBSD (used
27320 (grub_util_biosdisk_get_grub_dev): Likewise.
27322 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27324 Yeeloong firmware port.
27326 * boot/mips/yeeloong/fwstart.S: New file.
27327 * bus/cs5536.c (gpiodump): New const.
27328 (set_io_space): New function.
27329 (set_iod): Likewise.
27330 (set_p2d): Likewise.
27331 (grub_cs5536_init_geode): Likewise.
27332 * commands/mips/yeeloong/lsspd.c: New file.
27333 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27334 (serial_mod_SOURCES): New variable.
27335 (serial_mod_CFLAGS): Likewise.
27336 (serial_mod_LDFLAGS): Likewise.
27337 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27338 term/terminfo.c and term/tparm.c.
27339 (pkglib_IMAGES): Add fwstart.img.
27340 (fwstart_img_SOURCES): New variable.
27341 (fwstart_img_CFLAGS): Likewise.
27342 (fwstart_img_ASFLAGS): Likewise.
27343 (fwstart_img_LDFLAGS): Likewise.
27344 (fwstart_img_FORMAT): Likewise.
27345 (pkglib_MODULES): Add lsspd.mod.
27346 (lsspd_mod_SOURCES): New variable.
27347 (lsspd_mod_CFLAGS): Likewise.
27348 (lsspd_mod_LDFLAGS): Likewise.
27349 (pkglib_MODULES): Add halt.mod.
27350 (halt_mod_SOURCES): New variable.
27351 (halt_mod_CFLAGS): Likewise.
27352 (halt_mod_LDFLAGS): Likewise.
27353 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27354 (serial_mod_SOURCES): Removed.
27355 (serial_mod_CFLAGS): Likewise.
27356 (serial_mod_LDFLAGS): Likewise.
27357 * disk/ata.c (check_device): New function.
27358 (grub_ata_device_initialize): Use check_device.
27359 (grub_ata_iterate): Recheck devices.
27360 (grub_ata_open): Likewise.
27361 (grub_atapi_iterate): Likewise.
27362 (grub_atapi_open): Likewise.
27363 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27364 (GRUB_ATA_CH1_PORT1): Likewise.
27365 (GRUB_ATA_CH0_PORT2): Likewise.
27366 (GRUB_ATA_CH1_PORT2): Likewise.
27367 * include/grub/mips/loongson.h: New file.
27368 * include/grub/mips/yeeloong/ec.h: Likewise.
27369 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27370 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27371 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27372 * include/grub/misc.h (grub_halt): Declare as noreturn.
27373 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27374 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27375 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27376 (UART_ENABLE_DTRRTS): Likewise.
27377 (UART_ENABLE_MODEM): Removed.
27378 (UART_ENABLE_OUT2): New const.
27379 * include/grub/term.h (grub_term_register_input_active): New function.
27380 (grub_term_register_output_active): Likewise.
27381 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27383 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27384 (init_pci): New function.
27385 (grub_machine_init): Execute platform init when firmware. Init serial.
27386 (grub_halt): Implement.
27387 (grub_exit): Likewise.
27388 (grub_reboot): Likewise.
27389 * term/serial.c (serial_hw_init): Update macros.
27390 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27391 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27392 (image_targets): New target mipsel-yeeloong-flash.
27393 (generate_image): Support IMAGE_YEELOONG_FLASH.
27394 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27395 (grub_video_sm712_setup): Init card.
27396 (grub_video_sm712_set_palette): Removed.
27397 * video/sm712_init.c: New file.
27399 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27401 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27402 PATH when running help2man and then run it on the unadorned
27403 executable names, rather than passing $(builddir)/* paths to
27404 help2man. This avoids the build directory ending up in generated
27407 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27409 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27410 to avoid accidents when debugging with 'sh -x'.
27411 * util/grub-mkrescue.in: Likewise.
27412 * util/grub.d/00_header.in: Likewise.
27413 * util/grub.d/10_hurd.in: Likewise.
27414 * util/grub.d/10_kfreebsd.in: Likewise.
27415 * util/grub.d/10_linux.in: Likewise.
27416 * util/grub.d/10_netbsd.in: Likewise.
27417 * util/grub.d/10_windows.in: Likewise.
27418 * util/grub.d/20_linux_xen.in: Likewise.
27419 * util/grub.d/30_os-prober.in: Likewise.
27420 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27422 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27424 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27425 last character in the buffer.
27426 Reported by: Vladimir Serbinenko.
27428 2010-06-29 Robert Millan <rmh@gnu.org>
27430 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27431 (Command-line and menu entry commands): Document `badram' command.
27433 2010-06-28 Robert Millan <rmh@gnu.org>
27435 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27436 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27437 command using ${GRUB_BADRAM} as parameter.
27439 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27441 * docs/grub.texi (Device map): New section.
27442 (Themes): New section (stub).
27443 * Makefile.in (docs/grub.info): The info documentation now builds
27444 without errors. Make sure it stays that way.
27446 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27448 Use normal parser for menu entries.
27449 Reported by: Thomas Frauendorfer
27451 * include/grub/parser.h (grub_parser_execute): Don't export.
27452 * normal/menu.c (grub_menu_execute_entry_real): New function.
27453 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27455 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27457 * docs/grub.texi (Embedded configuration): New section (replacing
27458 old "Preset Menu" stub).
27459 (Images): New section.
27460 (configfile): Note that any menu entries defined in `file' are shown
27463 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27465 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27467 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27469 * util/grub-install.in: Add --debug-image= option.
27471 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27473 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27476 * util/deviceiter.c (check_device): Rename to ...
27477 (check_device_readable_unique): ... this. Update all callers.
27478 Maintain and check a list of which devices (by canonicalized name)
27479 have already been seen.
27480 (clear_seen_devices): New function.
27481 (compare_file_names) [__linux__]: New function.
27482 (grub_util_iterate_devices): Clear the list of seen devices on exit
27483 and (just in case) on entry.
27484 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27485 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27486 seen-devices list, superseded by general code in check_device.
27488 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27490 * commands/cat.c (options): New variable.
27491 (grub_cmd_cat): Parse options. If the --dos option is given, print
27492 DOS-style "\r\n" line endings as simple newlines (Debian bug
27494 (GRUB_MOD_INIT): Use extcmd.
27495 (GRUB_MOD_FINI): Likewise.
27496 * docs/grub.texi (cat): Document --dos.
27498 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27500 XEN with Linux grub-mkconfig support.
27502 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27503 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27504 GRUB_CMDLINE_XEN_DEFAULT.
27505 * util/grub.d/20_linux_xen.in: New file.
27507 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27509 Initialise VGA video on qemu ourselves.
27511 * boot/i386/qemu/boot.S: Don't call 0xc000.
27512 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27513 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27514 (kernel_img_HEADERS): Add pci.h.
27515 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27516 * configure.ac: Force unifont on qemu and yeeloong.
27517 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27518 (grub_vga_palette_write): Use correct register.
27519 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27520 Call grub_qemu_init_cirrus.
27521 * kern/i386/qemu/init.c: New file.
27522 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27524 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27526 2010-06-26 Pavel Roskin <proski@gnu.org>
27528 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27531 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27533 * docs/grub.texi (Simple configuration): Explain that
27534 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27535 set to `true' to disable their respective recovery entries, not
27538 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27540 Make the `source' command slightly faster.
27542 * normal/main.c (grub_normal_execute): Don't re-read list files when
27545 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27547 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27548 field position and mask size to red fields from mode_info, not
27550 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27551 Remove redundant tag->common.framebuffer_type assignment.
27552 Reported by: Seth Goldberg.
27554 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27556 Sync up other versions of the Linux loader with Robert Millan's
27557 change of 2010-01-09, "Make loader output a bit more user-friendly".
27559 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27561 (grub_cmd_linux): Likewise.
27562 (grub_cmd_initrd): Likewise.
27563 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27564 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27566 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27568 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27569 larger than MEMORY_MAP_SIZE.
27571 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27573 Fix parallel build.
27575 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27577 * script/parser.y: #include grub_script.tab.h header.
27579 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27581 Support >3GiB and <16MiB RAM in i386-qemu.
27583 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27584 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27585 (grub_lower_mem): Removed.
27586 (grub_upper_mem): Likewise.
27587 (mem_size): Made static.
27588 (above_4g): New variable.
27589 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27590 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27593 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27595 Cirrus 5446 and Bochs video cards support.
27597 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27599 (video_cirrus_mod_SOURCES): New variable.
27600 (video_cirrus_mod_CFLAGS): Likewise.
27601 (video_cirrus_mod_LDFLAGS): Likewise.
27602 (video_bochs_mod_SOURCES): Likewise.
27603 (video_bochs_mod_CFLAGS): Likewise.
27604 (video_bochs_mod_LDFLAGS): Likewise.
27605 * include/grub/vga.h: New file.
27606 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27607 (grub_video_fb_set_page_t): New type.
27608 (grub_video_fb_setup): New prototype.
27609 (grub_video_fb_swap_buffers): Likewise.
27610 (grub_video_fb_get_info_and_fini): Likewise.
27611 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27612 (CRTC_DATA_PORT): Likewise.
27613 (CRTC_CURSOR): Likewise.
27614 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27615 (CRTC_CURSOR_ADDR_LOW): Likewise.
27616 (CRTC_CURSOR_DISABLE): Likewise.
27617 (update_cursor): Use grub_vga_cr_write.
27618 (grub_vga_text_setcursor): Likewise.
27619 * video/bochs.c: New file.
27620 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27621 (palette): Likewise.
27622 (palette_size): Likewise.
27623 (framebuffer): New variable.
27624 (grub_video_fb_init): Use 'framebuffer'.
27625 (grub_video_fb_fini): Likewise.
27626 (grub_video_fb_get_info): Likewise.
27627 (grub_video_fb_get_palette): Likewise.
27628 (grub_video_fb_set_palette): Likewise.
27629 (grub_video_fb_set_viewport): Likewise.
27630 (grub_video_fb_get_viewport): Likewise.
27631 (grub_video_fb_map_color): Likewise.
27632 (grub_video_fb_map_rgb): Likewise.
27633 (grub_video_fb_map_rgba): Likewise.
27634 (grub_video_fb_unmap_color): Likewise.
27635 (grub_video_fb_unmap_color_int): Likewise.
27636 (grub_video_fb_fill_rect): Likewise.
27637 (grub_video_fb_blit_bitmap): Likewise.
27638 (grub_video_fb_blit_render_target): Likewise.
27639 (grub_video_fb_scroll): Likewise.
27640 (grub_video_fb_create_render_target): Likewise.
27641 (grub_video_fb_doublebuf_blit_init): Likewise.
27642 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27643 (doublebuf_pageflipping_update_screen): New function.
27644 (doublebuf_pageflipping_init): Likewise.
27645 (grub_video_fb_setup): Likewise.
27646 (grub_video_fb_swap_buffers): Likewise.
27647 (grub_video_fb_get_info_and_fini): Likewise.
27648 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27650 (doublebuf_pageflipping_commit): Restructured into ...
27651 (doublebuf_pageflipping_set_page): ... this.
27652 (doublebuf_pageflipping_update_screen): Removed.
27653 (doublebuf_pageflipping_init): Likewise.
27654 (double_buffering_init): Likewise.
27655 (grub_video_vbe_setup): Use grub_video_fb_setup.
27656 (grub_video_vbe_swap_buffers): Removed.
27657 (grub_video_vbe_set_active_render_target): Likewise.
27658 (grub_video_vbe_get_active_render_target): Likewise.
27659 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27660 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27661 grub_video_fb_set_active_render_target and
27662 grub_video_fb_get_active_render_target.
27663 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27664 (SEQUENCER_DATA_PORT): Likewise.
27665 (MAP_MASK_REGISTER): Likewise.
27666 (CRTC_ADDR_PORT): Likewise.
27667 (CRTC_DATA_PORT): Likewise.
27668 (START_ADDR_HIGH_REGISTER): Likewise.
27669 (START_ADDR_LOW_REGISTER): Likewise.
27670 (GRAPHICS_ADDR_PORT): Likewise.
27671 (GRAPHICS_DATA_PORT): Likewise.
27672 (READ_MAP_REGISTER): Likewise.
27673 (INPUT_STATUS1_REGISTER): Likewise.
27674 (INPUT_STATUS1_VERTR_BIT): Likewise.
27675 (get_map_mask): Use grub_vga_sr_read.
27676 (set_map_mask): Use grub_vga_sr_write.
27677 (set_read_map): Use grub_vga_gr_write.
27678 (set_start_address): Use grub_vga_cr_write.
27679 * video/sm712.c (framebuffer): Remove leftover fields.
27681 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27683 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27684 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27685 instead. Replace the gfxterm backend check with a check that
27686 ${GRUB_PREFIX}/video.lst is non-empty.
27687 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27689 (load_video): New generated function. Call it before loading
27690 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27691 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27692 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27693 * docs/grub.texi (Simple configuration): Document
27694 GRUB_VIDEO_BACKEND.
27696 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27698 Use video functions in linux and xnu loaders.
27700 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27701 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27702 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27703 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27704 loader/i386/pc/linux.c.
27705 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27706 (find_line_len): Removed.
27707 (find_framebuf): Likewise.
27708 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27709 * loader/i386/efi/xnu.c: Removed.
27710 * loader/i386/pc/xnu.c: Moved from here...
27711 * loader/i386/xnu.c: ...here.
27713 Enable priorities in video drivers.
27715 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27716 (grub_video_adapter): New field prio.
27717 (grub_video_register): Respect prio when inserting.
27718 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27719 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27720 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27721 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27722 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27723 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27724 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27728 * include/grub/video.h (grub_video_driver_id_t): New value
27729 GRUB_VIDEO_DRIVER_SDL.
27730 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27732 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27734 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27735 argument to printf.
27736 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27738 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27740 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27741 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27743 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27745 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27746 directly, and recommend grub-install instead.
27747 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27749 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27751 Fix i386-pc prefix handling with nested partitions (Debian bug
27752 #585068). Note that the case where the core image is booted using
27753 multiboot and relocated from its original location still requires
27756 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27757 with "(,", fill the boot drive in between those two characters, but
27758 expect that a full partition specification including partition map
27760 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27761 specified, write a prefix without the drive name but including a
27762 full partition specification.
27764 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27766 * util/grub-mkconfig.in: Ignore non-option arguments, for
27767 compatibility with older versions (before 2010-06-12) which did the
27768 same. In particular, this makes it easier to ship an update-grub
27769 wrapper which is compatible with that used with GRUB Legacy (Debian
27772 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27774 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27775 for manual page generation.
27777 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27779 * po/POTFILES: Remove leftover commands/handler.c.
27781 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27783 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27784 left this script non-functional.
27786 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27788 * docs/man/grub-emu.h2m: New file.
27790 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27792 * docs/grub.texi (Commands): Document reduced command set in rescue
27794 (cpuid): New section.
27796 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27798 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27799 new partition naming style.
27800 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27802 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27804 Add "-o grub.iso" like cmdline options support.
27806 * util/grub-install.in: Improve cmdline option parsing.
27807 * util/grub-mkconfig.in: Likewise.
27808 * util/grub-mkrescue.in: Likewise.
27809 * util/grub-reboot.in: Likewise.
27810 * util/grub-set-default.in: Likewise.
27811 * util/i386/efi/grub-install.in: Likewise.
27812 * util/ieee1275/grub-install.in: Likewise.
27813 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27815 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27817 * .bzrignore: Ignore 41_custom.
27819 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27821 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27823 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27825 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27826 prototype declarations.
27828 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27829 generating fs, partmap, and video lists.
27830 * include/grub/fs.h (grub_fs_register): Omit prototype if
27831 GRUB_LST_GENERATOR is defined.
27832 * include/grub/partition.h (grub_partition_map_register): Likewise.
27833 * include/grub/video.h (grub_video_register): Likewise.
27835 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27837 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27839 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27841 * util/grub-mkrescue.in: Support --xorriso argument.
27843 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27845 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27846 Suggested by: Thomas Schmitt.
27848 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27850 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27851 Suggested by: Thomas Schmitt.
27853 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27855 custom.cfg support.
27857 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27858 * util/grub.d/41_custom.in: New file.
27860 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27862 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27863 been merged back into normal.
27865 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27867 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27868 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27870 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27872 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27873 when generating manual pages.
27874 * docs/man/grub-bin2h.h2m: New file.
27875 * docs/man/grub-editenv.h2m: New file.
27876 * docs/man/grub-fstest.h2m: New file.
27877 * docs/man/grub-install.h2m: New file.
27878 * docs/man/grub-macho2img.h2m: New file.
27879 * docs/man/grub-mkconfig.h2m: New file.
27880 * docs/man/grub-mkdevicemap.h2m: New file.
27881 * docs/man/grub-mkfont.h2m: New file.
27882 * docs/man/grub-mkimage.h2m: New file.
27883 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27884 * docs/man/grub-mkrelpath.h2m: New file.
27885 * docs/man/grub-mkrescue.h2m: New file.
27886 * docs/man/grub-ofpathname.h2m: New file.
27887 * docs/man/grub-pe2elf.h2m: New file.
27888 * docs/man/grub-probe.h2m: New file.
27889 * docs/man/grub-reboot.h2m: New file.
27890 * docs/man/grub-script-check.h2m: New file.
27891 * docs/man/grub-set-default.h2m: New file.
27892 * docs/man/grub-setup.h2m: New file.
27894 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27896 Use FOR_* macros instead of *_iterate whenever possible.
27898 * commands/handler.c: Removed.
27899 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27900 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27901 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27902 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27903 (grub_probe_SOURCES): Remove kern/parser.c.
27904 (util/grub-script-check.c_DEPENDENCIES): Removed.
27905 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27906 and grub_script_check_init.c.
27907 (grub_script_check_init.lst): Removed.
27908 (grub_script_check_init.h): Likewise.
27909 (grub_script_check_init.c): Likewise.
27910 (pkglib_MODULES): Remove handler.mod and sh.mod.
27911 (handler_mod_SOURCES): Removed.
27912 (handler_mod_CFLAGS): Likewise.
27913 (handler_mod_LDFLAGS): Likewise.
27914 (normal_mod_SOURCES): Remove normal/handler.c.
27915 Add script/main.c, script/script.c, script/execute.c,
27916 script/function.c, script/lexer.c, grub_script.tab.c
27917 and grub_script.yy.c.
27918 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27919 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27920 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27921 (grub_setup_SOURCES): Remove kern/parser.c.
27922 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27923 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27924 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27925 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27926 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27927 (grub_setup_SOURCES): Remove kern/parser.c.
27928 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27929 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27930 * include/grub/command.h (grub_command_iterate): Removed.
27931 (FOR_COMMANDS): New macro.
27932 * include/grub/dl.h (grub_dl): New member next.
27933 (grub_dl_iterate): Removed.
27934 (grub_dl_head): New variable declaration.
27935 (FOR_DL_MODULES): New macro.
27936 * include/grub/fs.h: Include list.h.
27937 (grub_fs): Make next first element.
27938 (grub_fs_list): New variable declaration.
27939 (grub_fs_register): Make inline.
27940 (grub_fs_unregister): Likewise.
27941 (grub_fs_iterate): Removed.
27942 (FOR_FILESYSTEMS): New macro.
27943 * include/grub/handler.h: Removed.
27944 * include/grub/list.h (grub_list_hook_t): Removed.
27945 (grub_list_test_t): Likewise.
27946 (grub_list_pop): Likewise.
27947 (grub_list_iterate): Likewise.
27948 (grub_list_insert): Likewise.
27949 (FOR_LIST_ELEMENTS): New macro.
27950 * include/grub/parser.h (grub_parser_class): Removed.
27951 (grub_parser_register): Likewise.
27952 (grub_parser_unregister): Likewise.
27953 (grub_parser_get_current): Likewise.
27954 (grub_parser_set_current): Likewise.
27955 (grub_register_rescue_parser): Likewise.
27956 (grub_rescue_parse_line): New function.
27957 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27958 * include/grub/script_sh.h (grub_script_function_list): New variable
27960 (FOR_SCRIPT_FUNCTIONS): New macro.
27961 (grub_script_function_iterate): Removed.
27962 (grub_normal_parse_line): New prototype.
27963 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27964 (FOR_DISABLED_TERM_INPUTS): Likewise.
27965 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27966 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27967 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27969 (grub_video_register): Inline.
27970 (grub_video_unregister): Likewise.
27971 (grub_video_adapter_list): New variable declaration.
27972 (grub_video_iterate): Removed.
27973 (FOR_VIDEO_ADAPTERS): New macro.
27974 * kern/dl.c (grub_dl_list): Removed. All users updated.
27975 (grub_dl_iterate): Removed.
27976 * kern/fs.c (grub_fs_list): Make global.
27977 (grub_fs_register): Removed.
27978 (grub_fs_unregister): Likewise.
27979 (grub_fs_iterate): Likewise.
27980 * kern/handler.c: Removed.
27981 * kern/list.c (grub_list_pop): Removed.
27982 (grub_list_iterate): Likewise.
27983 (grub_list_insert): Likewise.
27984 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27985 (grub_prio_list_insert): Don't use grub_list_insert.
27986 * kern/main.c (grub_register_rescue_parser): Don't call
27987 grub_register_rescue_parser.
27988 * kern/parser.c (grub_parser_class): Removed.
27989 (grub_parser_execute): Use grub_rescue_parse_line.
27990 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27991 (grub_rescue_parser): Removed.
27992 (grub_register_rescue_parser): Likewise.
27993 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27994 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27995 (grub_auth_check_authentication): Likewise.
27996 * normal/completion.c (iterate_command): Removed.
27997 (grub_normal_do_completion): Use FOR_COMMANDS.
27998 * normal/handler.c: Removed.
27999 * normal/main.c (read_config_file): Remove parser changing.
28000 (grub_normal_execute): Don't call read_handler_list.
28001 (grub_normal_read_line_real): Statically allocate prompt.
28002 (grub_cmdline_run): Use grub_normal_parse_line.
28003 (GRUB_MOD_FINI): Don't call free_handler_list.
28004 * normal/menu_entry.c (run): Likewise.
28005 * script/function.c (grub_script_function_list): Make global.
28006 (grub_script_function_iterate): Removed.
28007 * script/main.c (grub_normal_parse_line): Make global.
28008 (grub_sh_parser): Removed.
28009 (GRUB_MOD_INIT): Likewise.
28010 (GRUB_MOD_FINI): Likewise.
28011 * tests/lib/functional_test.c (grub_functional_test): Use
28013 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
28014 (grub_test_run): Use FOR_LIST_ELEMENTS.
28015 * tests/lib/unit_test.c (main): Likewise.
28016 * util/deviceiter.c (grub_util_iterate_devices): Don't use
28018 * util/grub-fstest.c (grub_term_input_class): Removed.
28019 (grub_term_output_class): Likewise.
28020 * util/grub-probe.c: Likewise.
28021 * util/i386/pc/grub-setup.c: Likewise.
28022 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28023 * util/grub-script-check.c (main): Don't call grub_init_all and
28025 * video/video.c (grub_video_adapter_list): Make global.
28026 (grub_video_register): Removed.
28027 (grub_video_unregister): Likewise.
28028 (grub_video_iterate): Likewise.
28030 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
28032 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
28033 reported by Henrique Ferreiro.
28035 2010-06-09 Robert Millan <rmh@gnu.org>
28037 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
28038 ones, when both are available.
28040 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
28042 Make --version uniform and avoid hard-coded program name.
28044 * util/grub-mkimage.c (main): Use `program_name' instead of
28046 * util/i386/pc/grub-setup.c (main): Likewise.
28047 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
28048 * util/grub-install.in: Save the basename of $0 in $self, and use the
28049 latter in informational messages. Use the same format for --version
28050 as the binary programs.
28051 * util/grub-mkconfig.in: Likewise.
28052 * util/grub-mkrescue.in: Likewise.
28053 * util/grub-reboot.in: Likewise.
28054 * util/grub-set-default.in: Likewise.
28055 * util/i386/efi/grub-install.in: Likewise.
28056 * util/ieee1275/grub-install.in: Likewise.
28057 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
28059 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
28061 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
28062 embedding area. Use <= instead of == when checking for non-emptiness.
28064 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
28066 * configure.ac: Add `.' to the directories searched for unifont.
28068 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
28070 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
28073 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
28075 * docs/grub.texi (History): Expand to cover GRUB 2.
28076 (Serial terminal): Refer to `terminal_input' and `terminal_output'
28077 commands, not `terminal'.
28078 (serial): Likewise.
28079 (terminal_input): New section.
28080 (terminal_output): New section.
28081 (uppermem): New section (stub).
28082 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
28084 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
28086 * docs/grub.texi (Security): Menu entries are unrestricted by
28087 default, not restricted to superusers as I had previously thought.
28088 Reword to account for this.
28090 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28092 * kern/emu/misc.c (device_mapper_null_log): New function.
28093 (grub_device_mapper_supported): New function.
28094 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
28096 * kern/emu/hostdisk.c (find_partition_start): Check whether
28097 device-mapper is supported before trying to use it.
28098 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
28100 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28102 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
28103 (File name syntax): Likewise.
28104 (help): --all is no longer supported in GRUB 2. Be more precise
28105 about pattern matching.
28107 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28109 * normal/completion.c (grub_normal_do_completion): When completing
28110 arguments to "set" and the current word contains an equals sign,
28111 skip to after the equals sign before starting completion.
28113 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28115 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
28117 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28119 * docs/grub.texi (Network): New section.
28120 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
28121 `(nd)' as in GRUB Legacy.
28122 (pxe_unload): New section.
28124 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28126 * docs/grub.texi (Troubleshooting): `echo' is not usually available
28127 in the rescue shell, so recommend using `set' instead. Thanks,
28130 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28132 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
28133 (password): New section.
28134 (password_pbkdf2): New section.
28135 (search): New section.
28136 (Security): New section.
28137 (Troubleshooting): New section, currently very incomplete.
28138 (Invoking grub-mkpasswd-pbkdf2): New section.
28139 (Internals): New section, currently very incomplete.
28141 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28143 * util/grub.d/00_header.in: Add some more quoting (of
28144 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
28146 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
28148 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28150 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
28151 to `count', fixing variable shadowing that broke the -c option.
28153 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
28155 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
28156 in case they contain spaces.
28158 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28160 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
28161 "part_" to partmap module names, in line with grub-install.
28162 Reported by: Jindřich Makovička (Debian bug #584426).
28164 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28166 * util/grub-mkimage.c: Make target-related error messages slightly
28167 more helpful; -O talks about "format". Explicitly point to the use
28168 of -O if no target is specified.
28169 Reported by: Didier Raboud (Debian bug #584415).
28171 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
28173 * INSTALL: Document several build requirements for optional features
28174 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
28176 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
28178 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
28179 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
28180 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28182 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28184 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28185 Thanks to Jordan Uggla for spotting this.
28187 2010-06-02 Aleš Nesrsta <starous@volny.cz>
28189 Finally make USB usable.
28191 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28192 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28193 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28194 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28195 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28196 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28197 (GRUB_OHCI_FSMPS): Likewise.
28198 (GRUB_OHCI_PERIODIC_START): Likewise.
28199 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28200 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28201 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28202 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28203 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28204 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28205 (grub_ohci_transaction): Likewise.
28206 (grub_ohci_transfer): Improve condition detection algorithms.
28207 Handle toggle property. Program the transactions correctly.
28208 Improve error handling. Various important fixups.
28209 (grub_ohci_portstatus): Put register writes in right order.
28210 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28211 (grub_uhci_transfer): Don't show "failed" message on success.
28212 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28214 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28215 determine its size.
28216 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28217 before initialization is completed. Use IN direction for empty
28218 transfers. Use last_trans and compute toggle.
28219 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28220 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28221 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28222 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28223 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28224 (grub_usb_device): Increase toggle to 256.
28225 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28226 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28227 GRUB_USBMS_SUBCLASS_SFF8070.
28228 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28229 (grub_scsi_inquiry): New member page and alloc_length.
28230 (grub_scsi_request_sense): New structure.
28231 (grub_scsi_request_sense_data): Likewise.
28232 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28234 * disk/scsi.c (grub_scsi_request_sense): New function.
28235 (grub_scsi_test_unit_ready): Likewise.
28236 (grub_scsi_inquiry): Fill new fields.
28237 (grub_scsi_read_capacity): Likewise.
28238 (grub_scsi_read10): Add request sense at the end.
28239 (grub_scsi_read12): Likewise.
28240 (grub_scsi_write10): Likewise.
28241 (grub_scsi_write12): Likewise.
28242 (grub_scsi_open): Add Test Unit Ready.
28243 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28244 Support additional subclasses. Con't clear halt yet. Activate the
28245 proper config. Calculate LUNs correctly.
28246 (grub_usbms_transfer): Various important fixups.
28248 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28250 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28251 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28252 (grub_ohci_fini_hw): New function.
28253 (grub_ohci_restore_hw): Likewise.
28254 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28255 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28256 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28258 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28260 Dedicated DMA allocations.
28262 * bus/pci.c (grub_memalign_dma32): New function
28263 (grub_dma_free): Likewise.
28264 (grub_dma_get_virt): Likewise.
28265 (grub_dma_get_phys): Likewise.
28266 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28267 (grub_ohci_pci_iter): Use dma32_alloc.
28268 (grub_ohci_transfer): Likewise.
28269 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28270 (grub_usb_bulk_readwrite): Likewise.
28271 * include/grub/pci.h: Add declarations.
28273 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28277 * bus/cs5536.c: New file.
28278 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28279 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28280 (cs5536_mod_SOURCES): New variable.
28281 (cs5536_mod_CFLAGS): Likewise.
28282 (cs5536_mod_LDFLAGS): Likewise.
28283 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28285 (kernel_img_SOURCES): Add bus/cs5536.c.
28286 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28288 (usb_mod_SOURCES): New variable.
28289 (usb_mod_CFLAGS): New variable.
28290 (usb_mod_LDFLAGS): New variable.
28291 (usbtest_mod_SOURCES): New variable.
28292 (usbtest_mod_CFLAGS): New variable.
28293 (usbtest_mod_LDFLAGS): New variable.
28294 (ohci_mod_SOURCES): New variable.
28295 (ohci_mod_CFLAGS): New variable.
28296 (ohci_mod_LDFLAGS): New variable.
28297 (usbms_mod_SOURCES): New variable.
28298 (usbms_mod_CFLAGS): New variable.
28299 (usbms_mod_LDFLAGS): New variable.
28300 (usb_keyboard_mod_SOURCES): New variable.
28301 (usb_keyboard_mod_CFLAGS): New variable.
28302 (usb_keyboard_mod_LDFLAGS): New variable.
28303 * include/grub/smbus.h: New file.
28304 * include/grub/cs5536.h: New file.
28306 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28308 * util/grub.d/00_header.in: Add safety check to make sure that
28309 ${locale_dir} exists before trying to probe it.
28311 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28313 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28314 per the GNU Coding Standards; this is now too obscure to be worth
28317 (chainloader): Remove cross-reference to `SCO UnixWare'.
28319 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28321 * docs/grub.texi (Chain-loading): New section.
28322 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28323 adjusted for GRUB 2.
28324 (SCO UnixWare): Likewise.
28326 (chainloader): Add reference to `Block list syntax'.
28327 (drivemap): New section.
28328 (parttool): New section.
28330 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28332 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28334 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28335 (Installing GRUB using grub-install): Remove reference to the grub
28336 shell; mention `grub-mkimage' and `grub-setup' instead.
28337 (Invoking grub-install): Likewise.
28338 (Interface): Add reference to `Menu entry editor'.
28339 (serial): Remove `--device' option.
28341 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28343 * docs/grub.texi (Configuration): New section, documenting
28344 configuration file generation using grub-mkconfig. I've left a slot
28345 for documenting the full shell scripting format but have not yet
28346 started on writing that up.
28347 (Invoking grub-mkconfig): New section.
28349 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28351 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28352 (GNU GRUB manual): Likewise.
28353 (General commands): Update description of `terminfo' for GRUB 2.
28355 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28357 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28358 (GRUB_MOD_INIT): Fix capitalisation.
28359 * docs/grub.texi (Command-line and menu entry commands): Document
28360 gettext and gptsync commands.
28362 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28364 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28365 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28367 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28369 Add btrfs probing support, currently only in the single-device case.
28371 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28373 (grub_guess_root_device): Call find_root_device_from_mountinfo
28374 before looking in /dev.
28376 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28378 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28379 GRUB_DISK_SIZE_UNKNOWN.
28380 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28382 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28384 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28385 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28386 corrupted or not synced properly.
28388 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28390 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28391 Reported by: Seth Goldberg.
28393 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28395 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28397 Reported by: Seth Goldberg.
28399 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28401 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28402 Reported by: Seth Goldberg.
28404 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28406 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28407 64-bit address as signed on MIPS.
28409 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28411 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28412 to the empty string.
28414 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28416 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28418 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28419 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28420 * kern/misc.c (__enable_execute_stack): Disable on
28423 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28425 Make grub-probe work with symbolic links under /dev/mapper as well
28426 as with real block devices. The Linux world seems to be (at best)
28427 in transition here, and GRUB shouldn't get caught in the middle.
28429 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28432 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28434 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28435 input files (in which case exit zero).
28437 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28439 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28440 return NULL for various reasons even if it has a maximum-length
28441 buffer: for example, there might be a symlink loop, or the path
28442 might exceed PATH_MAX. If this happens, return NULL.
28444 2010-05-27 Robert Millan <rmh@gnu.org>
28446 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28447 partmap module to handle cross-partmap setups.
28448 Reported by Orestes Mas. Gràcies!
28450 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28452 * util/grub-mkrescue.in: Initialise override_dir rather than
28453 assuming that it's unset or empty in the environment.
28455 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28457 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28458 variable index into p_index to suppress a warning with -Wshadow.
28460 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28462 * INSTALL: Added flex >= 2.5.35 requirement.
28464 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28466 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28468 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28472 * commands/i386/cmostest.c: New file.
28473 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28474 (cmostest_mod_SOURCES): New variable.
28475 (cmostest_mod_CFLAGS): Likewise.
28476 (cmostest_mod_LDFLAGS): Likewise.
28477 * conf/i386-pc.rmk: Likewise.
28478 * docs/grub.texi (Vendor power-on keys): New section.
28479 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28480 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28481 and GRUB_BUTTON_CMOS_ADDRESS.
28482 * util/grub.d/00_header.in: Handle powering-on by separate button.
28484 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28486 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28487 Removed drawing_scrollbar argument. All users updated
28489 Reported by Jo Shields
28491 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28493 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28494 buffer since gfxterm handles double repaint.
28496 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28498 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28499 * term/gfxterm.c (real_scroll): Likewise.
28501 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28503 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28504 before calling BIOS.
28506 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28508 * include/grub/i18n.h: Always enable grub_gettext.
28510 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28512 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28513 partition naming style.
28515 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28517 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28518 not the first option.
28520 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28522 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28524 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28526 * util/misc.c: Move inclusion of <limits.h> to ...
28527 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28529 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28531 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28532 Fix merge error in NetBSD code.
28533 (find_partition_start) [__NetBSD__]: Likewise.
28535 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28537 Fix grub-mkrescue usage unit testing.
28539 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28541 2010-05-18 Christian Franke <franke@computer.org>
28543 * util/grub.d/10_windows.in: Use path names instead of
28544 drive letters to prevent warning from Cygwin 1.7.
28545 Add drivemap command to menuentry if needed.
28547 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28549 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28550 gnumach and gnumach.gz.
28552 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28554 * include/grub/i18n.h (gettext): Inline instead of using #define.
28555 (grub_gettext): Likewise.
28558 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28560 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28561 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28562 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28563 (main): Add a slash after pkglibdirroot.
28565 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28567 * util/grub-install.in: Add missing "in" keyword.
28569 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28571 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28572 Reported by: Seth Goldberg.
28574 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28576 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28578 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28580 * configure.ac: Check for Linux device-mapper support.
28582 * util/hostdisk.c (device_is_mapped): New function.
28583 (find_partition_start): New function, partly broken out from
28584 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28585 device-mapper support added.
28586 (linux_find_partition): Use find_partition_start.
28587 (convert_system_partition_to_system_disk): Add `st' argument.
28588 Support Linux /dev/mapper/* devices if device-mapper support is
28589 available; only DM-RAID devices are understood at present.
28590 (find_system_device): Add `st' argument. Pass it to
28591 convert_system_partition_to_system_disk.
28592 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28593 find_system_device and convert_system_partition_to_system_disk. Use
28594 find_partition_start.
28596 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28597 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28598 * util/deviceiter.c [__linux__]: Define MINOR.
28599 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28600 * util/mkdevicemap.c (grub_putchar): New function.
28601 (grub_getkey): New function.
28602 (grub_refresh): New function.
28603 (main): Set debug=all if -v -v is used.
28605 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28607 Fix build with non-GNU libcs.
28609 * util/misc.c (canonicalize_file_name): Move to ...
28610 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28611 grub_make_system_path_relative_to_its_root.
28613 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28615 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28616 we handle finding grub-mkimage. Default to finding grub-mkimage in
28617 ${bindir} with program_transform_name applied, and provide a
28618 --grub-mkimage option to override this.
28620 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28622 Remove grub-mkisofs.
28624 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28625 (grub_mkisofs_SOURCES): Removed.
28626 (grub_mkisofs_CFLAGS): Removed.
28627 * util/mkisofs/defaults.h: Removed.
28628 * util/mkisofs/eltorito.c: Likewise.
28629 * util/mkisofs/exclude.h: Likewise.
28630 * util/mkisofs/hash.c: Likewise.
28631 * util/mkisofs/include/: Likewise.
28632 * util/mkisofs/include/fctldefs.h: Likewise.
28633 * util/mkisofs/include/mconfig.h: Likewise.
28634 * util/mkisofs/include/prototyp.h: Likewise.
28635 * util/mkisofs/include/statdefs.h: Likewise.
28636 * util/mkisofs/iso9660.h: Likewise.
28637 * util/mkisofs/joliet.c: Likewise.
28638 * util/mkisofs/match.c: Likewise.
28639 * util/mkisofs/match.h: Likewise.
28640 * util/mkisofs/mkisofs.c: Likewise.
28641 * util/mkisofs/mkisofs.h: Likewise.
28642 * util/mkisofs/msdos_partition.h: Likewise.
28643 * util/mkisofs/multi.c: Likewise.
28644 * util/mkisofs/name.c: Likewise.
28645 * util/mkisofs/rock.c: Likewise.
28646 * util/mkisofs/tree.c: Likewise.
28647 * util/mkisofs/write.c: Likewise.
28649 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28651 Unify grub-mkimage accross platforms.
28653 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28654 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28655 (grub_mkelfimage_SOURCES): Removed.
28656 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28657 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28658 (bin_UTILITIES): Add grub-mkimage.
28659 (grub_mkimage_SOURCES): New variable.
28660 (kernel_img_HEADERS): Remove machine/kernel.h.
28661 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28662 (pkglib_PROGRAMS): Add kernel.img.
28663 (kernel_img_HEADERS): Add machine/kernel.h.
28664 (kernel_img_FORMAT): Removed.
28665 (bin_UTILITIES): Remove grub-mkimage.
28666 (grub_mkimage_SOURCES): Removed.
28667 (grub_mkimage_CFLAGS): Likewise.
28668 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28669 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28670 (pkglib_PROGRAMS): Add kernel.img.
28671 (bin_UTILITIES): Remove grub-mkimage.
28672 (grub_mkimage_SOURCES): Removed.
28673 (grub_mkimage_CFLAGS): Likewise.
28674 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28675 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28676 (pkglib_PROGRAMS): Add kernel.img.
28677 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28678 (pkglib_PROGRAMS): Add kernel.img.
28679 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28680 (grub_mkimage_SOURCES): Removed.
28681 (grub_mkimage_CFLAGS): Likewise.
28682 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28683 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28684 (pkglib_PROGRAMS): Add kernel.img.
28685 (bin_UTILITIES): Remove grub-mkimage.
28686 (grub_mkimage_SOURCES): Removed.
28687 (grub_mkimage_CFLAGS): Likewise.
28688 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28689 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28690 (grub_mkimage_SOURCES): Removed.
28691 (grub_mkimage_CFLAGS): Likewise.
28692 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28693 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28694 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28695 (grub_pe32_optional_header): ... this.
28696 (grub_pe64_optional_header): ... and this. All users updated.
28697 (GRUB_PE32_PE32_MAGIC): Split into ..
28698 (GRUB_PE32_PE32_MAGIC): .. this.
28699 (GRUB_PE32_PE64_MAGIC): .. and this.
28700 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28701 * include/grub/elf.h (PT_GNU_STACK): New definition.
28702 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28703 * include/grub/i386/efi/kernel.h: Likewise.
28704 * include/grub/i386/kernel.h: Likewise.
28705 * include/grub/i386/pc/kernel.h: Likewise.
28706 * include/grub/i386/qemu/boot.h: Likewise.
28707 * include/grub/mips/kernel.h: Likewise.
28708 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28709 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28710 * include/grub/powerpc/kernel.h: Likewise.
28711 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28712 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28713 * include/grub/sparc64/kernel.h: Likewise.
28714 * include/grub/x86_64/efi/kernel.h: Likewise.
28715 * include/grub/x86_64/kernel.h: Likewise.
28716 * include/grub/offsets.h: New file.
28717 * include/grub/kernel.h (grub_module_info): Split into ...
28718 (grub_module_info32): ... this.
28719 (grub_module_info64): ... and this.
28720 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28721 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28722 (grub_boot_blocklist): Moved from here ...
28723 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28724 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28725 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28726 * include/grub/types.h (grub_target_to_host16): Removed.
28727 (grub_target_to_host32): Likewise.
28728 (grub_target_to_host64): Likewise.
28729 (grub_host_to_target16): Likewise.
28730 (grub_host_to_target32): Likewise.
28731 (grub_host_to_target64): Likewise.
28732 (grub_host_to_target_addr): Likewise.
28734 Support grub-mkrescue for efi, coreboot and qemu.
28736 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28737 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28738 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28739 * util/grub-mkrawimage.c: Moved from here ...
28740 * util/grub-mkimage.c: ... here. All users updated.
28741 (ALIGN_ADDR): Use image_target.
28742 (TARGET_NO_FIELD): New const.
28743 (image_target_desc): New type.
28744 (image_targets): New array.
28745 (grub_target_to_host64): Use image_target.
28746 (grub_target_to_host32): Likewise.
28747 (grub_target_to_host16): Likewise.
28748 (grub_host_to_target64): Likewise.
28749 (grub_host_to_target32): Likewise.
28750 (grub_host_to_target16): Likewise.
28751 (grub_host_to_target_addr): Likewise.
28752 (generate_image): Handle multiimage.
28753 (main): Require -O parameter. All users updated.
28754 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28755 util/efi/grub-mkimage.c
28756 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28757 New option --rom-directory.
28759 * util/i386/efi/grub-mkimage.c: Removed.
28760 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28761 (grub_target_to_host32): Likewise.
28762 (grub_target_to_host64): Likewise.
28763 (grub_host_to_target16): Likewise.
28764 (grub_host_to_target32): Likewise.
28765 (grub_host_to_target64): Likewise.
28766 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28767 (grub_target_to_host32): Likewise.
28768 (grub_target_to_host64): Likewise.
28769 (grub_host_to_target16): Likewise.
28770 (grub_host_to_target32): Likewise.
28771 (grub_host_to_target64): Likewise.
28773 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28775 Source tree is reorganized for emu build.
28777 * include/grub/util/console.h: Move from here...
28778 * include/grub/emu/console.h: ...to here.
28779 * include/grub/util/getroot.h: Move from here...
28780 * include/grub/emu/getroot.h: ...to here.
28781 * include/grub/util/hostdisk.h: Move from here...
28782 * include/grub/emu/hostdisk.h: ...to here.
28783 * util/console.c: Move from here...
28784 * kern/emu/console.c: ...to here.
28785 * util/getroot.c: Move from here...
28786 * kern/emu/getroot.c: ...to here.
28787 * util/grub-emu.c: Move from here...
28788 * kern/emu/main.c: ...to here.
28789 * util/hostdisk.c: Move from here...
28790 * kern/emu/hostdisk.c: ...to here.
28791 * util/hostfs.c: Move from here...
28792 * kern/emu/hostfs.c: ...to here.
28793 * util/mm.c: Move from here...
28794 * kern/emu/mm.c: ...to here.
28795 * util/pci.c: Move from here...
28796 * bus/emu/pci.c: ...to here.
28797 * util/sdl.c: Move from here...
28798 * video/emu/sdl.c: ...to here.
28799 * util/time.c: Move from here...
28800 * kern/emu/time.c: ...to here.
28801 * util/usb.c: Move from here...
28802 * bus/usb/emu/usb.c: ...to here.
28804 * include/grub/emu/misc.h: New header for grub-emu functions.
28805 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28807 * conf/any-emu.rmk: Rule updates for above renames.
28808 * conf/common.rmk: Likewise.
28809 * conf/i386-pc.rmk: Likewise.
28810 * conf/i386-qemu.rmk: Likewise.
28811 * conf/mips.rmk: Likewise.
28812 * conf/sparc64-ieee1275.rmk: Likewise.
28813 * conf/x86-efi.rmk: Likewise.
28815 * disk/lvm.h: #include updates for above renames.
28816 * util/grub-mkrelpath.c: Likewise.
28817 * util/grub-probe.c: Likewise.
28818 * util/i386/pc/grub-setup.c: Likewise.
28819 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28820 * kern/emu/console.c: Likewise.
28821 * kern/emu/getroot.c: Likewise.
28822 * kern/emu/hostdisk.c: Likewise.
28823 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28825 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28826 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28827 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28828 * util/misc.c: Remove grub-emu functions.
28830 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28833 Reported by: Thorsten Grützmacher.
28835 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28837 (circprog_set_property): Register and unregister timeout hook.
28838 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28839 (label_destroy): Free template. and unregister hook.
28840 (label_set_state): New function.
28841 (label_set_property): Handle templates and hooks.
28842 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28844 (progress_bar_set_property): Register and unregister timeout hook.
28845 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28846 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28847 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28848 (update_timeout_visit): Removed.
28849 (update_timeouts): New function.
28850 (redraw_timeouts): Likewise.
28851 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28852 (grub_gfxmenu_clear_timeout): Likewise.
28853 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28854 (grub_gfxmenu_timeout_notify): Likewise.
28855 (grub_gfxmenu_timeout_notifications): New external variable.
28856 (grub_gfxmenu_timeout_register): New function.
28857 (grub_gfxmenu_timeout_unregister): Likewise.
28859 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28861 Transform (broken) vga terminal into (working) vga video driver.
28863 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28864 video/i386/pc/vga.c.
28865 * include/grub/video.h (grub_video_driver_id):
28866 Add GRUB_VIDEO_DRIVER_VGA.
28867 * term/i386/pc/vga.c: Renamed to ...
28868 * video/i386/pc/vga.c: ...this
28869 (DEBUG_VGA): Removed.
28870 (CHAR_WIDTH): Likewise.
28871 (CHAR_HEIGHT): Likewise.
28872 (TEXT_WIDTH): Likewise.
28873 (TEXT_HEIGHT): Likewise.
28874 (DEFAULT_FG_COLOR): Likewise.
28875 (DEFAULT_BG_COLOR): Likewise.
28876 (colored_char): Likewise.
28879 (cursor_state): Likewise.
28880 (fg_color): Likewise.
28881 (bg_color): Likewise.
28882 (text_buf): Likewise.
28885 (framebuffer): New variable.
28886 (set_read_map): Disabled.
28887 (setup): New variable.
28888 (is_target): Likewise.
28889 (grub_vga_mod_init): Likewise.
28890 (grub_vga_mod_fini): Likewise.
28891 (check_vga_mem): Likewise.
28892 (write_char): Likewise.
28893 (write_cursor): Likewise.
28894 (scroll_up): Likewise.
28895 (grub_vga_putchar): Likewise.
28896 (grub_vga_getcharwidth): Likewise.
28897 (grub_vga_getwh): Likewise.
28898 (grub_vga_getxy): Likewise.
28899 (grub_vga_gotoxy): Likewise.
28900 (grub_vga_cls): Likewise.
28901 (grub_vga_setcolorstate): Likewise.
28902 (grub_vga_setcursor): Likewise.
28903 (grub_video_vga_init): New function.
28904 (grub_video_vga_setup): Likewise.
28905 (grub_video_vga_fini): Likewise.
28906 (update_target): Likewise.
28907 (grub_video_vga_blit_bitmap): Likewise.
28908 (grub_video_vga_blit_render_target): Likewise.
28909 (grub_video_vga_set_active_render_target): Likewise.
28910 (grub_video_vga_get_active_render_target): Likewise.
28911 (grub_video_vga_swap_buffers): Likewise.
28912 (grub_video_vga_set_palette): Likewise.
28913 (grub_video_vga_get_info_and_fini): Likewise.
28914 (grub_vga_term): Removed.
28915 (grub_video_vga_adapter): New variable.
28916 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28917 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28919 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28921 * video/readers/jpeg.c: Indented.
28923 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28925 Various jpeg cleanups.
28927 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28928 (grub_jpeg_decode_quan_table): Use sizeof.
28929 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28931 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28933 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28934 tables. Ignore non-last ac bit.
28935 (grub_jpeg_decode_quan_table): Likewise.
28937 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28939 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28940 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28941 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28942 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28943 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28944 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28946 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28948 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28951 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28953 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28955 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28957 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28960 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28962 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28965 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28967 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28970 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28972 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28974 2010-05-01 Christian Franke <franke@computer.org>
28976 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28977 Remove broken Cygwin path conversion.
28978 * util/misc.c: [__CYGWIN__] Add include and define.
28979 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28981 (make_system_path_relative_to_its_root): Simplify loop, replace early
28983 [__CYGWIN__] Add conversion to win32 path.
28984 Include "/" case in trailing slash removal.
28986 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28988 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28989 Reported by: Seth Goldberg
28991 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28993 * commands/help.c (grub_cmd_help): Fix a typo.
28994 Reported by: Seth Goldberg
28996 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28998 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
29000 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
29001 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
29002 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
29003 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
29004 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
29005 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
29006 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
29007 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
29008 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
29009 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
29010 * normal/context.c (GRUB_MOD_INIT): Likewise.
29011 * normal/main.c (GRUB_MOD_INIT): Likewise.
29012 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
29013 * term/serial.c (GRUB_MOD_INIT): Likewise.
29014 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
29016 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29018 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
29021 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29023 * commands/iorw.c: New file.
29024 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
29025 (iorw_mod_SOURCES): New variable.
29026 (iorw_mod_CFLAGS): Likewise.
29027 (iorw_mod_LDFLAGS): Likewise.
29029 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29033 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
29034 * normal/main.c (hotkey_aliases): New variable.
29035 (grub_normal_add_menu_entry): Parse "--hotkey".
29036 * normal/menu_text.c (run_menu): Handle hotkeys.
29038 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29040 * kern/i386/coreboot/init.c (grub_machine_init): Call
29041 grub_machine_mmap_init on qemu.
29043 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29045 * boot/i386/qemu/boot.S: Add a missing .code16.
29047 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29049 Use LBIO on coreboot.
29051 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
29052 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
29053 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
29055 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
29056 grub_machine_mmap_init on coreboot.
29057 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
29058 GRUB_LINUXBIOS_MEMBER_LINK.
29059 (grub_machine_mmap_iterate): Fix declaration.
29060 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
29062 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29064 Split coreboot and multiboot ports.
29066 * conf/i386-multiboot.rmk: New file.
29067 * configure.ac: Add multiboot port.
29068 * include/grub/i386/multiboot/boot.h: New file.
29069 * include/grub/i386/multiboot/console.h: Likewise.
29070 * include/grub/i386/multiboot/init.h: Likewise.
29071 * include/grub/i386/multiboot/kernel.h: Likewise.
29072 * include/grub/i386/multiboot/loader.h: Likewise.
29073 * include/grub/i386/multiboot/memory.h: Likewise.
29074 * include/grub/i386/multiboot/serial.h: Likewise.
29075 * include/grub/i386/multiboot/time.h: Likewise.
29076 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
29077 * loader/multiboot.c: Likewise.
29078 * loader/multiboot_mbi2.c: Likewise.
29079 * util/grub-mkrescue.in: Generate multiboot rescue.
29081 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29083 * kern/parser.c (grub_parser_execute): Cope with read-only config.
29085 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29087 Merge handling of input and output terminals. Fix a hang.
29089 * commands/terminal.c (abstract_terminal): New struct.
29090 (handle_command): New function. Based on grub_cmd_terminal_input.
29091 (grub_cmd_terminal_input): Use handle_command.
29092 (grub_cmd_terminal_output): Use handle_command.
29094 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
29096 Fix comment handling.
29098 * tests/grub_script_comments.in: New testcase.
29099 * conf/tests.rmk: Rules for new testcase.
29100 * script/yylex.l: Updated flex rules.
29102 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
29104 * docs/grub.texi (play): Document that zero pitches produce rests.
29105 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
29108 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
29110 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
29113 2010-04-26 Christian Franke <franke@computer.org>
29115 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
29116 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
29117 (grub_get_prefix): Remove function.
29118 * util/grub-emu.c (main): Replace grub_get_prefix () call by
29119 make_system_path_relative_to_its_root ().
29120 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
29122 2010-04-24 Christian Franke <franke@computer.org>
29124 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
29125 (kernel_img_LDFLAGS): Remove -static-libgcc.
29127 2010-04-24 Christian Franke <franke@computer.org>
29129 * configure.ac: Do not CHECK_BSS_START_SYMBOL
29130 and CHECK_END_SYMBOL if grub-emu is built.
29131 Unset TARGET_OBJ2ELF if grub-emu is built
29132 without module support.
29134 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
29138 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
29139 (grub_fstest_SOURCES): Likewise.
29140 (pkglib_MODULES): Add nilfs2.mod.
29141 (nilfs2_mod_SOURCES): New variable.
29142 (nilfs2_mod_CFLAGS): Likewise.
29143 (nilfs2_mod_LDFLAGS): Likewise.
29144 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29145 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29146 * fs/nilfs2.c: New file.
29148 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
29150 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
29153 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
29155 Add grub-mkconfig support for NetBSD.
29157 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
29158 * util/grub-mkconfig.in: export new NetBSD specific variables.
29159 * po/POTFILES-shell: added 10_netbsd.in.
29160 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
29162 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
29164 Fix emu build with grub-emu-pci and grub-emu-modules.
29166 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
29168 * include/grub/libpciaccess.h: New file.
29169 * conf/any-emu.rmk: Update kernel headers for emu build.
29171 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29173 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
29175 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29177 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
29179 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29181 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29182 Retrieve chosen/bootpath if bootpath isn't hardcoded.
29183 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29184 util/ieee1275/ofpath.c.
29185 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29186 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29187 * include/grub/sparc64/ieee1275/boot.h
29188 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29189 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29190 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29191 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29193 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29194 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29195 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29198 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29200 * util/grub-mkconfig.in: Corrected two == equality tests.
29201 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29202 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29203 expect a number appended to it.
29204 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29205 expects a number appended to it.
29207 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29209 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29211 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29213 * util/hostdisk.c (make_device_name): Change to new partition naming.
29215 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29217 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29219 2010-04-17 Christian Franke <franke@computer.org>
29221 * Makefile.in: Add missing localedir setting.
29223 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
29225 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29226 mistake in r2156. Noticed by Anthony Fok.
29228 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29230 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29232 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29234 Fix a spurious, uninitialized variable warning.
29236 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29237 Initialize variable, shdr.
29238 (grub_freebsd_load_elfmodule): Likewise.
29239 (grub_freebsd_load_elf_meta): Likewise.
29241 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29243 Fix for escaped dollar in double quoted strings.
29245 * script/yylex.l: Updated flex rules.
29246 * conf/tests.rmk: Rule for new testcase.
29247 * tests/grub_script_dollar.in: New testcase.
29249 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29250 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29252 Enclose all translated strings in grub.cfg in single quotes, and
29253 escape them appropriately (Ubuntu bug #552921).
29255 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29256 * util/grub.d/10_hurd.in: Use it.
29257 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29258 * util/grub.d/10_linux.in (linux_entry): Likewise.
29260 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29262 Fix cygwin compilation.
29264 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29265 * include/grub/misc.h (__register_frame_info)
29266 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29267 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29268 * kern/misc.c (__register_frame_info)
29269 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29270 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29272 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29274 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29276 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29278 Unify libgcc processing.
29280 * Makefile.in (kernel_img_LDFLAGS): New variable.
29281 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29282 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29284 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29285 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29286 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29287 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29288 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29289 overwriting. Remove -lgcc and -static-libgcc
29290 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29291 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29292 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29293 (kernel_img_LDFLAGS): Append instead of overwriting.
29294 Remove -lgcc and -static-libgcc
29295 * conf/sparc64-ieee1275.rmk: Likewise.
29296 * include/grub/powerpc/libgcc.h: Move to ...
29297 * include/grub/libgcc.h: .. this.
29298 * include/grub/libgcc.h: Don't export most of the function on x86.
29299 (__bswapsi2): New export.
29300 (__bswapdi2): Likewise.
29301 * include/grub/mips/libgcc.h: Removed.
29302 * include/grub/sparc64/libgcc.h: Likewise.
29304 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29306 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29307 disk_info_msg (conflicts with gettexting into languages with cases).
29309 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29311 Add grub-probe support for NetBSD.
29313 * util/getroot.c (find_root_device): Convert block device to
29314 character device on NetBSD.
29315 * util/probe.c (probe): Require character device on NetBSD.
29316 * util/hostdisk.c: NetBSD specific headers.
29317 (configure_device_driver): new function to tune device driver
29318 parameters (currently only for NetBSD floppy driver).
29319 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29320 via disklabel ioctl).
29321 (open_device): call configure_device_driver on NetBSD.
29322 (convert_system_partition_to_system_disk): NetBSD specific code.
29323 (device_is_wholedisk): Likewise.
29324 (grub_util_biosdisk_get_grub_dev): Likewise.
29325 (make_device_name): Fixed a typo in bsd_part_str.
29326 * configure.ac: check for opendisk() and getrawpartition() on
29327 NetBSD and set LIBUTIL.
29328 * Makefile.in: add LIBUTIL to LIBS.
29330 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29334 * util/grub-script-check.c: Better help message.
29336 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29340 * configure.ac: Flex version check.
29341 * conf/common.rmk: Add -Wno-error to sh.mod.
29342 * script/yylex.l: Remove all #pragma.
29344 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29346 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29348 Reported by: Seth Goldberg.
29350 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29352 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29353 Rename "module" to "module2".
29354 Reported by: Seth Goldberg.
29356 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29358 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29360 Reported by: Seth Goldberg.
29362 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29364 * lib/posix_wrap/locale.h: Add missing file.
29365 Reported by: Seth Goldberg.
29367 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29369 grub-emu module load support.
29371 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29372 NO_DYNAMIC_MODULES switched to this.
29373 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29374 (CFLAGS): Likewise.
29375 * conf/any-emu.rmk: Generate symlist.
29376 (kernel_img_HEADERS): Add util/datetime.h.
29377 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29378 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29379 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29380 kern/$(target_cpu)/cache.S.
29381 * configure.ac (grub-emu-modules): New option.
29382 * genmk.rb: Handle multiple source lists.
29383 * include/grub/sdl.h: New file.
29384 * include/grub/libusb.h: Likewise.
29385 * util/grub-emu.c (main): Hanle (host) root.
29386 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29387 GRUB_ERR_UNKNOWN_DEVICE.
29388 * util/misc.c: Move mm functions to ...
29389 * util/mm.c: ... here. All users updated.
29391 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29393 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29394 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29396 (maintainer-clean): Remove libgcrypt-grub.
29398 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29400 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29402 2010-04-09 EFI Coder <eficoder@hotmail.com>
29404 * normal/menu_text.c (print_message): Clean up the message and show
29405 the Fn information when on EFI
29406 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29408 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29410 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29412 * normal/crypto.c (read_crypto_list): Likewise.
29413 * normal/dyncmd.c (read_command_list): Likewise.
29414 * normal/term.c (read_terminal_list): Likewise.
29415 * normal/main.c (read_lists): Use explicit prefix.
29416 (read_lists_hook): Use read_lists.
29417 (grub_normal_execute): Likewise.
29419 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29421 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29422 Reported by: Thomas Schmitt.
29423 Add -no-emul-boot to grub-mkisofs parameters.
29425 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29427 * font/font.c: Indented.
29429 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29431 Elif support to GRUB script (by Deepak Vankadaru).
29433 * tests/grub_script_if.in: New testcase.
29434 * conf/tests.rmk: Rule for new testcase.
29435 * script/parser.y: Grammar rules for elif.
29437 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29439 While and until loops support to GRUB script.
29441 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29442 (grub_script_create_cmdwhile): New function prototype.
29443 (grub_script_execute_cmdwhile): New function prototype.
29444 * script/execute.c (grub_script_execute_cmdwhile): New function.
29445 * script/parser.y (command): New commands.
29446 (whilecmd): New grammar rule.
29447 (untilcmd): New grammar rule.
29448 * script/script.c (grub_script_create_cmdwhile): New function.
29449 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29452 * tests/grub_script_while1.in: New testcase.
29453 * conf/tests.rmk: Rule for new testcase.
29455 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29457 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29460 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29462 GRUB_BACKGROUND support.
29464 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29465 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29467 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29469 Load fonts and modules for gfxmenu in grub-mkconfig.
29470 Idea by: Mario Vazquez
29472 * util/grub.d/00_header.in: Load pf2 and image modules.
29474 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29476 grub-mkconfig multiple terminal support.
29478 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29479 * util/grub.d/00_header.in: Likewise.
29481 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29483 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29484 we use cd $(srcdir).
29486 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29488 * util/grub.d/10_linux.in: Only use the first word of
29489 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29490 spaces in GRUB_DISTRIBUTOR.
29491 * util/grub.d/10_kfreebsd.in: Likewise.
29492 * util/grub.d/10_hurd.in: Likewise.
29494 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29496 Fix unit testing framework for Qemu 0.12.
29498 * tests/util/grub-shell.in: Remove -serial stdio option.
29500 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29502 POSIX header file wrappers.
29504 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29506 * lib/posix_wrap/ctype.h: Likewise.
29507 * lib/posix_wrap/errno.h: Likewise.
29508 * lib/posix_wrap/langinfo.h: Likewise.
29509 * lib/posix_wrap/limits.h: Likewise.
29510 * lib/posix_wrap/localcharset.h: Likewise.
29511 * lib/posix_wrap/stdint.h: Likewise.
29512 * lib/posix_wrap/stdio.h: Likewise.
29513 * lib/posix_wrap/stdlib.h: Likewise.
29514 * lib/posix_wrap/string.h: Likewise.
29515 * lib/posix_wrap/sys/types.h: Likewise.
29516 * lib/posix_wrap/unistd.h: Likewise.
29517 * lib/posix_wrap/wchar.h: Likewise.
29518 * lib/posix_wrap/wctype.h: Likewise.
29519 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29520 (grub_script.yy.h): Likewise.
29521 * script/yylex.l: Remove POSIX emulation #defines.
29522 * Makefile.in (POSIX_CFLAGS): New variable.
29523 (GNULIB_UTIL_CFLAGS): Likewise.
29527 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29528 (regexp_mod_SOURCES): New variable.
29529 (regexp_mod_CFLAGS): Likewise.
29530 (regexp_mod_LDFLAGS): Likewise.
29531 * commands/regexp.c: New file.
29532 * gnulib/regcomp.c: New file. Imported from gnulib.
29533 * gnulib/regex.c: Likewise.
29534 * gnulib/regex_internal.c: Likewise.
29535 * gnulib/regex_internal.h: Likewise.
29536 * gnulib/regexec.c: Likewise.
29537 * gnulib/regex.h: Likewise.
29539 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29541 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29542 unsupported video mode types.
29544 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29546 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29548 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29550 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29551 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29553 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29555 Remove unused grub_vga_get_font.
29557 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29558 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29560 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29562 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29563 * include/grub/misc.h: Likewise.
29565 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29567 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29568 for which failure is fatal.
29570 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29572 * util/grub-install.in: Use mkdir -p to create grub directory.
29573 * util/i386/efi/grub-install.in: Likewise.
29574 * util/ieee1275/grub-install.in: Likewise.
29576 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29578 * Makefile.in (LEX): new variable.
29580 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29582 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29583 `=' and added double quotes on operands of this equality test.
29585 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29587 * Makefile.in (uninstall): Remove a leftover debug echo.
29588 Reported by: Grégoire Sutre
29590 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29592 MIPS multiboot2 support.
29594 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29595 (multiboot2_mod_SOURCES): New variable.
29596 (multiboot2_mod_CFLAGS): Likewise.
29597 (multiboot2_mod_LDFLAGS): Likewise.
29598 (multiboot2_mod_ASFLAGS): Likewise.
29599 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29601 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29602 (MULTIBOOT_MBI_REGISTER): Likewise.
29603 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29604 (MULTIBOOT_ELF32_MACHINE): Likewise.
29605 (MULTIBOOT_ELF64_MACHINE): Likewise.
29606 * include/grub/mips/multiboot.h: New file.
29607 * include/grub/video.h (grub_video_driver_id): New type
29608 GRUB_VIDEO_DRIVER_SM712.
29609 (grub_video_get_info_and_fini): Export.
29610 (grub_video_get_palette): Likewise.
29611 (grub_video_get_driver_id): Likewise.
29612 * include/multiboot2.h: Resynced with spec.
29613 * loader/i386/multiboot.c: Moved from here ...
29614 * loader/multiboot.c: ... here. All users updated.
29615 (grub_multiboot_boot): Use platform-specific macros.
29616 * loader/i386/multiboot_elfxx.c: Moved from here ...
29617 * loader/multiboot_elfxx.c: ... here. All users updated.
29618 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29619 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29620 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29622 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29624 Import gnulib argp module.
29626 * gnulib/argp-ba.c: New file.
29627 * gnulib/argp-eexst.c: Likewise.
29628 * gnulib/argp-fmtstream.c: Likewise.
29629 * gnulib/argp-fmtstream.h: Likewise.
29630 * gnulib/argp-fs-xinl.c: Likewise.
29631 * gnulib/argp-help.c: Likewise.
29632 * gnulib/argp-namefrob.h: Likewise.
29633 * gnulib/argp-parse.c: Likewise.
29634 * gnulib/argp-pin.c: Likewise.
29635 * gnulib/argp-pv.c: Likewise.
29636 * gnulib/argp-pvh.c: Likewise.
29637 * gnulib/argp-version-etc.c: Likewise.
29638 * gnulib/argp-version-etc.h: Likewise.
29639 * gnulib/argp-xinl.c: Likewise.
29640 * gnulib/argp.h: Likewise.
29642 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29644 * kern/device.c (grub_device_iterate): Clear errors after failed
29647 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29649 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29650 returned by firmware.
29652 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29654 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29655 compilation on coreboot and qemu
29657 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29659 * include/multiboot2.h: Resync with spec.
29661 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29663 Multiboot2 tag support
29665 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29666 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29667 Remove loader/multiboot_loader.c.
29668 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29669 (grub_multiboot2_real_boot): Likewise.
29670 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29671 (grub_get_multiboot_mmap_count): New proto.
29672 (grub_fill_multiboot_mmap): Likewise.
29673 (grub_multiboot_set_video_mode): Likewise.
29674 (grub_multiboot_set_console): Likewise.
29675 (grub_multiboot_load): Likewise.
29676 (grub_multiboot_load_elf): Likewise.
29677 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29678 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29679 * include/multiboot.h: Resynced with specification.
29680 * include/multiboot2.h: Resynced with specification.
29681 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29682 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29683 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29684 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29686 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29687 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29688 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29690 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29692 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29693 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29695 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29696 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29697 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29699 * loader/i386/multiboot_mbi2.c: New file.
29701 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29703 Resync with gnulib.
29705 * Makefile.in (GNULIB_CFLAGS): New variable.
29706 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29707 (grub_script_check_CFLAGS): New variable.
29708 * gnulib/alloca.h: Resync with gnulib.
29709 * gnulib/error.c: Likewise.
29710 * gnulib/error.h: Likewise.
29711 * gnulib/fnmatch.c: Likewise.
29712 * gnulib/fnmatch_loop.c: Likewise.
29713 * gnulib/getdelim.c: Likewise.
29714 * gnulib/getline.c: Likewise.
29715 * gnulib/getopt.c: Likewise.
29716 * gnulib/getopt1.c: Likewise.
29717 * gnulib/getopt_int.h: Likewise.
29718 * gnulib/gettext.h: Likewise.
29719 * gnulib/progname.c: Likewise.
29720 * gnulib/progname.h: Likewise.
29722 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29724 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29725 which is the case with --disabled-nls.
29727 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29728 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29729 * util/misc.c: Likewise.
29730 * util/mkisofs/mkisofs.c: Likewise.
29731 * util/mkisofs/mkisofs.h: Likewise.
29733 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29735 Simplify Apple CC support.
29737 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29738 Add 0 byte at the end not to have a symbol with empty target.
29739 * mmap/i386/pc/mmap_helper.S: Likewise.
29740 * genmk.rb: Ignore errors 2030 and 2050.
29741 * kern/i386/pc/startup.S: Use LOCAL when possible.
29743 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29745 Testcase and the fix for final semicolon on cmdline.
29747 * tests/grub_script_final_semicolon.in: New testcase.
29748 * conf/tests.rmk: Rules for the new testcase.
29749 * script/parser.y: Grammar fix.
29751 2010-03-26 BVK Chaitanya <bvk@localhost>
29753 Blank lines testcase for GRUB script.
29755 * tests/grub_script_blanklines.in: New testcase.
29756 * conf/tests.rmk: Rules for the new testcase.
29758 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29760 Don't use __FILE__.
29762 * genmk.rb: Add -DGRUB_FILE to all C targets.
29763 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29764 * include/grub/list.h: Likewise.
29765 * include/grub/misc.h: Likewise.
29766 * include/grub/mm.h: Likewise.
29767 * include/grub/test.h: Likewise.
29768 * kern/mm.c: Likewise.
29769 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29771 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29773 Sunpc partitions support.
29775 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29776 (grub_fstest_SOURCES): Likewise.
29777 (pkglib_MODULES): Add part_sunpc.mod.
29778 (part_sunpc_mod_SOURCES): New variable.
29779 (part_sunpc_mod_CFLAGS): Likewise.
29780 (part_sunpc_mod_LDFLAGS): Likewise.
29781 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29782 * partmap/sunpc.c: New file.
29784 2010-03-26 BVK Chaitanya <bvk@localhost>
29786 For loop support to GRUB script.
29788 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29789 (grub_script_create_cmdfor): New function prototype.
29790 (grub_script_execute_cmdfor): New function prototype.
29791 * script/execute.c (grub_script_execute_cmdfor): New function.
29792 * script/parser.y (command): New for command.
29793 (forcmd): New grammar rule.
29794 * script/script.c (grub_script_create_cmdfor): New function.
29795 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29797 * tests/grub_script_for1.in: New testcase.
29798 * conf/tests.rmk: Rules for new testcase.
29800 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29804 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29805 'partition' is NULL, grub_partition_get_start already does that.
29806 * commands/loadenv.c (check_blocklists): Likewise.
29807 (write_blocklists): Likewise.
29808 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29809 (grub_fstest_SOURCES): Likewise.
29810 (pkglib_MODULES): Add part_bsd.mod.
29811 (part_bsd_mod_SOURCES): New variable.
29812 (part_bsd_mod_CFLAGS): Likewise.
29813 (part_bsd_mod_LDFLAGS): Likewise.
29814 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29815 (grub_emu_SOURCES): Likewise.
29816 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29817 * include/grub/bsdlabel.h: New file.
29818 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29820 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29821 (grub_partition_map_list): New variable.
29822 (grub_partition_map_register): Inline.
29823 (grub_partition_map_unregister): Likewise.
29824 (FOR_PARTITION_MAPS): New macro.
29825 (grub_partition_map_iterate): Removed.
29826 (grub_partition_get_start): Handle nested partitions.
29827 * include/grub/msdos_partition.h: Remove bsd-related entries.
29828 (grub_pc_partition): Remove.
29829 * kern/disk.c (grub_disk_close): Free partition data.
29830 (grub_disk_adjust_range): Handle nested partitions.
29831 * kern/partition.c (grub_partition_map_probe): New function.
29832 (grub_partition_probe): Parse name to number, handle subpartitions.
29833 (get_partmap): New function.
29834 (grub_partition_iterate): Handle subpartitions.
29835 (grub_partition_get_name): Likewise.
29836 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29837 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29838 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29839 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29841 (acorn_partition_map_probe): Remove.
29842 (acorn_partition_map_get_name): Likewise.
29843 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29845 Set 'index' to 0 since there can be only one partition entry per sector.
29846 (amiga_partition_map_probe): Remove.
29847 (amiga_partition_map_get_name): Likewise.
29848 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29850 Set 'offset' and 'index' to real positions of partitions.
29851 (apple_partition_map_probe): Remove.
29852 (apple_partition_map_get_name): Likewise.
29853 * partmap/bsdlabel.c: New file.
29854 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29856 Allocate 'data' so it can be correctly freed.
29857 Set 'index' to offset inside sector.
29858 (gpt_partition_map_probe): Remove.
29859 (gpt_partition_map_get_name): Likewise.
29860 * partmap/msdos.c (grub_partition_parse): Remove.
29861 (pc_partition_map_iterate): Don't force raw access.
29863 Make 'ext_offset' a local variable.
29864 (pc_partition_map_probe): Remove.
29865 (pc_partition_map_get_name): Remove.
29866 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29868 (sun_partition_map_probe): Remove.
29869 (sun_partition_map_get_name): Likewise.
29870 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29871 (grub_pcpart_type): Likewise.
29872 * util/hostdisk.c (open_device): Handle new numbering scheme.
29873 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29874 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29875 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29876 * util/grub-install.in: Insert all subpartition modules.
29877 * util/ieee1275/grub-install.in: Likewise.
29879 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29881 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29884 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29886 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29888 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29890 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29891 match where 'make install' puts them.
29892 * util/i386/efi/grub-install.in: Likewise.
29894 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29896 * .bzrignore: Add gentrigtables, grub-script-check,
29897 grub_script_check_init.c, grub_script_check_init.h, and
29900 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29902 * kern/parser.c: Indented.
29904 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29906 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29908 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29910 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29911 alpha_mask_size == 0 case.
29913 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29915 GRUB shell lexer and parser improvements.
29917 * conf/any-emu.rmk: Build rule updates.
29918 * conf/common.rmk: Likewise.
29919 * conf/i386-coreboot.rmk: Likewise.
29920 * conf/i386-efi.rmk: Likewise.
29921 * conf/i386-ieee1275.rmk: Likewise.
29922 * conf/i386-pc.rmk: Likewise.
29923 * conf/powerpc-ieee1275.rmk: Likewise.
29924 * conf/x86_64-efi.rmk: Likewise.
29926 * configure.ac: Configure check for flex.
29928 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29930 (grub_lexer_param): Struct member updates.
29931 (grub_parser_param): Likewise.
29932 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29933 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29934 (grub_script_lexer_init): Prototype update.
29935 (grub_script_lexer_record_start): Likewise.
29936 (grub_script_lexer_record_stop): Likewise.
29937 (grub_script_lexer_yywrap): New function prototype.
29938 (grub_script_lexer_fini): Likewise.
29939 (grub_script_execute_argument_to_string): Removed by...
29940 (grub_script_execute_argument_to_argv): ...better version.
29942 * script/execute.c (ROUND_UPTO): New macro.
29943 (grub_script_execute_cmdline): Out of memory fixes.
29944 (grub_script_execute_menuentry): Likewise.
29945 (grub_script_execute_argument_to_string): Removed. Update all
29947 (grub_script_execute_argument_to_argv): ...better version.
29948 * script/function.c (grub_script_function_create): Use
29949 grub_script_execute_argument_to_argv instead of
29950 grub_script_execute_argument_to_string.
29952 * script/lexer.c (check_varstate): Removed.
29953 (check_textstate): Removed.
29954 (grub_script_lexer_record_start): Likewise.
29955 (grub_script_lexer_record_stop): Likewise.
29956 (recordchar): Replaced with...
29957 (grub_script_lexer_record): ...new function.
29958 (nextchar): Removed.
29959 (grub_script_lexer_init): Rewritten.
29960 (grub_script_yylex): Rewritten.
29961 (append_newline): New function.
29962 (grub_script_lexer_yywrap): New function.
29963 (grub_script_lexer_fini): New function.
29964 (grub_script_yyerror): Sets error flag.
29966 * script/yylex.l: New file.
29967 (grub_lexer_yyfree): Wrapper for flex yyffre.
29968 (grub_lexer_yyalloc): Likewise.
29969 (grub_lexer_yyrealloc): Likewise.
29970 * script/parser.y: Refactored.
29972 * script/script.c (grub_script_arg_add): Out of memory fixes.
29973 (grub_script_add_arglist): Likewise.
29974 (grub_script_create_cmdline): Likewise.
29975 (grub_script_create_cmdmenu): Likewise.
29976 (grub_script_add_cmd): Likewise.
29977 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29978 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29981 * tests/grub_script_echo1.in: New testcase.
29982 * tests/grub_script_vars1.in: New testcase.
29983 * tests/grub_script_echo_keywords.in: New testcase.
29985 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29987 Remove some redundancy in build system.
29989 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29990 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29991 (TARGET_LDFLAGS): Add -nostdlib.
29992 (TARGET_IMG_LDFLAGS): Likewise.
29993 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29994 anything since mmap isn't available.
29995 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29997 (pkglib_MODULES): Remove reboot.mod.
29998 (reboot_mod_SOURCES): Removed.
29999 (reboot_mod_CFLAGS): Likewise.
30000 (reboot_mod_LDFLAGS): Likewise.
30001 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
30002 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
30003 (DEFSYMFILES): Add kernel_syms.lst.
30004 (kernel_img_HEADERS): Add common headers.
30005 (symlist.c): New target.
30006 (kernel_syms.lst): Likewise.
30007 (pkglib_MODULES): Add memdisk.mod.
30008 (memdisk_mod_SOURCES): New variable.
30009 (memdisk_mod_CFLAGS): Likewise.
30010 (memdisk_mod_LDFLAGS): Likewise.
30011 (pkglib_MODULES): Add reboot.mod.
30012 (reboot_mod_SOURCES): New variable.
30013 (reboot_mod_CFLAGS): Likewise.
30014 (reboot_mod_LDFLAGS): Likewise.
30015 (pkglib_MODULES): Add date.mod.
30016 (date_mod_SOURCES): New variable.
30017 (date_mod_CFLAGS): Likewise.
30018 (date_mod_LDFLAGS): Likewise.
30019 (pkglib_MODULES): Add datehook.mod.
30020 (datehook_mod_SOURCES): New variable.
30021 (datehook_mod_CFLAGS): Likewise.
30022 (datehook_mod_LDFLAGS): Likewise.
30023 (pkglib_MODULES): Add lsmmap.mod.
30024 (lsmmap_mod_SOURCES): New variable.
30025 (lsmmap_mod_CFLAGS): Likewise.
30026 (lsmmap_mod_LDFLAGS): Likewise.
30027 (pkglib_MODULES): Add boot.mod.
30028 (boot_mod_SOURCES): New variable.
30029 (boot_mod_CFLAGS): Likewise.
30030 (boot_mod_LDFLAGS): Likewise.
30031 * conf/i386-coreboot.rmk: Removed redundant parts.
30032 * conf/i386-ieee1275.rmk: Likewise.
30033 * conf/i386-pc.rmk: Likewise.
30034 * conf/mips-yeeloong.rmk: Likewise.
30035 * conf/mips.rmk: Likewise.
30036 * conf/powerpc-ieee1275.rmk: Likewise.
30037 * conf/sparc64-ieee1275.rmk: Likewise.
30038 * conf/x86_64-efi.rmk: Likewise.
30039 * conf/i386-coreboot.rmk: Moved qemu parts ..
30040 * conf/i386-qemu.rmk: ... here
30041 * conf/i386-efi.rmk: Moved common parts to...
30042 * conf/x86-efi.rmk: ... here.
30043 * conf/i386.rmk: Added modules common to all x86 variants.
30044 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
30045 * disk/memdisk.c: Remove grub/machine/kernel.h.
30046 * gensymlist.sh.in: Include symbol.h.
30047 * hook/datehook.c: Correct module name.
30048 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
30049 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
30050 * include/grub/i386/efi/serial.h: New file.
30051 * include/grub/x86_64/efi/serial.h: Likewise.
30052 * util/time.c: Likewise.
30053 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
30055 2010-03-14 Colin King <colin.king@ubuntu.com>
30056 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
30058 Shrink the pre-partition-table part of boot.img by eight bytes.
30060 * boot/i386/pc/boot.S (ERR): New macro.
30061 (chs_mode): Use ERR.
30062 (geometry_error): Likewise.
30063 (hd_probe_error): Remove. This is only used once, so we wrwite
30065 (read_error): Instead of printing read_error_string, just set up
30066 %si and fall through to ...
30067 (error_message): ... this new function, also used by ERR.
30069 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
30071 Speed up consecutive hostdisk operations on the same device.
30073 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
30074 (grub_util_biosdisk_open): Initialise disk->data.
30075 (struct linux_partition_cache): New structure.
30076 (linux_find_partition): Cache partition start positions; these are
30077 expensive to compute on every read and write.
30078 (open_device): Cache open file descriptor in disk->data, so that we
30079 don't have to reopen it and flush the buffer cache for consecutive
30080 operations on the same device.
30081 (grub_util_biosdisk_close): New function.
30082 (grub_util_biosdisk_dev): Set `close' member.
30084 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
30085 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
30086 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
30087 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
30088 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
30090 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30092 Compile parts of grub-emu as modules.
30094 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
30095 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
30096 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
30097 (all-local): Add $(GRUB_EMU).
30098 (install-local): Install $(GRUB_EMU).
30099 (uninstall): Uninstall $(GRUB_EMU).
30100 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
30101 * kern/dl.c: Likewise.
30102 * commands/sleep.c: Not include machine/time.h.
30103 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
30104 (COMMON_CFLAGS): Likewise.
30105 (sbin_UTILITIES): Remove grub-emu.
30106 (grub_emu_SOURCES): Removed.
30107 (kernel_img_RELOCATABLE): New variable.
30108 (pkglib_PROGRAMS): Add kernel.img.
30109 (kernel_img_SOURCES): New variable
30110 (kernel_img_CFLAGS): Likewise.
30111 (kernel_img_LDFLAGS): Likewise.
30112 (TARGET_NO_STRIP): Likewise.
30113 (TARGET_NO_DYNAMIC_MODULES): Likewise.
30114 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
30115 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
30116 (grub-emu): New target.
30117 (GRUB_EMU): New variable.
30118 * configure.ac: Whitelist -emu as possible x86_64 architecture.
30119 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
30120 * loader/xnu.c: Likewise.
30121 * include/grub/pci.h: Likewise.
30122 * genemuinit.sh: New file.
30123 * genemuinitheader.sh: Likewise.
30124 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
30125 Support TARGET_NO_DYNAMIC_MODULES.
30126 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
30127 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
30128 * disk/loopback.c: Likewise.
30129 * font/font_cmd.c: Likewise.
30130 * partmap/acorn.c: Likewise.
30131 * partmap/amiga.c: Likewise.
30132 * partmap/apple.c: Likewise.
30133 * partmap/gpt.c: Likewise.
30134 * partmap/msdos.c: Likewise.
30135 * partmap/sun.c: Likewise.
30136 * parttool/msdospart.c: Likewise.
30137 * term/gfxterm.c: Likewise.
30138 * video/bitmap.c: Likewise.
30139 * video/readers/jpeg.c: Likewise.
30140 * video/readers/png.c: Likewise.
30141 * video/readers/tga.c: Likewise.
30142 * video/video.c: Likewise.
30143 * util/grub-emu.c (read_command_list): Removed.
30144 (main): Don't call util_init_nls.
30145 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
30146 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
30148 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30150 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
30151 date.mod, datehook.mod.
30152 (datetime_mod_SOURCES): New variable.
30153 (datetime_mod_CFLAGS): Likewise.
30154 (datetime_mod_LDFLAGS): Likewise.
30155 (date_mod_SOURCES): Likewise.
30156 (date_mod_CFLAGS): Likewise.
30157 (date_mod_LDFLAGS): Likewise.
30158 (datehook_mod_SOURCES): Likewise.
30159 (datehook_mod_CFLAGS): Likewise.
30160 (datehook_mod_LDFLAGS): Likewise.
30161 * conf/sparc64-ieee1275.rmk: Likewise.
30162 * lib/ieee1275/datetime.c: New file.
30164 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30166 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
30167 (ieee1275_fb_mod_SOURCES): New variable.
30168 (ieee1275_fb_mod_CFLAGS): Likewise.
30169 (ieee1275_fb_mod_LDFLAGS): Likewise.
30170 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
30172 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
30173 (HEAP_MAX_ADDR): Likewise.
30174 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
30176 Correct stop condition.
30177 (grub_ieee1275_devices_iterate): New function.
30178 * video/ieee1275.c: New file.
30180 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30182 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30184 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30186 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30187 SCRATCH_PAD_DISKBOOT as scratch.
30188 (bootit): Pass Openfirmware pointer in %o4.
30189 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30191 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30192 with util/grub-mkrawimage.c.
30193 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30194 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30195 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30196 (grub_aout_load) [GRUB_UTIL]: Likewise.
30197 * include/grub/kernel.h (grub_modules_get_end): New proto.
30198 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30199 (SCRATCH_PAD_BOOT): New definition.
30200 (SCRATCH_PAD_DISKBOOT): Likewise.
30201 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30202 * include/grub/sparc64/ieee1275/ieee1275.h
30203 (grub_ieee1275_original_stack): New variable
30204 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30206 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30207 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30208 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30209 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30210 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30211 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30212 (grub_platform_image_format_t): New type.
30213 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30214 * kern/main.c (grub_modules_get_end)
30215 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30216 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30217 (codestart): Switch stacks.
30218 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30220 (grub_heap_init): Use grub_modules_get_end.
30221 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30223 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30225 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30227 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
30229 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30231 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30233 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30236 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30238 * genmoddep.awk: Output all missing symbols and not only first.
30240 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30242 * NEWS: Put the date of 1.98 release.
30244 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30246 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30249 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30251 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30252 completition in the middle of string.
30254 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30256 * util/grub-mkrescue.in: Use mktemp with explicit template.
30258 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30260 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30262 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30264 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30267 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30269 Fix FreeBSD compilation.
30271 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30272 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30274 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30276 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30278 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30280 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30282 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30284 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30286 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30288 Support relative image path in theme file.
30290 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30291 (image_set_property): Handle theme_dir and relative path.
30293 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30295 * configure.ac: Alias amd64 to x86_64.
30297 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30299 * NEWS: mention multiboot on EFI.
30301 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30303 * kern/main.c (grub_load_modules): Handle errors from init functions of
30306 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30308 * normal/autofs.c (autoload_fs_module): Handle errors.
30310 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30312 Disable linux.mod on qemu-mips since it's not functional and leads
30313 to compilation failure.
30315 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30316 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30317 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30318 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30319 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30320 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30321 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30322 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30323 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30324 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30325 Reported by: BVK Chaitanya
30327 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30329 * INSTALL: Add gettext as a dependency and add qemu to a new section
30330 "Prerequisites for make-check".
30332 2010-03-04 Christian Franke <franke@computer.org>
30334 * util/grub-pe2elf.c: Add missing include "progname.h".
30336 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30338 * normal/crypto.c (read_crypto_list): Fix a typo.
30339 Reported by: Seth Goldberg.
30341 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30343 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30344 Reported by: Seth Goldberg.
30346 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30348 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30351 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30353 * genmk.rb: Remove terminal*.lst in make clean.
30354 Reported by: Seth Goldberg.
30356 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30358 * util/i386/efi/grub-install.in: Copy gettext files.
30360 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30362 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30364 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30366 Wait for user entry basing on presence of output rather than on errors.
30368 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30369 (grub_install_newline_hook): Likewise.
30370 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30371 * normal/menu.c (show_menu): Check line_counter to determine presence
30373 * normal/term.c (grub_normal_line_counter): New variable.
30374 (grub_normal_get_line_counter): New function.
30375 (grub_install_newline_hook): Likewise.
30377 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30379 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30381 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30383 * configure.ac: Update version to 1.98.
30385 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30387 * util/grub.d/10_linux.in (linux_entry): Don't default to
30388 gfxpayload=keep if Linux doesn't support video handover.
30390 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30392 Don't compile video modules on yeeloong since video subsystem is part
30395 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30396 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30397 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30398 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30399 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30400 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30401 * include/grub/bitmap_scale.h: Likewise.
30402 * include/grub/bufio.h: Likewise.
30403 * include/grub/font.h: Likewise.
30404 * include/grub/gfxterm.h: Likewise.
30405 * include/grub/video.h: Likewise.
30406 * include/grub/vbe.h: Don't include video_fb.h.
30407 * video/i386/pc/vbe.c: Include video_fb.h.
30408 * commands/i386/pc/vbetest.c: Include video.h.
30410 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30412 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30413 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30414 default entry if GRUB_SAVEDEFAULT=true. This allows using
30415 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30416 saving a new default on every boot.
30418 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30420 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30421 * normal/term.c (read_terminal_list): Likewise.
30422 * normal/main.c (grub_normal_init_page): Likewise.
30423 (grub_normal_read_line_real): Likewise.
30425 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30427 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30429 Reported by: Seth Goldberg.
30431 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30433 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30434 duplicate declaration of `start'.
30436 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30438 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30440 Reported by: Georgy Buranov
30442 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30444 * util/grub-mkrawimage.c (usage): Change string formatting to
30447 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30449 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30452 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30454 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30455 Reported by: Michael Suchanek.
30457 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30459 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30460 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30462 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30464 Remove any reference to non-free fonts.
30466 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30467 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30468 uses non-free components.
30469 * font/font.c (grub_font_get_name): Remove example name.
30470 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30471 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30472 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30473 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30475 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30477 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30479 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30481 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30483 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30485 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30487 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30489 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30491 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30493 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30494 * docs/grub.texi (Command-line and menu entry commands): Document play
30497 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30499 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30500 parse arguments as inline tempo and notes. Move code for playing notes
30502 (play): ... new function.
30504 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30506 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30507 grub_uint16_t instead of short.
30508 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30509 disk from little endian to cpu endianness.
30511 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30513 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30514 GRUB_TICKS_PER_SECOND instead of 120.
30516 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30518 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30519 escape sequence after \e.
30521 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30523 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30524 non-ASCII characters.
30526 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30528 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30529 set root in single quotes to prevent \, from being unescaped.
30531 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30533 Prevent unknown commands from stopping menuentry execution.
30535 * script/execute.c (grub_script_execute_cmdline): Print error after
30538 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30540 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30541 Reported by: Pavel Pisa.
30543 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30545 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30547 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30549 Merge grub_ieee1275_map_physical into grub_map and rename to
30552 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30553 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30555 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30556 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30558 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30560 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30562 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30563 opening and not after.
30565 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30567 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30570 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30572 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30573 (alloc_phys): Use ALIGN_UP instead of align_addr.
30575 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30577 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30579 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30581 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30583 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30585 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30588 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30590 Fix over-4GiB seek on sparc64.
30592 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30593 Replace pos_i and pos_lo with pos. All users updated.
30594 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30596 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30598 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30601 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30603 * util/grub-mkrawimage.c (main): Call set_program_name.
30605 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30607 Properly align 64-bit targets.
30609 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30610 (generate_image): Use ALIGN_ADDR.
30612 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30614 Properly create cross-endian images.
30616 * include/grub/types.h (grub_host_to_target_addr): New macro
30617 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30619 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30621 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30623 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30625 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30627 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30628 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30629 (grub_linux_boot): Divide by 64K when on VESA.
30631 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30633 Support GRUB_GFXPAYLOAD_LINUX.
30635 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30636 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30638 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30640 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30641 to show messages instead of discarding them.
30642 Process errors after executing command and not before. Keep old method
30645 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30647 * configure.ac: Check for ft2build.h.
30649 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30651 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30653 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30655 * genkernsyms.sh.in: Use TARGET_CC.
30657 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30661 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30663 * include/grub/multiboot2.h: Remove leftover file.
30664 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30665 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30667 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30669 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30671 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30673 Fix warnings in grub-emu when compiling with maximum warning options.
30675 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30676 (grub_arch_modules_addr): Return 0 and not NULL.
30677 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30678 (xstrdup): Use newstr instead of dup.
30679 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30680 of disk to dsk to avoid shadowing.
30681 (find_free_slot): Fix prototype.
30682 * util/getroot.c (grub_util_is_dmraid): Make static.
30683 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30684 Add missing prototype.
30685 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30687 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30689 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30692 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30694 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30697 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30699 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30700 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30701 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30702 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30703 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30704 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30706 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30708 * include/grub/err.h (grub_err_printf): Don't export.
30710 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30712 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30714 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30716 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30717 * kern/misc.c (grub_gettext_dummy): Make static.
30719 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30721 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30723 * kern/term.c (grub_putchar): Likewise.
30725 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30727 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30728 buggy hook call and memory leak.
30730 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30732 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30734 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30736 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30738 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30740 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30742 Return grub_errno on allocation error.
30744 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30746 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30748 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30750 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30751 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30753 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30755 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30757 (grub_pxefs_open): Likewise.
30759 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30761 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30762 * util/grub.d/10_kfreebsd.in: Likewise.
30763 * util/grub.d/10_linux.in: Likewise.
30765 2010-02-06 Colin D Bennett <colin@gibibit.com>
30767 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30768 (gfxmenu_mod_SOURCES): New variable.
30769 (gfxmenu_mod_CFLAGS): Likewise.
30770 (gfxmenu_mod_LDFLAGS): Likewise.
30771 * include/grub/term.h (grub_term_set_current_output): Declare
30773 * docs/gfxmenu-theme-example.txt: New file.
30774 * gfxmenu/gfxmenu.c: Likewise.
30775 * gfxmenu/gui_box.c: Likewise.
30776 * gfxmenu/gui_canvas.c: Likewise.
30777 * gfxmenu/gui_circular_progress.c: Likewise.
30778 * gfxmenu/gui_image.c: Likewise.
30779 * gfxmenu/gui_label.c: Likewise.
30780 * gfxmenu/gui_list.c: Likewise.
30781 * gfxmenu/gui_progress_bar.c: Likewise.
30782 * gfxmenu/gui_string_util.c: Likewise.
30783 * gfxmenu/gui_util.c: Likewise.
30784 * gfxmenu/icon_manager.c: Likewise.
30785 * gfxmenu/model.c: Likewise.
30786 * gfxmenu/named_colors.c: Likewise.
30787 * gfxmenu/theme_loader.c: Likewise.
30788 * gfxmenu/view.c: Likewise.
30789 * gfxmenu/widget-box.c: Likewise.
30790 * include/grub/gfxmenu_model.h: Likewise.
30791 * include/grub/gfxmenu_view.h: Likewise.
30792 * include/grub/gfxwidgets.h: Likewise.
30793 * include/grub/gui.h: Likewise.
30794 * include/grub/gui_string_util.h: Likewise.
30795 * include/grub/icon_manager.h: Likewise.
30797 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30799 Agglomerate scrolling in gfxterm.
30801 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30802 (grub_virtual_screen_setup): Initialise 'total_screen'.
30803 (write_char): Split to ...
30804 (paint_char): ... this ...
30805 (write_char): ... and this.
30806 (paint_char): Handle delayed scrolling.
30807 (draw_cursor): Likewise.
30808 (scroll_up): Split to ...
30809 (real_scroll): ... this ...
30810 (scroll_up): ... and this.
30811 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30813 (grub_gfxterm_refresh): Call real_scroll.
30815 2010-02-06 Colin D Bennett <colin@gibibit.com>
30817 * include/grub/misc.h (grub_iscntrl): New inline function.
30818 (grub_isalnum): Likewise.
30819 (grub_strtol): Likewise.
30821 2010-02-06 Colin D Bennett <colin@gibibit.com>
30823 * normal/menu_text.c (get_entry_number): Move from here ...
30824 * normal/menu.c (get_entry_number): ... moved here.
30825 * include/grub/menu.h (grub_menu_get_default_entry_index):
30827 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30828 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30829 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30830 (grub_menu_viewer_should_return): Likewise.
30831 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30832 * normal/menu_text.c (run_menu): Enable menu switching.
30833 * normal/menu_viewer.c (should_return): New variable.
30834 (menu_viewer_changed): Likewise.
30835 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30836 (grub_menu_viewer_should_return): New function.
30837 (menuviewer_write_hook): Likewise.
30838 (grub_menu_viewer_init): Likewise.
30840 2010-02-06 Colin D Bennet <colin@gibibit.com>
30841 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30843 Support for gfxterm in a window.
30845 * include/grub/gfxterm.h: New file.
30846 * include/grub/video.h (struct grub_video_rect): New declaration.
30847 (grub_video_rect_t): Likewise.
30848 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30849 (refcount): New variable.
30850 (render_target): Likewise.
30851 (window): Likewise.
30852 (repaint_callback): Likewise.
30853 (grub_virtual_screen_setup): Use 'render_target'.
30854 (init_window): New function.
30855 (grub_gfxterm_init_window): Likewise.
30856 (grub_gfxterm_init): Check reference counter.
30858 (destroy_window): New function.
30859 (grub_gfxterm_destroy_window): Likewise.
30860 (grub_gfxterm_fini): Check reference counter.
30861 Use destroy_window.
30862 (redraw_screen_rect): Restore viewport.
30863 Use 'render_target' and 'window'.
30864 Call 'repaint_callback'.
30865 (write_char): Use 'render_target'.
30866 (draw_cursor): Likewise.
30867 (scroll_up): Restore viewport.
30868 Use 'render_target' and 'window'.
30869 Call 'repaint_callback'.
30870 (grub_gfxterm_cls): Likewise.
30871 (grub_gfxterm_refresh): Use 'window'.
30872 (grub_gfxterm_set_repaint_callback): New function.
30873 (grub_gfxterm_background_image_cmd): Use 'window'.
30874 (grub_gfxterm_get_term): New function.
30875 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30877 2010-02-06 Colin D Bennett <colin@gibibit.com>
30879 Bitmap scaling support.
30881 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30882 (bitmap_scale_mod_SOURCES): New variable.
30883 (bitmap_scale_mod_CFLAGS): Likewise.
30884 (bitmap_scale_mod_LDFLAGS): Likewise.
30885 * include/grub/bitmap_scale.h: New file.
30886 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30887 (background_image_cmd_options): New variable.
30888 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30889 (cmd): Rename and change type to ...
30890 (background_image_cmd_handle): ... this. All users updated.
30891 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30892 * video/bitmap_scale.c: New file.
30894 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30898 * Makefile.in (LIBSDL): New variable.
30899 (enable_grub_emu_sdl): Likewise.
30900 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30901 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30902 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30903 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30904 * util/sdl.c: New file.
30906 2010-02-06 Colin D Bennett <colin@gibibit.com>
30907 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30909 Double buffering support.
30911 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30912 * include/grub/video.h: Update comment.
30913 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30915 (grub_video_fb_doublebuf_blit_init): New prototype.
30916 * term/gfxterm.c (scroll_up): Support double buffering.
30917 (grub_gfxterm_refresh): Likewise.
30918 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30919 (grub_video_fb_doublebuf_blit_init): Likewise.
30920 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30921 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30922 'displayed_page', 'render_page' and 'update_screen'.
30923 (grub_video_vbe_fini): Free offscreen buffer.
30924 (doublebuf_pageflipping_commit): New function.
30925 (doublebuf_pageflipping_update_screen): Likewise.
30926 (doublebuf_pageflipping_init): Likewise.
30927 (double_buffering_init): Likewise.
30928 (grub_video_vbe_setup): Enable doublebuffering.
30929 (grub_video_vbe_swap_buffers): Implement.
30930 (grub_video_vbe_set_active_render_target): Handle double buffering.
30931 (grub_video_vbe_get_active_render_target): Likewise.
30932 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30933 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30934 (grub_video_vbe_enable_double_buffering): Likewise.
30935 (grub_video_vbe_swap_buffers): Use update_screen.
30936 (grub_video_set_mode): Use double buffering.
30938 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30940 * maintainance/gentrigtables.py: Remove.
30941 * lib/trig.c: Likewise.
30943 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30945 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30947 (trigtables.c): New rule.
30948 (gentrigtables): Likewise.
30949 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30951 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30953 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30956 2010-02-06 Colin D Bennet <colin@gibibit.com>
30958 Trigonometry support.
30960 * include/grub/trig.h: New file.
30961 * lib/trig.c: Likewise.
30962 * maintainance/gentrigtables.py: Likewise.
30963 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30964 (trig_mod_SOURCES): New variable.
30965 (trig_mod_CFLAGS): Likewise.
30966 (trig_mod_LDFLAGS): Likewise.
30968 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30970 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30973 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30975 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30978 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30980 * util/hostdisk.c (open_device): Don't use partition device when reading
30981 before the partition.
30982 (grub_util_biosdisk_read): Don't read from partition and before the
30983 partition in single operation.
30984 (grub_util_biosdisk_write): Don't write to partition and before the
30985 partition in single operation.
30987 2010-02-03 Torsten Landschoff <torsten@debian.org>
30989 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30992 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30994 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30996 (grub_biosdisk_write): Refuse to write to CDROM.
30998 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
31000 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
31002 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
31004 * font/font.c (find_glyph): Check that bmp_idx is available before
31006 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
31007 with (font == NULL).
31009 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
31011 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
31013 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
31015 * include/grub/script_sh.h (sourcecode): Add const qualifier.
31016 * util/grub-script-check.c (getline): Fix empty lines case.
31018 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
31020 * Makefile.in (check): Exit with fail status when one of the tests
31022 * tests/example_functional_test.c (example_test): Fix reversed assert.
31023 * tests/example_unit_test.c (example_test): Likewise.
31025 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
31027 * util/grub.d/10_linux.in: This script does not use any of the
31028 contents of gettext.sh, only the external command `gettext', so stop
31029 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
31030 the same prefix as GRUB.)
31031 * util/grub.d/10_kfreebsd.in: Likewise.
31033 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
31035 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
31038 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
31040 * kern/disk.c (grub_disk_read): Fix offset computation when reading
31043 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
31045 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
31046 having a 4KiB and not 32KiB buffer size.
31048 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31050 * util/hostfs.c: Include `<errno.h>'.
31051 (grub_hostfs_read): Handle errors from fseeko() and fread().
31053 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31055 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
31056 loop when using read hooks on files whose size isn't sector-aligned.
31058 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31060 Remove unused parameter.
31062 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
31063 (grub_iso9660_open): Remove initialization of `data->length'.
31065 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31067 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
31068 memleak conditions.
31070 2010-01-27 Carles Pina i Estany <carles@pina.cat>
31072 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
31073 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
31075 2010-01-26 Carles Pina i Estany <carles@pina.cat>
31077 * util/bin2h.c (usage): Fix warning (space after backslash).
31079 2010-01-26 Carles Pina i Estany <carles@pina.cat>
31081 * font/font.c: Include `grub/fontformat.h.
31082 Remove font file format constants.
31083 (grub_font_load): Use the new macros.
31084 * include/grub/fontformat.h: New file.
31085 * util/grub-mkfont.c: Include `grub/fontformat.c'.
31086 (write_font_pf2): Use the new macros.
31088 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
31090 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
31093 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
31095 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
31097 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
31098 (_start): Macroify `0x7F'.
31100 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
31101 (make_install_device): Use "(pxe)" as fallback prefix when booting
31104 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
31106 * configure.ac: Reset LIBS after check for libgcc symbols.
31108 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
31110 * util/hostdisk.c (open_device): Add trailing newline to debug
31113 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
31115 * configure.ac: Check for `limits.h'.
31116 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
31118 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
31120 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
31121 capitalize error strings.
31123 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
31125 * util/grub.d/10_hurd.in: Add a recovery mode.
31127 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
31129 * configure.ac: Check for libgcc symbols with -nostdlib.
31131 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
31133 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
31135 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31137 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
31138 stack since heap may be unavailable at that point.
31139 (grub_ofconsole_gotoxy): Likewise.
31141 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31143 * configure.ac: Check for _restgpr_14_x.
31144 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
31145 and _savegpr_* prototypes.
31147 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
31149 Use generic grub_reboot() for i386-efi.
31151 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
31152 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
31153 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
31155 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31157 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
31158 presence of "prefix" variable as it breaks when normal.mod is
31161 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31163 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
31164 stack since heap is unavailable at that point.
31166 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31168 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
31169 (grub_freebsd_bootinfo): Rewritten.
31170 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
31172 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31174 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
31176 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
31178 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
31181 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
31183 * util/misc.c (make_system_path_relative_to_its_root): Change the work
31184 around for handling "/" to the correct fix. Fix a memory leak. Use
31185 xstrdup instead of strdup.
31187 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31189 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31191 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31193 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31195 * font/font.c (struct grub_font): New member 'bmp_idx'.
31196 (font_init): Initialise 'bmp_idx'.
31197 (load_font_index): Fill 'bmp_idx'.
31198 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31200 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31202 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31205 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31207 Move context handling out of the kernel.
31209 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31210 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31211 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31212 * conf/i386-efi.rmk: Likewise.
31213 * conf/i386-ieee1275.rmk: Likewise.
31214 * conf/i386-pc.rmk: Likewise.
31215 * conf/powerpc-ieee1275.rmk: Likewise.
31216 * conf/sparc64-ieee1275.rmk: Likewise.
31217 * conf/x86_64-efi.rmk: Likewise.
31218 * include/grub/env.h: Include grub/menu.h.
31219 (grub_env_var_type): Removed.
31220 (grub_env_var): Replaced field 'type' with 'global'.
31221 (grub_env_find): New prototype.
31222 (grub_env_context_open): Remove EXPORT_FUNC.
31223 (grub_env_context_close): Likewise.
31224 (grub_env_export): Likewise.
31225 (grub_env_set_data_slot): Removed.
31226 (grub_env_get_data_slot): Likewise.
31227 (grub_env_unset_data_slot): Likewise.
31228 (grub_env_unset_menu): New prototype.
31229 (grub_env_set_menu): Likewise.
31230 (grub_env_get_menu): Likewise.
31231 * include/grub/env_private.h: New file.
31232 * include/grub/normal.h (grub_context_init): New prototype.
31233 (grub_context_fini): Likewise.
31234 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31235 * normal/context.c (grub_cmd_export): ... to here.
31236 * kern/env.c: Include env_private.h.
31237 (HASHSZ): Moved to include/grub/env_private.h.
31238 (grub_env_context): Likewise.
31239 (grub_env_sorted_var): Likewise.
31240 (current_context): Renamed from this ...
31241 (grub_current_context): ...to this. 'static' removed. All users updated.
31242 (grub_env_find): Removed 'static'.
31243 (grub_env_context_open): Moved to normal/context.c.
31244 (grub_env_context_close): Likewise.
31245 (grub_env_export): Likewise.
31246 (mangle_data_slot_name): Removed.
31247 (grub_env_set_data_slot): Likewise.
31248 (grub_env_get_data_slot): Likewise.
31249 (grub_env_unset_data_slot): Likewise.
31250 * kern/main.c (grub_set_root_dev): Don't export root.
31251 It will be done later.
31252 (grub_main): Don't export prefix.
31253 It will be done later.
31254 * normal/context.c: New file.
31255 * normal/main.c (free_menu): Use grub_env_unset_menu.
31256 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31257 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31258 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31259 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31261 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31265 * commands/setpci.c: New file.
31266 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31267 (setpci_mod_SOURCES): New variable.
31268 (setpci_mod_CFLAGS): Likewise.
31269 (setpci_mod_LDFLAGS): Likewise.
31271 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31273 Byte-addressable PCI configuration space.
31275 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31277 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31278 GRUB_PCI_REG_CACHELINE.
31279 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31280 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31281 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31282 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31283 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31284 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31285 grub_pci_make_address.
31286 (lock_rom_area): Likewise.
31287 * commands/lspci.c (grub_lspci_iter): Use macroses
31288 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31289 of grub_pci_make_address.
31290 * disk/ata.c (grub_ata_pciinit): Likewise.
31291 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31292 (GRUB_PCI_REG_VENDOR): Likewise.
31293 (GRUB_PCI_REG_DEVICE): Likewise.
31294 (GRUB_PCI_REG_COMMAND): Likewise.
31295 (GRUB_PCI_REG_STATUS): Likewise.
31296 (GRUB_PCI_REG_REVISION): Likewise.
31297 (GRUB_PCI_REG_CLASS): Likewise.
31298 (GRUB_PCI_REG_CACHELINE): Likewise.
31299 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31300 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31301 (GRUB_PCI_REG_BIST): Likewise.
31302 (GRUB_PCI_REG_ADDRESSES): Likewise.
31303 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31304 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31305 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31306 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31307 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31308 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31309 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31310 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31311 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31312 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31313 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31314 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31315 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31316 (GRUB_PCI_REG_MIN_GNT): Likewise.
31317 (GRUB_PCI_REG_MAX_LAT): Likewise.
31318 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31319 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31320 * video/efi_uga.c (find_framebuf): Likewise.
31321 * video/sm712.c (grub_video_sm712_setup): Likewise.
31322 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31325 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31327 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31328 can be reliably determined to be supported.
31330 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31332 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31333 that VESA is supported.
31334 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31337 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31339 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31341 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31343 * util/misc.c (make_system_path_relative_to_its_root): Work around
31344 special-casing of "/", as previous incarnation of this routine did.
31346 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31348 Fix any-emu compilation.
31350 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31351 * grub_bin2h_SOURCES: New variable.
31353 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31355 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31357 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31359 * util/grub.d/00_header.in: Fix handling of locale_dir.
31361 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31363 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31364 as possible unifont location (Gentoo).
31365 Reported by: Alexander Brüning
31367 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31369 Don't try to generate lists for kernel.img.
31371 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31372 (pkglib_MODULES): Remove kernel.img.
31373 (kernel_img_EXPORTS): Removed.
31374 (kernel_img_RELOCATABLE): New variable.
31375 * conf/x86_64-efi.rmk: Likewise.
31376 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31378 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31380 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31381 grub_xasprintf or grub_snprintf.
31382 (grub_vsprintf): Likewise.
31383 (grub_snprintf): New proto.
31384 (grub_vsnprintf): Likewise.
31385 (grub_xasprintf): Likewise.
31386 (grub_xvasprintf): Likewise.
31387 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31388 (grub_sprintf): Removed.
31389 (grub_vsnprintf): New function.
31390 (grub_snprintf): Likewise.
31391 (grub_xvasprintf): Likewise.
31392 (grub_xasprintf): Likewise.
31393 (grub_vsprintf): Renamed to ...
31394 (grub_vsnprintf_real): ...this. New argument max_len.
31396 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31398 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31399 fix grub-script-check warning.
31401 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31403 * include/grub/font.h (grub_font_load): Fix prototype.
31405 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31407 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31409 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31411 * include/grub/x86_64/at_keyboard.h: New file.
31413 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31415 * loader/mips/linux.c: Include missing grub/i18n.h.
31417 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31419 * normal/menu.c (notify_execution_failure): Clarify error message.
31421 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31423 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31424 return value (and revert all return statements). Update users.
31426 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31428 * kern/device.c (grub_device_iterate): Allocate new part_ent
31429 structure based on sizeof (*p) rather than sizeof (p->next), to
31430 account for structure padding.
31432 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31433 disk is NULL, which might happen for LVM physical volumes with no
31436 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31438 * loader/mips/linux.c (grub_cmd_initrd)
31439 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31441 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31443 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31444 (grub_video_video_init, grub_video_bitmap_init)
31445 (grub_font_manager_init, grub_term_gfxterm_init)
31446 (grub_at_keyboard_init): New extern declarations.
31447 (grub_machine_init): Initialize gfxterm and at_keyboard.
31449 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31451 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31452 `gfxterm.mod' into core image.
31454 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31455 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31456 (kernel_img_FORMAT): Copy to ...
31458 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31459 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31460 (kernel_img_FORMAT): ... here, and ...
31462 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31463 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31464 (kernel_img_FORMAT): ... here.
31466 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31467 and input (at_keyboard) terminals in kernel.
31468 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31470 (pkglib_MODULES): Remove `pci.mod'.
31471 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31472 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31473 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31474 (at_keyboard_mod_LDFLAGS): Remove variables.
31476 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31478 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31480 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31482 * include/grub/mips/libgcc.h: Only export symbols for functions
31483 that libgcc provides.
31485 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31489 * bus/bonito.c: New file.
31490 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31491 GRUB_PCI_NUM_DEVICES.
31492 * term/i386/pc/serial.c: Move to ...
31493 * term/serial.c: ... here. All users updated.
31494 * util/i386/pc/grub-mkimage.c: Move to ...
31495 * util/grub-mkrawimage.c: ... here. All users updated.
31496 * term/i386/pc/at_keyboard.c: Move to ...
31497 * term/at_keyboard.c: ... here. All users updated.
31498 * conf/mips-qemu-mips.rmk: New file.
31499 * conf/mips-yeeloong.rmk: Likewise.
31500 * conf/mips.rmk: Likewise.
31501 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31503 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31505 (grub_ata_pciinit): Support CS5536.
31506 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31507 * font/font_cmd.c (loadfont_command): Open file before passing it to
31509 (pseudo_file_read): New function.
31510 (pseudo_file_close): Likewise.
31511 (pseudo_fs): New structure.
31512 (load_font_module): New function.
31513 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31514 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31515 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31516 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31517 * include/grub/i386/at_keyboard.h: Split into ...
31518 * include/grub/at_keyboard.h: ... this ...
31519 * include/grub/i386/at_keyboard.h: ... and this.
31520 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31522 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31524 (grub_elf64_size): Likewise.
31525 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31527 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31528 * include/grub/i386/coreboot/serial.h: Rewritten.
31529 * include/grub/i386/ieee1275/serial.h: Include
31530 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31531 * include/grub/i386/pc/serial.h: Moved from here ...
31532 * include/grub/serial.h: ... to here. All users updated.
31533 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31534 (GRUB_PCI_NUM_BUS): Likewise.
31535 (GRUB_PCI_NUM_DEVICES): Likewise.
31536 (grub_pci_device_map_range): Add missing volatile keyword.
31537 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31538 * include/grub/mips/at_keyboard.h: New file.
31539 * include/grub/mips/cache.h: Likewise.
31540 * include/grub/mips/io.h: Likewise.
31541 * include/grub/mips/kernel.h: Likewise.
31542 * include/grub/mips/libgcc.h: Likewise.
31543 * include/grub/mips/pci.h: Likewise.
31544 * include/grub/mips/qemu-mips/boot.h: Likewise.
31545 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31546 * include/grub/mips/qemu-mips/loader.h: Likewise.
31547 * include/grub/mips/qemu-mips/memory.h: Likewise.
31548 * include/grub/mips/qemu-mips/serial.h: Likewise.
31549 * include/grub/mips/qemu-mips/time.h: Likewise.
31550 * include/grub/mips/relocator.h: Likewise.
31551 * include/grub/mips/time.h: Likewise.
31552 * include/grub/mips/types.h: Likewise.
31553 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31554 * include/grub/mips/yeeloong/boot.h: Likewise.
31555 * include/grub/mips/yeeloong/kernel.h: Likewise.
31556 * include/grub/mips/yeeloong/loader.h: Likewise.
31557 * include/grub/mips/yeeloong/memory.h: Likewise.
31558 * include/grub/mips/yeeloong/pci.h: Likewise.
31559 * include/grub/mips/yeeloong/serial.h: Likewise.
31560 * include/grub/mips/yeeloong/time.h: Likewise.
31561 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31562 * kern/elf.c (grub_elf32_size): New parameter. All users
31564 (grub_elf64_size): Likewise.
31565 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31566 Load modules before saying "Welcome to GRUB!".
31567 Call grub_refresh after saying "Welcome to GRUB!".
31568 * kern/mips/cache.S: New file.
31569 * kern/mips/cache_flush.S: Likewise.
31570 * kern/mips/dl.c: Likewise.
31571 * kern/mips/init.c: Likewise.
31572 * kern/mips/qemu-mips/init.c: Likewise.
31573 * kern/mips/startup.S: Likewise.
31574 * kern/mips/yeeloong/init.c: Likewise.
31575 * kern/term.c (grub_putcode): Handle NULL terminal.
31576 (grub_getcharwidth): Likewise.
31577 (grub_getkey): Likewise.
31578 (grub_checkkey): Likewise.
31579 (grub_getkeystatus): Likewise.
31580 (grub_getxy): Likewise.
31581 (grub_getwh): Likewise.
31582 (grub_gotoxy): Likewise.
31583 (grub_cls): Likewise.
31584 (grub_setcolorstate): Likewise.
31585 (grub_setcolor): Likewise.
31586 (grub_getcolor): Likewise.
31587 (grub_refresh): Likewise.
31588 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31589 (write_jump): Add hatch nop.
31590 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31591 * lib/mips/setjmp.S: New file.
31592 * loader/mips/linux.c: Likewise.
31593 * term/i386/pc/at_keyboard.c: Move from here ...
31594 * term/at_keyboard.c: ... to here.
31595 * term/i386/pc/serial.c: Moved from here ...
31596 * term/serial.c: ... to here. All users updated.
31597 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31598 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31599 (serial_translate_key_sequence): Avoid deadlock.
31600 (grub_serial_getkey): Handle backspace.
31601 (grub_serial_putchar): Fix newline handling.
31602 * util/i386/pc/grub-mkimage.c: Move from here ...
31603 * util/grub-mkrawimage.c: ... to here. All users updated.
31604 (generate_image): New parameters 'font_path' and 'format'.
31605 Support embedding font.
31606 Use grub_host_to_target* instead of grub_cpu_to_le*.
31607 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31608 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31609 (options): New option "--font".
31611 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31612 (main): Handle "--font".
31613 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31614 (grub_virtual_screen_setup): Set bg_color_display.
31615 (redraw_screen_rect): Use bg_color_display instead of incorrect
31617 (grub_gfxterm_cls): Likewise.
31618 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31619 Support embedding config file.
31620 (add_segments): Likewise.
31621 (options): New option "--config".
31622 (main): Handle "--config".
31623 * video/sm712.c: New file.
31625 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31627 Fix parallel builds.
31629 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31630 font.c depend on ascii.h).
31632 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31634 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31636 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31638 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31639 By default: disabled.
31640 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31643 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31645 * font/font.c: Update copyright years.
31646 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31648 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31650 * font/font.c: Include `ascii.h'.
31651 (ASCII_BITMAP_SIZE): New macro.
31652 (ascii_font_glyph): Define.
31653 (ascii_glyph_lookup): New function.
31654 (grub_font_get_string_width): Change comment. If glyph not found, use
31655 ascii_glyph_lookup.
31656 (grub_font_get_glyph_with_fallback): If glyph not available returns
31657 ascii_glyph_lookup.
31658 * util/grub-mkfont.c (file_formats): New enum.
31659 (options): Add `ascii-bitmaps' new option.
31660 (usage): Add `asii-bitmaps' new option.
31661 (write_font_ascii_bitmap): New function.
31662 (write_font): Rename to ...
31663 (write_font_p2): ... this. Remove print_glyphs call.
31664 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31665 used. Call print_glyphs.
31666 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31668 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31670 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31671 (grub_bin2h_SOURCES): New variable.
31672 * util/bin2h.c: New file.
31674 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31676 * include/multiboot.h: Resynced with spec.
31677 * include/multiboot2.h: Likewise.
31678 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31679 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31681 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31683 * include/grub/term.h (grub_term_register_input,
31684 grub_term_register_output): Check return of terminal init()
31685 routines, and abort if errors are raised.
31687 * commands/terminal.c: Update copyright year.
31689 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31691 * commands/terminal.c (grub_cmd_terminal_input)
31692 (grub_cmd_terminal_output): Check return of terminal init()
31693 routines, and abort if errors are raised.
31695 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31697 * include/grub/i386/bsd.h: Fix include pathes.
31699 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31701 Add missing *BSD copyright headers.
31703 * include/grub/aout.h: Add BSD licence.
31704 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31705 * include/grub/i386/freebsd_linker.h: ... here,
31706 * include/grub/i386/freebsd_reboot.h: ... here,
31707 * include/grub/i386/netbsd_bootinfo.h: ... here,
31708 * include/grub/i386/netbsd_reboot.h: ... here,
31709 * include/grub/i386/openbsd_bootarg.h: ... here,
31710 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31711 licence to each file.
31713 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31715 * acinclude.m4: Remove `nop' assembly instruction; it's not
31716 implemented by all architectures.
31718 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31720 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31721 ELILO. This is no longer necessary.
31723 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31725 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31727 * util/grub-script-check.c: grub-script-check tool.
31728 * conf/common.rmk: Make rules for grub-script-check.
31730 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31732 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31733 spotting it back in 2008. Shame on me for forgetting he did.
31735 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31737 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31739 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31740 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31741 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31742 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31743 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31744 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31746 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31748 * include/grub/test.h: Add license header.
31749 * tests/example_functional_test.c: Likewise.
31750 * tests/example_unit_test.c: Likewise.
31751 * tests/lib/functional_test.c: Likewise.
31752 * tests/lib/test.c: Likewise.
31753 * tests/lib/unit_test.c: Likewise.
31755 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31757 Use flag-based instead of hook-based video mode selection and "auto"
31760 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31761 (grub_video_set_mode): Changed prototype. All users updated.
31762 (grub_video_check_mode_flag): New inline function.
31763 * video/video.c (parse_modespec): New function.
31764 (grub_video_set_mode): Parse flags and keywords.
31766 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31768 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31771 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31773 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31775 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31777 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31779 * util/grub-emu.c (usage): Likewise.
31780 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31781 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31782 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31783 * util/i386/pc/grub-setup.c (usage): Likewise.
31785 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31787 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31789 (grub_util_info): Likewise.
31790 (grub_util_error): Likewise.
31791 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31792 and/or new lines in `grub_util_warna', `grub_util_info',
31793 `grub_util_error' calls.
31794 * util/getroot.c: Likewise.
31795 * util/grub-editenv.c: Likewise.
31796 * util/grub-emu.c: Likewise.
31797 * util/grub-fstest.c: Likewise.
31798 * util/grub-mkdevicemap.c: Likewise.
31799 * util/grub-mkfont.c: Likewise.
31800 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31801 * util/grub-mkrelpath.c: Likewise.
31802 * util/grub-pe2elf.c: Likewise.
31803 * util/grub-probe.c: Likewise.
31804 * util/hostdisk.c: Likewise.
31805 * util/i386/efi/grub-mkimage.c: Likewise.
31806 * util/i386/pc/grub-mkimage.c: Likewise.
31807 * util/i386/pc/grub-setup.c: Likewise.
31808 * util/ieee1275/ofpath.c: Likewise.
31809 * util/mkisofs/eltorito.c: Likewise.
31810 * util/mkisofs/rock.c: Likewise.
31811 * util/mkisofs/write.c: Likewise.
31812 * util/raid.c: Likewise.
31813 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31814 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31816 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31818 Enable multiboot on non-pc.
31820 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31821 multiboot.mod and multiboot2.mod to ...
31822 * conf/i386.rmk (pkglib_MODULES): ... here.
31823 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31825 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31826 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31828 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31829 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31831 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31832 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31834 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31835 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31837 (ata_mod_SOURCES): Removed.
31838 (ata_mod_CFLAGS): Likewise.
31839 (ata_mod_LDFLAGS): Likewise.
31840 (relocator_mod_SOURCES): Removed.
31841 (relocator_mod_CFLAGS): Likewise.
31842 (relocator_mod_ASFLAGS): Likewise.
31843 (relocator_mod_LDFLAGS): Likewise.
31845 * include/grub/x86_64/multiboot.h: New file.
31846 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31849 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31851 Video multiboot support.
31853 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31855 * include/multiboot.h: Resynced with multiboot specification.
31856 * include/multiboot2.h: Likewise.
31857 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31858 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31859 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31860 (HAS_VGA_TEXT): Likewise.
31861 (accepts_video): New variable.
31862 (grub_multiboot_set_accepts_video): New function.
31863 (grub_multiboot_get_mbi_size): Account for video structures.
31864 (set_video_mode): New function.
31865 (retrieve_video_parameters): Likewise.
31866 (grub_multiboot_make_mbi): Fill video fields.
31868 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31872 * include/grub/video.h (grub_video_driver_id): New type.
31873 (grub_video_adapter): New member 'id'. All users updated.
31874 (grub_video_get_driver_id): New proto.
31875 * video/video.c (grub_video_get_driver_id): New function.
31877 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31879 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31882 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31884 * normal/cmdline.c (print_completion): Gettextizze.
31886 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31888 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31890 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31892 * gettext/gettext.c (grub_gettext_translate): Push and pop
31894 (grub_gettext_delete_list): Change comment style.
31895 * kern/err.c (grub_error): Gettextizze.
31896 (grub_fatal): Gettextizze.
31898 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31900 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31901 (grub_linux16_real_boot): ... this.
31902 * kern/i386/loader.S: Likewise.
31903 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31904 (grub_linux16_boot): New function. Switches to text mode and calls
31905 grub_linux16_real_boot().
31907 * loader/i386/bsd.c: Include `<grub/video.h>'.
31908 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31909 text mode before calling grub_unix_real_boot().
31911 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31912 (grub_multiboot_boot): Switch to text mode before calling
31913 grub_relocator32_boot().
31915 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31916 (grub_chainloader_boot): Switch to text mode before calling
31917 grub_chainloader_real_boot().
31919 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31920 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31922 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31925 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31926 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31928 * util/grub.d/00_header.in: Define a "savedefault" function for use
31930 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31932 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31933 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31935 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31936 saved_entry if boot_once is unset.
31937 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31938 previous saved entry (i.e. grub-reboot).
31940 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31942 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31944 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31946 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31948 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31950 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31952 * util/grub-reboot.in: Fix --version output.
31953 * util/grub-set-default.in: Likewise.
31955 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31957 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31960 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31962 * util/grub.d/00_header.in: Quote the value assigned to `default',
31963 in case it contains spaces.
31965 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31967 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31968 `save_default_entry' call from the macosx case to the linux case.
31970 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31971 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31973 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31974 in `chosen' environment variable.
31975 * normal/menu_text.c (get_entry_number): Check if the variable
31976 matches the title of a menu entry.
31977 (run_menu): Pass menu to get_entry_number.
31979 * util/grub-reboot.in: New file.
31980 * util/grub-set-default.in: New file.
31981 * conf/common.rmk (grub-reboot): New utility.
31982 (grub-set-default): New utility.
31984 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31985 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31986 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31987 move it to `saved_entry' for the next boot. Load environment on
31989 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31990 * util/grub.d/10_hurd.in: Likewise.
31991 * util/grub.d/10_linux.in (linux_entry): Likewise.
31992 * util/grub.d/10_windows.in: Likewise.
31993 * util/grub.d/30_os-prober.in: Likewise.
31995 * util/grub-install.in: Create environment block.
31996 * util/i386/efi/grub-install.in: Likewise.
31997 * util/ieee1275/grub-install.in: Likewise.
31998 * util/sparc64/ieee1275/grub-install.in: Likewise.
32000 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
32002 Unit testing framework for GRUB.
32004 * Makefile.in: Test framework build rules for 'make check'.
32005 * conf/tests.rmk: Build rules for individual tests and framework.
32007 * include/grub/test.h: Header file for whitebox tests.
32008 * tests/lib/functional_test.c: Framework support for whitebox
32010 * tests/lib/test.c: Common whitebox testing code for unit and
32012 * tests/lib/unit_test.c: Framework support for whitebox unit
32015 * tests/util/grub-shell-tester.in: Support utility for grub-script
32017 * tests/util/grub-shell.in: Utility to execute grub-script
32018 commands in a Qemu instance.
32020 * tests/example_functional_test.c: Example whitebox functional
32022 * tests/example_grub_script_test.in: Example grub-script test.
32023 * tests/example_scripted_test.in: Example scripted test.
32024 * tests/example_unit_test.c: Example whitebox unit test.
32026 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
32028 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
32029 Add loader/i386/multiboot_mbi.c.
32030 (multiboot2_mod_SOURCES): Likewise.
32031 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
32032 (multiboot2_mod_SOURCES): Likewise.
32033 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
32034 (grub_multiboot_make_mbi): Likewise.
32035 (grub_multiboot_free_mbi): Likewise.
32036 (grub_multiboot_init_mbi): Likewise.
32037 (grub_multiboot_add_module): Likewise.
32038 (grub_multiboot_set_bootdev): Likewise.
32039 * loader/i386/multiboot.c (mbi): Removed.
32040 (mbi_dest): Likewise.
32041 (alloc_mbi): New variable.
32042 (grub_multiboot_payload_size): Removed. All users updated.
32043 (grub_multiboot_pure_size): New variable.
32044 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
32045 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
32046 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
32047 (grub_fill_multiboot_mmap): Likewise.
32048 (grub_multiboot_get_bootdev): Likewise.
32049 (grub_multiboot): Use multiboot_mbi functions.
32050 * loader/i386/multiboot_mbi.c: New file.
32052 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
32054 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
32055 it would result in module crash.
32057 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
32059 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
32060 (grub_ofconsole_getwh): Split to ...
32061 (grub_ofconsole_getwh): ... this.
32062 (grub_ofconsole_dimensions): ...and this.
32063 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
32065 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
32067 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
32069 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
32071 * loader/i386/pc/multiboot2.c: Removed stalled file.
32073 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
32075 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
32076 Reported by: Grégoire Sutre
32078 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
32080 * util/misc.c (canonicalize_file_name): New function.
32081 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
32082 instead of realpath().
32084 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
32086 * util/grub-install.in (usage): Clarify meaning of --root-directory,
32087 and make it clearer that it's optional. Based on confusion
32090 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
32092 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
32093 in premature implicit newline.
32095 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
32097 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
32098 which resulted in garbled command line at the end of screen.
32100 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32102 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
32103 initialization with similar approach as with other Linux loaders.
32105 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32107 Fix i386-ieee1275 build.
32109 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
32110 and grub_term_height() for video_{width,height} initialization.
32112 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32114 Fix grub-emu build.
32116 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
32118 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32119 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32121 Support for multiple terminals.
32123 * Makefile.in (pkglib_DATA): terminal.lst.
32124 (terminal.lst): New target.
32125 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
32126 (GRUB_MOD_INIT(handler)): Likewise.
32127 (GRUB_MOD_FINI(handler)): Likewise.
32128 * commands/help.c (grub_cmd_help): Handle multiple terminals.
32129 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
32130 * commands/sleep.c (do_print): Use grub_term_restore_pos.
32131 (grub_cmd_sleep): Use grub_term_save_pos.
32132 * commands/terminal.c: New file.
32133 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
32134 commands/terminal.c and lib/charset.c.
32135 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
32136 (pkglib_MODULES): Add terminal.mod.
32137 (terminal_mod_SOURCES): New variable.
32138 (terminal_mod_CFLAGS): Likewise.
32139 (terminal_mod_LDFLAGS): Likewise.
32140 * genhandlerlist.sh: Don't handle terminals.
32141 * genmk.rb: Generate terminal-*.lst.
32142 * genterminallist.sh: New file.
32143 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
32144 (grub_is_valid_utf8): Likewise.
32145 (grub_utf8_to_ucs4_alloc): Likewise.
32146 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
32147 (grub_menu_register_viewer): Changed argument.
32148 (grub_menu_try_text): New proto.
32149 (grub_gfxmenu_try_hook): New declaration.
32150 * include/grub/normal.h (grub_normal_exit_level): New declaration.
32151 (grub_menu_init_page): Additional argument term.
32152 (grub_normal_init_page): Likewise.
32153 (grub_cmdline_get): Arguments simplified.
32154 (grub_utf8_to_ucs4_alloc): Removed.
32155 (grub_print_ucs4): Additional argument term.
32156 (grub_getstringwidth): Likewise.
32157 (grub_print_message_indented): Likewise.
32158 (grub_menu_text_register_instances): New proto.
32159 (grub_show_menu): Likewise.
32160 (read_terminal_list): Likewise.
32161 (grub_set_more): Likewise.
32162 * include/grub/parser.h: Include handler.h.
32163 * include/grub/reader.h: Rewritten.
32164 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
32165 (GRUB_TERM_WIDTH): Changed to function.
32166 (GRUB_TERM_HEIGHT): Likewise.
32167 (GRUB_TERM_BORDER_WIDTH): Likewise.
32168 (GRUB_TERM_BORDER_HEIGHT): Likewise.
32169 (GRUB_TERM_NUM_ENTRIES): Likewise.
32170 (GRUB_TERM_ENTRY_WIDTH): Likewise.
32171 (GRUB_TERM_CURSOR_X): Likewise.
32172 (grub_term_input_class): Likewise.
32173 (grub_term_output_class): Likewise.
32174 (grub_term_outputs_disabled): New declaration.
32175 (grub_term_inputs_disabled): Likewise.
32176 (grub_term_outputs): Likewise.
32177 (grub_term_inputs): Likewise.
32178 (grub_term_register_input): Rewritten.
32179 (grub_term_register_output): Likewise.
32180 (grub_term_unregister_input): Likewise.
32181 (grub_term_unregister_output): Likewise.
32182 (FOR_ACTIVE_TERM_INPUTS): New macro.
32183 (FOR_DISABLED_TERM_INPUTS): Likewise.
32184 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32185 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32186 * include/grub/terminfo.h: Add oterm argument to all protypes.
32187 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32188 Use grub_rescue_run.
32189 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32191 * kern/reader.c: Removed. All users updated.
32192 * kern/rescue_reader.c (grub_rescue_init): Removed.
32193 (grub_rescue_reader): Likewise.
32194 (grub_register_rescue_reader): Likewise.
32195 (grub_rescue_run): New function based on kern/reader.c.
32196 * kern/term.c: Adapted for multiterm.
32197 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32198 (grub_is_valid_utf8): Likewise.
32199 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32200 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32202 * loader/i386/linux.c (grub_linux_boot): Likewise.
32203 * normal/auth.c (grub_username_get): New function.
32204 (grub_auth_check_authentication): Use grub_username_get.
32205 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32206 * normal/color.c: Adapt for multiterm.
32207 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32208 (grub_normal_init_page): Additional argument term.
32209 (read_lists): Call read_terminal_lists.
32210 (grub_enter_normal_mode): Call grub_cmdline_run.
32211 Handle grub_normal_exit_level.
32212 (grub_cmd_normal): Make reentrant.
32213 (grub_cmd_normal_exit): New function.
32214 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32215 * normal/menu.c: Adapt for multiterm.
32216 * normal/menu_entry.c: Likewise.
32217 * normal/menu_text.c: Likewise.
32218 * normal/menu_viewer.c: Removed. All users updated.
32219 * normal/term.c: New file.
32220 * util/console.c: Change order of includes to workaround a bug in
32222 * term/terminfo.c: New argument oterm on all exported functions.
32224 * util/grub-editenv.c (grub_term_input_class): Removed.
32225 (grub_term_output_class): Likewise.
32227 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32229 Make loader output a bit more user-friendly.
32231 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32232 is being loaded. Likewise for the Hurd.
32234 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32235 that kernel of FreeBSD ${version} is being loaded.
32237 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32239 (grub_cmd_initrd): Likewise.
32240 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32241 that Linux ${version} is being loaded. Likewise for initrd.
32243 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32245 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32247 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32249 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32250 (GRUB_MOD_INIT): Gettextizze.
32251 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32252 (GRUB_MOD_INIT): Gettextizze.
32253 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32254 (grub_cmd_linux): Capitalise Linux.
32255 (GRUB_MOD_INIT): Gettextizze.
32256 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32257 (grub_cmd_linux): Capitalise Linux.
32258 (GRUB_MOD_INIT): Gettextizze.
32259 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32260 (grub_cmd_linux): Capitalise Linux.
32261 (GRUB_MOD_INIT): Gettextizze.
32262 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32263 (GRUB_MOD_INIT): Gettextizze.
32264 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32265 (grub_cmd_linux): Capitalise Linux.
32266 (GRUB_MOD_INIT): Gettextizze.
32267 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32268 (grub_cpu_xnu_init): Gettextizze.
32269 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32270 (GRUB_MOD_INIT): Gettextizze.
32271 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32272 (GRUB_MOD_INIT): Gettextizze.
32273 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32274 (grub_linux_load64): Capitalise Linux.
32275 (GRUB_MOD_INIT): Gettextizze.
32276 * loader/xnu.c: Include `<grub/i18n.h>'.
32277 (GRUB_MOD_INIT): Gettextizze.
32278 * po/POTFILES: Add `loader/efi/appleloader.c',
32279 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32280 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32281 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32282 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32283 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32284 and `loader/xnu.c'.
32286 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32288 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32290 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32292 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32293 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32294 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32296 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32298 Reset Multiboot 2 support. New loader implements the draft in
32299 /branches/multiboot2 and shares as much code as possible with the
32300 production Multiboot 1 implementation.
32302 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32303 * loader/multiboot2.c: Likewise.
32304 * loader/i386/multiboot_helper.S: Likewise.
32305 * include/multiboot2.h: Replace with latest version from the draft
32306 in /branches/multiboot2.
32308 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32309 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32310 and `loader/multiboot2.c'.
32311 (pkglib_MODULES): Add `multiboot2.mod'.
32312 (multiboot2_mod_SOURCES): New variable.
32313 (multiboot2_mod_LDFLAGS): Likewise.
32314 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32316 * conf/i386-pc.rmk: Likewise.
32318 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32319 (multiboot_mod_SOURCES): Remove variable.
32320 (multiboot_mod_LDFLAGS): Likewise.
32321 (multiboot_mod_CFLAGS): Likewise.
32323 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32324 `<multiboot2.h>' instead of `<multiboot.h>'.
32325 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32326 (MULTIBOOT_HEADER_MAGIC): New macros.
32328 * loader/multiboot_loader.c (module_version_status): Remove variable.
32329 (find_multi_boot2_header): Remove function.
32330 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32331 logic. Always check for the Multiboot version we're compiling for.
32332 (grub_cmd_module_loader): Likewise.
32333 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32334 command instead of `multiboot'.
32336 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32338 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32339 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32342 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32343 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32345 Fix breakage introduced with previous commit.
32347 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32349 * normal/handler.c (read_handler_list): Revert part of previous commit
32350 affecting this file.
32351 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32352 (grub_normal_execute): ... here.
32354 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32356 Merge prefix-redefinition-fix branch.
32358 * normal/autofs.c (read_fs_list): Make function capable of being
32359 run multiple times, gracefuly replacing the previous data
32361 * normal/dyncmd.c (read_command_list): Likewise.
32362 * normal/handler.c (read_handler_list): Likewise.
32363 * normal/main.c (read_lists): New function. Calls all the
32364 list reading functions.
32365 (grub_normal_execute): Use read_lists() instead of calling all
32366 list reading functions explicitly. Register read_lists() as a
32367 variable hook attached to ${prefix}.
32369 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32371 Merge crypto branch.
32373 * Makefile.in (pkglib_DATA): Add crypto.lst.
32374 (crypto.lst): New target.
32375 * commands/hashsum.c: New file.
32376 * commands/password.c (check_password): Use grub_crypto_memcmp.
32377 * commands/password_pbkdf2.c: New file.
32378 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32379 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32380 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32381 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32382 -I$(srcdir)/lib/libgcrypt_wrap.
32383 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32384 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32385 password_pbkdf2.mod.
32386 (crypto_mod_SOURCES): New variable.
32387 (crypto_mod_CFLAGS): Likewise.
32388 (crypto_mod_LDFLAGS): Likewise.
32389 (hashsum_mod_SOURCES): New variable.
32390 (hashsum_mod_CFLAGS): Likewise.
32391 (hashsum_mod_LDFLAGS): Likewise.
32392 (pbkdf2_mod_SOURCES): New variable.
32393 (pbkdf2_mod_CFLAGS): Likewise.
32394 (pbkdf2_mod_LDFLAGS): Likewise.
32395 (password_pbkdf2_mod_SOURCES): New variable.
32396 (password_pbkdf2_mod_CFLAGS): Likewise.
32397 (password_pbkdf2_mod_LDFLAGS): Likewise.
32398 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32399 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32400 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32401 Include conf/gcry.rmk.
32402 * include/grub/auth.h: Rewritten.
32403 * include/grub/crypto.h: New file.
32404 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32405 * include/grub/normal.h (read_crypto_list): New prototype.
32406 * lib/crypto.c: New file.
32407 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32408 * lib/pbkdf2.c: Likewise.
32409 * normal/auth.c (grub_auth_strcmp): Removed.
32410 (grub_iswordseparator): Likewise.
32411 (grub_auth_strword): Likewise.
32412 (is_authenticated): Use grub_strword.
32413 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32414 and grub_strword. Pass entered password to authentication callback.
32415 * normal/crypto.c: New file.
32416 * normal/main.c: Call read_crypto_list.
32417 * util/grub-mkpasswd-pbkdf2.c: New file.
32418 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32420 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32422 Fix descent and ascent calculation.
32424 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32425 (options): New option "asce".
32427 (add_char): Ignore invalid glyphs for descent calculation.
32428 Calculate ascent from actual content.
32429 (print_glyphs): Use 'asce'.
32430 (write_font): Likewise. Allow ascent override.
32431 (main): Handle "asce" option.
32433 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32435 * kern/err.c: Include `<grub/i18n.h>'.
32436 (grub_print_error): Add full stop. Gettextizze.
32437 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32438 (grub_bsd_load_elf): Capitalise ELF.
32439 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32440 (grub_cmd_freebsd_module): Likewise.
32441 (grub_cmd_freebsd_module_elf): Likewise.
32442 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32444 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32446 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32447 * commands/search_file.c (HELP_MESSAGE): New macro.
32448 * commands/search_label.c (HELP_MESSAGE): Likewise.
32449 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32450 * po/POTFILES: Add `commands/search_file.c',
32451 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32452 `commands/search.c'.
32454 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32456 * config.rpath: Update from Gnulib.
32458 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32460 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32462 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32464 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32466 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32468 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32469 arguments to fread so that we get a return value in bytes, rather
32470 than something that will normally be rounded down to 0.
32471 Adjust error handling to avoid producing garbage when size_t is not
32472 the same size as long long.
32474 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32476 * util/mkisofs/write.c (padblock_write): Check return value of
32479 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32481 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32484 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32486 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32488 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32489 instead of manual alignment.
32490 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32491 verbose). Avoid attempts to read past end of the device
32492 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32493 but GRUB_DISK_CACHE_SIZE may exceed that).
32495 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32497 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32498 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32501 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32503 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32505 (grub_efi_piwg_device_path): New structure
32506 (grub_efi_piwg_device_path_t): New type.
32507 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32508 (devpath_1): Transform to a structure. All users updated.
32509 (devpath_2): Likewise.
32510 (devpath_3): Likewise.
32511 (devpath_4): Likewise.
32512 (devpath_5): Likewise.
32514 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32516 * loader/efi/appleloader.c: Restored. Update all users.
32518 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32520 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32522 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32523 (struct boot_blocklist): Move from here ...
32524 * include/grub/i386/pc/boot.h [ASM_FILE]
32525 (struct grub_boot_blocklist): ... to here. Update all users.
32526 (setup): Only initialize `start' member of `first_block'
32527 structure. Add assert() calls to verify the other members.
32529 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32530 (generate_image): Fix broken blocklist length initialization.
32531 Add assert() call to verify blocklist `segment' field.
32533 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32535 * loader/efi/appleloader.c: Remove. Update all users.
32537 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32539 * boot/i386/pc/boot.S: Update copyright year.
32540 * boot/i386/pc/cdboot.S: Likewise.
32541 * boot/i386/pc/diskboot.S: Likewise.
32542 * boot/i386/pc/lnxboot.S: Likewise.
32543 * boot/i386/pc/pxeboot.S: Likewise.
32544 * bus/pci.c: Likewise.
32545 * commands/cmp.c: Likewise.
32546 * commands/help.c: Likewise.
32547 * commands/hexdump.c: Likewise.
32548 * commands/i386/pc/halt.c: Likewise.
32549 * commands/i386/pc/play.c: Likewise.
32550 * commands/i386/pc/vbeinfo.c: Likewise.
32551 * commands/ls.c: Likewise.
32552 * commands/test.c: Likewise.
32553 * disk/dmraid_nvidia.c: Likewise.
32554 * disk/i386/pc/biosdisk.c: Likewise.
32555 * disk/ieee1275/nand.c: Likewise.
32556 * disk/ieee1275/ofdisk.c: Likewise.
32557 * disk/lvm.c: Likewise.
32558 * disk/raid.c: Likewise.
32559 * disk/raid6_recover.c: Likewise.
32560 * disk/scsi.c: Likewise.
32561 * fs/affs.c: Likewise.
32562 * fs/cpio.c: Likewise.
32563 * fs/ext2.c: Likewise.
32564 * fs/hfs.c: Likewise.
32565 * fs/iso9660.c: Likewise.
32566 * fs/ntfs.c: Likewise.
32567 * fs/sfs.c: Likewise.
32568 * fs/udf.c: Likewise.
32569 * fs/ufs.c: Likewise.
32570 * fs/xfs.c: Likewise.
32571 * gencmdlist.sh: Likewise.
32572 * genmk.rb: Likewise.
32573 * include/grub/disk.h: Likewise.
32574 * include/grub/efi/api.h: Likewise.
32575 * include/grub/efi/efi.h: Likewise.
32576 * include/grub/efi/pe32.h: Likewise.
32577 * include/grub/elf.h: Likewise.
32578 * include/grub/fs.h: Likewise.
32579 * include/grub/i386/at_keyboard.h: Likewise.
32580 * include/grub/i386/pc/memory.h: Likewise.
32581 * include/grub/i386/pc/vbe.h: Likewise.
32582 * include/grub/i386/pci.h: Likewise.
32583 * include/grub/i386/tsc.h: Likewise.
32584 * include/grub/ieee1275/ieee1275.h: Likewise.
32585 * include/grub/ntfs.h: Likewise.
32586 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32587 * include/grub/sparc64/libgcc.h: Likewise.
32588 * include/grub/symbol.h: Likewise.
32589 * include/grub/types.h: Likewise.
32590 * include/multiboot2.h: Likewise.
32591 * io/gzio.c: Likewise.
32592 * kern/device.c: Likewise.
32593 * kern/disk.c: Likewise.
32594 * kern/efi/efi.c: Likewise.
32595 * kern/efi/mm.c: Likewise.
32596 * kern/elf.c: Likewise.
32597 * kern/file.c: Likewise.
32598 * kern/i386/dl.c: Likewise.
32599 * kern/i386/pc/init.c: Likewise.
32600 * kern/i386/pc/startup.S: Likewise.
32601 * kern/ieee1275/ieee1275.c: Likewise.
32602 * kern/ieee1275/init.c: Likewise.
32603 * kern/main.c: Likewise.
32604 * kern/mm.c: Likewise.
32605 * kern/powerpc/dl.c: Likewise.
32606 * kern/sparc64/dl.c: Likewise.
32607 * kern/x86_64/dl.c: Likewise.
32608 * lib/hexdump.c: Likewise.
32609 * loader/efi/appleloader.c: Likewise.
32610 * loader/i386/ieee1275/linux.c: Likewise.
32611 * loader/i386/pc/chainloader.c: Likewise.
32612 * loader/i386/pc/linux.c: Likewise.
32613 * loader/i386/pc/multiboot2.c: Likewise.
32614 * loader/ieee1275/multiboot2.c: Likewise.
32615 * loader/multiboot2.c: Likewise.
32616 * loader/multiboot_loader.c: Likewise.
32617 * loader/powerpc/ieee1275/linux.c: Likewise.
32618 * normal/completion.c: Likewise.
32619 * normal/menu_entry.c: Likewise.
32620 * partmap/apple.c: Likewise.
32621 * util/grub.d/10_hurd.in: Likewise.
32622 * util/hostfs.c: Likewise.
32623 * video/readers/png.c: Likewise.
32625 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32627 * include/grub/misc.h (GNUC_PREREQ): New macro.
32628 (ATTRIBUTE_ERROR): New macro.
32629 * include/grub/list.h (grub_bad_type_cast_real): Use
32632 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32634 * normal/menu_text.c (print_message): Change messages.
32636 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32638 * normal/menu_entry.c (store_completion): Gettextizze.
32640 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32642 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32644 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32646 * po/POTFILES: Sort correctly.
32648 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32650 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32651 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32652 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32654 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32655 summary. Gettextizze the strings.
32656 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32657 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32658 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32660 (GRUB_MOD_INIT): Remove command name from summary.
32661 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32663 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32664 * term/i386/pc/serial.c (options): Add full stops.
32665 (GRUB_MOD_INIT): Remove command name from the summary.
32667 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32669 * commands/acpi.c: Gettextizze help strings and/or options. Include
32670 `grub/i18n.h' if needed.
32671 * commands/blocklist.c: Likewise.
32672 * commands/boot.c: Likewise.
32673 * commands/cat.c: Likewise.
32674 * commands/cmp.c: Likewise.
32675 * commands/configfile.c: Likewise.
32676 * commands/crc.c: Likewise.
32677 * commands/date.c: Likewise.
32678 * commands/echo.c: Likewise.
32679 * commands/efi/fixvideo.c: Likewise.
32680 * commands/efi/loadbios.c: Likewise.
32681 * commands/gptsync.c: Likewise.
32682 * commands/halt.c: Likewise.
32683 * commands/handler.c: Likewise.
32684 * commands/hdparm.c: Likewise.
32685 * commands/hexdump.c: Likewise.
32686 * commands/i386/cpuid.c: Likewise.
32687 * commands/i386/pc/drivemap.c: Likewise.
32688 * commands/i386/pc/halt.c: Likewise.
32689 * commands/i386/pc/pxecmd.c: Likewise.
32690 * commands/i386/pc/vbeinfo.c: Likewise.
32691 * commands/i386/pc/vbetest.c: Likewise.
32692 * commands/ieee1275/suspend.c: Likewise.
32693 * commands/keystatus.c: Likewise.
32694 * commands/loadenv.c: Likewise.
32695 * commands/ls.c: Likewise.
32696 * commands/lsmmap.c: Likewise.
32697 * commands/lspci.c: Likewise.
32698 * commands/memrw.c: Likewise.
32699 * commands/minicmd.c: Likewise.
32700 * commands/parttool.c: Likewise.
32701 * commands/password.c: Likewise.
32702 * commands/probe.c: Likewise.
32703 * commands/read.c: Likewise.
32704 * commands/reboot.c: Likewise.
32705 * commands/search.c: Likewise.
32706 * commands/sleep.c: Likewise.
32707 * commands/test.c: Likewise.
32708 * commands/true.c: Likewise.
32709 * commands/usbtest.c: Likewise.
32710 * commands/videotest.c: Likewise.
32711 * commands/xnu_uuid.c: Likewise.
32712 * disk/loopback.c: Likewise.
32713 * hello/hello.c: Likewise.
32714 * loader/i386/bsd.c: Likewise.
32715 * term/i386/pc/serial.c: Likewise.
32716 * po/POTFILES: Add new files.
32718 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32720 * term/i386/pc/at_keyboard.c
32721 (keyboard_controller_wait_untill_ready): Rename to ...
32722 (keyboard_controller_wait_until_ready): ... this. Update all users.
32724 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32726 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32727 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32728 string using string width.
32729 * normal/menu_text.c (grub_print_message_indented): Use
32730 grub_print_spaces and not print_spaces.
32731 (print_timeout): Likewise.
32732 (print_spaces): Move to...
32733 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32735 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32737 Import from Gnulib.
32739 * gnulib/getdelim.c: New file.
32740 * gnulib/getline.c: Likewise.
32742 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32744 * include/grub/list.h (grub_assert_fail): Removed.
32745 (grub_bad_type_cast_real): New function.
32746 (grub_bad_type_cast): New macro.
32747 (GRUB_AS_LIST): Use grub_bad_type_cast.
32748 (GRUB_AS_LIST_P): Likewise.
32749 (GRUB_AS_NAMED_LIST): Likewise.
32750 (GRUB_AS_NAMED_LIST_P): Likewise.
32751 (GRUB_AS_PRIO_LIST): Likewise.
32752 (GRUB_AS_PRIO_LIST_P): Likewise.
32753 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32755 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32757 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32760 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32762 * configure.ac: Check for TARGET_CFLAGS initialization before we
32763 initialize it ourselves (sigh).
32764 Move a few modifications to TARGET_CFLAGS to be unconditional
32765 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32768 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32769 * term/i386/pc/at_keyboard.c
32770 (keyboard_controller_wait_untill_ready): Likewise.
32771 (keyboard_controller_led): Rename `led_status' paramter to avoid
32774 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32776 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32779 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32781 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32783 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32785 * normal/menu_text.c (grub_print_message_indented): Prevent
32786 past-the-end-of-array dereference.
32788 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32790 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32791 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32793 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32795 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32796 * normal/main.c (grub_normal_read_line): Remove a space from the
32799 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32801 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32802 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32803 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32804 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32805 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32806 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32807 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32809 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32811 * video/readers/jpeg.c (cmd): Declare.
32812 (grub_cmd_jpegtest): Use `grub_command_t' type.
32813 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32815 (GRUB_MOD_FINI): Use `cmd' to unregister.
32816 * video/readers/png.c (cmd): Declare.
32817 (grub_cmd_pngtest): Use `grub_command_t' type.
32818 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32820 (GRUB_MOD_FINI): Use `cmd' to unregister.
32821 * video/readers/tga.c (cmd): Declare.
32822 (grub_cmd_tgatest): Use `grub_command_t' type.
32823 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32825 (GRUB_MOD_FINI): Use `cmd' to unregister.
32827 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32829 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32831 * kern/corecmd.c (grub_register_core_commands): Likewise.
32832 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32833 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32834 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32835 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32836 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32837 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32838 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32839 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32840 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32841 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32842 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32843 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32844 * normal/handler.c (insert_handler): Likewise.
32845 * normal/main.c (GRUB_MOD_INIT): Likewise.
32846 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32848 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32850 * commands/help.c (grub_cmd_help): Print the command name before the
32852 (GRUB_MOD_INIT): Remove command name from the summary.
32853 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32855 * lib/arg.c (find_long): Print the command name before the summary.
32856 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32858 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32859 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32860 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32861 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32862 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32863 * commands/date.c (GRUB_MOD_INIT): Likewise.
32864 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32865 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32866 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32867 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32868 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32869 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32870 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32871 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32872 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32873 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32874 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32875 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32876 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32877 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32878 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32879 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32880 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32881 * commands/password.c (GRUB_MOD_INIT): Likewise.
32882 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32883 * commands/read.c (GRUB_MOD_INIT): Likewise.
32884 * commands/search.c (GRUB_MOD_INIT): Likewise.
32885 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32886 * commands/test.c (GRUB_MOD_INIT): Likewise.
32887 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32888 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32889 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32890 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32891 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32892 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32893 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32894 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32895 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32896 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32897 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32898 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32899 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32900 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32902 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32904 Use search command for preliminar UUID search.
32906 * commands/search.c: Split into ...
32907 * commands/search_wrap.c: ...this
32908 * commands/search.c: ...and this.
32909 * commands/search_file.c: New file.
32910 * commands/search_label.c: New file.
32911 * commands/search_uuid.c: New file.
32912 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32913 Add commands/search_wrap.c, commands/search_file.c,
32914 commands/search_label.c and commands/search_uuid.c.
32915 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32916 (search_mod_SOURCES): Set to commands/search_wrap.c.
32917 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32919 (search_fs_file_mod_SOURCES): New variable.
32920 (search_fs_file_mod_CFLAGS): Likewise.
32921 (search_fs_file_mod_LDFLAGS): Likewise.
32922 (search_label_mod_SOURCES): Likewise.
32923 (search_label_mod_CFLAGS): Likewise.
32924 (search_label_mod_LDFLAGS): Likewise.
32925 (search_fs_uuid_mod_SOURCES): New variable.
32926 (search_fs_uuid_mod_CFLAGS): Likewise.
32927 (search_fs_uuid_mod_LDFLAGS): Likewise.
32928 (fs_file_mod_SOURCES): Removed.
32929 (fs_file_mod_CFLAGS): Likewise.
32930 (fs_file_mod_LDFLAGS): Likewise.
32931 (fs_uuid_mod_SOURCES): Removed.
32932 (fs_uuid_mod_CFLAGS): Likewise.
32933 (fs_uuid_mod_LDFLAGS): Likewise.
32934 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32935 Set to util/grub-install.in.
32936 * disk/fs_file.c: Removed.
32937 * disk/fs_uuid.c: Likewise.
32938 * include/grub/search.h: New file.
32939 * util/grub-install.in: Handle sparc64.
32940 Create and use load.cfg.
32941 * util/sparc64/ieee1275/grub-install.in: Removed.
32943 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32945 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32946 Ignore return status if CF is cleared.
32947 (grub_biosdisk_get_diskinfo_standard): Likewise.
32949 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32951 * term/i386/pc/at_keyboard.c
32952 (keyboard_controller_wait_untill_ready): New function.
32953 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32954 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32955 for keyboard polling, rather than duplicate the same loop. This
32956 saves a few bytes in code size.
32958 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32960 Support for (pxe[:server[:gateway]]) syntax and
32961 use environment variable for PXE.
32963 * commands/i386/pc/pxecmd.c (options): Removed.
32964 (print_ip): Removed.
32965 (grub_cmd_pxe): Removed
32966 (grub_cmd_pxe_unload): New function.
32967 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32968 (grub_pxe_your_ip): Made static.
32969 (grub_pxe_default_server_ip): Likewise.
32970 (grub_pxe_default_gateway_ip): Likewise.
32971 (grub_pxe_blksize): Likewise.
32972 (parse_ip): New function.
32973 (grub_pxe_open): Support server and gateway specification.
32974 (grub_pxe_close): Free disk->data.
32975 (grub_pxefs_open): Use disk->data.
32976 (grub_pxefs_read): Likewise.
32977 (grub_env_write_readonly): New function.
32978 (set_mac_env): Likewise.
32979 (set_env_limn_ro): Likewise.
32980 (parse_dhcp_vendor): Likewise.
32981 (grub_pxe_detect): Set the environment variables.
32982 (set_ip_env): New function.
32983 (write_ip_env): Likewise.
32984 (grub_env_write_pxe_default_server): Likewise.
32985 (grub_env_write_pxe_default_gateway): Likewise.
32986 (grub_env_write_pxe_blocksize): Likewise.
32987 (GRUB_MOD_INIT(pxe)): Set environment variables.
32988 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32989 (grub_pxe_mac_addr_t): ... this. All users updated.
32990 (grub_pxe_your_ip): Removed.
32991 (grub_pxe_server_ip): Likewise.
32992 (grub_pxe_gateway_ip): Likewise.
32993 (grub_pxe_blksize): Likewise.
32995 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32997 * commands/help.c: Include `<grub/i18n.h>'.
32998 (grub_cmd_help): Gettextizze.
32999 (GRUB_MOD_INIT): Likewise.
33000 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
33001 (GRUB_MOD_INIT): Gettextizze.
33002 * commands/search.c: Include `<grub/i18n.h>'.
33003 (options): Gettextizze.
33004 (GRUB_MOD_INIT): Gettextizze.
33005 * lib/arg.c: Include `<grub/i18n.h>'.
33006 (help_options): Gettextizze.
33007 (find_long): Likewise.
33008 (grub_arg_show_help): Likewise.
33009 * normal/dyncmd.c: Include `<grub/i18n.h>'.
33010 (read_command_list): Gettextizze.
33011 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
33012 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
33014 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
33016 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
33017 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
33018 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
33019 (led_status): New variable.
33020 (keyboard_controller_led): New function.
33021 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
33022 update led status for caps lock, num lock and scroll lock.
33024 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
33026 * util/hostdisk.c (open_device): Fix a comment.
33028 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33030 * util/grub-install.in (host_os): New variable.
33031 * util/i386/efi/grub-install.in (host_os): Likewise.
33033 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33035 * util/mkisofs/write.c (padblock_write): Abort when given an
33036 excedingly large embed image, instead of silently truncating it.
33038 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33040 * include/multiboot.h: Indentation fixes.
33042 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33044 * include/multiboot.h (struct multiboot_aout_symbol_table)
33045 (struct multiboot_elf_section_header_table): New structure
33046 declarations (stolen from GRUB Legacy).
33047 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
33050 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
33051 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
33054 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33056 * include/multiboot.h: Make comments src2texi-friendly.
33058 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33060 For consistency with [multiboot]/docs/boot.S.
33062 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
33063 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
33064 (MULTIBOOT_MAGIC2): Rename from this ...
33065 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
33067 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33069 * include/multiboot.h: Remove `<grub/types.h>'.
33070 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
33071 types. Update all users.
33073 2009-12-25 Carles Pina i Estany <carles@pina.cat>
33075 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
33076 `couldn't' and `can not' by `cannot'.
33077 * commands/i386/pc/drivemap.c: Likewise.
33078 * disk/ata.c: Likewise.
33079 * disk/ieee1275/nand.c: Likewise.
33080 * fs/affs.c: Likewise.
33081 * fs/fat.c: Likewise.
33082 * fs/hfs.c: Likewise.
33083 * fs/hfsplus.c: Likewise.
33084 * fs/iso9660.c: Likewise.
33085 * fs/jfs.c: Likewise.
33086 * fs/minix.c: Likewise.
33087 * fs/reiserfs.c: Likewise.
33088 * fs/sfs.c: Likewise.
33089 * fs/udf.c: Likewise.
33090 * fs/ufs.c: Likewise.
33091 * fs/xfs.c: Likewise.
33092 * loader/powerpc/ieee1275/linux.c: Likewise.
33093 * loader/sparc64/ieee1275/linux.c: Likewise.
33094 * util/grub-probe.c: Likewise.
33095 * util/misc.c: Likewise.
33097 2009-12-24 Carles Pina i Estany <carles@pina.cat>
33099 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
33101 * commands/acpi.c: Likewise.
33102 * commands/blocklist.c: Likewise.
33103 * commands/efi/loadbios.c: Likewise.
33104 * commands/i386/pc/drivemap.c: Likewise.
33105 * commands/loadenv.c: Likewise.
33106 * commands/memrw.c: Likewise.
33107 * commands/password.c: Likewise.
33108 * commands/videotest.c: Likewise.
33109 * disk/ata.c: Likewise.
33110 * disk/ata_pthru.c: Likewise.
33111 * disk/dmraid_nvidia.c: Likewise.
33112 * disk/ieee1275/nand.c: Likewise.
33113 * disk/ieee1275/ofdisk.c: Likewise.
33114 * disk/loopback.c: Likewise.
33115 * disk/lvm.c: Likewise.
33116 * disk/mdraid_linux.c: Likewise.
33117 * disk/raid.c: Likewise.
33118 * disk/raid6_recover.c: Likewise.
33119 * disk/scsi.c: Likewise.
33120 * efiemu/main.c: Likewise.
33121 * efiemu/mm.c: Likewise.
33122 * efiemu/pnvram.c: Likewise.
33123 * efiemu/symbols.c: Likewise.
33124 * font/font.c: Likewise.
33125 * fs/cpio.c: Likewise.
33126 * fs/hfsplus.c: Likewise.
33127 * fs/iso9660.c: Likewise.
33128 * fs/jfs.c: Likewise.
33129 * fs/minix.c: Likewise.
33130 * fs/ntfs.c: Likewise.
33131 * fs/ntfscomp.c: Likewise.
33132 * fs/reiserfs.c: Likewise.
33133 * fs/ufs.c: Likewise.
33134 * fs/xfs.c: Likewise.
33135 * gettext/gettext.c: Likewise.
33136 * include/grub/auth.h: Likewise.
33137 * kern/elf.c: Likewise.
33138 * kern/file.c: Likewise.
33139 * kern/ieee1275/init.c: Likewise.
33140 * kern/ieee1275/mmap.c: Likewise.
33141 * kern/ieee1275/openfw.c: Likewise.
33142 * kern/powerpc/dl.c: Likewise.
33143 * kern/sparc64/dl.c: Likewise.
33144 * lib/arg.c: Likewise.
33145 * loader/i386/bsd.c: Likewise.
33146 * loader/i386/bsdXX.c: Likewise.
33147 * loader/i386/efi/linux.c: Likewise.
33148 * loader/i386/efi/xnu.c: Likewise.
33149 * loader/i386/ieee1275/linux.c: Likewise.
33150 * loader/i386/linux.c: Likewise.
33151 * loader/i386/multiboot.c: Likewise.
33152 * loader/i386/pc/linux.c: Likewise.
33153 * loader/i386/pc/multiboot2.c: Likewise.
33154 * loader/i386/xnu.c: Likewise.
33155 * loader/ieee1275/multiboot2.c: Likewise.
33156 * loader/macho.c: Likewise.
33157 * loader/machoXX.c: Likewise.
33158 * loader/multiboot2.c: Likewise.
33159 * loader/multiboot_loader.c: Likewise.
33160 * loader/powerpc/ieee1275/linux.c: Likewise.
33161 * loader/sparc64/ieee1275/linux.c: Likewise.
33162 * loader/xnu.c: Likewise.
33163 * loader/xnu_resume.c: Likewise.
33164 * mmap/i386/pc/mmap.c: Likewise.
33165 * normal/menu_viewer.c: Likewise.
33166 * partmap/acorn.c: Likewise.
33167 * partmap/amiga.c: Likewise.
33168 * partmap/apple.c: Likewise.
33169 * script/lexer.c: Likewise.
33170 * term/gfxterm.c: Likewise.
33171 * term/i386/pc/serial.c: Likewise.
33172 * term/i386/pc/vga.c: Likewise.
33173 * term/ieee1275/ofconsole.c: Likewise.
33174 * term/terminfo.c: Likewise.
33175 * video/bitmap.c: Likewise.
33176 * video/efi_gop.c: Likewise.
33177 * video/efi_uga.c: Likewise.
33178 * video/fb/video_fb.c: Likewise.
33179 * video/i386/pc/vbe.c: Likewise.
33180 * video/readers/tga.c: Likewise.
33181 * video/video.c: Likewise.
33183 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
33185 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33186 * commands/lspci.c: Likewise.
33187 * commands/probe.c: Likewise.
33188 * commands/xnu_uuid.c: Likewise.
33189 * conf/i386-coreboot.rmk: Likewise.
33190 * conf/i386-efi.rmk: Likewise.
33191 * conf/i386-ieee1275.rmk: Likewise.
33192 * conf/i386-pc.rmk: Likewise.
33193 * conf/powerpc-ieee1275.rmk: Likewise.
33194 * conf/sparc64-ieee1275.rmk: Likewise.
33195 * conf/x86_64-efi.rmk: Likewise.
33196 * fs/i386/pc/pxe.c: Likewise.
33197 * gettext/gettext.c: Likewise.
33198 * include/grub/efi/graphics_output.h: Likewise.
33199 * include/grub/i386/pc/memory.h: Likewise.
33200 * kern/env.c: Likewise.
33201 * kern/i386/qemu/startup.S: Likewise.
33202 * lib/i386/pc/biosnum.c: Likewise.
33203 * lib/i386/relocator.c: Likewise.
33204 * lib/i386/relocator_asm.S: Likewise.
33205 * lib/relocator.c: Likewise.
33206 * loader/i386/bsd.c: Likewise.
33207 * loader/i386/multiboot.c: Likewise.
33208 * loader/i386/pc/chainloader.c: Likewise.
33209 * loader/i386/xnu.c: Likewise.
33210 * loader/xnu.c: Likewise.
33211 * normal/main.c: Likewise.
33212 * normal/menu_text.c: Likewise.
33213 * util/getroot.c: Likewise.
33214 * util/grub-mkconfig_lib.in: Likewise.
33215 * util/grub.d/00_header.in: Likewise.
33216 * util/i386/pc/grub-mkimage.c: Likewise.
33217 * util/mkisofs/eltorito.c: Likewise.
33218 * util/mkisofs/exclude.h: Likewise.
33219 * util/mkisofs/hash.c: Likewise.
33220 * util/mkisofs/iso9660.h: Likewise.
33221 * util/mkisofs/joliet.c: Likewise.
33222 * util/mkisofs/mkisofs.c: Likewise.
33223 * util/mkisofs/mkisofs.h: Likewise.
33224 * util/mkisofs/multi.c: Likewise.
33225 * util/mkisofs/name.c: Likewise.
33226 * util/mkisofs/rock.c: Likewise.
33227 * util/mkisofs/tree.c: Likewise.
33228 * util/mkisofs/write.c: Likewise.
33229 * video/efi_gop.c: Likewise.
33231 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33233 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33236 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33238 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33239 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33241 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33243 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33244 (GRUB_MOD_INIT(memrw)): Update help line.
33246 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33248 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33249 Use grub_extcmd_t. All users updated.
33250 (options): New variable.
33251 (grub_cmd_read): Restructure for readability. Support "-v" option.
33252 (grub_cmd_write): Restructure for readability.
33254 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33256 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33258 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33260 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33261 with the actual contents of the correspondending make variable.
33262 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33263 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33264 specifying `*.lst' and `efiemu??.o'
33266 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33268 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33269 after function name.
33270 Noticed by Rene Engelhard <rene@debian.org>.
33272 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33274 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33275 (options): New variable.
33276 (iospace): Likewise.
33277 (grub_lspci_iter): List IO spaces if "-i" was given.
33278 (grub_cmd_lspci): Parse options.
33279 (GRUB_MOD_INIT(lspci)): Use extcmd.
33280 (GRUB_MOD_FINI(lspci)): Likewise.
33282 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33284 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33285 `function' keyword.
33286 Patch by Tony Mancill <tmancill@debian.org>.
33288 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33290 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33291 (grub_uhci_portstatus): Likewise.
33292 (grub_uhci_portstatus): Add necessary delay.
33293 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33295 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33297 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33298 (GRUB_MOD_INIT): Likewise.
33299 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33300 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33301 * commands/echo.c (options): Fix capitalizations and/or full stops.
33302 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33303 (enable_rom_area): Likewise.
33304 (GRUB_MOD_INIT): Likewise.
33305 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33306 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33307 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33308 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33309 * commands/hexdump.c (options): Likewise.
33310 * commands/i386/cpuid.c (options): Likewise.
33311 (GRUB_MOD_INIT): Likewise.
33312 * commands/i386/pc/drivemap.c (options): Likewise.
33313 (GRUB_MOD_INIT): Likewise.
33314 * commands/i386/pc/halt (options): Likewise.
33315 (GRUB_MOD_INIT): Likewise.
33316 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33317 * commands/i386/pc/pxecmd.c (options): Likewise.
33318 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33319 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33320 * commands/keystatus.c (options): Likewise.
33321 (GRUB_MOD_INIT): Likewise.
33322 * commands/loadenv.c (options): Likewise.
33323 * commands/ls.c (options): Likewise.
33324 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33325 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33326 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33327 * commands/parttool.c (helpmsg): Likewise.
33328 * commands/probe.c (options): Likewise.
33329 * commands/read.c (GRUB_MOD_INIT): Likewise.
33330 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33331 * commands/search.c (options): Likewise.
33332 * commands/sleep.c (options): Likewise.
33333 * commands/test.c (GRUB_MOD_INIT): Likewise.
33334 * commands/true.c (GRUB_MOD_INIT): Likewise.
33335 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33336 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33337 * lib/arg.c (help_options): Likewise.
33338 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33340 * po/POTFILES: Add `commands/loadenv.c'.
33342 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33344 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33345 instead of specifying them explicit.
33347 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33349 * NEWS: Add grub-probe support for GNU/Hurd.
33351 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33353 * NEWS: gettext was added after 1.97.
33355 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33357 * util/mkisofs/msdos_partition.h: New file (based on
33358 include/grub/msdos_partition.h).
33359 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33360 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33361 (ld_options, main): Recognize --protective-msdos-label.
33362 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33363 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33364 (padblock_write): If `use_protective_msdos_label' is set, patch a
33365 protective DOS-style label in the output image.
33367 * util/grub-mkrescue.in: Use --protective-msdos-label.
33369 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33371 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33374 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33376 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33378 (ld_options, main): Recognize `--embedded-boot'.
33379 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33381 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33382 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33383 (padblock_write): Likewise. Rewrite to support embedded boot image.
33385 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33386 for BIOS-based disk boot instead of only ElTorito.
33388 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33390 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33391 build (not needed for bootstrap).
33393 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33395 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33396 from i386-pc build (not needed for bootstrap).
33397 Rewrite a pair of strings.
33399 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33401 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33403 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33405 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33407 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33409 * kern/env.c (grub_env_context_open): Mark exported variable for
33412 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33414 * kern/env.c (grub_env_export): Create nonexistent variables before
33417 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33419 * include/grub/auth.h: Include `<grub/i18n.h>'.
33420 (GRUB_GET_PASSWORD): Gettextizze string.
33421 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33423 (grub_utf8_to_ucs4_alloc): Fix indentation.
33424 (grub_print_ucs4): Likewise.
33425 (grub_getstringwidth): Likewise.
33426 (print_message_indented): New declaration.
33427 * normal/auth.c: Include `<grub/i18n.h>'.
33428 (grub_auth_check_authentication): Gettexttize string.
33429 * normal/cmdline.c: Include `<grub/i18n.h>'.
33430 (grub_cmdline_get): Gettextizze.
33431 * normal/color.c: Include `<grub/i18n.h>'.
33432 (grub_parse_color_name_pair): Gettexttize strings.
33433 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33434 string (use `print_message_indented').
33435 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33436 `include/grub/normal.h'.
33437 (print_message_indented): Renamed to ...
33438 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33439 used in normal/main.c).
33440 (print_message): Use `grub_print_message_indented' instead of
33441 `print_message_indented'.
33442 (print_timeout): Likewise.
33443 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33444 (grub_normal_print_device_info): Gettexttize strings.
33445 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33447 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33449 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33450 of arguments. Return number of tokens and not arguments. All users
33453 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33455 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33456 non-MSDOS paritions.
33458 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33460 * include/grub/types.h (UNUSED): Removed since it conflicts with
33461 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33462 Reported by Grégoire Sutre.
33464 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33466 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33467 (grub_print_ucs4_alloc): Likewise.
33468 (grub_getstringwidth): Likewise.
33469 * normal/main.c (grub_normal_init_page): Gettextize version string.
33470 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33471 (getstringwidth): Renamed to ...
33472 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33473 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33474 (grub_print_ucs4): Remove `static' qualifer (now used in
33476 * po/POTFILES: Add normal/main.c.
33478 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33480 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33481 (print_message_indented): Add `margin_left' and `margin_right'
33483 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33485 (print_timeout): Use `print_message_indented' to print the message.
33486 Deletes `second_stage' parameter.
33487 (run_menu): Update `print_timeout' calls.
33489 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33491 Fix console palette on OpenFirmware.
33493 * term/ieee1275/ofconsole.c (MAX): Removed.
33494 (colors): Redone based on VGA palette.
33495 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33496 colors are supported.
33497 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33499 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33501 Fix potential EfiEmu double prepare.
33503 * efiemu/main.c (prepared): New variable
33504 (grub_efiemu_unload): Set prepare to '0'.
33505 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33507 set_virtual_address_map support.
33509 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33511 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33513 (grub_efiemu_crc32): Likewise.
33514 (grub_efiemu_crc64): Likewise.
33515 (grub_efiemu_set_virtual_address_map): Likewise.
33516 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33518 (grub_autoefi_set_virtual_address_map): Likewise.
33519 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33520 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33521 Restructure flow to accomodate it.
33522 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33523 (grub_efiemu_crc): Recompute CRC32.
33524 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33525 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33526 * efiemu/symbols.c (relocated_handle): New variable.
33527 (grub_efiemu_free_syms): Free relocated_handle.
33528 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33529 (grub_efiemu_write_sym_markers): New function.
33530 (grub_efiemu_set_virtual_address_map): Likewise.
33532 Newer XNU parameters.
33534 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33535 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33536 (grub_xnu_fill_devicetree): New prototype.
33537 (grub_xnu_heap_real_start): New variable.
33538 * loader/xnu.c (get_name_ptr): New function.
33539 (grub_xnu_load_driver): Fill namelen and name.
33541 64-bit xnu support.
33543 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33544 and 'loader/macho64.c'.
33545 * conf/i386-pc.rmk: Likewise.
33546 * conf/x86_64-efi.rmk: Likewise.
33547 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33548 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33549 * include/grub/macho.h (grub_macho_segment64): New structure.
33550 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33551 (grub_macho_size32): ... to this.
33552 (grub_macho32_get_entry_point): Renamed from ...
33553 (grub_macho_get_entry_point32): ... to this.
33554 (grub_macho_contains_macho64): New prototype.
33555 (grub_macho_size64): Likewise.
33556 (grub_macho_get_entry_point64): Likewise.
33557 (grub_macho32_load): Renamed from ...
33558 (grub_macho_load32): ... to this.
33559 (grub_macho32_filesize): Renamed from ...
33560 (grub_macho_filesize32): ... to this.
33561 (grub_macho32_readfile): Renamed from ...
33562 (grub_macho_readfile32): ... to this.
33563 (grub_macho_filesize64): New prototype.
33564 (grub_macho_readfile64): Likewise.
33565 (grub_macho_parse32): Likewise.
33566 (grub_macho_parse64): Likewise.
33567 * loader/macho.c: Split into ...
33568 * loader/machoXX.c: ... and this. Replace 32 with XX.
33569 * loader/macho32.c: New file.
33570 * loader/macho64.c: Likewise.
33571 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33572 (grub_cmd_xnu_kernel): Make 32-bit only.
33573 (grub_cmd_xnu_kernel64): New function.
33574 (grub_xnu_load_driver): Support Mach-O 64.
33575 (grub_cmd_xnu_mkext): Likewise.
33576 * util/grub.d/30_os-prober.in (osx_entry): New function.
33577 Generate entries for 64-bit boot too.
33579 Eliminate ad-hoc tree format in XNU and EfiEmu.
33581 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33582 * efiemu/pnvram.c: Rewritten to use environment variables.
33585 Inline utf16_to_utf8.
33587 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33588 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33590 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33592 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33593 * commands/usbtest.c (grub_usb_get_string): ... move here.
33594 (usb_print_str): Fix error handling.
33595 * include/grub/usb.h (grub_usb_get_string): Remove.
33597 UTF-8 to UTF-16 transformation.
33599 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33600 (charset_mod_SOURCES): New variable.
33601 (charset_mod_CFLAGS): Likewise.
33602 (charset_mod_LDFLAGS): Likewise.
33603 * include/grub/utf.h: New file.
33604 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33606 Support for device properties.
33608 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33609 (grub_xnu_devprop_device_header): Likewise.
33610 (grub_xnu_devprop_device_descriptor): Likewise.
33611 (grub_xnu_devprop_add_device): New prototype.
33612 (grub_xnu_devprop_remove_device): Likewise.
33613 (grub_xnu_devprop_remove_property): Likewise.
33614 (grub_xnu_devprop_add_property_utf8): Likewise.
33615 (grub_xnu_devprop_add_property_utf16): Likewise.
33616 (grub_cpu_xnu_init): Likewise.
33617 (grub_cpu_xnu_fini): Likewise.
33618 (grub_cpu_xnu_unload): Likewise.
33619 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33620 (property_descriptor): Likewise.
33621 (devices): New variable.
33622 (grub_xnu_devprop_remove_property): New function.
33623 (grub_xnu_devprop_add_device): Likewise.
33624 (grub_xnu_devprop_remove_device): Likewise.
33625 (grub_xnu_devprop_add_property): Likewise.
33626 (grub_xnu_devprop_add_property_utf8): Likewise.
33627 (grub_xnu_devprop_add_property_utf16): Likewise.
33628 (hextoval): Likewise.
33629 (grub_cpu_xnu_fill_devprop): Likewise.
33630 (grub_cmd_devprop_load): Likewise.
33631 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33632 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33633 (cmd_devprop_load): New variable.
33634 (grub_cpu_xnu_init): New function.
33635 (grub_cpu_xnu_fini): Likewise.
33636 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33637 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33638 (grub_cmd_xnu_devtree): Likewise.
33639 (hextoval): New function.
33640 (unescape): Likewise.
33641 (grub_xnu_fill_devicetree): Likewise.
33643 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33644 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33646 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33648 Workaround for broken ATI VBE.
33650 * video/i386/pc/vbe.c (last_set_mode): New variable.
33651 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33652 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33653 (grub_video_vbe_setup): Don't check for reserved flag.
33655 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33657 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33658 the `find' command.
33660 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33662 UUID support for HFS.
33664 * fs/hfs.c (grub_hfs_uuid): New function.
33665 (grub_hfs_fs): New value .uuid.
33666 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33668 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33670 Fix a segfault with parsing unknown long options.
33672 * util/grub-mkrelpath.c (options): Zero terminate it.
33674 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33676 * include/grub/misc.h (grub_puts): New declaration.
33677 (grub_puts_): Likewise.
33678 * kern/misc.c (grub_puts): New definition.
33679 (grub_puts_): Likewise.
33681 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33683 * util/grub-probe.c (probe): Improve error message.
33685 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33687 * loader/i386/multiboot_elfxx.c
33688 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33691 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33693 Relocator framework
33695 * loader/i386/xnu_helper.S: Removed. All users updated.
33696 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33697 (relocator_mod_SOURCES): New variable.
33698 (relocator_mod_CFLAGS): Likewise.
33699 (relocator_mod_LDFLAGS): Likewise.
33700 (relocator_mod_ASFLAGS): Likewise.
33701 * conf/x86_64.rmk: Likewise.
33702 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33703 (grub_multiboot_payload_entry_offset): Likewise.
33704 (grub_multiboot_forward_relocator): Likewise.
33705 (grub_multiboot_forward_relocator_end): Likewise.
33706 (grub_multiboot_backward_relocator): Likewise.
33707 (grub_multiboot_backward_relocator_end): Likewise.
33708 (grub_multiboot_payload_eip): New variable.
33709 (grub_multiboot_payload_orig): Likewise.
33710 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33711 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33712 * include/grub/i386/memory.h
33713 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33714 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33715 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33716 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33717 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33718 * include/grub/i386/relocator.h: New file.
33719 * include/grub/x86_64/relocator.h: Likewise.
33720 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33721 (XNU_RELOCATOR): New macro.
33722 (grub_xnu_launcher_start): Remove.
33723 (grub_xnu_launcher_end): Likewise.
33724 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33725 (grub_xnu_heap_real_start): Remove.
33726 (grub_xnu_heap_start): Change to void *. All users updated.
33727 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33728 * lib/i386/relocator.c: New file.
33729 * lib/i386/relocator_asm.S: Likewise.
33730 * lib/i386/relocator_backward.S: Likewise.
33731 * lib/mips/relocator.c: Likewise.
33732 * lib/mips/relocator_asm.S: Likewise.
33733 * lib/relocator.c: Likewise.
33734 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33736 (playground): Likewise.
33737 (grub_multiboot_payload_orig): New variable.
33738 (grub_multiboot_payload_dest): Likewise.
33739 (grub_multiboot_payload_size): Likewise.
33740 (grub_multiboot_payload_eip): Likewise.
33741 (grub_multiboot_payload_esp): Likewise.
33742 (grub_multiboot_boot): Use grub_relocator32_boot.
33743 (grub_multiboot_unload): Free relocators.
33744 (grub_multiboot): Setup stack. Use relocators.
33745 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33746 (grub_multiboot_load_elfXX): Use relocators.
33747 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33748 (grub_multiboot_payload_size): Likewise.
33749 (grub_multiboot_payload_dest): Likewise.
33750 (grub_multiboot_payload_entry_offset): Likewise.
33751 (grub_multiboot_forward_relocator): Likewise.
33752 (grub_multiboot_backward_relocator): Likewise.
33753 (grub_multiboot_real_boot): Likewise.
33754 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33755 (grub_xnu_entry_point): Likewise.
33756 (grub_xnu_arg1): Likewise.
33757 (grub_xnu_stack): Likewise.
33758 (grub_xnu_launch): Removed.
33759 (grub_xnu_boot_resume): New function.
33760 (grub_xnu_boot): Use relocators.
33761 * loader/i386/xnu_helper.S: Removed.
33762 * loader/xnu.c (grub_xnu_heap_start): New variable.
33763 (grub_xnu_heap_size): Likewise.
33764 (grub_xnu_heap_malloc): Use relocators.
33765 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33767 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33769 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33772 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33774 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33775 GRUB_ERR_NONE before calling grub_env_set.
33777 2009-12-12 Robert Millan <rmh@aybabtu.com>
33779 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33780 * genmk.rb (video): New variable.
33781 (CLEANFILES, VIDEOFILES): Add #{video}.
33782 (#{video}): New target rule.
33783 * genvideolist.sh: New file.
33784 * Makefile.in (pkglib_DATA): Add video.lst.
33785 (video.lst): New target rule.
33786 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33788 * util/grub.d/30_os-prober.in: Replace `vbe' with
33789 ${GRUB_VIDEO_BACKEND}.
33791 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33793 * THANKS: Add David Miller.
33795 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33797 libpciaccess support.
33799 * Makefile.in (LIBPCIACCESS): New variable.
33800 (enable_grub_emu_pci): Likewise.
33801 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33802 util/pci.c and commands/lspci.c.
33803 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33804 * configure.ac (grub-emu-pci): New option.
33805 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33806 (grub_pci_device_unmap_range): Likewise.
33807 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33808 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33809 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33810 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33811 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33812 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33813 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33814 * include/grub/pciutils.h: New file.
33815 * util/pci.c: Likewise.
33817 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33819 * util/misc.c: Don't include <errno.h> twice.
33821 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33823 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33824 name in an error message.
33825 (grub_biosdisk_rw): Likewise.
33827 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33829 Eliminate NTFS 4Gib barrier.
33831 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33832 (read_run_data): Likewise.
33833 (grub_ntfs_read_run_list): Likewise.
33834 (grub_ntfs_read_block): Likewise.
33835 (grub_ntfs_iterate_dir): Likewise.
33836 (read_mft): Likewise.
33837 (read_data): Likewise.
33839 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33840 to avoid 64-bit division
33841 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33842 (grub_ntfs_rlst): Use grub_disk_addr_t.
33844 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33846 Eliminate grub-fstest 4Gib barrier.
33848 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33849 (read_file): Fix error reporting.
33851 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33853 Eliminate hexdump 4Gib barrier.
33855 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33856 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33858 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33860 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33863 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33865 Remove miscellaneous files in distclean target.
33867 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33869 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33871 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33872 if they're already set. This resolves the conflict between my
33873 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33874 fixing the --grub-probe option again.
33875 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33876 change on 2009-10-06, so that we now once again source
33877 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33879 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33881 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33882 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33883 `util/devicemap.c'.
33885 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33887 * include/grub/misc.h (grub_printf_): New declaration.
33888 * kern/misc.c (grub_printf_): New definition.
33889 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33890 instead of `grub_printf' and `_'.
33891 * normal/menu_entry.c (store_completion): Likewise.
33893 (grub_menu_entry_run): Likewise.
33894 * normal/menu_text.c (grub_wait_after_message): Likewise.
33895 (notify_booting): Likewise.
33896 (notify_fallback): Likewise.
33897 (notify_execution_failure): Likewise.
33899 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33901 * configure.ac: Check for vasprintf.
33902 * util/misc.c (asprintf): Move allocation from here ...
33903 (vasprintf): ... to here. New function.
33904 (xasprintf): New function.
33905 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33907 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33908 * util/grub-mkfont.c (write_font): Likewise.
33909 * util/grub-probe.c (probe): Likewise.
33910 * util/hostdisk.c (make_device_name): Likewise.
33912 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33914 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33915 anything even prefixed with 'cdrom' as a cdrom.
33917 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33919 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33922 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33924 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33925 grub_gettext_msg_list.
33926 (grub_gettext_gettranslation_from_position): Return const char *
33928 (grub_gettext_translate): Add the translated strings into a list,
33929 returns from the list if existing there.
33930 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33931 (grub_gettext_delete_list): Delete the list.
33932 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33933 lang environment variable is changed.
33934 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33936 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33938 Rename kernel.mod to kernel.img.
33940 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33941 (kernel_mod_EXPORTS): Rename to ...
33942 (kernel_img_EXPORTS): ... this.
33943 (kernel_mod_SOURCES): Rename to ...
33944 (kernel_img_SOURCES): ... this.
33945 (kernel_mod_HEADERS): Rename to ...
33946 (kernel_img_HEADERS): ... this. All users updated.
33947 (kernel_mod_CFLAGS): Rename to ...
33948 (kernel_img_CFLAGS): ... this.
33949 (kernel_mod_ASFLAGS): Rename to ...
33950 (kernel_img_ASFLAGS): ... this.
33951 (kernel_mod_LDFLAGS): Rename to ...
33952 (kernel_img_LDFLAGS): ... this.
33953 * conf/x86_64-efi.rmk: Likewise.
33954 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33955 (read_kernel_image): ... this. All users updated.
33956 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33958 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33960 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33961 (print_spaces): New function.
33962 (grub_print_ucs4): New function.
33963 (getstringwidth): New function.
33964 (print_message_indented): New function.
33965 (print_message): Gettexttize strings using print_message_indented.
33966 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33968 (get_entry_number): Gettextize and uses dynamic terminal width.
33969 (notify_booting, notify_fallback, notify_execution_failure):
33971 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33974 (grub_menu_entry_run): Likewise.
33975 * PO/POTFILES: Add normal/menu_entry.c.
33977 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33979 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33981 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33983 * util/grub-install.in: Install gettext .mo files.
33984 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33986 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33988 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33991 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33993 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33994 non-firmware-dependant one in realmode.S takes precedence.
33996 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33998 * commands/halt.c: Replace misc arch-specific headers with
34000 * commands/reboot.c: Likewise.
34001 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
34003 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
34004 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
34005 (kernel_img_SOURCES): ... to here.
34007 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
34008 * include/grub/i386/pc/init.h: Likewise.
34009 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
34010 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
34012 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
34014 * include/grub/i386/halt.h: Remove.
34015 * include/grub/i386/reboot.h: Likewise.
34017 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
34019 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
34021 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
34022 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
34023 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
34025 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34026 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34027 (usage): Add missing comma in printf.
34029 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
34031 Use the same reboot approach on i386 coreboot and qemu as we do on
34034 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
34035 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
34036 * kern/i386/reboot.c: Remove.
34037 * include/grub/i386/reboot.h (grub_reboot): Export function.
34038 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
34039 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
34040 0xf000:0xfff0 instead of 0xffff:0x0000.
34041 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
34042 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
34044 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
34046 Fix $srcdir != $objdir build.
34048 * Makefile.in (po/%.po): Rewrite as ...
34049 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
34051 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
34053 Fix GNU/Hurd grub-install crash.
34054 * util/grub-probe.c (probe): Try to access `path' only when it is not
34057 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34059 Correct module naming.
34061 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
34062 (GRUB_MOD_INIT(efi_uga)): ... to this
34063 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
34064 (GRUB_MOD_FINI(efi_uga)): ... to this
34065 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
34066 (GRUB_MOD_INIT(efi_gop)): ... to this
34067 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
34068 (GRUB_MOD_FINI(efi_gop)): ... to this
34070 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
34072 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
34074 (usage): Translate `arg' strings using gettext().
34075 Thanks to Jordi Mallach for the suggestion.
34077 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34079 GOP support. Based on patch from Bean
34080 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34082 * video/efi_gop.c: New file.
34083 * include/grub/efi/graphics_output.h: Likewise.
34084 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
34085 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34087 * conf/x86_64-efi.rmk: Likewise.
34089 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34091 Rename efi_fb to efi_uga.
34093 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34095 (efi_fb_mod_SOURCES): Rename this ...
34096 (efi_uga_mod_SOURCES): ... to this.
34097 (efi_fb_mod_CFLAGS): Rename this ...
34098 (efi_uga_mod_CFLAGS): ... to this.
34099 (efi_fb_mod_LDFLAGS): Rename this ...
34100 (efi_uga_mod_LDFLAGS): ... to this.
34101 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34103 (efi_fb_mod_SOURCES): Rename this ...
34104 (efi_uga_mod_SOURCES): ... to this.
34105 (efi_fb_mod_CFLAGS): Rename this ...
34106 (efi_uga_mod_CFLAGS): ... to this.
34107 (efi_fb_mod_LDFLAGS): Rename this ...
34108 (efi_uga_mod_LDFLAGS): ... to this.
34109 * video/efi_fb.c: Move this ...
34110 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
34112 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34114 * po/README: New file. Explain our PO file workflow.
34116 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34118 * po/ChangeLog: Remove. Move relevant entries back to ...
34119 * ChangeLog: ... here.
34120 * po/ca.po: Remove (now handled by TLP).
34121 * po/id.po: Likewise.
34122 * po/zh_CN.po: Likewise.
34123 * Makefile.in (LINGUAS): Initialize in a way that supports
34126 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34128 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
34129 reliing on po/LINGUAS.
34130 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
34131 (po/%.po): ... this.
34133 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34135 * util/i386/efi/grub-mkimage.c: Include "progname.h".
34136 (main): Use `program_name' instead of nonexistent `progname'.
34138 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34140 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34141 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
34143 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34145 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
34147 * conf/i386-efi.rmk: Likewise.
34148 * conf/i386-ieee1275.rmk: Likewise.
34149 * conf/powerpc-ieee1275.rmk: Likewise.
34150 * conf/sparc64-ieee1275.rmk: Likewise.
34151 * conf/x86_64-efi.rmk: Likewise.
34153 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34155 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
34157 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34159 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
34161 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34163 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
34164 (grub_mkdevicemap_SOURCES): New variable.
34165 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
34166 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
34167 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
34168 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
34169 (grub_mkdevicemap_SOURCES): Remove.
34170 * conf/i386-efi.rmk: Likewise.
34171 * conf/i386-ieee1275.rmk: Likewise.
34172 * conf/i386-pc.rmk: Likewise.
34173 * conf/powerpc-ieee1275.rmk: Likewise.
34174 * conf/sparc64-ieee1275.rmk: Likewise.
34175 * conf/x86_64-efi.rmk: Likewise.
34176 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
34177 (usage): Fix strings to use `program_name'.
34178 (main): Initialize gettext.
34179 * util/grub-editenv.c: Likewise.
34180 * util/grub-emu.c: Likewise.
34181 * util/grub-fstest.c: Likewise.
34182 * util/grub-mkdevicemap.c: Likewise.
34183 * util/grub-mkfont.c: Likewise.
34184 * util/grub-mkrelpath.c: Likewise.
34185 * util/grub-pe2elf.c: Likewise.
34186 * util/grub-probe.c: Likewise.
34187 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34188 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34189 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34191 * util/misc.c: Include `"progname.h"'.
34192 (progname): Remove variable.
34193 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34195 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34197 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34198 printf and print a newline after the menuentry header line.
34199 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34201 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34203 autoconf >= 2.60 support $(localedir).
34205 * INSTALL: Note that autoconf 2.60 is required.
34206 * configure.ac (AC_PREREQ): Bump to 2.60.
34207 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34208 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34210 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34212 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34215 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34217 * normal/main.c (grub_normal_read_line): Fix off-by-one
34220 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34222 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34223 "parser.grub" in grub_command_execute() call.
34225 2009-11-24 Carles Pina i Estany <carles@pina.cat>
34227 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34228 * conf/i386-efi.rmk: Likewise.
34229 * conf/i386-ieee1275.rmk: Likewise.
34230 * conf/i386-pc.rmk: Likewise.
34231 * conf/powerpc-ieee1275.rmk: Likewise.
34232 * conf/sparc64-ieee1275.rmk: Likewise.
34233 * conf/x86_64-efi.rmk: Likewise.
34234 * gettext/gettex.c: Include <grub/i18n.h>.
34235 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34237 * include/grub/i18n.h: ... to here
34238 * include/grub/i18n.h: ... to here.
34239 * kern/misc.c: Include <grub/i18n.h>
34240 (grub_gettext_dummy): Move above user.
34242 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34244 * util/Makefile.in (install-local): Convert a `for' into a normal
34247 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34249 * autogen.sh: Add automake call.
34250 * config.guess: Remove.
34251 * config.sub: Likewise.
34252 * install-sh: Likewise.
34254 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34256 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34258 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34260 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34261 function to a normal shell `for'.
34263 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34265 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34267 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34269 * util/grub-mkrelpath.c: New file.
34270 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34271 (grub_mkrelpath_SOURCES): New variable.
34272 * include/grub/util/misc.h: New function prototype.
34273 * util/misc.c (make_system_path_relative_to_its_root): New function.
34275 * util/grub-mkconfig_lib.in (bindir): New variable.
34276 (grub_mkrelpath): Likewise.
34277 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34279 * util/probe.c (probe): Make the file path relative to its root.
34280 Change a info message to use the GRUB path. Enable again the
34281 check if we can read the file with GRUB facilities.
34283 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34286 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34288 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34291 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34293 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34296 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34298 * util/getroot.c (grub_util_is_dmraid): New function.
34299 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34300 devices as normal ones, not as LVM.
34302 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34304 * conf/common.rmk: Add grub-gettext_lib target and updates
34305 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34307 * gettext/gettext.c: New file. (Reads mo files).
34308 * include/grub/file.h (grub_file_pread): New prototype.
34309 * include/grub/i18n.h (_): New prototype.
34310 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34312 * kern/misc.c (grub_gettext_dummy): New function.
34313 * normal/menu_text.c: Include <grub/i18n.h>.
34314 * normal/menu_text.c (print_timeout): Gettexttize string.
34315 * normal/menu_text.c (print_message): Gettexttize string.
34316 * po/POTFILES: Add `normal/menu_text.c'.
34317 * po/ca.po: Add new translations.
34318 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34319 gettext module and defines locale_dir and lang in grub.cfg.
34320 * NEWS: Add gettext support.
34322 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34324 * util/hostdisk.c: Include `<grub/i18n.h>'.
34325 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34326 (make_device_name): Rewrite using asprintf.
34327 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34328 (find_system_device): If a device is not found, generate one just
34329 by reusing the OS path name.
34330 (read_device_map): Make it permissible for device.map not to exist.
34332 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34334 * script/sh/execute.c: Move from here ...
34335 * script/execute.c: ... to here. Update all users.
34336 * script/sh/function.c: Move from here ...
34337 * script/function.c: ... to here. Update all users.
34338 * script/sh/lexer.c: Move from here ...
34339 * script/lexer.c: ... to here. Update all users.
34340 * script/sh/main.c: Move from here ...
34341 * script/main.c: ... to here. Update all users.
34342 * script/sh/parser.y: Move from here ...
34343 * script/parser.y: ... to here. Update all users.
34344 * script/sh/script.c: Move from here ...
34345 * script/script.c: ... to here. Update all users.
34347 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34349 * configure.ac: Detect all `emu' platforms. Define
34350 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34351 --enable-grub-emu logic. Disable include/grub/machine
34352 symlink on `emu' platforms.
34354 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34355 * gensymlist.sh.in: Likewise.
34357 * include/grub/i386/coreboot/machine.h: Remove file.
34358 * include/grub/i386/efi/machine.h: Likewise.
34359 * include/grub/i386/ieee1275/machine.h: Likewise.
34360 * include/grub/i386/pc/machine.h: Likewise.
34361 * include/grub/i386/qemu/machine.h: Likewise.
34362 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34363 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34364 * include/grub/x86_64/efi/machine.h: Likewise.
34366 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34367 * commands/halt.c: Likewise.
34368 * commands/reboot.c: Likewise.
34369 * include/grub/autoefi.h: Likewise.
34370 * include/grub/i386/at_keyboard.h: Likewise.
34371 * include/grub/i386/kernel.h: Likewise.
34372 * include/grub/i386/loader.h: Likewise.
34373 * include/grub/i386/pc/memory.h: Likewise.
34374 * kern/dl.c: Likewise.
34375 * kern/i386/coreboot/init.c: Likewise.
34376 * loader/i386/bsd.c: Likewise.
34377 * loader/i386/linux.c: Likewise.
34378 * loader/multiboot_loader.c: Likewise.
34379 * term/i386/pc/serial.c: Likewise.
34380 * term/usb_keyboard.c: Likewise.
34382 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34383 `<grub/machine/machine.h>'
34384 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34385 * util/misc.c: Remove `<grub/machine/machine.h>' and
34386 `<grub/machine/time.h>'.
34388 * Makefile.in (enable_grub_emu): Remove variable.
34389 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34391 * conf/any-emu.rmk: New file.
34392 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34393 (grub_emu_init.c): Move from here ...
34394 * conf/any-emu.rmk: ... to here.
34396 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34397 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34398 * conf/any-emu.rmk: ... to here.
34400 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34402 * include/grub/parser.h (grub_parser_register): Document need
34403 of `name' parameter.
34404 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34405 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34408 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34410 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34412 * include/grub/i18n.h (N_): New macro.
34413 * util/mkisofs/mkisofs.h: Likewise.
34414 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34416 (usage): Use gettext() to translate help strings when printing them.
34418 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34420 Based on patch from Bean
34421 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34423 * video/efi_fb.c: New file.
34424 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34425 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34427 * conf/x86_64-efi.rmk: Likewise.
34429 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34431 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34432 * util/i386/pc/grub-setup.c: Likewise.
34434 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34436 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34438 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34439 file_get_storage_info to implement grub_guess_root_device.
34441 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34443 * Makefile.in (target): Use make's builtin $(shell) function
34444 instead of calling directly $(SHELL) to create the locale directories,
34445 inside the $(foreach) function.
34447 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34449 * util/grub-mkrescue.in: Print an error and usage if output option
34450 has not been given.
34452 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34454 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34455 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34456 root and /boot are on different devices.
34458 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34460 Fix build for srcdir != objdir.
34462 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34463 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34465 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34466 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34467 reference for input.
34469 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34471 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34472 or hardlinking it). Remove -J option, Joliet is not compatible with
34473 multiple source directories.
34475 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34476 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34478 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34479 (process_input_dir): New function. Process an arbitrary input
34481 Misc adjustments to support both "override mode" and system-wide mode.
34483 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34485 * configure.ac (UNIFONT_BDF): Rename to ...
34486 (FONT_SOURCE): ... this. Update all users.
34488 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34490 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34491 to the list of unifont files to look for.
34493 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34495 Patch from Joe Auricchio <jauricchio@gmail.com>
34496 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34497 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34498 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34500 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34502 * Makefile.in (install-local): Add a missing backslash.
34504 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34506 * include/grub/x86_64/io.h: New file.
34508 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34510 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34511 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34512 Include `"progname.h"'.
34513 (main): Initialize gettext.
34514 * util/i386/pc/grub-setup.c: Gettexttize.
34515 * util/i386/pc/grub-mkimage.c: Likewise.
34517 * Makefile.in (po/*.po): Redefine as ...
34518 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34520 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34522 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34524 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34525 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34526 (program_name): Remove.
34527 (main): Initialize gettext support.
34528 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34529 Include `<libintl.h>'.
34532 * util/mkisofs/eltorito.c: Gettexttize.
34533 * util/mkisofs/joliet.c: Likewise.
34534 * util/mkisofs/mkisofs.c: Likewise.
34535 * util/mkisofs/multi.c: Likewise.
34536 * util/mkisofs/rock.c: Likewise.
34537 * util/mkisofs/tree.c: Likewise.
34538 * util/mkisofs/write.c: Likewise.
34540 * po/POTFILES: Update with new files.
34542 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34544 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34545 * util/mkisofs/iso9660.h: Likewise.
34546 * util/mkisofs/joliet.c: Likewise.
34547 * util/mkisofs/mkisofs.c: Likewise.
34548 * util/mkisofs/mkisofs.h: Likewise.
34549 * util/mkisofs/rock.c: Likewise.
34550 * util/mkisofs/tree.c: Likewise.
34551 * util/mkisofs/write.c: Likewise.
34553 * util/mkisofs/eltorito.c (rcsid): Remove.
34554 * util/mkisofs/hash.c: Likewise.
34555 * util/mkisofs/joliet.c: Likewise.
34556 * util/mkisofs/name.c: Likewise.
34557 * util/mkisofs/rock.c: Likewise.
34558 * util/mkisofs/tree.c: Likewise.
34559 * util/mkisofs/write.c: Likewise.
34561 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34563 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34564 instead of static allocation.
34565 * util/mkisofs/match.h: Likewise.
34567 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34569 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34570 and `util/grub.d/10_linux.in'.
34571 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34572 translatable Shell files.
34574 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34576 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34578 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34580 * INSTALL: Document Automake is needed for bootstrap.
34581 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34582 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34583 Add gettext initialization.
34584 (kfreebsd_entry): Make menuentry output translatable.
34586 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34588 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34589 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34590 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34591 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34592 (LINGUAS): Auto-generate using `po/LINGUAS'.
34593 * po/LINGUAS: New file.
34595 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34597 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34599 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34600 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34601 bindtextdomain() calls for gettext initialization.
34603 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34605 * gnulib/progname.c: New file (imported from Gnulib).
34606 * gnulib/progname.h: Likewise.
34607 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34608 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34609 (usage): Replace `progname' with `program_name'.
34610 (main): Use set_program_name() for program name initialization.
34612 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34614 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34616 * Makefile.in (CPPFLAGS): ... to here.
34618 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34620 * aclocal.m4: Move from here ...
34621 * acinclude.m4: ... to here.
34622 * autogen.sh: Add call to `aclocal'.
34623 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34625 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34627 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34628 (LINGUAS): New variable.
34629 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34630 (install-local): Install MO files.
34631 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34632 * include/grub/i18n.h: New file.
34633 * po/POTFILES: New file.
34634 * po/ca.po: New file.
34635 * util/grub.d/10_linux.in (bindir): New variable.
34636 Add gettext initialization.
34637 (linux_entry): Make menuentry output translatable.
34638 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34639 (usage): Make --help output translatable.
34640 (main): Initialize gettext.
34642 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34644 * import_gcry.py: New file (written by Vladimir with minor
34646 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34648 * INSTALL: Document that Python is required for bootstrap.
34650 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34652 Import ciphers from libgcrypt 1.4.4.
34654 * lib/libgcrypt/cipher/ChangeLog
34655 * lib/libgcrypt/cipher/ac.c
34656 * lib/libgcrypt/cipher/arcfour.c
34657 * lib/libgcrypt/cipher/bithelp.h
34658 * lib/libgcrypt/cipher/blowfish.c
34659 * lib/libgcrypt/cipher/camellia-glue.c
34660 * lib/libgcrypt/cipher/camellia.c
34661 * lib/libgcrypt/cipher/camellia.h
34662 * lib/libgcrypt/cipher/cast5.c
34663 * lib/libgcrypt/cipher/cipher.c
34664 * lib/libgcrypt/cipher/crc.c
34665 * lib/libgcrypt/cipher/des.c
34666 * lib/libgcrypt/cipher/dsa.c
34667 * lib/libgcrypt/cipher/ecc.c
34668 * lib/libgcrypt/cipher/elgamal.c
34669 * lib/libgcrypt/cipher/hash-common.c
34670 * lib/libgcrypt/cipher/hash-common.h
34671 * lib/libgcrypt/cipher/hmac-tests.c
34672 * lib/libgcrypt/cipher/md.c
34673 * lib/libgcrypt/cipher/md4.c
34674 * lib/libgcrypt/cipher/md5.c
34675 * lib/libgcrypt/cipher/primegen.c
34676 * lib/libgcrypt/cipher/pubkey.c
34677 * lib/libgcrypt/cipher/rfc2268.c
34678 * lib/libgcrypt/cipher/rijndael-tables.h
34679 * lib/libgcrypt/cipher/rijndael.c
34680 * lib/libgcrypt/cipher/rmd.h
34681 * lib/libgcrypt/cipher/rmd160.c
34682 * lib/libgcrypt/cipher/rsa.c
34683 * lib/libgcrypt/cipher/seed.c
34684 * lib/libgcrypt/cipher/serpent.c
34685 * lib/libgcrypt/cipher/sha1.c
34686 * lib/libgcrypt/cipher/sha256.c
34687 * lib/libgcrypt/cipher/sha512.c
34688 * lib/libgcrypt/cipher/tiger.c
34689 * lib/libgcrypt/cipher/twofish.c
34690 * lib/libgcrypt/cipher/whirlpool.c
34692 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34694 Fix build for systems without error().
34696 * gnulib/error.c: New file (imported from Gnulib).
34697 * gnulib/error.h: Likewise.
34698 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34699 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34700 (this variable is now used by error()).
34702 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34704 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34705 instead of relying that char is signed.
34707 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34709 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34710 blocksize different from specified.
34711 (grub_pxefs_read): Likewise.
34713 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34715 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34717 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34718 (grub_ata_readwrite): Likewise. Update 2 format strings.
34719 (grub_atapi_read): Likewise.
34721 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34722 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34723 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34724 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34725 (ata_mod_LDFLAGS): Move from here ...
34726 * conf/i386.rmk: ... to here ...
34727 * conf/x86_64-efi.rmk: ... and here.
34728 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34729 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34731 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34733 Relicense multiboot.h, with RMS' blessing.
34735 * include/multiboot.h: Change to X11 license.
34737 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34739 Support --version in grub-mkisofs.
34741 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34742 (OPTION_VERSION): New macro.
34743 (ld_options): Recognize --version.
34744 (usage): Move `program_name' from here ...
34745 (program_name): ... to here. Add `static' qualifier.
34746 (main): Recognize `OPTION_VERSION'.
34748 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34750 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34751 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34753 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34755 Fix help2man generation for mkisofs.
34757 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34758 (usage): Send output to stdout (rather than stderr).
34760 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34762 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34763 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34764 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34765 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34766 (bin_SCRIPTS): Add `grub-mkfloppy'.
34767 (grub_mkfloppy_SOURCES): New variable.
34769 * util/grub-mkrescue.in: New file.
34770 * util/i386/pc/grub-mkfloppy.in: New file.
34772 * util/i386/coreboot/grub-mkrescue.in: Remove.
34773 * util/i386/pc/grub-mkrescue.in: Remove.
34775 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34777 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34779 * include/multiboot.h (struct multiboot_header): ... to here. Update
34781 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34783 * include/multiboot.h (struct multiboot_info): ... to here. Update
34785 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34787 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34789 * include/grub/multiboot.h (struct grub_mod_list): Move
34791 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34794 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34796 * include/multiboot2.h (multiboot_word): Rename from this ...
34797 (multiboot2_word): ... to this. Update all users.
34798 (multiboot_header): Rename from this ...
34799 (multiboot2_header): ... to this. Update all users.
34800 (multiboot_tag_header): Rename from this ...
34801 (multiboot2_tag_header): ... to this. Update all users.
34802 (multiboot_tag_start): Rename from this ...
34803 (multiboot2_tag_start): ... to this. Update all users.
34804 (multiboot_tag_name): Rename from this ...
34805 (multiboot2_tag_name): ... to this. Update all users.
34806 (multiboot_tag_module): Rename from this ...
34807 (multiboot2_tag_module): ... to this. Update all users.
34808 (multiboot_tag_memory): Rename from this ...
34809 (multiboot2_tag_memory): ... to this. Update all users.
34810 (multiboot_tag_unused): Rename from this ...
34811 (multiboot2_tag_unused): ... to this. Update all users.
34812 (multiboot_tag_end): Rename from this ...
34813 (multiboot2_tag_end): ... to this. Update all users.
34815 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34817 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34818 this platform we should support Multiboot1 first.
34820 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34821 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34822 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34824 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34826 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34827 of write calls (converting them to fwrite() if they aren't already).
34828 (get_torito_desc): Likewise.
34829 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34831 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34833 * util/i386/pc/grub-install.in: Move from here ...
34834 * util/grub-install.in: ... to here. Update all users.
34836 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34838 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34840 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34842 Support for El Torito without floppy emulation.
34844 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34845 (init_boot_catalog): Improve error handling.
34846 (get_torito_desc): Don't use floppy emulation unless requested by
34847 user. Patch boot information table when requested via
34848 `-boot-info-table'.
34849 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34850 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34851 (use_boot_info_table): New variables.
34852 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34853 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34854 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34855 `--eltorito-emul-floppy'.
34856 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34857 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34858 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34859 (use_boot_info_table, get_731): New prototypes.
34860 * util/mkisofs/write.c (get_731): New function.
34862 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34864 Fix the generation of the man page.
34866 * util/pc/i386/grub-install.in: Source
34867 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34869 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34871 Large file support for grub-mkisofs.
34873 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34874 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34875 (session_start): Upgrade type to `uint64_t'. Update all users.
34876 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34877 (struct directory_entry): Upgrade type of `starting_block' and
34878 `size' to `uint64_t'. Update all users.
34879 (struct deferred): Remove unused structure.
34880 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34882 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34883 file is larger than `UINT32_MAX'.
34884 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34885 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34887 (struct deferred_write): Upgrade type of `extent' and `size' to
34888 `uint64_t'. Update all users.
34889 (last_extent_written): Upgrade type to `uint64_t'. Update all
34891 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34892 Update all users. Upgrade type of `remain' to `int64_t' and
34893 `use' to `size_t'. Use error() to handle fread() errors.
34894 (write_files): Rely on write_one_file() rather than calling
34895 xfwrite() directly.
34897 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34899 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34901 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34903 * util/mkisofs/fnmatch.c: Remove.
34904 * util/mkisofs/getopt1.c: Likewise.
34905 * util/mkisofs/getopt.c: Likewise.
34906 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34907 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34908 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34909 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34910 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34912 * configure.ac: Detect `mingw32msvc' host_os.
34913 Check for lstat(), getuid() and getgid().
34915 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34916 instances of `u_char' with `uint8_t'.
34918 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34919 [!HAVE_GETUID] (getuid): New function (stub).
34920 [!HAVE_GETGID] (getgid): Likewise.
34921 [!HAVE_LSTAT] (lstat): Likewise.
34922 [!S_IROTH] (S_IROTH): New macro (dummy).
34923 [!S_IRGRP] (S_IRGRP): Likewise.
34925 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34927 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34928 conditional expression).
34930 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34932 Import from Gnulib.
34934 * gnulib/fnmatch.c: New file.
34935 * gnulib/fnmatch.h: Likewise.
34936 * gnulib/fnmatch_loop.c: Likewise.
34937 * gnulib/getopt.c: Likewise.
34938 * gnulib/getopt.h: Likewise.
34939 * gnulib/getopt1.c: Likewise.
34940 * gnulib/getopt_int.h: Likewise.
34941 * gnulib/gettext.h: Likewise.
34943 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34945 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34946 * normal/handler.c (read_handler_list): Likewise.
34948 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34952 * kern/command.c (grub_register_command_prio): Use
34953 grub_zalloc() instead of explicitly zeroing data.
34954 * kern/list.c: Include `<grub/mm.h>'.
34955 (grub_named_list_find): Replace `0' with `NULL'.
34956 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34957 (fs_module_list): Change type to `grub_named_list_t'. Update all
34959 * normal/dyncmd.c (read_command_list): Add space between function
34960 call and parenthesis.
34961 * normal/handler.c (read_handler_list): Likewise.
34963 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34965 * normal/auth.c (punishment_delay): Moved from here ...
34966 (grub_auth_strcmp): ... to here (inside function).
34968 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34970 * include/grub/list.h (struct grub_named_list): Remove `const'
34971 qualifier from `name'.
34972 (struct grub_prio_list): Likewise.
34974 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34976 * normal/auth.c: Include `<grub/time.h>'.
34977 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34979 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34981 * normal/auth.c (punishment_delay): New variable.
34982 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34983 (grub_auth_check_authentication): Punish failed login attempts with
34984 an incremental (2^N) delay.
34986 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34988 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34989 path with $(srcdir).
34991 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34993 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34995 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34997 * util/i386/coreboot/grub-mkrescue.in: New file.
34998 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
35001 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
35002 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
35003 * configure.ac: Add header and function checks to satisfy grub-mkisofs
35005 * util/mkisofs/defaults.h: New file.
35006 * util/mkisofs/eltorito.c: Likewise.
35007 * util/mkisofs/exclude.h: Likewise.
35008 * util/mkisofs/fnmatch.c: Likewise.
35009 * util/mkisofs/getopt.c: Likewise.
35010 * util/mkisofs/getopt1.c: Likewise.
35011 * util/mkisofs/hash.c: Likewise.
35012 * util/mkisofs/include/fctldefs.h: Likewise.
35013 * util/mkisofs/include/mconfig.h: Likewise.
35014 * util/mkisofs/include/prototyp.h: Likewise.
35015 * util/mkisofs/include/statdefs.h: Likewise.
35016 * util/mkisofs/iso9660.h: Likewise.
35017 * util/mkisofs/joliet.c: Likewise.
35018 * util/mkisofs/match.c: Likewise.
35019 * util/mkisofs/match.h: Likewise.
35020 * util/mkisofs/mkisofs.c: Likewise.
35021 * util/mkisofs/mkisofs.h: Likewise.
35022 * util/mkisofs/multi.c: Likewise.
35023 * util/mkisofs/name.c: Likewise.
35024 * util/mkisofs/rock.c: Likewise.
35025 * util/mkisofs/tree.c: Likewise.
35026 * util/mkisofs/write.c: Likewise.
35028 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
35030 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
35033 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35035 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
35036 `grub-mkimage' (and use $0 when possible).
35038 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35040 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
35041 error message for excessively large memory map.
35043 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35045 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
35048 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35050 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
35051 message for coreboot users.
35053 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
35055 Fix build with GNU gold.
35057 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
35058 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
35059 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
35061 * aclocal.m4: Likewise.
35063 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
35065 * configure.ac (AC_PREREQ): Bump to 2.59d.
35066 * INSTALL: Make it more clear when Autoconf and Ruby are
35067 needed and when to run `./autogen.sh'.
35069 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
35071 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
35074 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35076 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
35078 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35080 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
35081 giving it to GNU Mach.
35083 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35085 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
35086 GNU partition number to get internal GRUB partition number.
35088 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35090 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
35091 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
35093 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
35095 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
35096 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
35099 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
35101 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
35103 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35107 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
35108 `-isystem=$(srcdir)/include'.
35110 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35112 * util/i386/pc/grub-install.in: Remove hint that device.map should be
35113 checked (grub-install doesn't currently rely on it).
35115 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
35119 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
35120 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35121 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
35122 * conf/i386-ieee1275.rmk: Likewise.
35123 * conf/i386-pc.rmk: Likewise.
35124 * conf/powerpc-ieee1275.rmk: Likewise.
35125 * conf/sparc64-ieee1275.rmk: Likewise.
35126 * conf/x86_64-efi.rmk: Likewise.
35128 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35130 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
35132 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35134 * include/grub/misc.h: Stop checking for APPLE_CC.
35136 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35138 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
35139 doesn't cause an infinite call loop.
35141 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
35143 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
35146 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35148 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
35150 * Makefile.in: Likewise.
35152 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35154 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
35156 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35158 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
35160 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35162 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
35164 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35166 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
35168 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
35170 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35172 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
35173 in $(MAKEINFO) invocation. This makes it clear in output that
35174 errors are being ignored.
35176 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35178 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
35180 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35181 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35182 * conf/i386-ieee1275.rmk: Likewise.
35183 * conf/i386-pc.rmk: Likewise.
35184 * conf/powerpc-ieee1275.rmk: Likewise.
35185 * conf/sparc64-ieee1275.rmk: Likewise.
35186 * conf/x86_64-efi.rmk: Likewise.
35188 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35190 * util/grub-editenv.c (main): If only a command is given, use
35191 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35192 (usage): FILENAME is now optional and has a default.
35194 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35196 Improve grub-mkconfig performance when there are several menu
35197 entries on a single filesystem.
35199 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35200 prepare_grub_to_access_device.
35201 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35202 * util/grub.d/30_os-prober.in: Likewise.
35204 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35206 * util/grub.d/10_freebsd.in: Remove.
35207 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35208 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35210 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35212 * docs/grub.cfg: Fix example usage of *BSD loaders.
35214 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35216 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35217 grub_util_error() call.
35219 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35221 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35222 `reserved_first_sector' member.
35223 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35224 `reserved_first_sector' to 1.
35225 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35226 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35227 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35228 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35229 filesystems which begin at first sector.
35230 (options): New option --skip-fs-probe.
35231 (main): Handle --skip-fs-probe and pass it to setup().
35233 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35235 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35236 (memset): Fix function prototype.
35238 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35239 2009-10-25 Vasily Averin <vvs@parallels.com>
35241 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35242 `dirent.direntlen == 0'.
35244 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35246 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35248 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35250 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35252 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35253 `__trampoline_setup' and `__ucmpdi2'.
35254 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35255 that libgcc provides.
35257 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35259 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35260 * include/grub/sparc64/libgcc.h (memset): Likewise.
35261 * include/grub/misc.h (memset, memcmp): New function prototypes.
35263 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35265 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35267 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35269 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35271 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35272 * docs/grub.cfg: Compensate for recent change in multiboot
35273 loader (since 2009-08-14 it won't pass filename to payload).
35274 * util/grub.d/10_hurd.in: Likewise.
35276 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35278 * config.guess: Update to latest version from config git
35280 * config.sub: Likewise.
35282 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35284 Fix build on sparc64.
35286 * configure.ac: Perform checks for libgcc symbols before
35287 adding `-nostdlib' to LDFLAGS.
35289 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35291 Let user specify OpenBSD root device.
35293 * loader/i386/bsd.c (openbsd_root): New variable.
35294 (openbsd_opts): New option 'root'.
35295 (OPENBSD_ROOT_ARG): New macro.
35296 (grub_openbsd_boot): Use 'openbsd_root'.
35297 (grub_cmd_openbsd): Fill 'openbsd_root'.
35299 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35301 * NEWS: Misc adjustments.
35303 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35305 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35307 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35309 * configure.ac: Bump version to 1.97.
35311 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35313 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35314 -mno-3dnow on x86 architectures. Some toolchains enable these
35315 features by default, but they rely on registers that aren't enabled
35316 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35318 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35320 Make entry text a bit more readable.
35322 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35324 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35326 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35328 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35330 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35333 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35335 * configure.ac: Add missing dollar.
35337 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35339 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35341 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35342 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35344 * include/grub/sparc64/libgcc.h: Likewise. Use
35345 preprocessor conditionals.
35347 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35349 * conf/common.rmk (grub-dumpbios): Remove rule.
35350 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35351 * util/grub-dumpbios.in: Remove file.
35353 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35355 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35356 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35358 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35359 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35362 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35363 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35364 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35365 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35368 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35370 * term/tparm.c: Switch to GPLv3.
35372 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35374 * include/grub/i386/cpuid.h: Add header protection.
35376 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35378 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35380 * include/grub/i386/cpuid.h: New file.
35381 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35382 (has_longmode): Rename to ...
35383 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35384 `static' attribute.
35385 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35386 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35387 on a CPU that doesn't implement AMD64 instruction set.
35389 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35391 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35392 that version.texi is rebuilt on version number changes.
35394 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35396 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35399 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35401 * util/i386/pc/grub-install.in: Source
35402 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35403 that the --grub-probe option will work.
35404 * util/sparc64/ieee1275/grub-install.in: Likewise.
35406 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35408 * configure.ac: Bump version to 1.97~beta4.
35410 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35412 Resync grub-mkdevicemap in x86_64-efi.
35414 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35415 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35416 `util/devicemap.c'.
35418 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35420 * util/grub-editenv.c (create_envblk_file): Write new block with a
35421 .new suffix and then rename it into place, to ensure atomic
35424 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35426 Do not automatically install headers.
35428 * Makefile.in (include_DATA): Remove. Update all users.
35430 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35432 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35433 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35435 * util/osdetect.lua: Remove.
35436 * script/lua/lauxlib.c: Likewise.
35437 * script/lua/ldebug.c: Likewise.
35438 * script/lua/grub_main.c: Likewise.
35439 * script/lua/lauxlib.h: Likewise.
35440 * script/lua/ldebug.h: Likewise.
35441 * script/lua/ltablib.c: Likewise.
35442 * script/lua/liolib.c: Likewise.
35443 * script/lua/lstrlib.c: Likewise.
35444 * script/lua/lualib.h: Likewise.
35445 * script/lua/ldo.c: Likewise.
35446 * script/lua/ldump.c: Likewise.
35447 * script/lua/ldo.h: Likewise.
35448 * script/lua/loslib.c: Likewise.
35449 * script/lua/lundump.c: Likewise.
35450 * script/lua/grub_lib.c: Likewise.
35451 * script/lua/ldblib.c: Likewise.
35452 * script/lua/lundump.h: Likewise.
35453 * script/lua/lmem.c: Likewise.
35454 * script/lua/grub_lib.h: Likewise.
35455 * script/lua/lmathlib.c: Likewise.
35456 * script/lua/lstate.c: Likewise.
35457 * script/lua/ltm.c: Likewise.
35458 * script/lua/lvm.c: Likewise.
35459 * script/lua/lmem.h: Likewise.
35460 * script/lua/lstate.h: Likewise.
35461 * script/lua/ltm.h: Likewise.
35462 * script/lua/ltable.c: Likewise.
35463 * script/lua/lvm.h: Likewise.
35464 * script/lua/llex.c: Likewise.
35465 * script/lua/lgc.c: Likewise.
35466 * script/lua/grub_lua.h: Likewise.
35467 * script/lua/loadlib.c: Likewise.
35468 * script/lua/lfunc.c: Likewise.
35469 * script/lua/lopcodes.c: Likewise.
35470 * script/lua/lparser.c: Likewise.
35471 * script/lua/ltable.h: Likewise.
35472 * script/lua/llex.h: Likewise.
35473 * script/lua/lgc.h: Likewise.
35474 * script/lua/lfunc.h: Likewise.
35475 * script/lua/lbaselib.c: Likewise.
35476 * script/lua/lopcodes.h: Likewise.
35477 * script/lua/lparser.h: Likewise.
35478 * script/lua/lzio.c: Likewise.
35479 * script/lua/linit.c: Likewise.
35480 * script/lua/lobject.c: Likewise.
35481 * script/lua/llimits.h: Likewise.
35482 * script/lua/lstring.c: Likewise.
35483 * script/lua/lzio.h: Likewise.
35484 * script/lua/lapi.c: Likewise.
35485 * script/lua/lcode.c: Likewise.
35486 * script/lua/lua.h: Likewise.
35487 * script/lua/lobject.h: Likewise.
35488 * script/lua/lstring.h: Likewise.
35489 * script/lua/lapi.h: Likewise.
35490 * script/lua/lcode.h: Likewise.
35491 * script/lua/luaconf.h: Likewise.
35493 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35495 * docs/grub.texi (Command-line and menu entry commands): Document
35496 date and echo commands.
35498 2009-09-24 Pavel Roskin <proski@gnu.org>
35500 * include/grub/kernel.h (struct grub_module_header): Remove
35501 `grub_module_header_types'. Make `type' unsigned. Make `size'
35502 32-bit on all platforms.
35503 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35504 8-bit field. Use grub_host_to_target32() for `size'.
35505 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35506 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35507 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35509 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35511 Fix "lost keypress" bug in at_keyboard.
35513 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35514 Checks for readyness of input buffer (without flushing it).
35515 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35516 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35518 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35520 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35521 size check within GRUB_MACHINE_PCBIOS section.
35523 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35525 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35527 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35528 KEYBOARD_ISREADY check.
35529 (grub_at_keyboard_checkkey): Rename to ...
35530 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35531 Remove gratuitous cast.
35533 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35535 * configure.ac: Call AC_PROG_MKDIR_P.
35536 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35537 version.texi in $(builddir) rather than $(srcdir).
35538 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35539 to makeinfo's @include search path.
35541 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35543 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35545 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35547 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35550 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35552 Build info documentation. Some code borrowed from Automake.
35554 * configure.ac: Check for makeinfo.
35555 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35556 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35558 (MOSTLYCLEANFILES): Add vti.tmp.
35559 (docs/version.texi, docs/stamp-vti): Update automatically.
35560 (docs/grub.info): Build info documentation. Use --force and ignore
35562 (all-local): Add $(INFOS).
35563 (install-local): Install info files.
35564 (uninstall): Uninstall info files.
35565 * docs/version.texi: Remove from revision control. This file is
35566 automatically generated on build now.
35567 * gendistlist.sh: Add `*.info'.
35569 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35571 * kern/term.c: Fix indentation.
35573 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35575 * util/hostdisk.c: Fix a comment.
35577 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35579 Fix regression introduced in r2539.
35581 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35584 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35586 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35587 os-prober. Under normal operation, it does not print anything to
35588 stderr; if it does, we need to debug it, and throwing away stderr
35589 makes that excessively difficult.
35591 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35593 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35595 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35597 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35598 AC_LANG_PROGRAM from autoconf.
35599 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35600 prototypes (fixes warning).
35602 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35603 `--disable-werror' was used.
35605 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35607 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35608 uninitialized `lastaddr'.
35610 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35612 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35614 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35616 * commands/test.c (get_fileinfo): Return immediately if
35617 grub_fs_probe fails.
35619 2009-09-14 José Martínez <xosemp@gmail.com>
35621 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35623 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35625 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35628 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35630 * configure.ac: Remove --enable-grub-pe2elf. Only build
35631 grub-pe2elf when needed by the build system itself.
35632 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35634 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35636 * configure.ac: Bump version to 1.97~beta3.
35637 * docs/version.texi: Likewise.
35639 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35641 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35642 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35644 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35645 (grub_linux_setup_video): ... to here (with some adjustments).
35647 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35649 Fix memory corruption issue (spotted by Colin Watson).
35651 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35652 causing returned size to be stored in an incorrect memory location.
35653 Fix use of uninitialized value when storing the returned size.
35655 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35657 Change clean rules to properly remove files
35659 * genmk.rb: add new clean rules
35660 * Makefile.in (clean): add the new targets
35661 (mostlyclean): likewise
35663 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35665 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35667 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35668 non-resident files.
35670 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35672 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35673 part of bug #27349.
35675 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35677 * util/grub-mkconfig.in: Make the created config mode 400 and
35678 print a warning if it fails.
35680 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35682 * util/grub.d/40_custom.in: Ask user to type custom entries below
35683 comment, rather than below 'exec tail' line.
35685 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35687 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35688 visible in grub.cfg.
35690 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35692 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35695 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35697 * docs/grub.cfg: Add an example menu entry for memtest86+.
35699 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35701 * config.guess: Update to latest version from config git.
35702 * config.sub: Likewise.
35704 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35706 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35707 unknown-command case. Fixes bug #27320.
35709 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35711 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35712 `help' if the command exists.
35714 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35716 * INSTALL: Require GCC 4.1.3 or later.
35718 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35720 * Makefile.in (RMKFILES): add i386-qemu.rmk
35721 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35722 $(srcdir)/stamp-h.in
35724 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35726 * util/grub-probe.c (probe): Comment out buggy codepath, which
35727 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35728 should be re-enabled after 1.97.
35730 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35732 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35735 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35737 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35738 unnecessary calls to grub_error.
35740 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35742 * NEWS: Mention `keystatus' and Unicode fonts.
35744 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35746 * configure.ac: Bump version to 1.97~beta2.
35747 * docs/version.texi: Likewise.
35749 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35751 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35752 containing unwind information in some cases where it previously did
35753 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35754 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35757 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35759 Embedding loadenv module into grub-emu
35761 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35763 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35764 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35765 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35766 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35767 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35768 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35770 2009-09-03 Magnus Granberg <zorry@ume.nu>
35772 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35773 include -fPIE in the default specs.
35774 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35777 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35779 * INSTALL: Note that GNU Bison 2.3 or later is required.
35781 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35783 * kern/i386/pc/startup.S: Fix typo.
35785 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35787 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35790 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35792 * docs/grub.texi (Naming convention): Describe one-based partition
35794 (Device syntax): Likewise.
35795 (File name syntax): Likewise.
35796 (Block list syntax): Likewise.
35797 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35799 (File name syntax): Likewise.
35800 (Command-line and menu entry commands): Document acpi, blocklist,
35801 crc, export, insmod, keystatus, ls, set, and unset commands.
35803 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35805 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35806 to avoid implying that only one of --shift, --ctrl, or --alt may be
35809 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35811 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35812 rather than comparing against S_IFREG, which will almost never work.
35814 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35816 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35817 (write_blocklists): Likewise.
35819 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35821 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35822 argument to grub_printf.
35824 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35826 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35829 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35831 * kern/file.c (grub_file_read): Spelling fix
35833 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35835 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35836 loading of headers in some cases.
35838 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35840 * configure.ac: Bump version to 1.97~beta1.
35841 * docs/version.texi: Likewise.
35843 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35845 * include/grub/i386/xnu.h: Add license header.
35846 include grub/err.h explicitly.
35848 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35850 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35851 to `ufs' in the vfs.root.mountfrom kernel parameter.
35853 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35855 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35857 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35858 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35860 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35861 `ARRAY_SIZE' macro.
35863 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35865 * kern/file.c (grub_file_read): Check offset.
35866 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35867 * fs/jfs.c (grub_jfs_read_file): Likewise.
35868 * fs/ntfs.c (grub_ntfs_read): Likewise.
35869 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35870 * fs/minix.c (grub_minix_read_file): Correct offset check.
35871 * fs/ufs.c (grub_ufs_read_file): Likewise.
35873 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35875 * term/i386/pc/console.c (bios_data_area): Cast
35876 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35878 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35880 1-bit optimised blitters.
35882 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35884 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35885 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35886 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35887 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35888 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35889 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35890 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35892 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35893 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35894 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35895 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35896 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35897 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35898 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35900 * video/video.c (grub_video_get_blit_format): Return
35901 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35903 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35905 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35906 the first argument to grub_printf.
35908 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35909 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35911 Add `getkeystatus' terminal method. Add a new `keystatus' command
35914 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35915 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35916 modifier key bitmasks.
35917 (struct grub_term_input): Add `getkeystatus' member.
35918 (grub_getkeystatus): Add prototype.
35919 * kern/term.c (grub_getkeystatus): New function.
35921 * include/grub/i386/pc/memory.h
35922 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35923 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35925 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35926 (grub_console_term_input): Set `getkeystatus' member.
35927 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35929 (grub_usb_keyboard_getreport): Likewise.
35930 (grub_usb_keyboard_checkkey): Likewise.
35931 (grub_usb_keyboard_getkeystatus): New function.
35932 (grub_usb_keyboard_term): Set `getkeystatus' member.
35934 * commands/keystatus.c: New file.
35935 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35936 (keystatus_mod_SOURCES): New variable.
35937 (keystatus_mod_CFLAGS): Likewise.
35938 (keystatus_mod_LDFLAGS): Likewise.
35939 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35940 commands/keystatus.c.
35941 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35942 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35943 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35944 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35945 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35946 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35948 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35950 Split befs.mod and afs.mod into *_be.mod and *.mod
35952 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35953 (grub_fstest_SOURCES): Likewise.
35954 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35955 (afs_be_mod_SOURCES): New variable.
35956 (afs_be_mod_CFLAGS): Likewise.
35957 (afs_be_mod_LDFLAGS): Likewise.
35958 (befs_be_mod_SOURCES): Likewise.
35959 (befs_be_mod_CFLAGS): Likewise.
35960 (befs_be_mod_LDFLAGS): Likewise.
35961 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35962 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35963 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35964 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35965 (grub_emu_SOURCES): Likewise.
35966 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35967 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35968 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35969 * fs/afs_be.c: New file.
35970 * fs/befs_be.c: New file.
35971 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35972 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35973 (U16): Replaced with ...
35974 (grub_afs_to_cpu16): ...this. All users updated.
35975 (U32): Replaced with ...
35976 (grub_afs_to_cpu32): ...this. All users updated.
35977 (U64): Replaced with ...
35978 (grub_afs_to_cpu64): ...this. All users updated.
35979 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35980 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35981 (grub_afs_validate_sblock): Check only one endianness.
35982 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35983 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35984 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35985 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35986 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35987 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35988 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35989 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35991 2009-08-26 Bean <bean123ch@gmail.com>
35993 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35995 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35996 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35997 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35999 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36001 NetBSD memory map support.
36003 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
36004 (grub_netbsd_btinfo_mmap_header): New structure.
36005 (grub_netbsd_btinfo_mmap_entry): Likewise.
36006 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
36008 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36010 Enable bsd.mod on coreboot.
36012 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
36013 (bsd_mod_SOURCES): New variable.
36014 (bsd_mod_CFLAGS): Likewise.
36015 (bsd_mod_LDFLAGS): Likewise.
36016 (bsd_mod_ASFLAGS): Likewise.
36017 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
36018 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
36020 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36022 Cleanup NetBSD root support.
36024 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
36025 grub_bsd_get_device.
36028 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
36030 * util/grub.d/00_header.in: Move check for the video backend of
36031 gfxterm from here ...
36032 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
36033 a suitable video backend.
36035 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36037 Fix breakage in grub-setup.
36039 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
36040 "msdos_partition_map".
36042 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36044 Fix breakage in normal/auth.c.
36046 * normal/auth.c (grub_iswordseparator): New function.
36048 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36050 Authentication support.
36052 * commands/password.c: New file.
36053 * conf/common.rmk (pkglib_MODULES): Add password.mod.
36054 (password_mod_SOURCES): New variable.
36055 (password_mod_CFLAGS): Likewise.
36056 (password_mod_LDFLAGS): Likewise.
36057 (normal_mod_SOURCES): Add normal/auth.c.
36058 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
36060 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36061 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36062 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36063 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36064 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36065 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36066 * include/grub/auth.h: New file.
36067 * include/grub/err.h (grub_err_t): New enum value
36068 GRUB_ERR_ACCESS_DENIED.
36069 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
36071 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
36072 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
36074 * normal/auth.c: New file.
36075 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
36076 (grub_cmdline_run): Don't allow to go to command line without
36078 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
36079 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
36080 menuentry without superuser rights.
36081 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
36082 user isn't a superuser.
36084 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36086 Save space by inlining misc.c functions.
36088 * kern/misc.c (grub_iswordseparator): Made static.
36089 * kern/misc.c (grub_strcat): Moved from here ...
36090 * include/grub/misc.h (grub_strcat): ... here. Inlined.
36091 * kern/misc.c (grub_strncat): Moved from here ...
36092 * include/grub/misc.h (grub_strncat): ... here. Inlined.
36093 * kern/misc.c (grub_strcasecmp): Moved from here ...
36094 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
36095 * kern/misc.c (grub_strncasecmp): Moved from here ...
36096 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
36097 * kern/misc.c (grub_isalpha): Moved from here ...
36098 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
36099 * kern/misc.c (grub_isdigit): Moved from here ...
36100 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
36101 * kern/misc.c (grub_isgraph): Moved from here ...
36102 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
36103 * kern/misc.c (grub_tolower): Moved from here ...
36104 * include/grub/misc.h (grub_tolower): ... here. Inlined.
36106 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36108 * script/sh/function.c (grub_script_function_find): Cut error message
36109 not to flood terminal.
36110 * script/sh/lexer.c (grub_script_yylex): Remove command line length
36112 * script/sh/script.c (grub_script_arg_add): Duplicate string.
36114 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
36116 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
36117 `report' grub_uint8_t *.
36118 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
36119 Use a 50-millisecond timeout rather than just repeating
36120 grub_usb_keyboard_getreport 50 times.
36121 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
36123 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36125 Rename *_partition_map to part_*
36127 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
36128 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
36129 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
36130 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
36132 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
36134 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
36135 * util/grub-probe.c (probe_partmap): Don't transform partition name
36136 to get module name.
36138 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36140 Fix OpenBSD and NetBSD support.
36142 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
36143 memory address conflict.
36144 (OPENBSD_MMAP_ACPI): New definition.
36145 (OPENBSD_MMAP_NVS): Likewise.
36146 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
36147 and OPENBSD_MMAP_NVS.
36148 Add memory map terminator
36149 Explicit cast when calling grub_unix_real_boot.
36150 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
36152 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36154 Let user specify NetBSD root device.
36156 * loader/i386/bsd.c (netbsd_root): New variable.
36157 (netbsd_opts): New option 'root'.
36158 (NETBSD_ROOT_ARG): New macro.
36159 (grub_netbsd_boot): Use 'netbsd_root'.
36160 (grub_bsd_unload): Free 'netbsd_root'.
36161 (grub_cmd_netbsd): Fill 'netbsd_root'.
36163 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36165 Support for 64-bit NetBSD.
36167 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
36168 point when booting non-FreeBSD.
36170 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36172 Support --no-smp and --no-acpi for NetBSD.
36174 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
36175 (NETBSD_AB_NOACPI): Likewise.
36176 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
36177 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
36179 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36181 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36183 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36184 errors. Call grub_error when needed.
36186 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36188 * commands/search.c (search_fs): Try searching without autoload first.
36189 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36190 filesystem module explicitly for faster booting.
36192 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36194 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36196 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36198 * util/grub.d/30_os-prober.in: Disable os-prober if
36199 `GRUB_DISABLE_OS_PROBER' was set to true.
36201 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36203 * partmap/pc.c: Rename to ...
36204 * partmap/msdos.c: ... this. Update all users.
36205 (grub_pc_partition_map): Rename to ...
36206 (grub_msdos_partition_map): ... this. Update all users.
36208 * parttool/pcpart.c: Rename to ...
36209 * parttool/msdospart.c: ... this. Update all users.
36211 * include/grub/pc_partition.h: Rename to ...
36212 * include/grub/msdos_partition.h: ... this. Update all users.
36213 (grub_pc_partition_bsd_entry): Rename to ...
36214 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36215 (grub_pc_partition_disk_label): Rename to ...
36216 (grub_msdos_partition_disk_label): ... this. Update all users.
36217 (grub_pc_partition_entry): Rename to ...
36218 (grub_msdos_partition_entry): ... this. Update all users.
36219 (grub_pc_partition_mbr): Rename to ...
36220 (grub_msdos_partition_mbr): ... this. Update all users.
36221 (grub_pc_partition): Rename to ...
36222 (grub_msdos_partition): ... this. Update all users.
36223 (grub_pc_partition_is_empty): Rename to ...
36224 (grub_msdos_partition_is_empty): ... this. Update all users.
36225 (grub_pc_partition_is_extended): Rename to ...
36226 (grub_msdos_partition_is_extended): ... this. Update all users.
36227 (grub_pc_partition_is_bsd): Rename to ...
36228 (grub_msdos_partition_is_bsd): ... this. Update all users.
36230 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36231 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36232 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36233 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36234 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36235 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36236 (gpt_mod_LDFLAGS): Rename to ...
36237 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36238 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36239 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36240 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36241 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36242 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36243 (part_gpt_mod_LDFLAGS): ... this.
36244 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36245 `pcpart.mod' to `msdospart.mod'.
36246 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36248 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36249 (msdospart_mod_LDFLAGS): ... this.
36251 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36253 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36254 (openbsd_opts): Likewise.
36255 (netbsd_opts): Likewise.
36256 (freebsd_flags): Added 0 terminator.
36257 (openbsd_flags): Likewise.
36258 (netbsd_flags): Likewise.
36259 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36260 (grub_cmd_freebsd): Transformed into extended command.
36261 (grub_cmd_openbsd): Likewise.
36262 (grub_cmd_netbsd): Likewise.
36263 (cmd_freebsd): Changed type to grub_extcmd_t.
36264 (cmd_openbsd): Likewise.
36265 (cmd_netbsd): Likewise.
36266 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36267 grub_cmd_openbsd as extended commands.
36268 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36269 cmd_netbsd and cmd_openbsd
36271 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36273 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36275 2009-08-21 Pavel Roskin <proski@gnu.org>
36277 * Makefile.in (install-local): When checking if a file is in the
36278 build directory, use "test -e" to detect symlinks.
36280 * Makefile.in (install-local): Remove all files in
36281 $(DESTDIR)$(pkglibdir) before installing new files there.
36283 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36285 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36288 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36290 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36291 explicitly specified by the user.
36293 2009-08-18 Pavel Roskin <proski@gnu.org>
36295 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36296 grub_uint8_t pointer for data.
36297 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36299 * video/fb/fbutil.c: Remove unnecessary casts.
36301 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36305 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36306 (grub_vbe_set_video_mode): Save active mode info
36307 only after setting the mode.
36308 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36311 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36313 Rename variables for clarity.
36315 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36316 (active_vbe_mode_info): ... this. All users updated.
36317 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36319 (initial_mode): Rename to ...
36320 (initial_vbe_mode): ... this. All users updated.
36321 (mode_in_use): Rename to ..
36322 (vbe_mode_in_use): ... this. All users updated.
36323 (mode_list): Rename to ..
36324 (vbe_mode_list): ... this. All users updated.
36325 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36326 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36327 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36328 'mode_list_size' to 'vbe_mode_list_size'.
36329 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36330 'best_mode_info' to 'best_vbe_mode_info' and
36331 'best_mode' to 'best_vbe_mode'
36333 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36335 Remove duplicate grub_video_fb_get_video_ptr.
36337 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36338 (grub_video_fb_get_video_ptr): ... this.
36339 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36340 * video/fb/fbutil.c: Add comment about addressing.
36341 (get_data_ptr): Rename to ...
36342 (grub_video_fb_get_video_ptr): ... this. All users updated.
36343 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36345 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36347 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36348 grub_dprintf() that was just added.
36350 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36352 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36353 (DEFAULT_VIDEO_MODE): Remove macros.
36354 (grub_linux_boot): Remove assumption that Linux has FB support,
36355 and use "text" as default video mode.
36357 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36359 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36361 * fs/fat.c (grub_fat_read_data): Likewise.
36363 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36365 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36367 (grub_module): Likewise.
36369 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36371 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36372 mbi->cmdline but free playground.
36374 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36376 Handle group offset on UFS1.
36378 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36379 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36381 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36383 Split ufs.mod into ufs1.mod and ufs2.mod.
36385 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36386 (grub_fstest_SOURCES): Likewise.
36387 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36388 (ufs_mod_SOURCES): Remove.
36389 (ufs_mod_CFLAGS): Likewise.
36390 (ufs_mod_LDFLAGS): Likewise.
36391 (ufs1_mod_SOURCES): New variable.
36392 (ufs1_mod_CFLAGS): Likewise.
36393 (ufs1_mod_LDFLAGS): Likewise.
36394 (ufs2_mod_SOURCES): New variable.
36395 (ufs2_mod_CFLAGS): Likewise.
36396 (ufs2_mod_LDFLAGS): Likewise.
36397 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36398 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36400 (grub_emu_SOURCES): Likewise.
36401 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36402 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36403 (grub_setup_SOURCES): Likewise.
36404 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36405 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36406 (grub_setup_SOURCES): Likewise.
36407 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36409 * fs/ufs2.c: New file.
36410 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36412 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36416 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36417 subsystem at the end.
36418 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36419 (video_fb_mod_SOURCES): New variable.
36420 (video_fb_mod_CFLAGS): Likewise.
36421 (video_fb_mod_LDFLAGS): Likewise.
36422 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36423 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36424 * video/i386/pc/vbeblit.c: Moved from here ...
36425 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36426 * video/i386/pc/vbefill.c: Moved from here ...
36427 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36428 * video/i386/pc/vbeutil.c: Moved from here ...
36429 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36430 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36431 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36432 * include/grub/i386/pc/vbefill.h: Moved from here ...
36433 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36434 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36435 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36436 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36437 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36438 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36439 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36440 (grub_video_adapter): Added 'get_info_and_fini'.
36441 (grub_video_get_info_and_fini): New prototype.
36442 (grub_video_set_mode): make modestring const char *.
36443 * loader/i386/linux.c (grub_linux_setup_video): Use
36444 grub_video_get_info_and_fini.
36445 (grub_linux_boot): Move modesetting just before booting.
36446 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36447 grub_video_get_info_and_fini.
36448 * video/i386/pc/vbe.c: Moved framebuffer part ...
36449 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36450 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36451 grub_video_fbstd_colors and grub_video_fb_set_palette.
36452 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36453 grub_video_fb_init.
36454 (grub_video_vbe_fini): Use grub_video_fb_fini.
36455 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36456 render_target and use grub_video_fb_set_active_render_target and
36457 grub_video_fb_set_palette.
36458 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36459 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36460 (grub_video_vbe_adapter): Use framebuffer.
36461 * video/video.c (grub_video_get_info_and_fini): New function.
36462 (grub_video_set_mode): Make modestring const char *.
36463 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36464 values are already initialised.
36466 2009-08-14 Pavel Roskin <proski@gnu.org>
36468 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36470 * boot/i386/pc/diskboot.S: Likewise.
36471 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36472 sectors allow compilation on MacOSX.
36473 * conf/i386-pc.rmk: Enable unconditional compilation of
36476 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36478 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36479 * util/grub.d/00_header.in: Enter interruptible sleep if
36480 GRUB_HIDDEN_TIMEOUT is set.
36482 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36484 * include/grub/symbol.h: Add the LOCAL macro.
36485 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36486 starting with "L_".
36488 2009-08-13 Pavel Roskin <proski@gnu.org>
36490 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36491 any modern compilers we support.
36493 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36494 Use local labels starting with "L_" so that Apple assembler
36495 knows they are local.
36497 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36499 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36500 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36501 (bsd_kernel_types): ... this enum.
36503 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36504 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36505 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36507 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36508 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36509 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36512 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36514 * util/grub-dumpdevtree: Moved from here ...
36515 * util/i386/efi/grub-dumpdevtree: ... to here.
36516 (hexify): New function. Converts a string to its hex version.
36517 Generate hex versions of "efi" and "device-properties" by calling
36518 hexify() on the ASCII strings rather than by hardcoding numbers.
36520 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36522 * fs/jfs.c: Update copyright year.
36524 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36526 * util/grub.d/00_header.in: Fix a comment.
36527 * util/grub.d/10_linux.in: Likewise.
36528 * util/grub.d/10_windows.in: Likewise.
36529 * util/grub.d/10_hurd.in: Likewise.
36531 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36533 * util/grub-mkconfig.in: Allow the user to specify the used font
36536 2009-08-08 Pavel Roskin <proski@gnu.org>
36538 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36539 available, xfs.mod needs it now.
36541 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36542 the "g" modifier in sed when the intention is to strip something
36543 once. This fixes comparison of kernels with multiple dashes.
36545 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36546 on it. Add missing space before closing bracket. Fix
36547 misleading formatting.
36549 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36551 * docs/grub.texi: Major overhaul. Remove all sections that are
36552 specific to GRUB Legacy, or mostly composed of Legacy-specific
36555 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36557 * docs/version.texi: New file. Provides version information for
36560 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36562 * docs/grub.texi: Update CVS information to SVN.
36563 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36565 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36567 * util/grub-mkconfig.in: Remove a wrong `fi'.
36569 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36571 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36572 (grub_jfs_uuid): New function.
36573 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36575 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36577 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36579 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36580 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36582 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36584 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36585 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36588 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36589 not just "vmlinu[zx]".
36590 Moved from here ...
36591 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36594 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36595 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36598 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36600 * util/grub.d/10_freebsd.in: Use an absolute device path for
36601 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36603 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36605 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36606 handling of multiple abstraction modules.
36608 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36610 Fix a bug resulting in black screen when loading Linux using a
36613 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36616 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36617 (grub_vbe_bios_getset_dac_palette_width): New function.
36618 (grub_vbe_bios_get_dac_palette_width)
36619 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36620 grub_vbe_bios_getset_dac_palette_width()).
36622 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36623 check for return status.
36624 (grub_vbe_get_video_mode_info): When getting information for a packed
36625 mode (<= 8 bpp), obtain DAC palette width using
36626 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36627 {red,green,blue}_mark_size.
36629 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36631 * commands/search.c (options): Fix help output to match actual code.
36633 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36635 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36638 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36640 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36641 on XFS or ReiserFS.
36643 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36645 Support Apple partition map with sector size different from 512 bytes.
36647 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36648 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36649 and 'apart.partmap_size'.
36651 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36652 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36656 * commands/i386/cpuid.c (options): New variable.
36657 (grub_cmd_cpuid): Return real error.
36658 (GRUB_MOD_INIT(cpuid)): Declare options.
36660 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36662 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36665 2009-07-31 Bean <bean123ch@gmail.com>
36667 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36669 (grub_fshelp_node): Move inode field to the end.
36670 (grub_xfs_data): Remove inode field.
36671 (grub_xfs_inode_block): Calculate inode size using sblock.
36672 (grub_xfs_inode_offset): Likewise.
36673 (grub_xfs_read_inode): Calculate inode size using sblock.
36674 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36675 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36676 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36677 to match inode size.
36678 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36679 not accessible when data is null.
36680 (grub_xfs_open): Likewise.
36682 2009-07-31 Bean <bean123ch@gmail.com>
36684 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36685 Don't change pv->disk if it's already set.
36687 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36688 (grub_raid_register): ... here.
36689 (grub_raid_rescan): Removed.
36691 * include/grub/raid.h (grub_raid_rescan): Removed.
36693 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36694 (fstest): Replace grub_raid_rescan with module fini function followed
36697 * util/grub-probe.c: Add include file <grub/raid.h>.
36698 (probe_raid_level): New function.
36699 (probe): Detect abstraction by walking the disk device, support two
36700 level of abstraction (LVM on RAID) when detecting partition map.
36702 2009-07-31 Pavel Roskin <proski@gnu.org>
36704 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36705 to grub_zalloc(), it was erroneous.
36706 Reported by Bean <bean123ch@gmail.com>
36708 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36710 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36711 embedding zone, not only the first one.
36713 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36715 * term/gfxterm.c (clear_char): New function.
36716 (grub_virtual_screen_setup): Use clear_char.
36717 (scroll_up): Likewise.
36718 (grub_virtual_screen_cls): Likewise.
36720 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36722 * util/deviceiter.c (get_acceleraid_disk_name): New static
36724 (grub_util_iterate_devices): Handle Accelraid devices.
36725 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36727 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36729 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36730 separator for the suggested gfxpayload string (';' collides with the
36731 parser and needs escaping).
36733 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36735 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36736 Clear direction flag before jumping to OS.
36737 (grub_multiboot2_real_boot): Likewise.
36739 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36741 * util/i386/pc/grub-install: Fix parsing of --disk-module
36744 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36746 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36749 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36751 * util/grub-mkconfig.in (package_version): New variable.
36752 Use it do display the version.
36754 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36756 * kern/file.c (grub_file_open): Revert to previous check with
36759 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36761 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36762 from help line. It's out of sync with code.
36764 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36766 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36767 entries on failed boot.
36769 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36771 * kern/file.c (grub_file_open): Fix an error check.
36773 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36775 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36776 partition map couldn't be identified.
36778 2009-07-23 Pavel Roskin <proski@gnu.org>
36780 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36781 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36782 case of little endian words becomes just an optimization.
36783 Respect const modifier.
36784 (md5_final): Use code that doesn't depend on endianness.
36786 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36787 to avoid loss of upper bits if align is unsigned and shorter
36790 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36792 UUID support for UFS
36794 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36795 (grub_ufs_uuid): New function.
36796 (grub_ufs_fs): add .uuid
36798 2009-07-21 Pavel Roskin <proski@gnu.org>
36800 * kern/dl.c (grub_dl_check_header): Make static.
36802 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36804 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36805 add drivemap for Vista. It breaks Windows 7.
36807 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36809 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36812 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36816 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36817 (grub_fstest_SOURCES): Likewise.
36818 (pkglib_MODULES): Add befs.mod.
36819 (befs_mod_SOURCES): New variable.
36820 (befs_mod_CFLAGS): Likewise.
36821 (befs_mod_LDFLAGS): Likewise.
36822 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36823 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36824 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36825 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36826 (grub_setup_SOURCES): Likewise.
36827 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36828 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36829 (grub_setup_SOURCES): Likewise.
36830 * fs/befs.c: New file.
36831 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36832 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36833 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36834 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36835 (B_KEY_INDEX_ALIGN): New declaration.
36836 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36837 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36838 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36839 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36840 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36841 (grub_afs_mount) [MODE_BFS]: Likewise.
36842 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36843 (grub_afs_fs): Use GRUB_AFS_FSNAME
36844 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36845 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36846 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36847 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36849 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36851 * util/getroot.c (find_root_device): Add support for MacOSX.
36852 * util/hostdisk.c: Likewise.
36854 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36856 * font/font.c (find_glyph): Check whether a font is present to avoid
36857 segmentation fault.
36859 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36861 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36863 2009-07-20 Pavel Roskin <proski@gnu.org>
36865 * configure.ac: Trim excessively wordy excuses.
36867 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36869 Add symlink, mtime and label support to AtheFS.
36871 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36872 (grub_afs_iterate_dir): Handle symlinks.
36873 (grub_afs_open): Use grub_afs_read_symlink.
36874 (grub_afs_dir): Likewise.
36876 (grub_afs_label): New function.
36877 (grub_afs_fs): Add grub_afs_label.
36878 (grub_afs_read_symlink): New function.
36880 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36882 Fix AtheFS support.
36884 * fs/afs.c: Fix comments style.
36885 (grub_afs_blockrun): Declare as packed.
36886 (grub_afs_datastream): Likewise.
36887 (grub_afs_bnode): Likewise.
36888 (grub_afs_btree): Likewise.
36889 (grub_afs_sblock): Likewise.
36890 Declare `name' as char.
36891 (grub_afs_inode): Declare as packed.
36892 Change void *vnode to grub_uint32_t unused.
36893 (grub_afs_iterate_dir): Check that key_size is positive.
36894 (grub_afs_mount): Don't read superblock twice.
36895 (grub_afs_dir): Don't free node in case of error,
36896 grub_fshelp_find_file already handles this.
36897 (grub_afs_open): Likewise.
36899 2009-07-19 Pavel Roskin <proski@gnu.org>
36901 * Makefile.in: Remove LIBLZO and enable_lzo.
36902 * conf/i386-pc.rmk: Remove lzo support.
36903 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36904 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36906 * kern/i386/pc/lzo1x.S: Remove.
36907 * kern/i386/pc/startup.S: Remove lzo support.
36908 * util/i386/pc/grub-mkimage.c: Likewise.
36910 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36912 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36913 * fs/xfs.c (grub_xfs_dir): Likewise.
36914 * fs/afs.c (grub_afs_dir): Likewise.
36915 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36916 (grub_iso9660_open): Likewise.
36917 * fs/jfs.c (grub_jfs_open): Likewise.
36918 * fs/ext2.c (grub_ext2_dir): Likewise.
36919 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36920 * script/sh/lexer.c (grub_script_yylex): Likewise.
36922 2009-07-16 Pavel Roskin <proski@gnu.org>
36924 * configure.ac: Never add "-c" to CFLAGS.
36926 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36928 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36929 grub_cv_cc_efiemu should be used.
36931 * configure.ac: Typo fixes.
36933 * kern/mm.c (grub_zalloc): New function.
36934 (grub_debug_zalloc): Likewise.
36935 * include/grub/mm.h: Declare grub_zalloc() and
36936 grub_debug_zalloc().
36937 * util/misc.c (grub_zalloc): New function.
36938 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36939 instead of grub_malloc(), remove unneeded initializations.
36940 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36941 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36942 * commands/parttool.c (grub_cmd_parttool): Likewise.
36943 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36944 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36945 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36946 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36947 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36948 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36949 (grub_cmd_efiemu_pnvram): Likewise.
36950 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36951 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36952 (grub_iso9660_iterate_dir): Likewise.
36953 * fs/jfs.c (grub_jfs_opendir): Likewise.
36954 * fs/ntfs.c (list_file): Likewise.
36955 (grub_ntfs_mount): Likewise.
36956 * kern/disk.c (grub_disk_open): Likewise.
36957 * kern/dl.c (grub_dl_load_core): Likewise.
36958 * kern/elf.c (grub_elf_file): Likewise.
36959 * kern/env.c (grub_env_context_open): Likewise.
36960 (grub_env_set): Likewise.
36961 (grub_env_set_data_slot): Likewise.
36962 * kern/file.c (grub_file_open): Likewise.
36963 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36964 * loader/i386/multiboot.c (grub_module): Likewise.
36965 * loader/xnu.c (grub_xnu_create_key): Likewise.
36966 (grub_xnu_create_value): Likewise.
36967 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36968 (read_config_file): Likewise.
36969 * normal/menu_entry.c (make_screen): Likewise.
36970 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36971 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36972 * script/sh/script.c (grub_script_parse): Likewise.
36973 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36974 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36975 * video/readers/png.c (grub_png_output_byte): Likewise.
36976 (grub_video_reader_png): Likewise.
36978 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36980 Enable all targets that can be built by default
36982 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36983 grub-mkfont and grub-fstest if they can be built
36985 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36987 Fix hang and segmentation fault in grub-emu-usb
36989 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36990 * util/usb.c (grub_libusb_devices): likewise
36991 (grub_libusb_init): rename to ...
36992 (GRUB_MOD_INIT (libusb)):...this
36993 (grub_libusb_fini): rename to ..
36994 (GRUB_MOD_FINI (libusb)):...this
36995 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36996 * include/grub/disk.h (grub_raid_init): removed, it's useless
36997 (grub_raid_fini): likewise
36998 (grub_lvm_init): likewise
36999 (grub_lvm_fini): likewise
37000 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
37003 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
37007 * Makefile.in (LIBUSB): new macro
37008 * genmk.rb (Utility/print_tail): new method
37009 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
37010 (top level): call util.print_tail at the end.
37012 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
37014 Make FreeBSD accept zpool.cache
37016 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
37017 type is /boot/zfs/zpool.cache
37019 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
37023 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
37024 correct wrong typedef
37025 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
37027 2009-07-15 Pavel Roskin <proski@gnu.org>
37029 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
37030 * kern/disk.c (struct grub_disk_cache): Likewise.
37032 * commands/probe.c (options): Typo fix.
37034 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
37035 Increase to 0x5a to accommodate FAT32. Adjust other offsets
37037 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
37039 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
37040 the end of "Error" to make the message more readable.
37042 * boot/i386/pc/boot.S (kernel_segment): Remove.
37043 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
37046 * boot/i386/pc/boot.S (boot_version): Remove.
37047 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
37050 * include/grub/i386/pc/boot.h: Sort all offsets.
37051 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
37052 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
37053 * boot/i386/pc/boot.S: Assert location of every offset listed in
37054 include/grub/i386/pc/boot.h.
37056 2009-07-13 Pavel Roskin <proski@gnu.org>
37058 * include/grub/i386/coreboot/machine.h: Rename
37059 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
37060 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
37061 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
37063 * kern/dl.c: Force native word size to suppress warnings when
37064 compiling grub-emu.
37066 * kern/device.c (grub_device_iterate): Change struct part_ent to
37067 hold the name, not a pointer to it. Use one grub_malloc() per
37068 partition, not two. Free partition_name if grub_malloc() fails.
37069 Set ents to NULL only before grub_partition_iterate() is called.
37071 2009-07-11 Bean <bean123ch@gmail.com>
37073 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
37076 2009-07-10 Bean <bean123ch@gmail.com>
37077 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
37079 * kern/ieee1275/openfw.c (grub_children_iterate)
37080 (grub_devalias_iterate): Fix size evaluation for property or path
37081 strings, which was broken since r2132.
37083 2009-07-07 Pavel Roskin <proski@gnu.org>
37085 * commands/search.c (search_file): Merge into ...
37086 (search_fs): ... this. Accept search type as argument.
37087 (grub_cmd_search): Pass search type to search_fs().
37089 * include/grub/util/console.h: New file.
37090 * util/console.c: Use it instead of grub/machine/console.h.
37091 * util/grub-emu.c: Likewise.
37093 * lib/arg.c (find_long_option): Remove.
37094 (find_long): Add `len' argument, make `s' const char *.
37095 (grub_arg_parse): Parse long options in place, not in a
37098 2009-07-06 Pavel Roskin <proski@gnu.org>
37100 * commands/search.c (search_fs): Fix potential NULL pointer
37103 * commands/search.c (search_fs): Replace QUID macro with quid_fn
37106 2009-07-06 Daniel Mierswa <impulze@impulze.org>
37108 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
37111 2009-07-05 Pavel Roskin <proski@gnu.org>
37113 * include/grub/i386/linux.h (struct linux_kernel_params):
37114 Restore padding3, it's still needed.
37116 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
37118 * util/osdetect.lua: Likewise.
37120 2009-07-05 Bean <bean123ch@gmail.com>
37122 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
37124 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
37125 (grub_lua_getenv): Likewise.
37126 (grub_lua_setenv): Likewise.
37127 (save_errno): New function.
37128 (push_result): Likewise.
37129 (grub_lua_enum_device): Likewise.
37130 (grub_lua_enum_file): Likewise.
37131 (grub_lua_file_open): Likewise.
37132 (grub_lua_file_close): Likewise.
37133 (grub_lua_file_seek): Likewise.
37134 (grub_lua_file_read): Likewise.
37135 (grub_lua_file_getline): Likewise.
37136 (grub_lua_file_getsize): Likewise.
37137 (grub_lua_file_getpos): Likewise.
37138 (grub_lua_file_eof): Likewise.
37139 (grub_lua_file_exist): Likewise.
37140 (grub_lua_add_menu): Likewise.
37142 * script/lua/grub_lua.h (isupper): New inline function.
37143 (islower): Likewise.
37144 (ispunct): Likewise.
37145 (isxdigit): Likewise.
37146 (strcspn): Change to normal function.
37147 (strpbkr): New function declaration.
37148 (memchr): Likewise.
37150 * script/lua/grub_main.c (scan_str): New function.
37151 (strcspn): Likewise.
37152 (strpbrk): Likewise.
37153 (memchr): Likewise.
37155 * script/lua/linit.c (lualibs): Enable the string library.
37157 * util/osdetect.lua: New file.
37159 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
37161 * include/grub/i386/linux.h (struct linux_kernel_params): Add
37162 `capabilities' member.
37164 2009-07-02 Pavel Roskin <proski@gnu.org>
37166 * genparttoollist.sh: Add missing newline at the end.
37168 2009-07-01 Pavel Roskin <proski@gnu.org>
37170 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
37172 * util/hostdisk.c (open_device): Remove `const' from
37173 `sysctl_size', as sysctlbyname() can change it (in this case it
37174 doesn't actually happen).
37176 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
37177 using signed long int constants.
37179 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
37180 constant to avoid a warning on FreeBSD.
37182 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37185 * Makefile.in: Install include/grub/machine symlink.
37187 * Makefile.in: When installing symlinks, use "cp -fR", which
37188 works on FreeBSD and MacOSX.
37189 From Yves Blusseau <cl7m42e02@sneakemail.com>
37191 * kern/dl.c (grub_dl_resolve_symbol): Make static.
37192 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37194 * util/misc.c: Move grub_reboot() and grub_halt() ...
37195 * util/grub-emu.c: ... here. Make main_env static.
37196 * include/grub/util/misc.h: Remove main_env.
37198 * kern/mm.c: Use correct format to print size_t.
37200 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37201 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37202 * kern/powerpc/dl.c: Likewise.
37203 * kern/sparc64/dl.c: Likewise.
37204 * kern/x86_64/dl.c: Likewise.
37206 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37208 Fix grub-emu build on sparc64-ieee1275.
37210 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37211 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37213 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37215 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37216 (grub_reboot, grub_halt): New functions.
37218 * util/i386/pc/misc.c: Delete. Update all users.
37219 * util/sparc64/ieee1275/misc.c: Likewise.
37220 * util/powerpc/ieee1275/misc.c: Likewise.
37222 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37224 * conf/i386.rmk (setjmp_mod_SOURCES)
37225 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37226 * conf/common.rmk (setjmp_mod_SOURCES)
37227 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37228 to use $(target_cpu).
37229 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37230 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37231 * conf/powerpc-ieee1275.rmk: Likewise.
37232 * conf/sparc64-ieee1275.rmk: Likewise.
37234 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37235 $(target_cpu) for kern/$(target_cpu)/dl.c.
37236 * conf/i386-efi.rmk: Likewise.
37237 * conf/i386-ieee1275.rmk: Likewise.
37238 * conf/x86_64-efi.rmk: Likewise.
37239 * conf/i386-coreboot.rmk: Likewise.
37240 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37241 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37242 kern/$(target_cpu)/cache.S.
37243 * conf/sparc64-ieee1275.rmk: Likewise.
37245 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37247 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37248 type to `grub_uint8_t', and adjust `padding9' accordingly.
37250 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37252 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37254 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37255 assembly in final jump, using register constraints.
37257 (grub_linux_boot): For text mode, initialize `have_vga' using
37258 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37260 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37261 right before the final jump.
37263 Set `video_mode' to 0x3.
37265 Document initialization of `video_page', `video_mode' and
37268 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37270 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37271 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37272 and set GRUB_LINUX_FLAG_QUIET appropriately.
37274 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37276 Fix build on Debian / sparc.
37278 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37280 2009-06-28 Pavel Roskin <proski@gnu.org>
37282 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37285 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37287 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37289 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37292 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37296 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37297 file can't be opened. grub_file_open() is already supposed to set
37298 grub_errno / grub_errmsg appropriately.
37299 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37301 2009-06-27 Pavel Roskin <proski@gnu.org>
37302 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37304 * include/grub/dl.h: Include grub/elf.h.
37305 (struct grub_dl): Add symtab field.
37306 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37307 GRUB_MODULES_MACHINE_READONLY.
37308 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37309 of the header for read-only modules.
37310 (grub_dl_unload): Free mod->symtab for read-only modules.
37311 * kern/i386/dl.c: Use mod->symtab.
37312 * kern/powerpc/dl.c: Likewise.
37313 * kern/sparc64/dl.c: Likewise.
37314 * kern/x86_64/dl.c: Likewise.
37316 * conf/i386-qemu.rmk: New file.
37317 * kern/i386/qemu/startup.S: Likewise.
37318 * kern/i386/qemu/mmap.c: Likewise.
37319 * boot/i386/qemu/boot.S: Likewise.
37320 * include/grub/i386/qemu/time.h: Likewise.
37321 * include/grub/i386/qemu/serial.h: Likewise.
37322 * include/grub/i386/qemu/kernel.h: Likewise.
37323 * include/grub/i386/qemu/console.h: Likewise.
37324 * include/grub/i386/qemu/boot.h: Likewise.
37325 * include/grub/i386/qemu/init.h: Likewise.
37326 * include/grub/i386/qemu/machine.h: Likewise.
37327 * include/grub/i386/qemu/loader.h: Likewise.
37328 * include/grub/i386/qemu/memory.h: Likewise.
37330 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37331 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37332 [qemu] (pkglib_IMAGES): Add `boot.img'.
37333 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37334 [qemu] (boot_img_FORMAT): New variables.
37335 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37336 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37337 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37338 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37339 [qemu] (kernel_img_FORMAT): New variables.
37341 * configure.ac: Recognise `i386-qemu'.
37343 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37344 (for no compression).
37345 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37346 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37347 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37348 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37351 2009-06-27 Pavel Roskin <proski@gnu.org>
37353 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37355 * efiemu/prepare32.c: Likewise.
37356 * efiemu/prepare64.c: Likewise.
37358 2009-06-26 Pavel Roskin <proski@gnu.org>
37360 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37361 * include/grub/elf.h: Define symbols without "32" or "64" based
37362 on GRUB_TARGET_WORDSIZE.
37363 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37364 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37366 * efiemu/loadcore64.c: Likewise.
37367 * loader/i386/bsd32.c: Likewise.
37368 * loader/i386/bsd64.c: Likewise.
37369 * kern/dl.c: Remove own ELF definitions.
37370 * util/i386/efi/grub-mkimage.c: Likewise.
37372 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37374 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37375 segment 0x0 unconditionally, because the reference generated by
37376 GAS is an absolute address.
37378 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37380 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37381 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37383 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37385 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37386 indexes. Check for -f explicitly.
37387 (search_file): Improve error message.
37388 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37390 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37392 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37393 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37395 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37397 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37398 * conf/i386-ieee1275.rmk: Likewise.
37399 * conf/i386-coreboot.rmk: Likewise.
37401 * kern/i386/pc/startup.S (grub_stop): Remove function.
37402 * kern/i386/ieee1275/startup.S: Likewise.
37403 * kern/i386/coreboot/startup.S: Likewise.
37404 * kern/i386/misc.S (grub_stop): New function.
37406 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37408 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37409 * kern/i386/realmode.S (real_to_prot): ... to here.
37411 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37413 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37415 (kernel_elf_SOURCES): Rename to ...
37416 (kernel_img_SOURCES): ... this.
37417 (kernel_elf_HEADERS): Rename to ...
37418 (kernel_img_HEADERS): ... this. Update all users.
37419 (kernel_elf_ASFLAGS): Rename to ...
37420 (kernel_img_ASFLAGS): ... this.
37421 (kernel_elf_CFLAGS): Rename to ...
37422 (kernel_img_CFLAGS): ... this.
37423 (kernel_elf_LDFLAGS): Rename to ...
37424 (kernel_img_LDFLAGS): ... this.
37425 * conf/i386-coreboot.rmk: Likewise.
37426 * conf/powerpc-ieee1275.rmk: Likewise.
37428 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37431 2009-06-21 Pavel Roskin <proski@gnu.org>
37433 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37434 to match nested functions.
37435 * loader/sparc64/ieee1275/linux.c: Likewise.
37437 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37439 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37441 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37442 all i386 platforms.
37444 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37446 Fix asm file handling on ELF, and remove workarounds.
37448 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37449 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37450 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37451 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37453 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37455 Load BSD ELF modules
37457 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37458 and loader/i386/bsd64.c
37459 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37460 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37461 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37462 (grub_freebsd_load_elfmodule32): New declaration
37463 (grub_freebsd_load_elfmoduleobj64): Likewise
37464 (grub_freebsd_load_elf_meta32): Likewise
37465 (grub_freebsd_load_elf_meta64): Likewise
37466 (grub_freebsd_add_meta): Likewise
37467 (grub_freebsd_add_meta_module): Likewise
37468 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37469 (grub_freebsd_add_meta_module): Likewise and move module-specific
37470 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37471 (grub_cmd_freebsd): Add elf-kernel specific parts
37472 based on grub_freebsd_add_meta_module
37473 (grub_cmd_freebsd_module): Add type parsing moved from
37474 grub_freebsd_add_meta_module
37475 (grub_cmd_freebsd_module_elf): New function
37476 (cmd_freebsd_module_elf): New variable
37477 (GRUB_MOD_INIT): Register freebsd_module_elf
37478 * loader/i386/bsd32.c: New file
37479 * loader/i386/bsd64.c: Likewise
37480 * loader/i386/bsdXX.c: Likewise
37481 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37482 (grub_elf64_load): Likewise
37483 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37485 (grub_elf64_load_hook_t): Likewise
37487 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37489 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37491 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37492 don't write a menu entry for recovery mode.
37494 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37496 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37497 after it's no longer needed.
37499 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37501 * include/grub/i386/loader.h (grub_linux_prot_size)
37502 (grub_linux_tmp_addr, grub_linux_real_addr)
37503 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37504 GRUB_MACHINE_PCBIOS.
37505 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37506 common grub_util_info() call to ...
37507 (generate_image): ... here.
37508 Fix use of uninitialized memory, comparison of signed with
37509 unsigned integers and memory leak.
37510 Remove bogus module address message.
37512 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37514 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37516 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37518 2009-06-19 Pavel Roskin <proski@gnu.org>
37520 * configure.ac: Remove stray AC_MSG_CHECKING.
37522 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37524 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37526 2009-06-18 Pavel Roskin <proski@gnu.org>
37528 * conf/common.rmk: Add fs_file.mod.
37529 * disk/fs_file.c: New file.
37530 * include/grub/disk.h (enum grub_disk_dev_id): Add
37531 GRUB_DISK_DEVICE_FILE_ID.
37533 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37535 Fix build with Apple's toolchain. Part 2
37537 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37540 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37542 Fix build with Apple's toolchain. Part 1
37544 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37546 * configure.ac: remove a leftover AC_MSG_RESULT
37547 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37550 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37554 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37555 (decomp_block): initialize ch
37556 use grub_memcpy instead of memcpy
37558 2009-06-17 Pavel Roskin <proski@gnu.org>
37560 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37561 version, use declarations needed to use vga_text as the startup
37564 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37565 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37567 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37568 and grub_at_keyboard_fini(), it's done on module load and
37571 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37573 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37574 file can't be found.
37575 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37577 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37579 Fix newline handling
37581 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37582 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37583 (grub_script_yylex): don't segfault on unterminated script
37584 newline terminates command and variable
37586 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37588 avoid double grub_adjust_range call. Bug reported by David Simner
37590 * kern/disk.c (grub_disk_write): change to raw disk access before
37593 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37595 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37596 spaces, for the benefit of help2man.
37597 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37599 2009-06-16 Pavel Roskin <proski@gnu.org>
37601 * kern/i386/halt.c: Include grub/machine/init.h.
37602 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37604 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37606 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37607 drivemap menuentry.
37609 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37611 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37614 2009-06-16 Pavel Roskin <proski@gnu.org>
37616 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37617 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37618 save %dx, we only need %dl and we never change it.
37619 * boot/i386/pc/cdboot.S: Don't set the root drive.
37620 * boot/i386/pc/pxeboot.S: Likewise.
37621 * include/grub/i386/pc/boot.h: Remove
37622 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37623 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37624 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37625 * kern/i386/pc/init.c (make_install_device): Remove references
37626 to grub_root_drive.
37627 * kern/i386/pc/startup.S: Likewise.
37628 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37630 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37634 * commands/xnu_uuid.c: new file
37635 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37636 (xnu_uuid_mod_SOURCES): new variable
37637 (xnu_uuid_mod_CFLAGS): likewise
37638 (xnu_uuid_mod_LDFLAGS): likewise
37639 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37640 * conf/i386-ieee1275.rmk: likewise
37641 * conf/i386-pc.rmk: likewise
37642 * conf/powerpc-ieee1275.rmk: likewise
37643 * conf/sparc64-ieee1275.rmk: likewise
37644 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37646 2009-06-16 Pavel Roskin <proski@gnu.org>
37648 * configure.ac: Avoid '==' in test command, it's not portable.
37650 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37654 * commands/probe.c: new file
37655 * conf/common.rmk (pkglib_MODULES): add probe.mod
37656 (probe_mod_SOURCES): new variable
37657 (probe_mod_CFLAGS): likewise
37658 (probe_mod_LDFLAGS): likewise
37659 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37660 * conf/i386-ieee1275.rmk: likewise
37661 * conf/i386-pc.rmk: likewise
37662 * conf/powerpc-ieee1275.rmk: likewise
37663 * conf/sparc64-ieee1275.rmk: likewise
37665 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37667 Fix handling of string like \"hello\" and "a
37670 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37671 (grub_script_yylex): fix parsing of quoting, escaping and newline
37673 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37675 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37678 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37680 * util/grub-mkconfig.in: Fix parsing of --output option.
37682 2009-06-12 Pavel Roskin <proski@gnu.org>
37684 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37685 genmk.rb don't need to be generated or installed.
37687 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37689 * commands/i386/pc/drivemap_int13h.S: add more comments
37691 2009-06-11 Pavel Roskin <proski@gnu.org>
37693 * Makefile.in (uninstall): Uninstall manuals.
37695 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37696 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37697 and update-grub_lib in two places.
37698 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37700 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37701 a compiler warning.
37703 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37704 `entry_lo' to fix variable shadowing.
37706 2009-06-11 Christian Franke <franke@computer.org>
37708 * kern/misc.c (__enable_execute_stack): Add missing return type
37709 to prevent gcc warning.
37711 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37713 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37715 2009-06-11 Pavel Roskin <proski@gnu.org>
37717 * Makefile.in: Don't rely on any scripts being executable.
37718 Always use $(SHELL) to run shell scripts.
37720 * configure.ac: Always define ___main if using -nostdlib. This
37721 fixes tests on Cygwin.
37723 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37727 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37728 is in bytes and not in blocks
37730 2009-06-11 Pavel Roskin <proski@gnu.org>
37732 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37735 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37737 * util/grub.d/30_os-prober.in: Fix a comment. Source
37738 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37739 to set the root device. Place drivemap command in the generated
37742 2009-06-11 Pavel Roskin <proski@gnu.org>
37744 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37745 have long been resolved.
37747 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37749 * util/grub.d/10_linux.in: Capitalise "Linux".
37751 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37753 2009-06-11 Pavel Roskin <proski@gnu.org>
37755 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37756 fix a gcc warning and ensure that the function won't ever exit.
37758 * kern/i386/ieee1275/init.c: Add missing prototype for
37759 grub_stop_floppy().
37761 * loader/ieee1275/multiboot2.c [__i386__]: Include
37762 grub/cpu/multiboot.h.
37764 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37765 casts to short - they are not portable and cause warnings. Fix
37766 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37768 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37772 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37774 (grub_get_root_biosnumber_saved): new variable
37775 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37776 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37777 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37778 %dx after the call if necessary
37779 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37780 (boot_mod_SOURCES): remove
37781 (boot_mod_CFLAGS): remove
37782 (boot_mod_LDFLAGS): remove
37783 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37784 (boot_mod_SOURCES): new variable
37785 (boot_mod_CFLAGS): likewise
37786 (boot_mod_LDFLAGS): likewise
37787 * conf/i386-efi.rmk: likewise
37788 * conf/i386-ieee1275.rmk: likewise
37789 * conf/i386-pc.rmk: likewise
37790 * conf/powerpc-ieee1275.rmk: likewise
37791 * conf/sparc64-ieee1275.rmk: likewise
37792 * conf/x86_64-efi.rmk: likewise
37793 * include/grub/i386/pc/biosnum.h: new file
37794 * lib/i386/pc/biosnum.c: likewise
37795 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37796 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37797 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37799 2009-06-10 Pavel Roskin <proski@gnu.org>
37801 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37802 Use separate variables. Read only the file size at the end, but
37803 not the checksum that we don't use.
37805 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37806 Adjust all callers.
37808 * kern/ieee1275/openfw.c: Remove libc includes.
37809 * kern/ieee1275/cmain.c: Likewise.
37810 * include/grub/ieee1275/ieee1275.h: Likewise.
37812 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37815 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37817 * Makefile.in: Remove all trailing whitespace.
37818 * conf/i386-pc.rmk: Likewise.
37819 * conf/powerpc-ieee1275.rmk: Likewise.
37820 * conf/sparc64-ieee1275.rmk: Likewise.
37821 * docs/grub.texi: Likewise.
37822 * docs/texinfo.tex: Likewise.
37823 * disk/fs_uuid.c: Likewise.
37824 * disk/lvm.c: Likewise.
37825 * disk/scsi.c: Likewise.
37826 * disk/ata.c: Likewise.
37827 * disk/ieee1275/ofdisk.c: Likewise.
37828 * disk/i386/pc/biosdisk.c: Likewise.
37829 * disk/host.c: Likewise.
37830 * disk/raid.c: Likewise.
37831 * disk/efi/efidisk.c: Likewise.
37832 * disk/usbms.c: Likewise.
37833 * disk/memdisk.c: Likewise.
37834 * disk/loopback.c: Likewise.
37835 * kern/powerpc/dl.c: Likewise.
37836 * kern/device.c: Likewise.
37837 * kern/dl.c: Likewise.
37838 * kern/sparc64/dl.c: Likewise.
37839 * kern/ieee1275/ieee1275.c: Likewise.
37840 * kern/term.c: Likewise.
37841 * kern/fs.c: Likewise.
37842 * kern/i386/dl.c: Likewise.
37843 * kern/i386/pc/startup.S: Likewise.
37844 * kern/i386/pc/init.c: Likewise.
37845 * kern/i386/pc/mmap.c: Likewise.
37846 * kern/i386/pc/lzo1x.S: Likewise.
37847 * kern/i386/ieee1275/init.c: Likewise.
37848 * kern/i386/realmode.S: Likewise.
37849 * kern/i386/tsc.c: Likewise.
37850 * kern/partition.c: Likewise.
37851 * kern/corecmd.c: Likewise.
37852 * kern/file.c: Likewise.
37853 * kern/efi/efi.c: Likewise.
37854 * kern/efi/init.c: Likewise.
37855 * kern/efi/mm.c: Likewise.
37856 * kern/main.c: Likewise.
37857 * kern/err.c: Likewise.
37858 * kern/env.c: Likewise.
37859 * kern/disk.c: Likewise.
37860 * kern/generic/millisleep.c: Likewise.
37861 * kern/generic/rtc_get_time_ms.c: Likewise.
37862 * kern/misc.c: Likewise.
37863 * kern/parser.c: Likewise.
37864 * genmk.rb: Likewise.
37865 * configure.ac: Likewise.
37866 * boot/i386/pc/diskboot.S: Likewise.
37867 * boot/i386/pc/pxeboot.S: Likewise.
37868 * boot/i386/pc/boot.S: Likewise.
37869 * boot/i386/pc/lnxboot.S: Likewise.
37870 * boot/i386/pc/cdboot.S: Likewise.
37871 * parttool/pcpart.c: Likewise.
37872 * video/readers/tga.c: Likewise.
37873 * video/video.c: Likewise.
37874 * video/bitmap.c: Likewise.
37875 * lib/envblk.c: Likewise.
37876 * lib/i386/setjmp.S: Likewise.
37877 * fs/xfs.c: Likewise.
37878 * fs/afs.c: Likewise.
37879 * fs/fat.c: Likewise.
37880 * fs/ntfs.c: Likewise.
37881 * fs/udf.c: Likewise.
37882 * fs/affs.c: Likewise.
37883 * fs/iso9660.c: Likewise.
37884 * fs/hfs.c: Likewise.
37885 * fs/fshelp.c: Likewise.
37886 * fs/ext2.c: Likewise.
37887 * fs/jfs.c: Likewise.
37888 * fs/reiserfs.c: Likewise.
37889 * fs/hfsplus.c: Likewise.
37890 * fs/minix.c: Likewise.
37891 * fs/cpio.c: Likewise.
37892 * fs/sfs.c: Likewise.
37893 * fs/ufs.c: Likewise.
37894 * efiemu/prepare.c: Likewise.
37895 * efiemu/loadcore_common.c: Likewise.
37896 * efiemu/runtime/efiemu.sh: Likewise.
37897 * efiemu/runtime/efiemu.S: Likewise.
37898 * efiemu/runtime/efiemu.c: Likewise.
37899 * efiemu/pnvram.c: Likewise.
37900 * efiemu/main.c: Likewise.
37901 * efiemu/i386/pc/cfgtables.c: Likewise.
37902 * efiemu/i386/loadcore64.c: Likewise.
37903 * efiemu/i386/loadcore32.c: Likewise.
37904 * efiemu/loadcore.c: Likewise.
37905 * efiemu/symbols.c: Likewise.
37906 * efiemu/mm.c: Likewise.
37907 * include/grub/autoefi.h: Likewise.
37908 * include/grub/datetime.h: Likewise.
37909 * include/grub/term.h: Likewise.
37910 * include/grub/hfs.h: Likewise.
37911 * include/grub/lvm.h: Likewise.
37912 * include/grub/i386/tsc.h: Likewise.
37913 * include/grub/i386/linux.h: Likewise.
37914 * include/grub/i386/xnu.h: Likewise.
37915 * include/grub/i386/efiemu.h: Likewise.
37916 * include/grub/i386/pc/biosdisk.h: Likewise.
37917 * include/grub/i386/pc/memory.h: Likewise.
37918 * include/grub/i386/pc/vbe.h: Likewise.
37919 * include/grub/parttool.h: Likewise.
37920 * include/grub/video.h: Likewise.
37921 * include/grub/memory.h: Likewise.
37922 * include/grub/fs.h: Likewise.
37923 * include/grub/partition.h: Likewise.
37924 * include/grub/xnu.h: Likewise.
37925 * include/grub/efi/api.h: Likewise.
37926 * include/grub/efi/pe32.h: Likewise.
37927 * include/grub/efi/memory.h: Likewise.
37928 * include/grub/multiboot.h: Likewise.
37929 * include/grub/usbdesc.h: Likewise.
37930 * include/grub/multiboot2.h: Likewise.
37931 * include/grub/acpi.h: Likewise.
37932 * include/grub/efiemu/efiemu.h: Likewise.
37933 * include/grub/disk.h: Likewise.
37934 * include/grub/ieee1275/ieee1275.h: Likewise.
37935 * include/grub/net.h: Likewise.
37936 * include/grub/machoload.h: Likewise.
37937 * include/grub/macho.h: Likewise.
37938 * include/multiboot.h: Likewise.
37939 * genmoddep.awk: Likewise.
37940 * normal/main.c: Likewise.
37941 * normal/menu_entry.c: Likewise.
37942 * normal/menu_viewer.c: Likewise.
37943 * normal/completion.c: Likewise.
37944 * normal/cmdline.c: Likewise.
37945 * normal/misc.c: Likewise.
37946 * normal/datetime.c: Likewise.
37947 * bus/usb/usbtrans.c: Likewise.
37948 * bus/usb/ohci.c: Likewise.
37949 * bus/usb/uhci.c: Likewise.
37950 * bus/usb/usb.c: Likewise.
37951 * mmap/efi/mmap.c: Likewise.
37952 * mmap/i386/pc/mmap_helper.S: Likewise.
37953 * mmap/i386/pc/mmap.c: Likewise.
37954 * mmap/i386/mmap.c: Likewise.
37955 * mmap/i386/uppermem.c: Likewise.
37956 * mmap/mmap.c: Likewise.
37957 * commands/acpi.c: Likewise.
37958 * commands/echo.c: Likewise.
37959 * commands/blocklist.c: Likewise.
37960 * commands/loadenv.c: Likewise.
37961 * commands/usbtest.c: Likewise.
37962 * commands/boot.c: Likewise.
37963 * commands/parttool.c: Likewise.
37964 * commands/search.c: Likewise.
37965 * commands/cat.c: Likewise.
37966 * commands/i386/pc/play.c: Likewise.
37967 * commands/i386/pc/drivemap.c: Likewise.
37968 * commands/i386/pc/vbeinfo.c: Likewise.
37969 * commands/i386/pc/acpi.c: Likewise.
37970 * commands/i386/pc/vbetest.c: Likewise.
37971 * commands/ls.c: Likewise.
37972 * commands/cmp.c: Likewise.
37973 * commands/test.c: Likewise.
37974 * commands/efi/acpi.c: Likewise.
37975 * commands/gptsync.c: Likewise.
37976 * commands/help.c: Likewise.
37977 * partmap/amiga.c: Likewise.
37978 * partmap/apple.c: Likewise.
37979 * partmap/acorn.c: Likewise.
37980 * partmap/pc.c: Likewise.
37981 * partmap/sun.c: Likewise.
37982 * partmap/gpt.c: Likewise.
37983 * script/sh/lexer.c: Likewise.
37984 * script/sh/function.c: Likewise.
37985 * font/font.c: Likewise.
37986 * font/font_cmd.c: Likewise.
37987 * loader/powerpc/ieee1275/linux.c: Likewise.
37988 * loader/efi/chainloader.c: Likewise.
37989 * loader/multiboot_loader.c: Likewise.
37990 * loader/macho.c: Likewise.
37991 * loader/i386/multiboot.c: Likewise.
37992 * loader/i386/linux.c: Likewise.
37993 * loader/i386/pc/linux.c: Likewise.
37994 * loader/i386/pc/multiboot2.c: Likewise.
37995 * loader/i386/pc/chainloader.c: Likewise.
37996 * loader/i386/pc/xnu.c: Likewise.
37997 * loader/i386/bsd_trampoline.S: Likewise.
37998 * loader/i386/efi/linux.c: Likewise.
37999 * loader/i386/multiboot_elfxx.c: Likewise.
38000 * loader/i386/bsd_helper.S: Likewise.
38001 * loader/i386/bsd.c: Likewise.
38002 * loader/i386/linux_trampoline.S: Likewise.
38003 * loader/i386/xnu_helper.S: Likewise.
38004 * loader/i386/xnu.c: Likewise.
38005 * loader/i386/bsd_pagetable.c: Likewise.
38006 * loader/i386/multiboot_helper.S: Likewise.
38007 * loader/xnu.c: Likewise.
38008 * loader/xnu_resume.c: Likewise.
38009 * io/gzio.c: Likewise.
38010 * term/efi/console.c: Likewise.
38011 * term/terminfo.c: Likewise.
38012 * term/ieee1275/ofconsole.c: Likewise.
38013 * term/i386/pc/serial.c: Likewise.
38014 * term/i386/pc/vesafb.c: Likewise.
38015 * term/i386/pc/vga.c: Likewise.
38016 * term/usb_keyboard.c: Likewise.
38017 * term/gfxterm.c: Likewise.
38018 * aclocal.m4: Likewise.
38019 * util/lvm.c: Likewise.
38020 * util/grub.d/30_os-prober.in: Likewise.
38021 * util/grub.d/10_hurd.in: Likewise.
38022 * util/console.c: Likewise.
38023 * util/grub-macho2img.c: Likewise.
38024 * util/grub-probe.c: Likewise.
38025 * util/hostfs.c: Likewise.
38026 * util/i386/pc/grub-mkimage.c: Likewise.
38027 * util/i386/pc/grub-setup.c: Likewise.
38028 * util/i386/efi/grub-mkimage.c: Likewise.
38029 * util/grub-mkconfig.in: Likewise.
38030 * util/raid.c: Likewise.
38031 * util/resolve.c: Likewise.
38032 * util/grub-mkdevicemap.c: Likewise.
38033 * util/grub-emu.c: Likewise.
38034 * util/getroot.c: Likewise.
38035 * util/hostdisk.c: Likewise.
38036 * util/usb.c: Likewise.
38037 * util/grub-editenv.c: Likewise.
38038 * util/misc.c: Likewise.
38040 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
38042 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
38043 `genparttoollist.sh'.
38044 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
38045 Add `*.sh' to the list find searches for and change `mdate.sh'
38048 2009-06-10 Pavel Roskin <proski@gnu.org>
38050 * include/grub/multiboot2.h: Provide compatibility defines for
38052 * include/multiboot2.h: Include stdint.h only if needed, using
38054 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
38056 * loader/ieee1275/multiboot2.c: Likewise.
38057 * loader/multiboot2.c: Likewise.
38058 * loader/multiboot_loader.c: Likewise.
38060 * configure.ac: Use -nostdlib when probing for the target. It
38061 should not be required to have libc for the target.
38063 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
38064 they fail without libc headers for the target.
38065 * include/grub/powerpc/libgcc.h: Use weak attribute for all
38067 * include/grub/sparc64/libgcc.h: Likewise. Don't use
38068 preprocessor conditionals.
38070 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
38071 build system doesn't need to be aware of the tar.c internals.
38073 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
38075 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
38077 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
38079 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
38080 disk limit to 26 for IDE, Virtio, Xen and SCSI.
38082 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
38084 * util/i386/pc/grub-install.in: Change the error message if UUIDs
38085 aren't available if ata.mod gets used.
38087 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
38089 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
38090 initialising controller.
38091 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38093 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38095 * util/i386/pc/grub-install.in: Add a parameter --disk-module
38096 to choose between ata and biosdisk module on i386-pc.
38098 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
38100 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
38101 Subclass and Programming Interface fields in terms of the 3 byte
38102 Class Code register.
38103 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38105 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
38106 interface is OHCI. Add grub_dprintf for symmetry with
38108 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
38109 interface is UHCI. Add interf variable for programming
38110 interface. Print interface with class/subclass.
38112 * bus/usb/ohci.c: Set interf with correct field.
38114 * bus/usb/uhci.c: Remove unneeded doubled lines.
38115 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
38116 Remove whitespace inside comment.
38118 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
38120 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
38121 as fallback an equivalent option without depth.
38123 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38125 Not fail if unable to retrieve C/H/S on LBA disks
38127 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
38128 if unable to retrieve C/H/S on LBA disks
38130 2009-06-08 Pavel Roskin <proski@gnu.org>
38132 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
38135 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38137 * Makefile.in (uninstall): Remove all $lib_DATA files.
38139 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38141 Bugfix: install on partitionless device
38143 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
38146 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38148 * Makefile.in (uninstall): Remove all $include_DATA files.
38150 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38152 * commands/true.c: New file. Implement the true and false commands.
38153 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
38154 (true_mod_SOURCES): New variable.
38155 (true_mod_CFLAGS): Likewise.
38156 (true_mod_LDFLAGS): Likewise.
38158 2009-06-05 Colin D Bennett <colin@gibibit.com>
38160 Optimized font character lookup using binary search instead of linear
38161 search. Fonts now are required to have the character index ordered by
38164 * font/font.c (load_font_index): Verify that fonts have ordered
38166 (find_glyph): Use binary search instead of linear search to find a
38167 character in a font.
38169 2009-06-05 Michael Scherer <misc@mandriva.org>
38171 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
38172 uses case sensitive btree.
38173 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
38174 only for case insensitive filesystems.
38176 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
38178 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
38179 * conf/common.rmk (search_mod_CFLAGS): likewise
38181 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38183 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
38184 compensate a compiler bug
38186 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38188 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
38191 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38193 Definitions for creating asm symbols with Apple's CC
38195 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38196 [APPLE_CC] (VARIABLE): likewise
38198 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38200 Disable lnxboot.img when compiled
38203 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38204 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38205 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38206 [! APPLE_CC] (CODE_LENG): skip
38207 [! APPLE_CC] (setup_sects): likewise
38208 [! APPLE_CC]: skip filling
38210 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38212 Address in trampolines based on 32-bit registers when compiled
38215 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38217 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38219 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38221 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38223 * kern/misc.c [APPLE_CC] (memcpy): new function
38224 [APPLE_CC] (memmove): likewise
38225 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38226 (memcpy): define alias conditionally on !APPLE_CC
38229 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38230 APPLE_CC are defined
38231 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38232 (grub_assert_fail): make prototype conditional
38234 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38236 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38238 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38240 (CLEANFILES): add grub-macho2img
38241 (grub_macho2img_SOURCES): new variable
38242 * kern/i386/pc/startup.S (bss_start): new variable
38243 (bss_end): likewise
38244 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38245 * util/grub-macho2img.c: new file
38247 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38249 Use objconv when compiling with Apple's CC
38251 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38252 (efiemu64.o): likewise
38253 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38254 when compiling with Apple's CC
38255 (efiemu64_s.o): likewise
38256 * configure.ac: check for objconv when compiling with Apple's CC
38257 * genmk.rb: use objconv for modules when compiled with Apple's CC
38259 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38261 Define segment as well as section when compiling with
38264 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38265 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38266 (efiemu_convert_pointer): likewise
38267 (efiemu_set_virtual_address_map): likewise
38268 (efiemu_convert_pointer): likewise
38269 (efiemu_getcrc32): likewise
38270 (init_crc32_table): likewise
38271 (reflect): likewise
38272 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38273 (GRUB_MOD_DEP): likewise
38275 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38277 Allow a compilation without -mcmodel=large
38279 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38280 when compiled without -mcmodel=large
38281 (filter_memory_map): remove memory post 4 GiB when compiled
38282 without -mcmodel=large
38283 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38284 TARGET_CFLAGS when -mcmodel=large isn't supported
38286 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38288 Remove nested functions in efiemu core
38290 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38292 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38294 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38296 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38298 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38300 (grub_cpu_is_tsc_supported): likewise
38301 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38303 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38305 Absolute addressing through constant with Apple's cc
38307 * kern/i386/pc/startup.S: Define necessary constants
38308 and address through it when using ABS with Apple's CC
38309 * boot/i386/pc/diskboot.S: likewise
38310 * boot/i386/pc/boot.S: likewise
38311 * boot/i386/pc/lnxboot.S: likewise
38312 * boot/i386/pc/cdboot.S: likewise
38313 * mmap/i386/pc/mmap_helper.S: likewise
38314 * commands/i386/pc/drivemap_int13h.S: likewise
38316 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38318 Check if compiler is apple cc
38320 * Makefile.in (ASFLAGS): new variable
38321 (TARGET_ASFLAGS): likewise
38322 (TARGET_MODULE_FORMAT): likewise
38323 (TARGET_APPLE_CC): likewise
38324 (OBJCONV): likewise
38325 (TARGET_IMG_CFLAGS): likewise
38326 (TARGET_CPPFLAGS): add includedir
38327 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38328 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38329 Check for linker script only if compiler isn't Apple's CC
38330 (TARGET_MODULE_FORMAT): set
38331 (TARGET_APPLE_CC): likewise
38332 (TARGET_ASFLAGS): likewise
38333 (ASFLAGS): likewise
38334 Check for objcopy only if compiler isn't Apple's CC
38335 Check for BSS symbol only if compiler isn't Apple's CC
38336 * genmk.rb: adapt nm options if we use Apple's utils
38337 * aclocal.m4 (grub_apple_cc): new test
38338 (grub_apple_target_cc): likewise
38340 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38342 Simplify sed expressions and improve awk
38344 * Makefile.in (install-local): simplify sed expression
38345 * gencmdlist.sh: likewise
38346 * genmoddep.awk: avoid adding module as a dependency of itself
38348 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38350 Add missing start symbols
38352 * boot/i386/pc/boot.S: add start
38353 * boot/i386/pc/pxeboot.S: likewise
38355 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38357 Fix wrong assumptions with grub-mkimage on EFI
38359 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38360 (relocate_addresses): consider both r_addend and value at offset
38361 (make_mods_section): zerofill modinfo and header
38362 (convert_elf): write prefix here
38364 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38366 Use .asciz instead of .string
38368 * i386/pc/diskboot.S: use .asciz instead of .string
38369 * i386/pc/boot.S: likewise
38370 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38371 (GRUB_MOD_NAME): likewise
38373 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38377 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38378 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38379 (grub_video_setup): remove
38380 (grub_video_set_mode): new prototype
38381 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38383 (linux_vesafb_res): compile only on PCBIOS
38384 (grub_linux_boot): support gfxpayload
38385 * loader/i386/pc/xnu.c (video_hook): new function
38386 (grub_xnu_set_video): support gfxpayload
38387 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38388 (DEFAULT_VIDEO_HEIGHT): likewise
38389 (DEFAULT_VIDEO_FLAGS): likewise
38390 (DEFAULT_VIDEO_MODE): new definition
38391 (video_hook): new function
38392 (grub_gfxterm_init): use grub_video_set_mode
38393 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38395 * video/video.c (grub_video_setup): removed
38396 (grub_video_set_mode): new function based on grub_gfxterm_init and
38399 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38401 Avoid calling biosdisk in drivemap
38403 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38404 (revparse_biosdisk): likewise
38405 (list_mappings): derive name from id directly
38406 (grub_cmd_drivemap): use tryparse_diskstring
38408 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38412 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38413 (grub_lexer_param): add tokenonhold
38414 (grub_script_create_cmdline): remove cmdline. All callers updated
38415 (grub_script_function_create): make functionname
38416 grub_script_arg. All callers updated
38417 (grub_script_execute_argument_to_string): new prototype
38418 * kern/parser.c (state_transitions): reorder
38419 (grub_parser_cmdline_state): fix a bug and make more compact
38420 * script/sh/execute.c (grub_script_execute_argument_to_string):
38422 (grub_script_execute_cmdline): use new format
38423 * script/sh/function.c (grub_script_function_create): make functionname
38424 grub_script_arg. All callers updated
38425 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38426 (grub_script_yylex): remove
38427 (grub_script_yylex2): renamed to ...
38428 (grub_script_yylex): ...renamed
38429 parse the expressions like a${b}c
38430 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38431 (GRUB_PARSER_TOKEN_VAR): remove
38432 (GRUB_PARSER_TOKEN_NAME): likewise
38433 ("if"): declare as typeless
38434 ("while"): likewise
38435 ("function"): likewise
38440 (argument): likewise
38441 (script): accept empty scripts and make exit on error
38442 (arguments): use GRUB_PARSER_TOKEN_ARG
38443 (function): likewise
38444 (command): move error handling to script
38445 (menuentry): move grub_script_lexer_ref before
38446 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38447 argument. All callers updated
38449 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38451 Prevent GRUB from probing floppies during boot.
38453 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38454 * commands/search.c (options): Add --no-floppy.
38455 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38456 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38457 --no-floppy when searching for UUIDs.
38459 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38461 Simplify the code duplication in commands/search.c.
38463 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38464 (search_fs): ... this. Update all users.
38466 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38468 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38470 2009-05-28 Pavel Roskin <proski@gnu.org>
38472 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38473 Remove the original symlink explicitly.
38475 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38476 just one slash. That's how grub_fshelp_find_file() does it.
38478 2009-05-26 Pavel Roskin <proski@gnu.org>
38480 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38483 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38486 2009-05-25 Christian Franke <franke@computer.org>
38488 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38490 (grub_atapi_identify): Add wait after drive select.
38491 (grub_ata_identify): Do more strict status register check before
38492 calling grub_atapi_identify (). Suppress error message if status
38493 register is 0x00 after command failure. Add status register
38494 check after PIO read to avoid bogus identify due to stuck DRQ.
38495 Thanks to Pavel Roskin for testing.
38496 (grub_device_initialize): Remove unsafe status register check.
38497 Thanks to 'phcoder' for problem report and patch.
38498 Prevent sign extension in debug message.
38500 2009-05-23 Colin D Bennett <colin@gibibit.com>
38502 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38503 definition file, and functions defined in `normal/menu.c' have had
38504 their prototypes moved to `include/grub/menu.h' for consistency.
38506 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38508 (grub_menu_get_entry): Likewise.
38509 (grub_menu_get_timeout): Likewise.
38510 (grub_menu_set_timeout): Likewise.
38511 (grub_menu_execute_entry): Likewise.
38512 (grub_menu_execute_with_fallback): Likewise.
38513 (grub_menu_entry_run): Likewise.
38515 * include/grub/normal.h: Re-ordered and grouped function
38516 prototypes by file that the function is defined in.
38517 (grub_menu_execute_callback): Removed; moved to menu.h.
38518 (grub_menu_get_entry): Likewise.
38519 (grub_menu_get_timeout): Likewise.
38520 (grub_menu_set_timeout): Likewise.
38521 (grub_menu_execute_entry): Likewise.
38522 (grub_menu_execute_with_fallback): Likewise.
38523 (grub_menu_entry_run): Likewise.
38524 (grub_menu_addentry): Renamed from this ...
38525 (grub_normal_add_menu_entry): ... to this.
38527 * normal/main.c (grub_menu_addentry): Renamed from this ...
38528 (grub_normal_add_menu_entry): ... to this.
38530 * script/sh/execute.c (grub_script_execute_menuentry): Update
38531 reference to renamed grub_menu_addentry function.
38533 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38535 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38537 2009-05-22 Pavel Roskin <proski@gnu.org>
38539 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38540 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38541 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38542 compiling for the i386 targets, but not for the utilities.
38544 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38546 (grub_root_drive): Likewise.
38547 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38549 (grub_root_drive): Change size to byte.
38550 (grub_start_addr): Remove.
38551 (grub_end_addr): Likewise.
38552 (grub_apm_bios_info): Likewise.
38554 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38556 * normal/i386: Remove.
38557 * normal/powerpc: Likewise.
38558 * normal/sparc64: Likewise.
38559 * normal/x86_64: Likewise.
38561 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38563 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38564 * loader/i386/linux_trampoline.S: Fix indentation
38565 * loader/i386/xnu_helper.S: Likewise
38567 2009-05-18 Colin D Bennett <colin@gibibit.com>
38569 Display error messages when parsing a Lua statement fails.
38570 Previously, executing a syntactically invalid statement like
38571 ")foo" or "bar;" would silently fail.
38573 * script/lua/grub_main.c (handle_lua_error): New function.
38574 (grub_lua_parse_line): Improved reporting of Lua parser and
38577 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38579 Remove -Werror which causes build to fail on some systems
38581 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38582 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38583 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38585 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38587 trampoline for linux on 64-bit platform
38589 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38590 loader/i386/efi/linux_trampoline.S
38591 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38593 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38595 * loader/i386/linux_trampoline.S: moved here
38596 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38598 (jumpvector): removed
38599 (grub_linux_trampoline_start): new declaration
38600 (grub_linux_trampoline_end): likewise
38601 (grub_linux_boot): use trampoline when on 64-bit platform
38602 * loader/i386/linux.c: likewise
38604 2009-05-16 Pavel Roskin <proski@gnu.org>
38606 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38607 const to avoid a warning.
38608 (grub_lua_setenv): Likewise.
38609 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38610 lmsg to fix a warning.
38612 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38614 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38615 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38616 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38617 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38618 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38619 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38620 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38621 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38623 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38625 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38627 2009-05-16 Bean <bean123ch@gmail.com>
38629 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38630 (lua_mod_SOURCES): New variable.
38631 (lua_mod_CFLAGS): Likewise.
38632 (lua_mod_LDFLAGS): Likewise.
38634 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38635 (setjmp_mod_SOURCES): New variable.
38636 (setjmp_mod_CFLAGS): Likewise.
38637 (setjmp_LDFLAGS): Likewise.
38639 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38640 (setjmp_mod_SOURCES): New variable.
38641 (setjmp_mod_CFLAGS): Likewise.
38642 (setjmp_LDFLAGS): Likewise.
38644 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38645 (setjmp_mod_SOURCES): New variable.
38646 (setjmp_mod_CFLAGS): Likewise.
38647 (setjmp_LDFLAGS): Likewise.
38649 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38650 (setjmp_mod_SOURCES): New variable.
38651 (setjmp_mod_CFLAGS): Likewise.
38652 (setjmp_LDFLAGS): Likewise.
38654 * normal/i386/setjmp.S: Moved from here ...
38655 * lib/i386/setjmp.S: ... Moved here
38656 * normal/x86_64/setjmp.S: Moved from here ...
38657 * lib/x86_64/setjmp.S: ... Moved here
38658 * normal/powerpc/setjmp.S: Moved from here ...
38659 * lib/powerpc/setjmp.S: ... Moved here
38660 * normal/sparc64/setjmp.S: Moved from here ...
38661 * lib/sparc64/setjmp.S: ... Moved here
38663 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38664 returns_twice in mingw.
38666 * script/lua/grub_lib.c: New file.
38667 * script/lua/grub_lib.h: Likewise.
38668 * script/lua/grub_lua.h: Likewise.
38669 * script/lua/grub_main.c: Likewise.
38670 * script/lua/lapi.c: Likewise.
38671 * script/lua/lapi.h: Likewise.
38672 * script/lua/lauxlib.c: Likewise.
38673 * script/lua/lauxlib.h: Likewise.
38674 * script/lua/lbaselib.c: Likewise.
38675 * script/lua/lcode.c: Likewise.
38676 * script/lua/lcode.h: Likewise.
38677 * script/lua/ldblib.c: Likewise.
38678 * script/lua/ldebug.c: Likewise.
38679 * script/lua/ldebug.h: Likewise.
38680 * script/lua/ldo.c: Likewise.
38681 * script/lua/ldo.h: Likewise.
38682 * script/lua/ldump.c: Likewise.
38683 * script/lua/lfunc.c: Likewise.
38684 * script/lua/lfunc.h: Likewise.
38685 * script/lua/lgc.c: Likewise.
38686 * script/lua/lgc.h: Likewise.
38687 * script/lua/linit.c: Likewise.
38688 * script/lua/liolib.c: Likewise.
38689 * script/lua/llex.c: Likewise.
38690 * script/lua/llex.h: Likewise.
38691 * script/lua/llimits.h: Likewise.
38692 * script/lua/lmathlib.c: Likewise.
38693 * script/lua/lmem.c: Likewise.
38694 * script/lua/lmem.h: Likewise.
38695 * script/lua/loadlib.c: Likewise.
38696 * script/lua/lobject.c: Likewise.
38697 * script/lua/lobject.h: Likewise.
38698 * script/lua/lopcodes.c: Likewise.
38699 * script/lua/lopcodes.h: Likewise.
38700 * script/lua/loslib.c: Likewise.
38701 * script/lua/lparser.c: Likewise.
38702 * script/lua/lparser.h: Likewise.
38703 * script/lua/lstate.c: Likewise.
38704 * script/lua/lstate.h: Likewise.
38705 * script/lua/lstring.c: Likewise.
38706 * script/lua/lstring.h: Likewise.
38707 * script/lua/lstrlib.c: Likewise.
38708 * script/lua/ltable.c: Likewise.
38709 * script/lua/ltable.h: Likewise.
38710 * script/lua/ltablib.c: Likewise.
38711 * script/lua/ltm.c: Likewise.
38712 * script/lua/ltm.h: Likewise.
38713 * script/lua/lua.h: Likewise.
38714 * script/lua/luaconf.h: Likewise.
38715 * script/lua/lualib.h: Likewise.
38716 * script/lua/lundump.c: Likewise.
38717 * script/lua/lundump.h: Likewise.
38718 * script/lua/lvm.c: Likewise.
38719 * script/lua/lvm.h: Likewise.
38720 * script/lua/lzio.c: Likewise.
38721 * script/lua/lzio.h: Likewise.
38723 2009-05-16 Bean <bean123ch@gmail.com>
38725 * include/grub/kernel.h (grub_module_header_types): Add type
38728 * kern/main.c (grub_load_config): New function.
38729 (grub_main): Call grub_load_config to read boot config.
38731 * grub-mkimage (generate_image): New parameter config_path.
38732 (options): New option --config.
38733 (main): Parse --config option, and pass it to generate_image.
38735 2009-05-14 Christian Franke <franke@computer.org>
38737 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38738 This fixes build on Cygwin.
38740 2009-05-14 Pavel Roskin <proski@gnu.org>
38742 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38743 jump. This saves two bytes, so the typical case of 2 swapped
38744 drives would fit 32 bytes.
38746 2009-05-13 Pavel Roskin <proski@gnu.org>
38748 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38749 grub_uint32_t to avoid a warning.
38751 * loader/i386/linux.c (allocate_pages): When assigning
38752 real_mode_mem, cast through grub_size_t to fix a warning. The
38753 code already makes sure that the value would fit a pointer.
38754 (grub_linux_setup_video): Cast render_target->data to
38755 grub_size_t to fix a warning.
38757 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38759 * commands/i386/pc/drivemap.c: New file - implement drivemap
38761 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38762 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38764 2009-05-13 Pavel Roskin <proski@gnu.org>
38766 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38767 embedding_area_exists.
38769 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38771 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38772 it easier to understand / work with.
38773 Improve warning messages for cases where there's no embedding area,
38774 or when it is too small (or core.img too large).
38776 2009-05-13 Pavel Roskin <proski@gnu.org>
38778 * loader/i386/pc/multiboot2.c: Add necessary includes for
38779 grub_multiboot2_real_boot().
38781 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38782 PX record is always little-endian. We only need the lower 2
38785 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38786 facilitate code reuse.
38787 (grub_cpio_mount): Use "struct head", not a char buffer. This
38788 fixes a warning reported by gcc 4.4.
38790 * kernel/disk.c (grub_disk_read): Use void pointer for the
38792 (grub_disk_write): Use const void pointer for the buffer.
38793 Adjust all callers. Remove unnecessary casts.
38795 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38797 * util/i386/pc/grub-install.in: Update copyright year.
38799 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38803 * commands/gptsync.c: new file
38804 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38805 (gptsync_mod_SOURCES): new variable
38806 (gptsync_mod_CFLAGS): likewise
38807 (gptsync_mod_LDFLAGS): likewise
38808 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38810 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38811 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38812 * conf/i386-ieee1275.rmk: likewise
38813 * conf/i386-pc.rmk: likewise
38814 * conf/powerpc-ieee1275.rmk: likewise
38816 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38820 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38821 (grub_dl_ref): likewise
38823 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38825 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38826 split in two functions (one for msdos and one for gpt).
38828 2009-05-08 Pavel Roskin <proski@gnu.org>
38830 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38833 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38834 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38835 Initialize them with -1. Add sanity check for bad1. Eliminate
38838 2009-05-08 David S. Miller <davem@davemloft.net>
38840 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38842 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38844 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38847 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38849 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38850 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38852 2009-05-05 David S. Miller <davem@davemloft.net>
38854 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38856 2009-05-05 Pavel Roskin <proski@gnu.org>
38858 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38859 of grub_dl_ref() and grub_dl_unref().
38860 * commands/parttool.c: Remove preprocessor conditionals around
38861 grub_dl_ref() and grub_dl_unref().
38862 * fs/affs.c: Likewise.
38863 * fs/afs.c: Likewise.
38864 * fs/cpio.c: Likewise.
38865 * fs/ext2.c: Likewise.
38866 * fs/fat.c: Likewise.
38867 * fs/hfs.c: Likewise.
38868 * fs/hfsplus.c: Likewise.
38869 * fs/iso9660.c: Likewise.
38870 * fs/jfs.c: Likewise.
38871 * fs/minix.c: Likewise.
38872 * fs/ntfs.c: Likewise.
38873 * fs/reiserfs.c: Likewise.
38874 * fs/sfs.c: Likewise.
38875 * fs/udf.c: Likewise.
38876 * fs/ufs.c: Likewise.
38877 * fs/xfs.c: Likewise.
38878 * include/grub/dl.h: Likewise.
38879 * loader/xnu.c: Likewise.
38881 2009-05-04 Pavel Roskin <proski@gnu.org>
38883 * commands/acpi.c: Remove unused variable my_mod.
38884 * partmap/amiga.c: Likewise.
38885 * partmap/apple.c: Likewise.
38886 * partmap/gpt.c: Likewise.
38887 * partmap/pc.c: Likewise.
38888 * partmap/sun.c: Likewise.
38889 * term/gfxterm.c: Likewise.
38890 * term/i386/pc/vesafb.c: Likewise.
38891 * term/i386/pc/vga.c: Likewise.
38893 2009-05-04 David S. Miller <davem@davemloft.net>
38895 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38896 pointer args to grub_ieee1275_get_property().
38898 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38900 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38901 devices, and do not traverse down under controller nodes.
38903 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38904 (grub_ofdisk_open): Use it to un-escape "," characters.
38905 * kern/disk.c (find_part_sep): New.
38906 (grub_disk_open): Use it to find the first non-escaped ','
38907 character in the disk name.
38908 * util/ieee1275/devicemap.c (escape_of_path): New.
38909 (grub_util_emit_devicemap_entry): Use it.
38910 * util/sparc64/ieee1275/grub-install.in: Update script to
38911 strip partition specifiers properly by not triggering on
38912 '\' escaped ',' characters.
38914 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38916 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38918 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38920 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38921 on documentation from Wikipedia).
38923 2009-05-04 Pavel Roskin <proski@gnu.org>
38925 * disk/ata.c: Spelling fixes.
38926 * disk/raid.c: Likewise.
38927 * disk/usbms.c: Likewise.
38928 * disk/dmraid_nvidia.c: Likewise.
38929 * kern/ieee1275/openfw.c: Likewise.
38930 * kern/ieee1275/init.c: Likewise.
38931 * kern/ieee1275/cmain.c: Likewise.
38932 * boot/i386/pc/cdboot.S: Likewise.
38933 * video/readers/png.c: Likewise.
38934 * video/i386/pc/vbe.c: Likewise.
38935 * fs/udf.c: Likewise.
38936 * fs/hfs.c: Likewise.
38937 * fs/reiserfs.c: Likewise.
38938 * efiemu/runtime/efiemu.c: Likewise.
38939 * efiemu/main.c: Likewise.
38940 * efiemu/mm.c: Likewise.
38941 * include/grub/elf.h: Likewise.
38942 * include/grub/xnu.h: Likewise.
38943 * include/grub/usbdesc.h: Likewise.
38944 * include/grub/usb.h: Likewise.
38945 * include/grub/script_sh.h: Likewise.
38946 * include/grub/lib/LzmaEnc.h: Likewise.
38947 * include/grub/efiemu/efiemu.h: Likewise.
38948 * include/grub/command.h: Likewise.
38949 * normal/menu.c: Likewise.
38950 * normal/main.c: Likewise.
38951 * normal/datetime.c: Likewise.
38952 * bus/usb/uhci.c: Likewise.
38953 * mmap/i386/uppermem.c: Likewise.
38954 * mmap/mmap.c: Likewise.
38955 * commands/acpi.c: Likewise.
38956 * commands/test.c: Likewise.
38957 * partmap/apple.c: Likewise.
38958 * font/font.c: Likewise.
38959 * loader/sparc64/ieee1275/linux.c: Likewise.
38960 * loader/macho.c: Likewise.
38961 * loader/i386/bsd_trampoline.S: Likewise.
38962 * loader/i386/bsd.c: Likewise.
38963 * loader/xnu.c: Likewise.
38964 * term/i386/pc/vesafb.c: Likewise.
38965 * term/usb_keyboard.c: Likewise.
38966 * util/resolve.c: Likewise.
38967 * util/getroot.c: Likewise.
38969 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38971 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38973 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38975 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38978 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38980 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38981 parameter only available on BIOS.
38983 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38985 Removed wrong semicolon in declaration
38987 * grub/misc.h (grub_dprintf): remove semicolon
38989 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38991 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38992 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38993 is done by grub_cmd_linux() now).
38994 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38995 restore video to text mode.
38996 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38997 indicates lack of "vga=" parameter. "vga=0" is mapped to
38998 `GRUB_LINUX_VID_MODE_NORMAL'.
39000 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
39002 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
39003 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
39004 and `normal/script.c'. Add `kern/rescue_reader.c',
39005 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
39006 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
39007 `grub_script.tab.c'.
39009 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39010 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39011 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39012 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
39013 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39015 * Makefile.in: Remove duplicated 2008 in Copyright line.
39017 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
39019 * util/misc.c (grub_util_warn): New function. Emits a warning
39021 * include/grub/util/misc.h (grub_util_warn): New declaration.
39023 * util/i386/pc/grub-install.in: Understand --force and pass it down
39026 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
39028 (setup): Improve error messages and add warnings when requested to
39029 install in odd layouts. Refuse to install using blocklists unless
39032 2009-05-04 martin f. krafft <madduck@madduck.net>
39034 * disk/raid.c (grub_raid_scan_device): Improve debug message.
39036 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
39038 Updated copyright year
39040 * fs/hfsplus.c: updated copyright year
39042 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
39046 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
39047 in the space previously used by unused3
39048 (grub_hfsplus_uuid): new function
39049 (grub_hfsplus_fs): added uuid field
39051 2009-05-03 Pavel Roskin <proski@gnu.org>
39053 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
39054 suppress warnings. It's no longer needed.
39055 * disk/host.c: Likewise.
39056 * disk/ata_pthru.c: Likewise.
39057 * disk/loopback.c: Likewise.
39058 * hook/datehook.c: Likewise.
39059 * parttool/pcpart.c: Likewise.
39060 * fs/i386/pc/pxe.c: Likewise.
39061 * fs/ntfscomp.c: Likewise.
39062 * efiemu/main.c: Likewise.
39063 * mmap/mmap.c: Likewise.
39064 * commands/crc.c: Likewise.
39065 * commands/hexdump.c: Likewise.
39066 * commands/hdparm.c: Likewise.
39067 * commands/acpi.c: Likewise.
39068 * commands/echo.c: Likewise.
39069 * commands/minicmd.c: Likewise.
39070 * commands/blocklist.c: Likewise.
39071 * commands/memrw.c: Likewise.
39072 * commands/loadenv.c: Likewise.
39073 * commands/usbtest.c: Likewise.
39074 * commands/lsmmap.c: Likewise.
39075 * commands/boot.c: Likewise.
39076 * commands/parttool.c: Likewise.
39077 * commands/configfile.c: Likewise.
39078 * commands/search.c: Likewise.
39079 * commands/ieee1275/suspend.c: Likewise.
39080 * commands/cat.c: Likewise.
39081 * commands/i386/pc/pxecmd.c: Likewise.
39082 * commands/i386/pc/play.c: Likewise.
39083 * commands/i386/pc/halt.c: Likewise.
39084 * commands/i386/pc/vbeinfo.c: Likewise.
39085 * commands/i386/pc/vbetest.c: Likewise.
39086 * commands/lspci.c: Likewise.
39087 * commands/date.c: Likewise.
39088 * commands/handler.c: Likewise.
39089 * commands/ls.c: Likewise.
39090 * commands/test.c: Likewise.
39091 * commands/cmp.c: Likewise.
39092 * commands/efi/loadbios.c: Likewise.
39093 * commands/efi/fixvideo.c: Likewise.
39094 * commands/halt.c: Likewise.
39095 * commands/help.c: Likewise.
39096 * commands/reboot.c: Likewise.
39097 * hello/hello.c: Likewise.
39098 * script/sh/main.c: Likewise.
39099 * loader/xnu.c: Likewise.
39100 * term/terminfo.c: Likewise.
39101 * term/i386/pc/serial.c: Likewise.
39102 * term/usb_keyboard.c: Likewise.
39104 2009-05-03 David S. Miller <davem@davemloft.net>
39106 * normal/menu.c: Include grub/parser.h
39108 2009-05-03 Pavel Roskin <proski@gnu.org>
39110 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
39112 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
39113 Suggested by Javier Martín <lordhabbit@gmail.com>
39115 * util/i386/pc/grub-mkrescue.in: Allow for the case when
39116 efiemu??.o doesn't exist.
39117 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
39120 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
39122 FreeBSD 64-bit support
39124 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
39125 and loader/i386/bsd_trampoline.S
39126 (bsd_mod_ASFLAGS): new variable
39127 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
39128 (FREEBSD_MODTYPE_KERNEL64): likewise
39129 (grub_bsd64_trampoline_start): likewise
39130 (grub_bsd64_trampoline_end): likewise
39131 (grub_bsd64_trampoline_selfjump): likewise
39132 (grub_bsd64_trampoline_gdt): likewise
39133 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
39134 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
39135 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
39136 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
39137 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39139 * loader/i386/bsd_pagetable.c: new file
39140 * loader/i386/bsd_trampoline.S: likewise
39141 * loader/i386/bsd.c (ALIGN_QWORD): new macro
39142 (ALIGN_VAR): likewise
39143 (entry_hi): new variable
39144 (kern_end_mdofs): likewise
39145 (is_64bit): likewise
39146 (grub_freebsd_add_meta): use ALIGN_VAR
39147 (grub_e820_mmap): new declaration
39148 (grub_freebsd_add_mmap): new function
39149 (grub_freebsd_add_meta_module): support 64 bit kernels
39150 (grub_freebsd_list_modules): use ALIGN_VAR
39151 (gdt_descriptor): new declaration
39152 (grub_freebsd_boot): support 64 bit kernels
39153 (grub_bsd_elf64_hook): new function
39154 (grub_bsd_load_elf): support elf64
39156 2009-05-03 Bean <bean123ch@gmail.com>
39158 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
39159 after we get the result of if statement.
39161 2009-05-03 Bean <bean123ch@gmail.com>
39163 * Makefile.in (enable_efiemu): New variable.
39165 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
39167 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
39169 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
39170 path, add -mno-red-zone option.
39171 (efiemu64_s.o): Likewise.
39172 (efiemu64.o): Use macro $^ for source file.
39174 * configure.ac (--enable-efiemu): New option.
39176 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
39180 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
39181 (pkglib_MODULES): add xnu.mod
39182 (xnu_mod_SOURCES): new variable
39183 (xnu_mod_CFLAGS): likewise
39184 (xnu_mod_LDFLAGS): likewise
39185 (xnu_mod_ASFLAGS): likewise
39186 * conf/i386-pc.rmk: likewise
39187 * conf/x86_64-efi.rmk: likewise
39188 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
39190 * include/grub/i386/macho.h: new file
39191 * include/grub/i386/xnu.h: likewise
39192 * include/grub/macho.h: likewise
39193 * include/grub/machoload.h: likewise
39194 * include/grub/x86_64/macho.h: likewise
39195 * include/grub/x86_64/xnu.h: likewise
39196 * include/grub/xnu.h: likewise
39197 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39198 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39199 * loader/i386/efi/xnu.c: new file
39200 * loader/i386/pc/xnu.c: likewise
39201 * loader/i386/xnu.c: likewise
39202 * loader/i386/xnu_helper.S: likewise
39203 * loader/macho.c: likewise
39204 * loader/xnu.c: likewise
39205 * loader/xnu_resume.c: likewise
39206 * util/grub-dumpdevtree: likewise
39207 * include/grub/i386/pit.h: include grub/err.h
39208 (grub_pit_wait): export
39209 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
39211 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39215 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39216 _linux_efi, linux_efi.
39217 new files in grub-emu
39218 new targets efiemu32.o and efiemu64.o
39219 * loader/linux_normal_efiemu.c: likewise
39220 * loader/i386/efi/linux.c: added preliminary efiemu support
39221 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39223 * include/grub/autoefi.h: new file
39224 * include/grub/i386/efiemu.h: likewise
39225 * include/grub/i386/pc/efiemu.h: likewise
39226 * include/grub/efi/api.h: add LL suffix when necessary
39227 new definitions relating to tables
39228 * include/grub/efiemu/efiemu.h: new file
39229 * include/grub/efiemu/runtime.h: likewise
39230 * efiemu/prepare.c: likewise
39231 * efiemu/loadcore_common.c: likewise
39232 * efiemu/loadcore64.c: likewise
39233 * efiemu/runtime/efiemu.sh: likewise
39234 * efiemu/runtime/efiemu.S: likewise
39235 * efiemu/runtime/efiemu.c: likewise
39236 * efiemu/runtime/config.h: likewise
39237 * efiemu/prepare32.c: likewise
39238 * efiemu/main.c: likewise
39239 * efiemu/modules/pnvram.c: likewise
39240 * efiemu/modules/i386: likewise
39241 * efiemu/modules/i386/pc: likewise
39242 * efiemu/modules/acpi.c: likewise
39243 * efiemu/i386/pc/cfgtables.c: likewise
39244 * efiemu/i386/loadcore64.c: likewise
39245 * efiemu/i386/loadcore32.c: likewise
39246 * efiemu/prepare64.c: likewise
39247 * efiemu/loadcore.c: likewise
39248 * efiemu/symbols.c: likewise
39249 * efiemu/mm.c: likewise
39250 * efiemu/loadcore32.c: likewise
39252 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39256 * commands/acpi.c: new file
39257 * commands/i386/pc/acpi.c: likewise
39258 * commands/efi/acpi.c: likewise
39259 * include/grub/acpi.h: likewise
39260 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39261 (acpi_mod_SOURCES): new variable
39262 (acpi_mod_CFLAGS): likewise
39263 (acpi_mod_LDFLAGS): likewise
39264 * conf/i386-efi.rmk: likewise
39265 * conf/x86_64-efi.rmk: likewise
39267 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39269 Missing part from mmap patch
39271 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39272 (grub_mmap_unregister)
39273 (grub_mmap_free_and_unregister): use grub_mmap_register
39275 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39279 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39280 * loader/i386/linux.c (find_mmap_size): likewise
39281 (allocate_pages): likewise
39282 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39283 (grub_fill_multiboot_mmap): likewise
39284 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39285 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39286 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39287 (OPENBSD_MMAP_RESERVED): likewise
39288 * include/grub/i386/pc/memory.h: include grub/memory.h
39289 (grub_lower_mem): removed
39290 (grub_upper_mem): likewise
39291 (GRUB_MACHINE_MEMORY_ACPI): new definition
39292 (GRUB_MACHINE_MEMORY_NVS): likewise
39293 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39294 (GRUB_MACHINE_MEMORY_HOLE): likewise
39295 (grub_machine_mmap_register): likewise
39296 (grub_machine_mmap_unregister): likewise
39297 (grub_machine_get_upper): likewise
39298 (grub_machine_get_lower): likewise
39299 (grub_machine_get_post64): likewise
39300 * include/grub/i386/efi/memory.h: new file
39301 * include/grub/x86_64/efi/memory.h: likewise
39302 * include/grub/efi/memory.h: likewise
39303 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39304 (mmap_mod_SOURCES): new variable
39305 (mmap_mod_LDFLAGS): likewise
39306 (mmap_mod_ASFLAGS): likewise
39307 * conf/i386-coreboot.rmk: likewise
39308 * conf/i386-ieee1275.rmk: likewise
39309 * conf/i386-efi.rmk: likewise
39310 * conf/x86_64-efi.rmk: likewise
39311 * include/grub/types.h (UINT_TO_PTR): new macro
39312 (PTR_TO_UINT32): likewise
39313 (PTR_TO_UINT64): likewise
39314 * include/grub/memory.h: new file
39315 * mmap/i386/pc/mmap.c: likewise
39316 * mmap/i386/pc/mmap_helper.S: likewise
39317 * mmap/i386/uppermem.c: likewise
39318 * mmap/mmap.c: likewise
39319 * mmap/efi/mmap.c: likewise
39320 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39322 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39323 (grub_upper_mem): likewise
39324 (grub_machine_init): don't use grub_upper_mem,
39325 make grub_lower_mem local
39326 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39327 grub_mmap_iterate and grub_mmap_get_upper
39328 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39330 2009-05-02 Bean <bean123ch@gmail.com>
39332 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39333 script/sh/parser.y.
39334 (pkglib_MODULES): Add normal.mod and sh.mod.
39335 (normal_SOURCES): New variable.
39336 (normal_mod_CFLAGS): Likewise.
39337 (normal_mod_LDFLAGS): Likewise.
39338 (sh_mod_SOURCES): Likewise.
39339 (sh_mod_CFLAGS): Likewise.
39340 (sh_mod_LDFLAGS): Likewise.
39342 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39343 script/sh/lexer.c_DEPENDENCIES.
39344 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39345 kern/rescue_reader.c and kern/rescue_parser.c.
39346 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39347 (grub_emu_SOURCES): Change source files.
39348 (pkglib_MODULES): Remove normal.mod.
39349 (normal_SOURCES): Removed.
39350 (normal_mod_CFLAGS): Likewise.
39351 (normal_mod_LDFLAGS): Likewise.
39352 * conf/i386-coreboot.rmk: Likewise.
39353 * conf/i386-efi.rmk: Likewise.
39354 * conf/i386-ieee1276.rmk: Likewise.
39355 * conf/powerpc-ieee1275.rmk: Likewise.
39356 * conf/sparc64-ieee1275.rmk: Likewise.
39357 * conf/x86_64-efi.rmk: Likewise.
39359 * include/grub/command.h (grub_command_execute): New inline function.
39361 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39363 * include/grub/normal.h: Remove <grub/setjmp.h>.
39364 (grub_fs_module_list): Moved to normal/autofs.c.
39365 (grub_exit_env): Removed.
39366 (grub_command_execute): Likewise.
39367 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39369 (read_command_list): New function declaration.
39370 (read_fs_list): Likewise.
39372 * include/parser.h: Include <grub/reader.h>.
39373 (grub_parser_split_cmdline): Change type of getline parameter.
39374 (grub_parser): New structure.
39375 (grub_parser_class): New variable.
39376 (grub_parser_execute): New function declaration.
39377 (grub_register_rescue_parser): Likewise.
39378 (grub_parser_register): New inline function.
39379 (grub_parser_unregister): Likewise.
39380 (grub_parser_get_current): Likewise.
39381 (grub_parser_set_current): Likewise.
39383 * include/grub/reader.h: New file.
39384 * kern/reader.c: Likewise.
39385 * kern/rescue_parser.c: Likewise.
39386 * kern/rescue_reader.c: Likewise.
39387 * normal/autofs.c: Likewise.
39388 * normal/dyncmd.c: Likewise.
39390 * include/grub/rescue.h: Removed.
39391 * normal/command.h: Likewise.
39393 * include/grub/script.h: Moved to ...
39394 * include/grub/script_sh.h: ... Moved here.
39395 * normal/execute.c: Moved to ...
39396 * script/sh/execute.c: ... Moved here.
39397 * normal/function.c: Moved to ...
39398 * script/sh/function.c: ... Moved here.
39399 * normal/lexer.c: Moved to ...
39400 * script/sh/lexer.c: ... Moved here.
39401 * normal/parser.y: Moved to ...
39402 * script/sh/parser.y: ... Moved here.
39403 * normal/script.c: Moved to ...
39404 * script/sh/script.c: ... Moved here.
39406 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39408 (grub_exit_env): Removed.
39409 (fs_module_list): Moved to normal/autofs.c.
39410 (grub_file_getline): Don't handle comment here.
39411 (free_menu): Skip removed field entry->commands.
39412 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39414 (read_config_file): Removed nested parameter, change getline function.
39415 (grub_enter_normal_mode): Removed.
39416 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39417 (read_command_list): Likewise.
39418 (autoload_fs_module): Moved to normal/autofs.c.
39419 (read_fs_list): Likewise.
39420 (reader_nested): New variable.
39421 (grub_normal_execute): Run parser.sh to switch to sh parser.
39422 (grub_cmd_rescue): Removed.
39423 (cmd_normal): Removed.
39424 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39426 (grub_cmdline_run): New function.
39427 (grub_normal_reader_init): Likewise.
39428 (grub_normal_read_line): Likewise.
39429 (grub_env_write_pager): Likewise.
39430 (cmdline): New variable.
39431 (grub_normal_reader): Likewise.
39432 (GRUB_MOD_INIT): Register normal reader and set as current, register
39433 pager hook, register normal command with grub_register_command_prio,
39434 so that it won't show up in command.lst.
39435 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39436 grub_fs_autoload_hook.
39438 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39439 (grub_menu_execute_entry): Replace grub_script_execute with
39440 grub_parser_execute, change parameter to grub_command_execute.
39442 * normal/menu_text.c: Remove <grub/script.h>.
39444 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39445 and <grub/parser.h>.
39446 (run): Change editor_getline to use new parser interface. Change
39447 parameter to grub_command_execute.
39449 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39450 <grub/reader.h> and <grub/parser.h>.
39451 (grub_load_normal_mode): Execute normal command.
39452 (grub_main): Call grub_register_core_commands,
39453 grub_register_rescue_parser and grub_register_rescue_reader, use
39454 grub_reader_loop to enter input loop.
39456 * kern/parser.c (grub_parser_split_cmdline): Change type of
39458 (grub_parser_class): New variable.
39459 (grub_parser_execute): New function.
39461 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39462 * loader/multiboot2.c: Likewise.
39463 * loader/sparc64/ieee1275/linux.c: Likewise.
39465 * util/grub-emu.c (read_command_list): New dummy function.
39467 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39469 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39470 count to 16 for CCISS and IDA.
39472 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39474 * normal/menu_text.c (grub_wait_after_message): Print a newline
39475 after waiting for user input.
39477 * loader/i386/linux.c: Include `<grub/normal.h>'.
39478 (grub_cmd_linux): Improve the error message about `ask' mode, by
39479 waiting for user input so it's not missed (we can do this, since
39480 user requested interaction).
39482 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39484 Added missing lst to grub-mkrescue
39486 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39487 and ${input_dir}/parttool.lst
39489 2009-04-30 David S. Miller <davem@davemloft.net>
39491 * util/hostdisk.c (device_is_wholedisk): New function.
39492 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39493 zero only if device_is_wholedisk() returns true.
39495 * util/hostdisk.c (convert_system_partition_to_system_disk):
39496 Handle virtual disk devices named /dev/vdiskX as found on sparc
39499 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39500 lettered partition specifier is found, convert to numbered.
39502 2009-04-29 David S. Miller <davem@davemloft.net>
39504 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39505 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39507 * normal/command.c: Add missing newline at end of file.
39509 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39511 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39512 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39513 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39514 ihandles have a 32-bit type but need to be stored in a "void *".
39516 2009-04-28 Pavel Roskin <proski@gnu.org>
39518 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39519 not disk. Adjust all dependencies.
39520 (grub_fs_uuid_close): Use grub_device_close(), not
39523 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39524 parent's partition, don't copy it by reference, as it gets freed
39527 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39529 Preboot hooks support
39531 * commands/boot.c (struct grub_preboot_t): new declaration
39532 (preboots_head): new variable
39533 (preboots_tail): likewise
39534 (grub_loader_register_preboot_hook): new function
39535 (grub_loader_unregister_preboot_hook): likewise
39536 (grub_loader_set): launch preboot hooks
39537 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39538 (grub_loader_register_preboot_hook): new declaration
39539 (grub_loader_unregister_preboot_hook): likewise
39541 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39545 * disk/scsi.c (grub_scsi_open): added missing cast when
39546 calling grub_dprintf
39548 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39550 Bug and warning fixes
39552 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39554 * commands/test.c (test_parse): fixed bug with file tests and corrected
39555 declaration of find_file
39557 2009-04-26 Pavel Roskin <proski@gnu.org>
39559 * Makefile.in: Don't install empty manual pages if help2man is
39560 missing. Use help2man option for output, not shell redirection.
39562 2009-04-26 David S. Miller <davem@davemloft.net>
39564 * util/grub-mkdevicemap.c (make_device_map): Add missing
39565 NESTED_FUNC_ATTR to process_device().
39567 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39571 * commands/test.c: rewritten to use bash-like test
39573 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39575 Parttool autoloading and improvements
39577 * Makefile.in (pkglib_DATA): add parttool.lst
39578 (parttool.lst): new target
39579 * genmk.rb: generate parttool-*
39580 (CLEANFILES): add #{parttool}
39581 (PARTTOOLFILES): new variable
39582 * genparttoollist.sh: new file
39583 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39584 (grub_pcpart_type): likewise
39585 * commands/parttool.c (helpmsg): new variable
39586 (grub_cmd_parttool): output help if not enough arguments are supplied
39588 (GRUB_MOD_INIT(parttool)): use helpmsg
39590 2009-04-24 David S. Miller <davem@davemloft.net>
39592 Avoiding opening same device multiple times in device iterator.
39594 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39595 and use it to build a list of partitions in iterate_disk() and
39596 iterate_partition().
39598 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39601 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39602 grub_devalias_iterate() result instead of unconditional 0.
39603 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39604 Also, capture hook return value, either directly or via
39605 grub_children_iterate(), and propagate to caller.
39606 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39607 grub_children_iterate): Return value is now 'int' instead of
39609 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39610 like a proper iterator, stopping when hooks return non-zero.
39611 (grub_devalias_iterate): Likewise.
39613 2009-04-23 David S. Miller <davem@davemloft.net>
39615 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39617 2009-04-22 David S. Miller <davem@davemloft.net>
39619 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39620 is larger than address_cells, use that value for address_cells too.
39622 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39623 IEEE1275_MAX_PATH_LEN): Define.
39624 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39625 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39626 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39627 'devtype'. Explicitly NULL terminate devalias expansion.
39629 * util/sparc64/ieee1275/misc.c: New file.
39630 * util/sparc64/ieee1275/grub-setup.c: New file.
39631 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39632 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39633 * util/sparc64/ieee1275/grub-install.in: New file.
39634 * util/ieee1275/ofpath.c: New file.
39635 * util/ieee1275/devicemap.c: New file.
39636 * util/devicemap.c: New file.
39637 * util/deviceiter.c: New file.
39638 * kern/sparc64/ieee1275/init.c: New file.
39639 * include/grub/util/ofpath.h: New file.
39640 * include/grub/util/deviceiter.h: New file.
39641 * util/grub-mkdevicemap.c: Include deviceiter.h.
39642 Implement using grub_util_emit_devicemap_entry and
39643 grub_util_iterate_devices.
39644 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39645 util/devicemap.c into grub-mkdevicemap
39646 * conf/i386-efi.rmk: Likewise.
39647 * conf/i386-ieee1275.rmk: Likewise.
39648 * conf/i386-pc.rmk: Likewise.
39649 * conf/powerpc-ieee1275.rmk: Likewise.
39650 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39651 images and installation utilities. Build kernel as image
39652 instead of as elf binary. Use common rules as much as possible.
39654 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39656 Correct GPT definition
39658 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39661 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39663 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39665 2009-04-19 David S. Miller <davem@davemloft.net>
39667 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39668 (grub_rescue_cmd_linux): Rename to...
39669 (grub_cmd_linux): and fix prototype.
39670 (grub_rescue_cmd_initrd): Rename to...
39671 (grub_cmd_initrd): and fix prototype.
39672 (cmd_linux, cmd_initrd): New.
39673 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39674 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39676 2009-04-17 Pavel Roskin <proski@gnu.org>
39678 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39680 (grub_ohci_transfer): Likewise.
39682 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39684 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39685 return without a value. Fix inconsistent indentation.
39687 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39688 match struct grub_fs.
39690 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39691 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39692 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39693 * commands/lspci.c (grub_lspci_iter): Likewise.
39695 2009-04-16 Bean <bean123ch@gmail.com>
39697 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39700 2009-04-15 Pavel Roskin <proski@gnu.org>
39702 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39703 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39704 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39707 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39709 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39710 that no multiple data or metadata areas are supported and `Unknown
39713 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39715 Move loader out of the kernel
39717 * kern/loader.c: moved to ...
39718 * commands/boot.c: ... moved here
39719 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39720 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39721 * include/grub/kernel.h (grub_machine_fini): export
39722 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39723 (grub_loader_set): likewise
39724 (grub_loader_unset): likewise
39725 (grub_loader_boot): likewise
39726 * conf/common.rmk: new module boot.mod
39727 (pkglib_MODULES): add boot.mod
39728 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39729 (grub_emu_SOURCES): likewise
39730 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39731 (grub_emu_SOURCES): likewise
39732 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39733 (grub_emu_SOURCES): likewise
39734 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39735 (grub_emu_SOURCES): likewise
39736 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39737 (grub_emu_SOURCES): likewise
39738 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39739 (grub_emu_SOURCES): likewise
39740 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39741 (grub_emu_SOURCES): likewise
39743 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39745 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39747 * kern/misc.c (grub_itoa): Removed function
39748 (grub_ltoa): likewise
39749 (grub_vsprintf): use grub_lltoa
39751 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39755 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39756 * conf/i386-coreboot.rmk: likewise
39757 * conf/i386-ieee1275.rmk: likewise
39758 * conf/powerpc-ieee1275.rmk: likewise
39760 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39762 * INSTALL: Add that `./autogen.sh' needs to be run before
39765 2009-04-14 Bean <bean123ch@gmail.com>
39767 * Makefile.in (pkglib_DATA): Add handler.lst.
39768 (handler.lst): New rule.
39770 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39771 * conf/i386-coreboot.rmk: Likewise.
39772 * conf/i386-ieee1275.rmk: Likewise.
39773 * conf/i386-efi.rmk: Likewise.
39774 * conf/x86_64-efi.rmk: Likewise.
39775 * conf/powerpc-ieee1275.rmk: Likewise.
39776 * conf/sparc64-ieee1275.rmk: Likewise.
39778 * genhandlerlist.sh: New file.
39780 * genmk.rb: Add rules to generate handler.lst.
39782 * include/grub/normal.h (grub_file_getline): New function definition.
39783 (read_handler_list): Likewise.
39784 (free_handler_list): Likewise.
39786 * include/grub/term.h (grub_term_register_input): Add name parameter
39787 for auto generation of handler.lst.
39788 (grub_term_register_output): Likewise.
39790 * normal/handler.c: New file.
39792 * normal/main.c (get_line): Renamed to grub_file_getline.
39793 (read_config_file): Use the newly renamed grub_file_getline.
39794 (read_command_list): Likewise.
39795 (read_fs_list): Likewise.
39796 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39797 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39799 * term/efi/console.c (grub_console_init): Add name parameter for auto
39800 generation of handler.lst.
39801 * term/gfxterm.c: Likewise.
39802 * term/i386/pc/at_keyboard.c: Likewise.
39803 * term/i386/pc/console.c: Likewise.
39804 * term/i386/pc/serial.c: Likewise.
39805 * term/i386/pc/vesafb.c: Likewise.
39806 * term/i386/pc/vga.c: Likewise.
39807 * term/i386/pc/vga_text.c: Likewise.
39808 * term/ieee1275/ofconsole.c: Likewise.
39809 * term/usb_keyboard.c: Likewise.
39811 2009-04-14 Bean <bean123ch@gmail.com>
39813 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39814 properly with null character.
39816 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39818 * configure: Remove.
39819 * config.h.in: Likewise.
39820 * stamp-h.in: Likewise.
39821 * DISTLIST: Likewise.
39822 * conf/common.mk: Likewise.
39823 * conf/i386-coreboot.mk: Likewise.
39824 * conf/i386-efi.mk: Likewise.
39825 * conf/i386-ieee1275.mk: Likewise.
39826 * conf/i386.mk: Likewise.
39827 * conf/i386-pc.mk: Likewise.
39828 * conf/powerpc-ieee1275.mk: Likewise.
39829 * conf/sparc64-ieee1275.mk: Likewise.
39830 * conf/x86_64-efi.mk: Likewise.
39832 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39835 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39836 David S. Miller <davem@davemloft.net>
39838 * util/hostdisk.c (make_device_name): Fix buffer length
39841 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39843 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39844 <sys/param.h> and <sys/sysctl.h>.
39845 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39846 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39847 opening the device and reset them afterwards.
39849 2009-04-13 Pavel Roskin <proski@gnu.org>
39851 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39852 Reported by John Stanley <jpsinthemix@verizon.net>
39854 2009-04-13 Robert Millan <rmh@aybabtu.com>
39856 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39857 that name for menuentries when appropriate.
39859 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39861 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39863 2009-04-13 Robert Millan <rmh@aybabtu.com>
39865 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39866 to Linux, simply abort telling the user it's no longer supported.
39868 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39870 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39871 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39872 `freebsd_loadenv' only when devices.hints exist.
39874 2009-04-13 Pavel Roskin <proski@gnu.org>
39876 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39878 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39880 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39882 (grub_drive): Likewise.
39884 2009-04-13 David S. Miller <davem@davemloft.net>
39886 * kern/sparc64/ieee1275/ieee1275.c: New file.
39887 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39888 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39889 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39890 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39891 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39892 grub_ieee1275_alloc_physmem): Declare new exported functions.
39894 * include/grub/sparc64/ieee1275/loader.h: New file.
39895 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39896 * include/grub/sparc64/kernel.h: Likewise.
39897 * loader/sparc64/ieee1275/linux.c: Likewise.
39899 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39900 (grub_fstest_SOURCES): Likewise.
39902 * util/hostdisk.c (make_device_name): Do not make any assumptions
39903 about the length of drive names.
39905 * kern/dl.c (grub_dl_load_file): Close file immediately when
39906 we are done using it.
39908 2009-04-12 David S. Miller <davem@davemloft.net>
39910 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39911 values. Noticed by Pavel Roskin.
39913 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39916 * genmk.rb: Add more flexible image type specification, also
39917 pass --strip-unneeded to objcopy.
39918 * conf/i386-pc.rmk: Use *_FORMAT.
39919 * conf/i386-pc.mk: Rebuilt.
39921 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39922 (OFDISK_HASH_SZ): Define.
39923 (ofdisk_hash): New hash table.
39924 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39925 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39926 instead of device phandle which is not unique.
39928 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39929 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39930 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39931 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39932 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39933 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39934 GRUB_KERNEL_MACHINE_DATA_END): Define.
39935 (grub_kernel_image_size, grub_total_module_size): Declare.
39937 2009-04-12 Pavel Roskin <proski@gnu.org>
39939 * configure.ac: Change the logic when we check for target tools.
39940 Do it when the target is specified and it's different from the
39941 specified value of the host.
39943 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39945 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39946 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39947 GNU/kFreeBSD. Check if a device is a character device. Use
39948 DIOCGMEDIASIZE to get the size.
39949 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39950 support for GNU/kFreeBSD.
39951 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39952 is a character device instead of a block device. Add support for
39953 FreeBSD device names.
39955 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39956 is a character device instead of a block device.
39958 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39959 is a character device instead of a block device.
39961 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39963 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39964 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39965 FreeBSD. Check if a device is a character device. Use
39966 DIOCGMEDIASIZE to get the size.
39967 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39968 support for FreeBSD.
39969 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39970 is a character device instead of a block device. Add support for
39971 FreeBSD device names.
39973 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39974 a character device instead of a block device.
39975 (grub_util_check_char_device): New function.
39977 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39978 a character device instead of a block device.
39980 * include/grub/util/getroot.h (grub_util_check_char_device): New
39983 2009-04-11 David S. Miller <davem@davemloft.net>
39985 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39987 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39988 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39989 function, if present.
39990 (__bswapdi2): Likewise.
39992 * include/grub/sparc64/ieee1275/boot.h: New file.
39993 * boot/sparc64/ieee1275/boot.S: Likewise.
39994 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39996 * kern/misc.c (grub_ltoa): New function.
39997 (grub_vsprintf): Use it to format 'long' integers.
39999 2009-04-10 David S. Miller <davem@davemloft.net>
40001 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
40002 slots are of type grub_ieee1275_cell_t.
40003 (grub_nand_read): Likewise.
40004 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
40005 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
40006 macros are used to compare values in arg/ret block of the call.
40007 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
40008 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
40009 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
40010 grub_ieee1275_instance_to_path, grub_ieee1275_write,
40011 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
40012 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
40013 grub_ieee1275_close, grub_ieee1275_set_property,
40014 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
40015 grub_ieee1275_cell_t.
40016 * kern/ieee1275/openfw.c (grub_map): Likewise.
40017 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
40018 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
40020 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
40021 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
40022 (grub_devalias_iterate): Likewise.
40024 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
40028 * fs/ufs.c (INODE_NBLOCKS): new definition
40029 (struct grub_ufs_dirent): added fields for non-BSD dirents
40030 (grub_ufs_get_file_block): fixed double indirect handling
40031 (grub_ufs_lookup_symlink): use more robust way to determine whether
40033 (grub_ufs_find_file): support for non-BSD dirents
40034 (grub_ufs_dir): support for non-BSD dirents
40036 2009-04-10 Bean <bean123ch@gnail.com>
40038 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
40039 attribute, otherwise the size would be wrong for i386 platform.
40041 * include/grub/pci.h (grub_pci_read_word): New inline function.
40042 (grub_pci_read_byte): Likewise.
40043 (grub_pci_write): Likewise.
40044 (grub_pci_write_word): Likewise.
40045 (grub_pci_write_byte): Likewise.
40047 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
40049 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
40050 (find_framebuf): Scan pci to locate the frame buffer address.
40052 * commands/efi/fixvideo.c: New file.
40054 * commands/efi/loadbios.c: Likewise.
40056 * commands/memrw.c: Likewise.
40058 * util/grub-dumpbios.in: Likewise.
40060 * conf/common.rmk (grub-dumpbios): New utility.
40061 (pkglib_MODULES): New module memrw.mod.
40062 (memrw_mod_SOURCE): New macro.
40063 (memrw_mod_CFLAGS): Likewise.
40064 (memrw_mod_LDFLAGS): Likewise.
40066 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
40068 (loadbios_mod_SOURCE): New macro.
40069 (loadbios_mod_CFLAGS): Likewise.
40070 (loadbios_mod_LDFLAGS): Likewise.
40071 (fixvideo_mod_SOURCE): Likewise.
40072 (fixvideo_mod_CFLAGS): Likewise.
40073 (fixvideo_mod_LDFLAGS): Likewise.
40075 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
40077 (loadbios_mod_SOURCE): New macro.
40078 (loadbios_mod_CFLAGS): Likewise.
40079 (loadbios_mod_LDFLAGS): Likewise.
40080 (fixvideo_mod_SOURCE): Likewise.
40081 (fixvideo_mod_CFLAGS): Likewise.
40082 (fixvideo_mod_LDFLAGS): Likewise.
40084 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
40086 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
40088 2009-04-07 David S. Miller <davem@davemloft.net>
40090 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
40091 support for R_SPARC_OLO10 relocations. Fix compile warning for
40092 R_SPARC_WDISP30 case.
40093 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
40095 2009-04-06 Pavel Roskin <proski@gnu.org>
40097 * include/grub/misc.h (ARRAY_SIZE): New macro.
40098 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
40100 * loader/i386/linux.c (allocate_pages): Use free_pages().
40101 (grub_linux_unload): Don't use free_pages().
40102 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
40103 wrong index. Treat all other modes as text modes.
40104 (grub_cmd_linux): Initialize vid_mode unconditionally to
40105 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
40107 * commands/help.c (print_command_help): Use cmd->prio, not
40108 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
40110 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
40114 * parttool/pcpart.c: new file
40115 * commands/parttool.c: likewise
40116 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
40117 (parttool_mod_SOURCES): new variable
40118 (parttool_mod_CFLAGS): likewise
40119 (parttool_mod_LDFLAGS): likewise
40120 (pcpart_mod_SOURCES): likewise
40121 (pcpart_mod_CFLAGS): likewise
40122 (pcpart_mod_LDFLAGS): likewise
40123 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
40124 and parttool/pcpart.c
40125 * conf/i386-efi.rmk: likewise
40126 * conf/i386-ieee1275.rmk: likewise
40127 * conf/i386-pc.rmk: likewise
40128 * conf/powerpc-ieee1275.rmk: likewise
40129 * conf/sparc64-ieee1275.rmk: likewise
40130 * conf/x86_64-ieee1275.rmk: likewise
40132 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40134 Support for mtime and further expandability of dir command
40136 * include/grub/lib/datetime.h: moved to ...
40137 * include/grub/datetime.h: ... moved here and added
40138 declaration of grub_unixtime2datetime. All users updated
40139 * include/grub/fs.h: new syntax for dir and mtime functions in
40141 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
40142 and GRUB_FSHELP_FLAGS_MASK
40143 * commands/ls.c (grub_ls_list_files): Write mtime in long format
40144 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
40145 (grub_ext2_mtime): new function
40146 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
40147 (grub_hfsplus_mtime): new function
40148 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
40149 (GRUB_UFS_ATTR_FILE): likewise
40150 (GRUB_UFS_ATTR_LNK): likewise
40151 (struct grub_ufs_sblock): new fields mtime
40152 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
40154 (grub_ufs_dir): mtime support
40155 (grub_ufs_mtime): new function
40156 * fs/affs.c (grub_affs_dir): use new dir syntax
40157 * fs/afs.c (grub_afs_dir): likewise
40158 * fs/cpio.c (grub_cpio_dir): likewise
40159 * fs/fat.c (grub_fat_find_dir): likewise
40160 * fs/hfs.c (grub_hfs_dir): likewise
40161 * fs/iso9660.c (grub_iso9660_dir): likewise
40162 * fs/jfs.c (grub_jfs_dir): likewise
40163 * fs/minix.c (grub_minix_dir): likewise
40164 * fs/ntfs.c (grub_ntfs_dir): likewise
40165 * fs/reiserfs.c (grub_reiserfs_dir): likewise
40166 * fs/sfs.c (grub_sfs_dir): likewise
40167 * fs/xfs.c (grub_xfs_dir): likewise
40168 * util/hostfs.c (grub_hostfs_dir): likewise
40169 * lib/datetime.c: moved to ...
40170 * normal/datetime.c: ... moved here
40171 (grub_unixtime2datetime): new function
40172 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
40173 * normal/completion.c (iterate_dir): use new dir syntax
40174 * normal/misc.c (grub_normal_print_device_info): tell the
40175 last modification time of a volume
40176 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
40177 * conf/common.rmk: added lib/datetime.c to ls.mod
40178 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
40179 (normal_mod_SOURCES): likewise
40180 (datetime_mod_SOURCES): Removed lib/datetime.c
40181 * conf/i386-efi.rmk: likewise
40182 * conf/i386-ieee1275.rmk: likewise
40183 * conf/i386-pc.rmk: likewise
40184 * conf/powerpc-ieee1275.rmk: likewise
40185 * conf/sparc64-ieee1275.rmk: likewise
40186 * conf/x86_64-efi.rmk: likewise
40188 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40190 Trim trailing spaces in FAT label and support mtools-like labels
40192 * fs/fat.c (grub_fat_iterate_dir): New function based
40193 on grub_fat_find_dir
40194 (grub_fat_find_dir): use grub_fat_iterate_dir
40195 (grub_fat_label): likewise
40197 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40199 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
40201 remove extraneous kernel_elf_HEADERS
40203 2009-04-04 Bean <bean123ch@gnail.com>
40205 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40207 * util/misc.c: Likewise.
40209 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40211 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40212 instead of grub_printf.
40214 2009-04-03 Robert Millan <rmh@aybabtu.com>
40216 * loader/i386/linux.c (grub_linux_setup_video): Fill
40217 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40218 values from `mode info' structure instead of hardcoded
40221 2009-04-01 Pavel Roskin <proski@gnu.org>
40223 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40225 * genmk.rb: Likewise.
40226 * configure.ac: Likewise.
40228 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40230 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40231 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40233 2009-04-01 David S. Miller <davem@davemloft.net>
40235 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40236 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40237 (grub_setjmp): Mark with 'returns_twice' attribute.
40238 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40239 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40240 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40242 2009-04-01 Robert Millan <rmh@aybabtu.com>
40244 Reapply fix from 2008-07-28 which was accidentally reverted; also
40245 perform the same fix to a similar check in same function.
40247 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40248 with the same number are found, just use issue a warning with
40249 grub_dprintf(), as this error has been reported to be non-fatal.
40251 2009-03-31 Pavel Roskin <proski@gnu.org>
40253 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40254 for cross-compilation.
40256 2009-03-30 Robert Millan <rmh@aybabtu.com>
40258 Fix i386-ieee1275 build.
40260 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40261 Remove declaration.
40263 2009-03-30 Pavel Roskin <proski@gnu.org>
40265 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40266 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40267 zero-terminated, rely only on the strlen value. Fix comparison
40268 of strings differing in length.
40270 2009-03-30 Robert Millan <rmh@aybabtu.com>
40272 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40273 checking for abi version. Improve error messages on BIOS to notify
40274 user about `linux16' command.
40276 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40280 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40281 in case of collision
40282 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40284 2009-03-29 Robert Millan <rmh@aybabtu.com>
40286 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40287 set `vid_mode' accordingly.
40288 (grub_linux_boot): Process `vid_mode' and set video mode.
40290 2009-03-29 Robert Millan <rmh@aybabtu.com>
40292 * util/grub.d/10_linux.in (linux_entry): New function.
40293 Factorize generation of Linux boot entries.
40295 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40297 Make the format of Environment Block plain text. The boot loader
40298 part is not tested well yet.
40300 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40302 (envblk): Likewise.
40303 (usage): Remove "info" and "clear". Add "unset". Update the
40304 description of "set", as this does not delete variables any
40306 (create_envblk_file): Complete rewrite.
40307 (open_envblk_file): Likewise.
40308 (cmd_info): Removed.
40309 (cmd_list): Likewise.
40310 (cmd_set): Likewise.
40311 (cmd_clear): Likewise.
40312 (list_variables): New function.
40313 (write_envblk): Likewise.
40314 (set_variables): Likewise.
40315 (unset_variables): Likewise.
40316 (main): Complete rewrite.
40318 * commands/loadenv.c (buffer): Removed.
40319 (envblk): Likewise.
40320 (open_envblk_file): New function.
40321 (read_envblk_file): Complete rewrite.
40322 (grub_cmd_load_env): Likewise.
40323 (grub_cmd_list_env): Likewise.
40324 (struct blocklist): New struct.
40325 (free_blocklists): New function.
40326 (check_blocklists): Likewise.
40327 (write_blocklists): Likewise.
40328 (grub_cmd_save_env): Complete rewrite.
40330 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40331 a plain text signature.
40332 (GRUB_ENVBLK_MAXLEN): Removed.
40333 (struct grub_envblk): Complete rewrite.
40334 (grub_envblk_find): Removed.
40335 (grub_envblk_insert): Likewise.
40336 (grub_envblk_open): New prototype.
40337 (grub_envblk_set): Likewise.
40338 (grub_envblk_delete): Put const to VALUE.
40339 (grub_envblk_iterate): Put const to NAME and VALUE.
40340 (grub_envblk_close): New prototype.
40341 (grub_envblk_buffer): New inline function.
40342 (grub_envblk_size): Likewise.
40344 * lib/envblk.c: Include grub/mm.h.
40345 (grub_env_find): Removed.
40346 (grub_envblk_open): New function.
40347 (grub_envblk_close): Likewise.
40348 (escaped_value_len): Likewise.
40349 (find_next_line): Likewise.
40350 (grub_envblk_insert): Removed.
40351 (grub_envblk_set): New function.
40352 (grub_envblk_delete): Complete rewrite.
40353 (grub_envblk_iterate): Likewise.
40355 2009-03-28 Robert Millan <rmh@aybabtu.com>
40357 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40358 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40359 variables. Use 16-bit loader.
40360 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40362 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40363 (grub_linux16_boot): ... this. Update all users.
40364 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40365 (grub_linux_boot): ... this. Update all users.
40367 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40368 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40369 commands to `linux16' and `initrd16'.
40370 (GRUB_MOD_FINI(linux)): Rename to ...
40371 (GRUB_MOD_FINI(linux16)): ... this.
40373 2009-03-24 Pavel Roskin <proski@gnu.org>
40375 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40376 not just for compilation.
40378 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40380 Move multiboot helper out of kernel
40382 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40383 `loader/i386/multiboot_helper.S'.
40384 * conf/i386-coreboot.rmk: Likewise
40385 * conf/i386-ieee1275.rmk: Likewise
40387 * kern/i386/loader.S: Move multiboot helpers from here...
40388 * loader/i386/multiboot_helper.S: ...moved here
40389 * include/grub/i386/loader.h: Move declarations of multiboot
40390 helpers from here...
40391 * include/grub/i386/multiboot.h: ...moved here
40392 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40394 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40396 * kern/env.c (grub_env_context_open): Added an argument to specify
40397 whether a new context inherits exported variables from current
40398 one. This is useful when making a sandbox to interpret a config
40400 All callers updated.
40402 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40404 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40406 * kern/env.c (grub_env_context_close): Fix memory leaks.
40408 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40410 * normal/main.c (grub_normal_execute): Added an argument
40411 BATCH to specify if an interactive interface should be provided
40412 after reading a config file.
40413 All callers updated.
40414 (read_command_list): Prevent being executed twice.
40415 (read_fs_list): Likewise.
40417 * include/grub/normal.h (grub_normal_execute): Updated the
40420 2009-03-22 Pavel Roskin <proski@gno.org>
40422 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40424 * kern/i386/pc/startup.S: Likewise.
40425 * kern/i386/efi/startup.S: Likewise.
40426 * kern/i386/ieee1275/startup.S: Likewise.
40427 * kern/i386/coreboot/startup.S: Likewise.
40428 * kern/x86_64/efi/startup.S: Likewise.
40430 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40431 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40432 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40434 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40436 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40438 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40440 Use vaddr of correct segment for entry_point.
40442 2009-03-21 Bean <bean123ch@gmail.com>
40444 * commands/blocklist.c: Add include file <grub/command.h>, remove
40445 <grub/normal.h> and <grub/arg.h>.
40446 (grub_cmd_blocklist): Use the new command interface.
40447 (GRUB_MOD_INIT): Likewise.
40448 (GRUB_MOD_FINI): Likewise.
40449 * commands/boot.c: Likewise.
40450 * commands/cat.c: Likewise.
40451 * commands/cmp.c: Likewise.
40452 * commands/configfile.c: Likewise.
40453 * commands/crc.c: Likewise.
40454 * commands/echo.c: Likewise.
40455 * commands/halt.c: Likewise.
40456 * commands/handler.c: Likewise.
40457 * commands/hdparm.c: Likewise.
40458 * commands/help.c: Likewise.
40459 * commands/hexdump.c: Likewise.
40460 * commands/loadenv.c: Likewise.
40461 * commands/ls.c: Likewise.
40462 * commands/lsmmap.c: Likewise.
40463 * commands/lspci.c: Likewise.
40464 * commands/loadenv.c: Likewise.
40465 * commands/read.c: Likewise.
40466 * commands/reboot.c: Likewise.
40467 * commands/search.c: Likewise.
40468 * commands/sleep.c: Likewise.
40469 * commands/test.c: Likewise.
40470 * commands/usbtest.c: Likewise.
40471 * commands/videotest.c: Likewise.
40472 * commands/i386/cpuid.c: Likewise.
40473 * commands/i386/pc/halt.c: Likewise.
40474 * commands/i386/pc/play.c: Likewise.
40475 * commands/i386/pc/pxecmd.c: Likewise.
40476 * commands/i386/pc/vbeinfo.c: Likewise.
40477 * commands/i386/pc/vbetest.c: Likewise.
40478 * commands/ieee1275/suspend.c: Likewise.
40479 * disk/loopback.c: Likewise.
40480 * font/font_cmd.c: Likewise.
40481 * hello/hello.c: Likewise.
40482 * loader/efi/appleloader.c: Likewise.
40483 * loader/efi/chainloader.c: Likewise.
40484 * loader/i386/bsd.c: Likewise.
40485 * loader/i386/efi/linux.c: Likewise.
40486 * loader/i386/ieee1275/linux.c: Likewise.
40487 * loader/i386/linux.c: Likewise.
40488 * loader/i386/pc/chainloader.c: Likewise.
40489 * loader/i386/pc/linux.c: Likewise.
40490 * loader/powerpc/ieee1275/linux.c: Likewise.
40491 * loader/multiboot_loader.c: Likewise.
40492 * term/gfxterm.c: Likewise.
40493 * term/i386/pc/serial.c: Likewise.
40494 * term/terminfo.c: Likewise.
40496 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40497 * term/i386/pc/vga.c: Likewise.
40498 * video/readers/jpeg.c: Likewise.
40499 * video/readers/png.c: Likewise.
40500 * video/readers/tga.c: Likewise.
40502 * util/grub-fstest (cmd_loopback): Removed.
40503 (cmd_blocklist): Likewise.
40504 (cmd_ls): Likewise.
40505 (grub_register_command): Likewise.
40506 (grub_unregister_command): Likewise.
40507 (execute_command): Use grub_command_find to locate command and execute
40510 * include/grub/efi/chainloader.h: Removed.
40511 * loader/efi/chainloader_normal.c: Likewise.
40512 * loader/i386/bsd_normal.c: Likewise.
40513 * loader/i386/pc/chainloader_normal.c: Likewise.
40514 * loader/i386/pc/multiboot_normal.c: Likewise.
40515 * loader/linux_normal.c: Likewise.
40516 * loader/multiboot_loader_normal.c: Likewise.
40517 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40519 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40520 and grub_register_command_p1.
40522 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40523 kern/command.c, lib/arg.c and commands/extcmd.c.
40524 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40525 (minicmd_mod_SOURCES): New variable.
40526 (minicmd_mod_CFLAGS): Likewise.
40527 (minicmd_mod_LDFLAGS): Likewise.
40528 (extcmd_mod_SOURCES): Likewise.
40529 (extcmd_mod_CFLAGS): Likewise.
40530 (extcmd_mod_LDFLAGS): Likewise.
40531 (boot_mod_SOURCES): Removed.
40532 (boot_mod_CFLAGS): Likewise.
40533 (boot_mod_LDFLAGS): Likewise.
40535 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40537 (kernel_img_HEADERS): Add command.h.
40538 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40539 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40541 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40542 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40543 remove the corresponding normal mode command.
40544 (normal_mod_SOURCES): Remove normal/arg.c.
40545 * conf/i386-coreboot.rmk: Likewise.
40546 * conf/i386-efi.rmk: Likewise.
40547 * conf/i386-ieee1275.rmk: Likewise.
40548 * conf/powerpc-ieee1275.rmk: Likewise.
40549 * conf/x86_64-efi.rmk: Likewise.
40551 * include/grub/arg.h: Move from here ...
40552 * include/grub/lib/arg.h: ... to here.
40554 * normal/arg.c: Move from here ...
40555 * lib/arg.c: ... to here.
40557 * commands/extcmd.c: New file.
40558 * commands/minicmd.c: Likewise.
40559 * include/grub/command.h: Likewise.
40560 * include/grub/extcmd.h: Likewise.
40561 * kern/command.c: Likewise.
40562 * kern/corecmd.c: Likewise.
40564 * kern/list.c (grub_list_iterate): Return int instead of void.
40565 (grub_list_insert): New function.
40566 (grub_prio_list_insert): Likewise.
40568 * kern/rescue.c (grub_rescue_command): Removed.
40569 (grub_rescue_command_list): Likewise.
40570 (grub_rescue_register_command): Likewise.
40571 (grub_rescue_unregister_command): Likewise.
40572 (grub_rescue_cmd_boot): Move to minicmd.c
40573 (grub_rescue_cmd_help): Likewise.
40574 (grub_rescue_cmd_info): Likewise.
40575 (grub_rescue_cmd_boot): Likewise.
40576 (grub_rescue_cmd_testload): Likewise.
40577 (grub_rescue_cmd_dump): Likewise.
40578 (grub_rescue_cmd_rmmod): Likewise.
40579 (grub_rescue_cmd_lsmod): Likewise.
40580 (grub_rescue_cmd_exit): Likewise.
40581 (grub_rescue_print_devices): Moved to corecmd.c.
40582 (grub_rescue_print_files): Likewise.
40583 (grub_rescue_cmd_ls): Likewise.
40584 (grub_rescue_cmd_insmod): Likewise.
40585 (grub_rescue_cmd_set): Likewise.
40586 (grub_rescue_cmd_unset): Likewise.
40587 (attempt_normal_mode): Use grub_command_find to get normal module.
40588 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40589 commands, remove grub_rescue_register_command calls.
40591 * normal/command.c (grub_register_command): Removed.
40592 (grub_unregister_command): Likewise.
40593 (grub_command_find): Likewise.
40594 (grub_iterate_commands): Likewise.
40595 (rescue_command): Likewise.
40596 (export_command): Moved to corecmd.c.
40597 (set_command): Removed.
40598 (unset_command): Likewise.
40599 (insmod_command): Likewise.
40600 (rmmod_command): Likewise.
40601 (lsmod_command): Likewise.
40602 (grub_command_init): Likewise.
40604 * normal/completion.c (iterate_command): Use cmd->prio to check for
40606 (complete_arguments): Use grub_extcmd_t structure to find options.
40607 (grub_normal_do_completion): Change function grub_iterate_commands to
40608 grub_command_iterate.
40610 * normal/execute.c (grub_script_execute_cmd): No need to parse
40613 * normal/main.c (grub_dyncmd_dispatcher): New function.
40614 (read_command_list): Register unload commands as dyncmd.
40615 (grub_cmd_normal): Use new command interface, register rescue,
40616 unregister normal at entry, register normal, unregister rescue at exit.
40618 * include/grub/list.h (grub_list_test_t): New type.
40619 (grub_list_iterate): Return int instead of void.
40620 (grub_list_insert): New function.
40621 (GRUB_AS_NAMED_LIST_P): New macro.
40622 (GRUB_AS_PRIO_LIST): Likewise.
40623 (GRUB_AS_PRIO_LIST_P): Likewise.
40624 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40625 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40626 (grub_prio_list): New structure.
40627 (grub_prio_list_insert): New function.
40628 (grub_prio_list_remove): New inline function.
40630 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40631 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40632 (GRUB_COMMAND_FLAG_MENU): Likewise.
40633 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40634 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40635 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40636 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40637 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40638 (grub_command): Likewise.
40639 (grub_register_command): Likewise.
40640 (grub_command_find): Likewise.
40641 (grub_iterate_commands): Likewise.
40642 (grub_command_init): Likewise.
40643 (grub_arg_parse): Likewise.
40644 (grub_arg_show_help): Likewise.
40646 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40647 (grub_rescue_unregister_command): Likewise.
40649 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40650 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40651 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40653 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40654 grub_rescue_cmd_initrd.
40655 * include/grub/i386/loader.h: Likewise.
40656 * include/grub/x86_64/loader.h: Likewise.
40658 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40660 2009-03-21 Bean <bean123ch@gmail.com>
40662 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40663 instead of stat in mingw environment.
40665 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40667 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40669 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40672 2009-03-21 Bean <bean123ch@gmail.com>
40674 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40675 out of range error.
40677 2009-03-18 Michel Dänzer <michel@daenzer.net>
40679 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40680 checking inode flags for EXT4_EXTENTS_FLAG.
40682 2009-03-18 Robert Millan <rmh@aybabtu.com>
40684 * loader/i386/linux.c: Include `<grub/video.h>' and
40685 `<grub/i386/pc/vbe.h>'..
40686 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40687 (grub_linux32_boot): Attempt to configure video settings with
40688 grub_linux_setup_video().
40689 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40690 to avoid grub_console_fini() which would step out of graphical mode
40693 2009-03-14 Robert Millan <rmh@aybabtu.com>
40695 Fix build on powerpc.
40696 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40698 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40700 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40701 background image command.
40703 2009-03-12 Colin D Bennett <colin@gibibit.com>
40705 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40706 (grub_gfxterm_putchar): Extract pairs of identical calls to
40707 draw_cursor out of conditional blocks.
40709 2009-03-11 Pavel Roskin <proski@gnu.org>
40711 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40712 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40714 2009-03-11 Robert Millan <rmh@aybabtu.com>
40716 * loader/i386/multiboot_elfxx.c
40717 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40719 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40721 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40724 2009-03-11 Robert Millan <rmh@aybabtu.com>
40726 * loader/i386/multiboot.c (code_size): New variable.
40727 (grub_multiboot): Define offsets by adding to `code_size' rather
40728 than subtracting from `grub_multiboot_payload_size'. Provide
40729 4-byte alignment to MBI and others by increasing
40730 `boot_loader_name_length' appropriately.
40732 * loader/i386/multiboot_elfxx.c
40733 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40735 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40737 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40740 2009-03-08 Robert Millan <rmh@aybabtu.com>
40742 Make loader/i386/linux.c usable on i386-pc again.
40744 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40746 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40749 2009-03-07 Bean <bean123ch@gmail.com>
40751 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40754 2009-03-06 Robert Millan <rmh@aybabtu.com>
40756 Fix display issue on terminals with screen size other than 80x25
40757 (e.g. gfxterm with resolution higher than 640x480).
40759 * normal/main.c (grub_normal_init_page): Display title text in a
40760 position relative to the center of the terminal instead of relying
40761 on a hardcoded offset.
40763 2009-03-04 Robert Millan <rmh@aybabtu.com>
40765 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40768 * Makefile.in (host_kernel): New variable.
40769 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40770 scripts instead of just the windows one.
40771 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40773 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40775 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40777 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40778 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40779 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40780 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40781 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40782 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40784 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40786 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40787 or if there's no space for the disk label and print the partition number on a
40790 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40792 * util/misc.c: Include <time.h>.
40793 (grub_millisleep): New function.
40795 2009-03-04 Bean <bean123ch@gmail.com>
40797 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40798 another option -mno-red-zone.
40800 * commands/handler.c: Change module description.
40802 * kern/handler.c: Add missing space at the end of description line.
40804 * kern/list.c: Likewise.
40806 2009-03-03 Robert Millan <rmh@aybabtu.com>
40808 Move more components to the relocation area, and fix mbi pointer
40809 handling to use the destination rather than the origin (thanks to
40810 Vladimir Serbinenko for spotting).
40812 * loader/i386/multiboot.c (mbi_dest): New variable.
40813 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40814 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40817 2009-03-01 Bean <bean123ch@gmail.com>
40819 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40820 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40821 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40822 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40824 * loader/i386/efi/linux.c (acpi_guid): New variable.
40825 (acpi_guid): Likewise.
40826 (EBDA_SEG_ADDR): New constant.
40827 (LOW_MEM_ADDR): Likewise.
40828 (FAKE_EBDA_SEG): Likewise.
40829 (fake_bios_data): New function.
40830 (grub_linux_boot): Call fake_bios_data.
40832 2009-03-01 Bean <bean123ch@gmail.com>
40834 * commands/terminal.c: Removed.
40836 * commands/handler.c: New file.
40838 * include/grub/list.h: Likewise.
40840 * include/grub/handler.h: Likewise.
40842 * kern/list.c: Likewise.
40844 * kern/handler.c: Likewise.
40846 * kern/term.h: Include header file <grub/handler.h>.
40847 (grub_term_input): Move next field to the beginning.
40848 (grub_term_output): Likewise.
40849 (grub_term_input_class): New variable.
40850 (grub_term_output_class): Likewise.
40851 (grub_term_register_input): Changed to inline function.
40852 (grub_term_register_output): Likewise.
40853 (grub_term_unregister_input): Likewise.
40854 (grub_term_unregister_output): Likewise.
40855 (grub_term_set_current_input): Likewise.
40856 (grub_term_set_current_output): Likewise.
40857 (grub_term_get_current_input): Likewise.
40858 (grub_term_get_current_output): Likewise.
40859 (grub_term_iterate_input): Removed.
40860 (grub_term_iterate_output): Likewise.
40862 * kern/term.c (grub_term_list_input): Removed.
40863 (grub_term_list_output): Likewise.
40864 (grub_term_input_class): New variable.
40865 (grub_term_output_class): Likewise.
40866 (grub_cur_term_input): Change variable as macro.
40867 (grub_cur_term_output): Likewise.
40868 (grub_term_register_input): Removed.
40869 (grub_term_register_output): Likewise.
40870 (grub_term_unregister_input): Likewise.
40871 (grub_term_unregister_output): Likewise.
40872 (grub_term_set_current_input): Likewise.
40873 (grub_term_set_current_output): Likewise.
40874 (grub_term_iterate_input): Likewise.
40875 (grub_term_iterate_output): Likewise.
40876 (grub_term_get_current_input): Likewise.
40877 (grub_term_get_current_output): Likewise.
40879 * util/grub-editenv.c: Include header file <grub/handler.h>.
40880 (grub_term_get_current_input): Removed.
40881 (grub_term_get_current_output): Likewise.
40882 (grub_term_input_class): New variable.
40883 (grub_term_output_class): Likewise.
40885 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40886 (grub_term_get_current_output): Likewise.
40887 (grub_term_input_class): New variable.
40888 (grub_term_output_class): Likewise.
40890 * util/grub-probe.c (grub_term_get_current_input): Removed.
40891 (grub_term_get_current_output): Likewise.
40892 (grub_term_input_class): New variable.
40893 (grub_term_output_class): Likewise.
40895 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40896 (grub_term_get_current_output): Likewise.
40897 (grub_term_input_class): New variable.
40898 (grub_term_output_class): Likewise.
40900 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40901 (terminal_mod_SOURCES): Likewise.
40902 (terminal_mod_CFLAGS): Likewise.
40903 (terminal_mod_LDFLAGS): Likewise.
40905 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40907 (kernel_img_SOURCES): Add list.c and handler.c.
40908 (kernel_img_HEADERS): Add list.h and handler.h.
40910 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40912 (kernel_mod_SOURCES): Add list.c and handler.c.
40913 (kernel_mod_HEADERS): Add list.h and handler.h.
40915 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40917 (kernel_elf_SOURCES): Add list.c and handler.c.
40918 (kernel_elf_HEADERS): Add list.h and handler.h.
40920 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40922 (kernel_elf_SOURCES): Add list.c and handler.c.
40923 (kernel_elf_HEADERS): Add list.h and handler.h.
40925 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40927 (kernel_mod_SOURCES): Add list.c and handler.c.
40928 (kernel_mod_HEADERS): Add list.h and handler.h.
40930 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40932 (kernel_elf_SOURCES): Add list.c and handler.c.
40933 (kernel_elf_HEADERS): Add list.h and handler.h.
40935 2009-02-27 Robert Millan <rmh@aybabtu.com>
40937 Factorize elf32 / elf64 code in Multiboot loader. This will
40938 prevent it from getting out of sync again.
40940 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40941 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40942 grub_multiboot_load_elf64): Move from here ...
40943 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40944 grub_multiboot_load_elf): ... to here (new file).
40946 2009-02-27 Robert Millan <rmh@aybabtu.com>
40948 * util/grub.d/10_linux.in: Rename "single-user mode" to
40951 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40953 Don't leak in SCSI code.
40954 * disk/scsi.c (grub_scsi_close): free `scsi'.
40956 2009-02-27 Robert Millan <rmh@aybabtu.com>
40958 * loader/i386/pc/multiboot.c: Move from here ...
40959 * loader/i386/multiboot.c: ... to here. Update all users.
40961 2009-02-27 Robert Millan <rmh@aybabtu.com>
40963 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40964 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40966 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40968 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40971 2009-02-27 Robert Millan <rmh@aybabtu.com>
40973 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40974 `0x' qualifier as 0 when base is specified as parameter).
40976 2009-02-24 Bean <bean123ch@gmail.com>
40978 * configure.ac: Check for -mcmodel=large in x86_64 target.
40980 * include/grub/efi/api.h (efi_call_10): New macro.
40981 (efi_wrap_10): New function.
40983 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40984 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40985 (GRUB_PE32_REL_BASED_LOW): Likewise.
40986 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40987 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40988 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40989 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40990 (GRUB_PE32_REL_BASED_REL): Likewise.
40991 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40992 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40993 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40995 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40998 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40999 (efi_wrap_10): New function.
41001 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
41003 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
41004 MB/MBP model (NV chipset).
41005 (devdata_devs): Add devpath_5 to the list.
41007 * load/i386/efi/linux.c (video_base): Remove variable.
41008 (RGB_MASK): New macro.
41009 (RGB_MAGIC): Likewise.
41010 (LINE_MIN): Likewise.
41011 (LINE_MAX): Likewise.
41012 (FBTEST_STEP): Likewise.
41013 (FBTEST_COUNT): Likewise.
41014 (fb_list): New variable.
41015 (grub_find_video_card): Remove function.
41016 (find_framebuf): New function.
41017 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
41020 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
41021 problem for x86_64.
41023 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
41025 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
41027 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
41030 2009-02-22 Robert Millan <rmh@aybabtu.com>
41032 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
41033 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
41034 in our relocation, instead of using it directly from heap. Also
41035 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
41037 2009-02-21 Robert Millan <rmh@aybabtu.com>
41039 Implement USB keyboard support (based on patch by Marco Gerards)
41041 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
41042 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
41043 (usb_keyboard_mod_LDFLAGS): New variables.
41045 * term/usb_keyboard.c: New file.
41047 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
41049 Corrected wrong declaration
41051 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
41053 2009-02-14 Christian Franke <franke@computer.org>
41055 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
41056 (grub_lspci_iter): Print class code and programming interface byte.
41058 2009-02-14 Christian Franke <franke@computer.org>
41060 * gendistlist.sh: Ignore `.svn' directories.
41062 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
41064 * fs/fat.c: Add 2009 to Copyright line.
41066 2009-02-14 Christian Franke <franke@computer.org>
41068 * commands/hdparm.c: New file. Provides `hdparm' command
41069 which sends ATA commands via grub_disk_ata_pass_through ().
41071 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
41073 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
41074 and <grub/cpu/io.h> to include/grub/ata.h.
41075 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
41076 (GRUB_CDROM_SECTOR_SIZE): Remove.
41077 (GRUB_ATA_*): Move to include/grub/ata.h.
41078 (GRUB_ATAPI_*): Likewise.
41079 (enum grub_ata_commands): Likewise.
41080 (enum grub_ata_timeout_milliseconds): Likewise.
41081 (struct grub_ata_device): Likewise.
41082 (grub_ata_regset): Likewise.
41083 (grub_ata_regget): Likewise.
41084 (grub_ata_regset2): Likewise.
41085 (grub_ata_regget2): Likewise.
41086 (grub_ata_check_ready): Likewise.
41087 (grub_ata_wait_not_busy): Remove static, exported in
41088 include/grub/ata.h.
41089 (grub_ata_wait_drq): Likewise.
41090 (grub_ata_pio_read): Likewise.
41092 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
41093 function for hdparm.mod.
41095 * include/grub/ata.h: New file, contains declarations from
41097 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
41099 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
41100 (grub_disk_ata_pass_through): New exported variable.
41102 * kern/disk.c (grub_disk_ata_pass_through): New variable.
41104 2009-02-13 Colin D Bennett <colin@gibibit.com>
41106 Support multiple fallback entries, and provide an API to support
41107 executing default+fallback menu entries. Renamed the `terminal' menu
41110 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
41111 variable declaration.
41112 (grub_menu_execute_callback): New structure declaration.
41113 (grub_menu_execute_callback_t): New typedef.
41114 (grub_menu_execute_with_fallback): New function declaration.
41115 (grub_menu_get_entry): Likewise.
41116 (grub_menu_get_timeout): Likewise.
41117 (grub_menu_set_timeout): Likewise.
41119 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
41121 * normal/menu.c (grub_wait_after_message): Moved to
41122 `normal/menu_text.c'.
41123 (draw_border): Likewise.
41124 (print_message): Likewise.
41125 (print_entry): Likewise.
41126 (print_entries): Likewise.
41127 (grub_menu_init_page): Likewise.
41128 (get_entry_number): Likewise.
41129 (print_timeout): Likewise.
41130 (run_menu): Likewise.
41131 (grub_menu_execute_entry): Likewise.
41132 (show_text_menu): Likewise.
41133 (get_and_remove_first_entry_number): New function.
41134 (grub_menu_execute_with_fallback): Likewise.
41135 (get_entry): Renamed to ...
41136 (grub_menu_get_entry): .. this and made it global.
41137 (get_timeout): Renamed to ...
41138 (grub_menu_get_timeout): ... this and made it global.
41139 (set_timeout): Renamed to ...
41140 (grub_menu_set_timeout): ... this and made it global.
41141 (grub_normal_terminal_menu_viewer): Renamed to ...
41142 (grub_normal_text_menu_viewer): ... this.
41144 * normal/menu_text.c: New file. Extracted text-menu-specific code
41145 from normal/menu.c.
41147 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
41148 (normal_mod_SOURCES): Likewise.
41150 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41151 (normal_mod_SOURCES): Likewise.
41153 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41154 (normal_mod_SOURCES): Likewise.
41156 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
41157 (normal_mod_SOURCES): Likewise.
41159 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41160 (normal_mod_SOURCES): Likewise.
41162 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41163 (normal_mod_SOURCES): Likewise.
41165 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41166 (normal_mod_SOURCES): Likewise.
41168 2009-02-11 Robert Millan <rmh@aybabtu.com>
41170 * util/grub.d/00_header.in: Update old reference to `font' command.
41172 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
41174 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
41176 Based on patch from Javier Martín.
41178 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41180 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
41181 to avoid false positives with FAT.
41182 (grub_fstest_SOURCES): Likewise.
41183 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41184 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41185 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41186 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41187 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41188 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41190 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41192 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
41193 bpb.version_specific.fat12_or_fat16.fstype and
41194 bpb.version_specific.fat32.fstype.
41196 2009-02-08 Robert Millan <rmh@aybabtu.com>
41198 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
41200 2009-02-08 Robert Millan <rmh@aybabtu.com>
41202 * Makefile.in (host_os, host_cpu): New variables.
41203 (target_os): Remove. Update all users.
41205 2009-02-08 Marco Gerards <marco@gnu.org>
41207 * Makefile.in (enable_grub_emu_usb): New variable.
41208 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41209 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41210 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41211 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41212 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41213 `usbtest.mod' and `usbms.mod'.
41214 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41215 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41216 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41217 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41218 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41221 * disk/usbms.c: New file.
41223 * include/grub/usb.h: Likewise.
41225 * include/grub/usbtrans.h: Likewise.
41227 * include/grub/usbdesc.h: Likewise.
41229 * bus/usb/usbtrans.c: Likewise.
41231 * bus/usb/ohci.c: Likewise.
41233 * bus/usb/uhci.c: Likewise.
41235 * bus/usb/usbhub.c: Likewise.
41237 * bus/usb/usb.c: Likewise.
41239 * commands/usbtest.c: Likewise.
41241 * util/usb.c: Likewise.
41243 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41245 * configure.ac: Test for libusb presence.
41247 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41249 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41251 * kern/mm.c: Add more comments.
41253 2009-02-08 Robert Millan <rmh@aybabtu.com>
41255 Patch from Javier Martín.
41256 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41257 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41259 2009-02-08 Robert Millan <rmh@aybabtu.com>
41261 * fs/cpio.c: Split tar functionality to ...
41262 * fs/tar.c: ... here (new file). Update all users.
41264 2009-02-07 Robert Millan <rmh@aybabtu.com>
41266 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41267 backward-incompatible features.
41269 Based on patch from Javier Martín, with some adjustments.
41271 2009-02-07 Michael Scherer <misc@mandriva.org>
41273 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41275 2009-02-07 Robert Millan <rmh@aybabtu.com>
41277 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41278 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41279 after the RAID stuff.
41281 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41283 Fixes problem when running vbetest command as reported by
41284 Vladimir Serbinenko <phcoder@gmail.com>.
41286 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41288 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41290 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41291 /dev/md/NpN style mdraid devices.
41293 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41295 * util/unifont2pff.rb: Remove.
41297 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41299 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41302 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41304 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41305 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41306 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41307 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41308 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41309 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41310 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41312 2009-02-02 Christian Franke <franke@computer.org>
41314 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41316 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41318 * INSTALL: Note that we now require at least autoconf 2.59 and
41319 that LZO is optional.
41321 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41323 Base on patch on bug #24154 created by Tomas Tintera
41324 <trosos@seznam.cz>.
41326 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41328 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41330 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41331 <bero@arklinux.org>.
41333 * normal/parser.y (script_init): Add missing semicolon.
41335 2009-01-31 Colin D Bennett <colin@gibibit.com>
41337 * normal/main.c: Add include to grub/menu_viewer.h.
41338 (free_menu_entry_classes): Added.
41339 (grub_normal_menu_addentry): Added class property handling.
41340 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41341 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41343 * normal/menu_viewer.c: New file.
41345 * normal/menu.c (run_menu_entry): Renamed to ...
41346 (grub_menu_execute_entry): ... this and made it as global.
41347 (grub_menu_run): Renamed to ...
41348 (show_text_menu): ... this and made it local.
41349 (show_text_menu): Adapt to new function names.
41350 (grub_normal_terminal_menu_viewer): New global variable.
41352 * include/grub/menu.h: New file.
41354 * include/grub/menu_viewer.h: New file.
41356 * include/grub/normal.h: Added include to grub/menu.h.
41357 (grub_menu_entry): Moved to include/grub/menu.h.
41358 (grub_menu_entry_t): Likewise.
41359 (grub_menu): Likewise.
41360 (grub_menu_t): Likewise.
41361 (grub_normal_terminal_menu_viewer): Added.
41362 (grub_menu_execute_entry): Likewise.
41363 (grub_menu_run): Removed.
41365 * DISTLIST: Added include/grub/menu.h.
41366 Added include/grub/menu_viewer.h.
41367 Added normal/menu_viewer.c.
41369 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41371 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41372 arglist for menutitle arguments.
41374 * normal/main.c (grub_normal_menu_addentry): Likewise.
41376 * normal/parser.y (menuentry): Likewise.
41378 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41380 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41381 (grub_script_create_cmdmenu): Likewise.
41383 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41385 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41388 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41390 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41392 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41394 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41396 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41398 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41400 2009-01-30 Christian Franke <franke@computer.org>
41402 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41403 in option help text.
41405 2009-01-27 Pavel Roskin <proski@gnu.org>
41407 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41409 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41411 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41413 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41415 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41416 unregister function.
41418 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41420 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41422 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41424 * util/grub-mkfont.c (usage): Fix typo.
41426 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41428 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41430 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41432 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41434 * kern/misc.c (grub_strcasecmp): New function.
41435 (grub_strcasecmp): Use grub_size_t instead of int for length.
41437 * include/grub/misc.h: Update function prototypes.
41439 2009-01-26 Robert Millan <rmh@aybabtu.com>
41441 * configure.ac: Fix cross-compilation check.
41443 2009-01-22 Christian Franke <franke@computer.org>
41445 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41446 (precision) digit string. Allow `.format2' without `format1' (width).
41447 Limit input chars for `%s' output to `format2' if specified. This is
41448 compatible with standard printf ().
41450 2009-01-22 Christian Franke <franke@computer.org>
41452 * disk/ata.c (grub_ata_wait_status): Replace by ...
41453 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41454 other status bits may be invalid while BSY is asserted.
41455 (grub_ata_check_ready): New function.
41456 (grub_ata_cmd): Removed.
41457 (grub_ata_wait_drq): New function.
41458 (grub_ata_strncpy): Remove inline.
41459 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41460 and error check now done by grub_ata_wait_drq ().
41461 (grub_ata_pio_write): Likewise.
41462 (grub_atapi_identify): Set DEV before check for !BSY. Use
41463 grub_ata_wait_drq () to wait for data.
41464 (grub_ata_device_initialize): Add status register check to
41465 detect missing SATA slave devices. Add debug messages.
41466 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41467 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41468 transfer loop by grub_ata_pio_write ().
41469 (grub_ata_identify): Set DEV before check for !BSY. Use
41470 grub_ata_wait_drq () to wait for data.
41471 (grub_ata_setaddress): Set DEV before check for !BSY.
41472 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41473 read/write in one loop. Fix invalid command on write. Fix incomplete
41474 command on (size % batch) == 0. Add missing error check after write of
41475 last block. Add debug messages.
41476 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41478 2009-01-19 Christian Franke <franke@computer.org>
41480 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41481 (GRUB_ATAPI_IREASON_*): Likewise.
41482 (grub_ata_pio_write): Fix timeout error return.
41483 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41484 (grub_atapi_wait_drq): New function.
41485 (grub_atapi_packet): New parameter `size'.
41486 Use grub_atapi_wait_drq () and direct write instead of
41487 grub_ata_pio_write ().
41488 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41489 reads the number of bytes requested by the device for each DRQ
41491 (grub_atapi_write): Remove old implementation, return not
41492 implemented instead.
41494 2009-01-19 Christian Franke <franke@computer.org>
41496 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41497 of 512 to calculate data size.
41498 (grub_scsi_read12): Likewise.
41499 (grub_scsi_write10): Likewise.
41500 (grub_scsi_write12): Likewise.
41501 (grub_scsi_read): Adjust size according to blocksize.
41502 Add checks for invalid blocksize and unaligned transfer.
41504 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41506 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41508 * term/gfxterm.c (write_char): Fix background rendering for wide
41511 2009-01-19 Robert Millan <rmh@aybabtu.com>
41513 * config.guess: Update to latest version from config git.
41514 * config.sub: Likewise.
41516 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41518 * Makefile.in: Change font compilation to use new grub-mkfont instead
41521 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41522 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41523 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41524 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41525 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41526 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41527 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41528 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41529 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41531 2009-01-16 Christian Franke <franke@computer.org>
41533 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41534 (enum grub_ata_timeout_milliseconds): New enum.
41535 (grub_ata_wait_status): Add parameter milliseconds.
41536 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41537 recovery from timed-out commands.
41538 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41539 return grub_errno instead of REG_ERROR.
41540 (grub_ata_pio_write): Add parameter milliseconds.
41541 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41542 Pass milliseconds to grub_ata_wait_status () and
41543 grub_ata_pio_read ().
41544 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41545 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41546 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41547 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41548 It is not suitable for device detection, because DEV bit is ignored,
41549 the command may run too long, and not all devices set the signature
41551 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41552 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41553 Fix device selection, DEV bit must be set first to address the registers
41554 of the correct device.
41555 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41556 grub_ata_pio_read/write ().
41557 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41558 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41560 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41562 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41564 2009-01-13 Bean <bean123ch@gmail.com>
41566 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41568 2009-01-13 Bean <bean123ch@gmail.com>
41570 * Makefile.in: (enable_grub_mkfont): New variable.
41571 (freetype_cflags): Likewise.
41572 (freetype_libs): Likewise.
41574 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41575 (grub_mkfont_SOURCES): New variable.
41576 (grub_mkfont_CFLAGS): Likewise.
41577 (grub_mkfont_LDFLAGS): Likewise.
41579 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41580 library if `--enable-grub-mkfont' is requested.
41581 (enable_grub_mkfont): New variable.
41582 (freetype_cflags): Likewise.
41583 (freetype_libs): Likewise.
41585 * util/grub-mkfont.c: New file.
41587 2009-01-12 Christian Franke <franke@computer.org>
41589 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41590 mode check. Fix setting of compat_use[].
41592 2009-01-10 Robert Millan <rmh@aybabtu.com>
41594 Update a few copyright years which we forgot to do in 2008 (only for
41595 files whose changes made in 2008 were copyright-significant)
41597 * Makefile.in: Add 2008 to Copyright line.
41598 * disk/ieee1275/ofdisk.c: Likewise.
41599 * disk/efi/efidisk.c: Likewise.
41600 * kern/dl.c: Likewise.
41601 * kern/sparc64/ieee1275/init.c: Likewise.
41602 * kern/mm.c: Likewise.
41603 * kern/efi/mm.c: Likewise.
41604 * boot/i386/pc/boot.S: Likewise.
41605 * genfslist.sh: Likewise.
41606 * fs/iso9660.c: Likewise.
41607 * fs/hfs.c: Likewise.
41608 * fs/jfs.c: Likewise.
41609 * fs/minix.c: Likewise.
41610 * fs/ufs.c: Likewise.
41611 * gensymlist.sh.in: Likewise.
41612 * genkernsyms.sh.in: Likewise.
41613 * include/grub/misc.h: Likewise.
41614 * include/grub/types.h: Likewise.
41615 * include/grub/symbol.h: Likewise.
41616 * include/grub/elf.h: Likewise.
41617 * include/grub/kernel.h: Likewise.
41618 * include/grub/disk.h: Likewise.
41619 * include/grub/dl.h: Likewise.
41620 * include/grub/i386/linux.h: Likewise.
41621 * include/grub/i386/pc/biosdisk.h: Likewise.
41622 * include/grub/efi/api.h: Likewise.
41623 * include/grub/efi/pe32.h: Likewise.
41624 * include/grub/util/misc.h: Likewise.
41625 * normal/execute.c: Likewise.
41626 * normal/arg.c: Likewise.
41627 * normal/completion.c: Likewise.
41628 * normal/lexer.c: Likewise.
41629 * normal/parser.y: Likewise.
41630 * normal/misc.c: Likewise.
41631 * commands/i386/pc/vbeinfo.c: Likewise.
41632 * commands/hexdump.c: Likewise.
41633 * commands/terminal.c: Likewise.
41634 * commands/ls.c: Likewise.
41635 * commands/help.c: Likewise.
41636 * partmap/pc.c: Likewise.
41637 * loader/efi/chainloader.c: Likewise.
41638 * loader/multiboot_loader.c: Likewise.
41639 * loader/i386/pc/multiboot2.c: Likewise.
41640 * term/efi/console.c: Likewise.
41641 * term/i386/pc/serial.c: Likewise.
41642 * util/lvm.c: Likewise.
41643 * util/console.c: Likewise.
41644 * util/i386/efi/grub-mkimage.c: Likewise.
41645 * util/raid.c: Likewise.
41647 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41649 * commands/videotest.c: Removed include to grub/machine/memory.h.
41651 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41652 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41653 (video_mod_SOURCES): Removed.
41654 (video_mod_CFLAGS): Likewise.
41655 (video_mod_LDFLAGS): Likewise.
41656 (gfxterm_mod_SOURCES): Likewise.
41657 (gfxterm_mod_CFLAGS): Likewise.
41658 (gfxterm_mod_LDFLAGS): Likewise.
41659 (videotest_mod_SOURCES): Likewise.
41660 (videotest_mod_CFLAGS): Likewise.
41661 (videotest_mod_LDFLAGS): Likewise.
41662 (bitmap_mod_SOURCES): Likewise.
41663 (bitmap_mod_CFLAGS): Likewise.
41664 (bitmap_mod_LDFLAGS): Likewise.
41665 (tga_mod_SOURCES): Likewise.
41666 (tga_mod_CFLAGS): Likewise.
41667 (tga_mod_LDFLAGS): Likewise.
41668 (jpeg_mod_SOURCES): Likewise.
41669 (jpeg_mod_CFLAGS): Likewise.
41670 (jpeg_mod_LDFLAGS): Likewise.
41671 (png_mod_SOURCES): Likewise.
41672 (png_mod_CFLAGS): Likewise.
41673 (png_mod_LDFLAGS): Likewise.
41675 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41676 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41677 (video_mod_SOURCES): Added.
41678 (video_mod_CFLAGS): Likewise.
41679 (video_mod_LDFLAGS): Likewise.
41680 (videotest_mod_SOURCES): Likewise.
41681 (videotest_mod_CFLAGS): Likewise.
41682 (videotest_mod_LDFLAGS): Likewise.
41683 (bitmap_mod_SOURCES): Likewise.
41684 (bitmap_mod_CFLAGS): Likewise.
41685 (bitmap_mod_LDFLAGS): Likewise.
41686 (tga_mod_SOURCES): Likewise.
41687 (tga_mod_CFLAGS): Likewise.
41688 (tga_mod_LDFLAGS): Likewise.
41689 (jpeg_mod_SOURCES): Likewise.
41690 (jpeg_mod_CFLAGS): Likewise.
41691 (jpeg_mod_LDFLAGS): Likewise.
41692 (png_mod_SOURCES): Likewise.
41693 (png_mod_CFLAGS): Likewise.
41694 (png_mod_LDFLAGS): Likewise.
41695 (gfxterm_mod_SOURCES): Likewise.
41696 (gfxterm_mod_CFLAGS): Likewise.
41697 (gfxterm_mod_LDFLAGS): Likewise.
41699 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41700 grub/machine/console.h.
41702 2009-01-04 Jerone Young <jerone@gmail.com>
41704 Make on screen instructions clearer
41706 Based on patch created by Jidanni <jidanni@jidanni.org>
41708 * normal/menu.c: print clearer instructions on the screen
41710 2009-01-02 Colin D Bennett <colin@gibibit.com>
41714 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41715 build system and fixed gfxterm.c to work with different sized fonts.
41717 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41719 * configure: Re-generated.
41721 * DISTLIST: Removed font/manager.c.
41723 Added font/font_cmd.c.
41725 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41728 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41730 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41732 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41734 * normal/menu.c: Likewise.
41736 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41737 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41739 * include/grub/font.h: Replaced with new file.
41741 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41742 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41743 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41744 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41745 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41746 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41747 fg_red, fg_green, fg_blue, fg_alpha.
41748 (grub_video_adapter): Removed blit_glyph.
41749 (grub_video_blit_glyph): Removed.
41751 * font/manager.c: Removed file.
41753 * font/font.c: New file.
41755 * font/font_cmd.c: Likewise.
41757 * video/video.c (grub_video_blit_glyph): Removed.
41759 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41760 (grub_video_vbe_map_rgba): Likewise.
41761 (grub_video_vbe_unmap_color_int): Likewise.
41762 (grub_video_vbe_blit_glyph): Removed.
41763 (grub_video_vbe_adapter): Removed blit_glyph.
41765 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41766 (get_pixel): Likewise.
41767 (set_pixel): Likewise.
41769 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41771 * term/gfxterm.c: Adapted to new font engine.
41773 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41775 * term/i386/pc/vga.c: Likewise.
41777 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41779 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41781 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41783 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41785 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41787 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41789 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41791 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41793 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41795 * util/grub.d/00_header.in: Changed to use new loadfont command.
41797 * util/grub-mkconfig_lib.in: Changed font extension.
41799 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41801 * util/getroot.c (grub_util_get_grub_dev): Add support for
41802 /dev/md/dNNpNN style partitionable mdraid devices.
41804 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41806 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41807 at a time limit of the PXE TFTP API correctly.
41808 (grub_pxefs_close): Likewise.
41810 2008-11-29 Robert Millan <rmh@aybabtu.com>
41812 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41813 grub_ata_device_initialize() calls.
41815 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41817 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41819 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41821 2008-11-28 Robert Millan <rmh@aybabtu.com>
41823 Fix build on powerpc-ieee1275. Based on patch created by
41824 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41825 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41826 `kern/ieee1275/mmap.c'.
41827 * include/grub/powerpc/ieee1275/memory.h: New file.
41829 Provide grub-install on coreboot.
41830 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41831 (grub_install_SOURCES): New variable.
41832 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41833 usable on coreboot.
41835 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41837 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41838 to `grub_term_input_t'.
41839 (grub_term_get_current_output): Change return type to
41840 `grub_term_output_t'.
41842 2008-11-22 Robert Millan <rmh@aybabtu.com>
41844 Fix breakage on coreboot due to declaration mismatch.
41845 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41846 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41847 grub_vga_text_cls().
41849 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41850 comments. Avoid copying one more byte than necessary (just in case).
41852 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41853 to 0x200000 (avoids trouble with some OFW implementations, and matches
41854 with the one in Yaboot).
41855 Reported by Manoel Abranches
41857 2008-11-20 Robert Millan <rmh@aybabtu.com>
41859 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41860 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41862 * util/grub-mkconfig_lib.in (grub_warn): New function.
41863 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41864 warnings, to obtain consistent formatting.
41865 * util/grub.d/00_header.in: Likewise.
41866 * util/update-grub_lib.in: Likewise.
41868 * loader/i386/linux.c (allocate_pages): Fix a warning.
41869 Move comment text to `#error' stanza.
41871 Harmonize ieee1275's grub_available_iterate() with the generic
41872 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41873 build problem on i386-ieee1275):
41874 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41875 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41876 parameter `type'. Update all users of this function.
41877 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41878 `kern/ieee1275/mmap.c'.
41879 * kern/ieee1275/init.c
41880 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41882 (grub_machine_mmap_iterate): ... this.
41883 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41884 return type to `grub_err_t'. Update all implementations of this
41885 function prototype.
41886 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41889 Add `lsmmap' command (lists firmware-provided memory map):
41890 * commands/lsmmap.c: New file.
41891 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41892 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41894 * conf/powerpc-ieee1275.rmk: Likewise.
41895 * conf/i386-coreboot.rmk: Likewise.
41896 * conf/i386-ieee1275.rmk: Likewise.
41898 2008-11-19 Robert Millan <rmh@aybabtu.com>
41900 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41901 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41902 constraints to initrd allocation (based on code from
41903 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41904 for Linux to find it.
41906 2008-11-14 Robert Millan <rmh@aybabtu.com>
41908 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41909 order to cope with duplicate slashes.
41911 2008-11-14 Robert Millan <rmh@aybabtu.com>
41913 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41914 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41915 don't want to mess with lower memory, because it is used in the Linux
41918 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41919 an appropriate place in lower memory, between 0x10000 and 0x90000,
41920 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41921 is in our heap (probably as a result of it being corrupted during
41922 decompression). Add #error instance with comment to explain why this
41923 loader isn't currently usable on PC/BIOS.
41925 2008-11-14 Robert Millan <rmh@aybabtu.com>
41927 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41928 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41930 2008-11-12 Robert Millan <rmh@aybabtu.com>
41932 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41934 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41935 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41937 * include/grub/i386/pc/memory.h: ... to here.
41939 2008-11-12 Robert Millan <rmh@aybabtu.com>
41941 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41944 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41945 (grub_console_cur_color, grub_console_real_putchar)
41946 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41947 (grub_console_setcolorstate, grub_console_setcolor)
41948 (grub_console_getcolor): Move from here ...
41949 * include/grub/i386/vga_common.h: ... to here (new file).
41951 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41952 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41953 `<grub/i386/io.h>'.
41954 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41955 `<grub/i386/vga_common.h>'.
41957 2008-11-12 Robert Millan <rmh@aybabtu.com>
41959 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41960 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41961 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41963 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41964 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41966 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41967 grub_console_init() with call to grub_vga_text_init().
41968 (grub_machine_fini): Replace call to
41969 grub_console_fini() with call to grub_vga_text_fini() and
41970 grub_at_keyboard_fini().
41972 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41973 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41974 (grub_console_setcolorstate, grub_console_setcolor)
41975 (grub_console_getcolor): New function prototypes.
41977 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41978 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41979 (grub_vga_text_setcursor): Static-ize.
41980 (grub_vga_text_term): New structure.
41981 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41983 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41984 (grub_console_cur_color, grub_console_standard_color)
41985 (grub_console_normal_color, grub_console_highlight_color)
41986 (map_char, grub_console_putchar, grub_console_getcharwidth)
41987 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41988 (grub_console_getcolor): Move from here ...
41989 * term/i386/vga_common.c: ... to here (same function names).
41991 2008-11-12 Robert Millan <rmh@aybabtu.com>
41993 Use newly-added Multiboot support in coreboot.
41995 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41996 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41998 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41999 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
42000 (codestart): Store the MBI in `startup_multiboot_info' when we're
42001 being loaded using Multiboot.
42003 * kern/i386/coreboot/init.c (grub_machine_init): Move
42004 grub_at_keyboard_init() call to beginning of function (useful for
42005 debugging). Call grub_machine_mmap_init() before attempting to use
42006 grub_machine_mmap_iterate().
42007 (grub_lower_mem, grub_upper_mem): Move from here ...
42008 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
42011 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
42012 function prototype.
42014 2008-11-12 Robert Millan <rmh@aybabtu.com>
42016 Fix a regression introduced by the at_keyboard.mod split. Because
42017 some terminals are default on some platforms and non-default on
42018 others, the first terminal being registered determines which is
42019 going to be default.
42021 * kern/term.c (grub_term_register_input): If this is the first
42022 terminal being registered, set it as the current one.
42023 (grub_term_register_output): Likewise.
42025 * term/efi/console.c (grub_console_init): Do not call
42026 grub_term_set_current_output() or grub_term_set_current_input().
42027 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
42028 * term/i386/pc/console.c (grub_console_init): Likewise.
42029 (grub_console_fini): Do not call grub_term_set_current_input()
42030 (but leave grub_term_set_current_output() to restore text mode).
42032 2008-11-10 Robert Millan <rmh@aybabtu.com>
42034 * util/grub.d/00_header.in: Add backward compatibility check for
42035 versions of terminal.mod that don't understand `terminal_input' or
42038 2008-11-09 Robert Millan <rmh@aybabtu.com>
42040 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
42041 `terminal_input' / `terminal_output', not `terminal'.
42043 2008-11-08 Robert Millan <rmh@aybabtu.com>
42045 * Makefile.in (include_DATA): Fix srcdir=. assumption.
42046 (DISTCLEANFILES): Add `build_env.mk'.
42048 2008-11-08 Robert Millan <rmh@aybabtu.com>
42050 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
42051 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42052 members. Update all users.
42053 * util/console.c (grub_ncurses_term): Split in ...
42054 (grub_ncurses_term_input): ... this, and ...
42055 (grub_ncurses_term_output): ... this. Update all users.
42056 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
42058 2008-11-08 Robert Millan <rmh@aybabtu.com>
42060 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
42061 (PKGDATA): Add $(pkgdata_SRCDIR).
42062 (pkglib_BUILDDIR): New variable.
42063 (pkgdata_SRCDIR): New variable.
42064 (build_env.mk): New target.
42065 (include_DATA): New variable.
42066 (install-local): Install $(include_DATA) files in $(includedir).
42068 2008-11-07 Pavel Roskin <proski@gnu.org>
42070 * gendistlist.sh: Use C locale for sorting to ensure consistent
42071 output on all systems.
42073 * util/grub.d/00_header.in: Remove incorrect space before
42076 2008-11-07 Robert Millan <rmh@aybabtu.com>
42078 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
42080 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
42081 * loader/multiboot_loader.c (find_multi_boot2_header): New function
42082 (based on find_multi_boot1_header).
42083 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
42084 using find_multi_boot2_header(), and abort if neither Multiboot or
42085 Multiboot headers were found.
42087 2008-11-07 Robert Millan <rmh@aybabtu.com>
42089 Modularize at_keyboard.mod:
42091 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
42092 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
42093 (at_keyboard_mod_LDFLAGS): New variables.
42095 Actual terminal split:
42097 * include/grub/term.h (struct grub_term): Split in ...
42098 (struct grub_term_input): ... this, and ...
42099 (struct grub_term_output): ... this. Update all users.
42100 (grub_term_set_current): Split in ...
42101 (grub_term_set_current_input): ... this, and ...
42102 (grub_term_set_current_output): ... this.
42103 (grub_term_get_current): Split in ...
42104 (grub_term_get_current_input): ... this, and ...
42105 (grub_term_get_current_output): ... this.
42106 (grub_term_register): Split in ...
42107 (grub_term_register_input): ... this, and ...
42108 (grub_term_register_output): ... this.
42109 (grub_term_unregister): Split in ...
42110 (grub_term_unregister_input): ... this, and ...
42111 (grub_term_unregister_output): ... this.
42112 (grub_term_iterate): Split in ...
42113 (grub_term_iterate_input): ... this, and ...
42114 (grub_term_iterate_output): ... this.
42116 * kern/term.c (grub_term_list): Split in ...
42117 (grub_term_list_input): ... this, and ...
42118 (grub_term_list_output): ... this. Update all users.
42119 (grub_cur_term): Split in ...
42120 (grub_cur_term_input): ... this, and ...
42121 (grub_cur_term_output): ... this. Update all users.
42122 (grub_term_set_current): Split in ...
42123 (grub_term_set_current_input): ... this, and ...
42124 (grub_term_set_current_output): ... this.
42125 (grub_term_get_current): Split in ...
42126 (grub_term_get_current_input): ... this, and ...
42127 (grub_term_get_current_output): ... this.
42128 (grub_term_register): Split in ...
42129 (grub_term_register_input): ... this, and ...
42130 (grub_term_register_output): ... this.
42131 (grub_term_unregister): Split in ...
42132 (grub_term_unregister_input): ... this, and ...
42133 (grub_term_unregister_output): ... this.
42134 (grub_term_iterate): Split in ...
42135 (grub_term_iterate_input): ... this, and ...
42136 (grub_term_iterate_output): ... this.
42138 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
42139 a check for input and one for output (and only attempt to get keys
42140 from user when input works).
42142 * util/grub-probe.c (grub_term_get_current): Split in ...
42143 (grub_term_get_current_input): ... this, and ...
42144 (grub_term_get_current_output): ... this.
42145 * util/grub-fstest.c: Likewise.
42146 * util/i386/pc/grub-setup.c: Likewise.
42147 * util/grub-editenv.c: Likewise.
42149 Portability adjustments:
42151 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
42152 `term/i386/pc/at_keyboard.c'.
42153 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
42154 grub_keyboard_controller_init() (now handled by terminal .init).
42155 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
42156 grub_at_keyboard_init().
42157 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
42158 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
42159 at_keyboard.mod via input terminal interface).
42160 * include/grub/i386/coreboot/console.h: Convert into a stub for
42161 `<grub/i386/pc/console.h>'.
42163 Migrate full terminals to new API:
42165 * term/efi/console.c (grub_console_term): Split into ...
42166 (grub_console_term_input): ... this, and ...
42167 (grub_console_term_output): ... this. Update all users.
42168 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
42169 (grub_ofconsole_init): Split into ...
42170 (grub_ofconsole_init_input): ... this, and ...
42171 (grub_ofconsole_init_output): ... this.
42172 (grub_ofconsole_term): Split into ...
42173 (grub_ofconsole_term_input): ... this, and ...
42174 (grub_ofconsole_term_output): ... this. Update all users.
42175 * term/i386/pc/serial.c (grub_serial_term): Split into ...
42176 (grub_serial_term_input): ... this, and ...
42177 (grub_serial_term_output): ... this. Update all users.
42178 * term/i386/pc/console.c (grub_console_term): Split into ...
42179 (grub_console_term_input): ... this, and ...
42180 (grub_console_term_output): ... this. Update all users.
42181 (grub_console_term_input): Only enable it on PC/BIOS platform.
42182 (grub_console_init): Remove grub_keyboard_controller_init() call.
42184 Migrate input terminals to new API:
42186 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42187 `i386' and `i386/pc' to enable build on x86_64 (this driver is
42188 i386-specific anyway).
42189 (grub_console_checkkey): Rename to ...
42190 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
42192 (grub_keyboard_controller_orig): New variable.
42193 (grub_console_getkey): Rename to ...
42194 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42196 (grub_keyboard_controller_init): Static-ize. Save original
42197 controller value so that it can be restored ...
42198 (grub_keyboard_controller_fini): ... here (new function).
42199 (grub_at_keyboard_term): New structure.
42200 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42203 Migrate output terminals to new API:
42205 * term/i386/pc/vga.c (grub_vga_term): Change type to
42206 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42207 members. Update all users.
42208 * term/gfxterm.c (grub_video_term): Change type to
42209 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42210 members. Update all users.
42211 * include/grub/i386/pc/console.h (grub_console_checkkey)
42212 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42215 Migrate `terminal' command and userland tools to new API:
42217 * commands/terminal.c (grub_cmd_terminal): Split into ...
42218 (grub_cmd_terminal_input): ... this, and ...
42219 (grub_cmd_terminal_output): ... this.
42220 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42221 `terminal_input' and `terminal_output'.
42222 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42223 `terminal_input' / `terminal_output' API.
42224 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42225 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42226 provided ${GRUB_TERMINAL}, convert it).
42228 2008-11-04 Robert Millan <rmh@aybabtu.com>
42230 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42232 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42234 2008-11-03 Bean <bean123ch@gmail.com>
42236 * kern/elf.c (grub_elf32_load): Revert to previous code.
42237 (grub_elf64_load): Likewise.
42239 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42241 2008-11-01 Robert Millan <rmh@aybabtu.com>
42243 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42244 (TARGET_CPPFLAGS): Likewise.
42245 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42247 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42249 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42251 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42253 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42254 addition of objects until the code is not going to be able to fail.
42256 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42258 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42259 (add a missing NULL check, and correct them by moving the pointer
42260 operations after the actual check).
42262 2008-10-29 Robert Millan <rmh@aybabtu.com>
42264 * util/i386/pc/grub-install.in: Handle empty string as output from
42265 make_system_path_relative_to_its_root().
42267 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42269 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42270 circular metadata worst case scenario. If the metadata is circular
42271 then copy the wrap in place.
42272 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42273 project lib/format_text/layout.h
42274 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42276 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42278 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42280 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42282 * util/update-grub_lib.in: Mention filename in warning message.
42284 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42286 * NEWS: Update for rename of update-grub to grub-mkconfig.
42288 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42290 * util/update-grub_lib.in: Copy to ...
42291 * util/grub-mkconfig_lib.in: ... this. Update all users.
42292 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42293 * util/update-grub.in: Rename to ...
42294 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42295 option. Add `--output' option to allow users to specify the generated
42296 configuration file. Default to stdout.
42297 (update_grub_dir): Rename to ...
42298 (grub_mkconfig_dir): ... this.
42299 (grub_cfg): Default to an empty string.
42300 * conf/common.rmk (update-grub): Rename to ...
42301 (grub-mkconfig): ... this.
42302 (update-grub_lib): Copy to ...
42303 (grub-mkconfig_lib): ... this.
42304 (update-grub_SCRIPTS): Copy to ...
42305 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42306 (update-grub_DATA): Rename to ...
42307 (grub-mkconfig_DATA): ... this.
42309 2008-09-28 Robert Millan <rmh@aybabtu.com>
42311 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42312 to `modified'. Add the real `created' field.
42313 (grub_iso9660_uuid): Use `modified' rather than `created' for
42314 constructing the UUID.
42316 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42318 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42319 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42321 2008-09-28 Bean <bean123ch@gmail.com>
42323 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42324 Thanks to Christian Franke for finding this bug.
42326 2008-09-25 Robert Millan <rmh@aybabtu.com>
42328 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42329 instances of grub_util_get_disk_name() (see previous commit).
42331 2008-09-25 Robert Millan <rmh@aybabtu.com>
42333 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42334 `util/i386/get_disk_name.c'.
42335 * conf/i386-efi.rmk: Likewise.
42336 * conf/x86_64-efi.rmk: Likewise.
42337 * conf/i386-coreboot.rmk: Likewise.
42338 * conf/i386-ieee1275.rmk: Likewise.
42339 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42340 `util/ieee1275/get_disk_name.c'.
42341 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42342 * util/ieee1275/get_disk_name.c: Remove file.
42343 * util/i386/get_disk_name.c: Remove file.
42344 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42345 "hd%d" for device.map entries, rather than using
42346 grub_util_get_disk_name().
42348 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42350 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42352 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42354 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42356 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42358 (GRUB_TERM_PPAGE): Changed to 0x4900.
42360 2008-09-24 Robert Millan <rmh@aybabtu.com>
42362 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42363 macros (they were i386-pc specific).
42364 * include/grub/sparc64/ieee1275/console.h: Likewise.
42365 * include/grub/efi/console.h: Likewise.
42367 2008-09-22 Bean <bean123ch@gmail.com>
42369 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42370 resident and in attribute list.
42372 * include/grub/ntfs.h (BMP_LEN): Removed.
42374 2008-09-22 Bean <bean123ch@gmail.com>
42376 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42377 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42379 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42380 error occurs, as grub_disk_open will call grub_disk_close, which will
42381 call p->close (scsi).
42383 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42385 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42386 (AC_PREREQ): Bumped to 2.59.
42387 (AC_TRY_COMPILE): Replace obsolete macro with ...
42388 (AC_COMPILE_IFELSE): ... this.
42389 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42390 (AC_LINK_IFELSE): ... this.
42392 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42394 * autogen.sh: Add a call to `gendistlist.sh'.
42396 2008-09-19 Christian Franke <franke@computer.org>
42398 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42399 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42400 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42401 Export __enable_execute_stack() to modules.
42402 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42405 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42407 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42410 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42412 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42413 #include <grub/util/hostdisk.h>.
42415 2008-09-08 Robert Millan <rmh@aybabtu.com>
42417 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42418 segments when their filesz is zero (grub_file_read() interprets
42419 zero-size as "read until EOF", which results in memory corruption).
42420 Use `lowest_segment' rather than 0 for calculating the current
42421 segment load address.
42423 2008-09-08 Robert Millan <rmh@aybabtu.com>
42425 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42426 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42427 clobbered useful information.
42429 2008-09-08 Robert Millan <rmh@aybabtu.com>
42431 * include/grub/util/biosdisk.h: Move to ...
42432 * include/grub/util/hostdisk.h: ... here. Update all users.
42433 * util/biosdisk.c: Move to ...
42434 * util/hostdisk.c: ... here. Update all users.
42436 2008-09-07 Robert Millan <rmh@aybabtu.com>
42438 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42440 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42441 and length can be stored directly in the `mbi->mmap_addr' and
42442 `mbi->mmap_length' struct fields.
42444 2008-09-07 Robert Millan <rmh@aybabtu.com>
42446 * conf/i386.rmk: New file. Provides declaration for building
42448 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42449 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42451 Include `conf/i386.mk'.
42452 * conf/i386-efi.rmk: Likewise.
42453 * conf/x86_64-efi.rmk: Likewise.
42454 * conf/i386-coreboot.rmk: Likewise.
42455 * conf/i386-ieee1275.rmk: Likewise.
42457 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42459 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42460 Adds optimization support for BGR based modes.
42462 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42463 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42464 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42465 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42466 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42467 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42468 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42469 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42470 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42471 (grub_video_i386_vbeblit_index_index): Likewise.
42472 (grub_video_i386_vbeblit_replace_directN): Added.
42473 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42474 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42475 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42476 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42477 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42478 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42479 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42480 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42481 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42482 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42483 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42484 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42485 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42487 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42488 (grub_video_i386_vbefill_R8G8B8): Likewise.
42489 (grub_video_i386_vbefill_index): Likewise.
42490 (grub_video_i386_vbefill_direct32): Added.
42491 (grub_video_i386_vbefill_direct24): Likewise.
42492 (grub_video_i386_vbefill_direct16): Likewise.
42493 (grub_video_i386_vbefill_direct8): Likewise.
42495 * include/grub/video.h (grub_video_blit_format): Removed
42496 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42497 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42498 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42499 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42500 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42502 * video/video.c (grub_video_get_blit_format): Updated to use new
42503 blit formats. Added handling for 16 bit color modes.
42505 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42507 (common_blitter): Updated to use new blitters.
42509 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42511 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42512 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42513 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42514 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42515 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42516 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42517 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42518 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42519 (grub_video_i386_vbeblit_index_index): Likewise.
42520 (grub_video_i386_vbeblit_replace_directN): Added.
42521 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42522 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42523 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42524 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42525 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42526 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42527 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42528 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42529 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42530 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42531 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42532 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42533 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42535 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42536 (grub_video_i386_vbefill_R8G8B8): Likewise.
42537 (grub_video_i386_vbefill_index): Likewise.
42538 (grub_video_i386_vbefill_direct32): Added.
42539 (grub_video_i386_vbefill_direct24): Likewise.
42540 (grub_video_i386_vbefill_direct16): Likewise.
42541 (grub_video_i386_vbefill_direct8): Likewise.
42543 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42546 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42549 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42552 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42555 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42557 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42560 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42562 * fs/iso9660.c (grub_iso9660_date): New structure.
42563 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42564 (grub_iso9660_uuid): New function.
42566 2008-09-05 Bean <bean123ch@gmail.com>
42568 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42570 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42571 insensitive bit for names in Win32 and Win32 & DOS namespace.
42573 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42575 * include/grub/types.h (LONG_MAX): Likewise.
42577 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42579 * util/getroot.c: Include <config.h>.
42580 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42581 add support for /dev/md/N devices and handle LVM double dash escaping.
42583 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42585 * config.guess: Update to latest version from config git.
42586 * config.sub: Likewise.
42588 2008-09-03 Robert Millan <rmh@aybabtu.com>
42590 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42591 `disk->total_sectors'.
42593 2008-09-01 Colin D Bennett <colin@gibibit.com>
42595 * include/grub/normal.h: Fixed incorrect comment for
42596 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42598 2008-09-01 Colin D Bennett <colin@gibibit.com>
42600 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42601 values with defines.
42603 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42604 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42605 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42606 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42607 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42608 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42609 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42610 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42611 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42612 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42613 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42614 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42615 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42616 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42617 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42618 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42619 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42620 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42621 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42623 2008-08-31 Robert Millan <rmh@aybabtu.com>
42625 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42627 (grub_multiboot): Fix a few warnings.
42629 2008-08-31 Robert Millan <rmh@aybabtu.com>
42631 * loader/i386/pc/multiboot.c: Update comment not to say that
42632 boot_device support is unimplemented.
42634 2008-08-31 Robert Millan <rmh@aybabtu.com>
42636 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42637 or memory map support are unimplemented.
42639 2008-08-31 Colin D Bennett <colin@gibibit.com>
42641 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42643 2008-08-31 Colin D Bennett <colin@gibibit.com>
42645 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42646 total video memory in 'vbeinfo' output; show color format details for
42649 2008-08-30 Pavel Roskin <proski@gnu.org>
42651 * util/genmoddep.c: Remove for real this time.
42652 * DISTLIST: Remove util/genmoddep.c.
42654 2008-08-30 Robert Millan <rmh@aybabtu.com>
42656 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42657 as required by Multiboot spec (it was already 4-byte aligned, but
42660 2008-08-29 Pavel Roskin <proski@gnu.org>
42662 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42663 * kern/powerpc/ieee1275/startup.S: ... this.
42664 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42665 * DISTLIST: Likewise.
42667 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42668 grub/cpu/kernel.h. Add start label for consistency with other
42669 platforms. Add grub_prefix immediately after start. Add jump
42670 to the code after grub_prefix.
42671 * include/grub/powerpc/kernel.h: Provide valid values for
42672 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42674 2008-08-29 Bean <bean123ch@gmail.com>
42676 * configure.ac: Change host_os to cygwin for mingw.
42677 (asprintf): New check for function.
42679 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42680 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42682 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42683 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42684 sync, sleep and grub_util_get_disk_size for mingw.
42686 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42687 to get size in mingw.
42688 (open_device): Use flag O_BINARY if it's defined.
42689 (find_root_device): Add dummy code for mingw.
42691 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42692 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42693 (get_scsi_disk_name): Return 0 for mingw.
42695 * util/hostfs.c: #include <grub/util/misc.h>.
42696 (grub_hostfs_open): Use "rb" flag to open file, use
42697 grub_util_get_disk_size to get disk size for mingw.
42699 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42700 (asprintf): New function if HAVE_ASPRINTF is not set.
42701 (sync): New function for mingw.
42703 (grub_util_get_disk_size): Likewise.
42705 2008-08-28 Pavel Roskin <proski@gnu.org>
42707 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42710 2008-08-28 Robert Millan <rmh@aybabtu.com>
42712 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42714 2008-08-28 Robert Millan <rmh@aybabtu.com>
42716 Change find_grub_drive() syntax so it doesn't prevent it from
42717 detecting NULL names as errors.
42719 * util/biosdisk.c (find_grub_drive): Move free slot search code
42721 (find_free_slot): ... to here.
42722 (read_device_map): Use find_free_slot() to search for free slots.
42724 2008-08-27 Marco Gerards <marco@gnu.org>
42726 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42727 (scsi_mod_SOURCES): New variable.
42728 (scsi_mod_CFLAGS): Likewise
42729 (scsi_mod_LDFLAGS): Likewise.
42731 * disk/scsi.c: New file.
42733 * include/grub/scsi.h: Likewise.
42735 * include/grub/scsicmd.h: Likewise.
42737 * disk/ata.c: Include <grub/scsi.h>.
42738 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42740 (grub_ata_iterate): Skip ATAPI devices.
42741 (grub_ata_open): Only handle ATAPI devices.
42742 (struct grub_atapi_read): Removed.
42743 (grub_atapi_readsector): Likewise.
42744 (grub_ata_read): No longer handle ATAPI devices.
42745 (grub_ata_write): Likewise.
42746 (grub_atapi_iterate): New function.
42747 (grub_atapi_read): Likewise.
42748 (grub_atapi_write): Likewise.
42749 (grub_atapi_open): Likewise.
42750 (grub_atapi_close): Likewise.
42751 (grub_atapi_dev): New variable.
42752 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42753 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42755 * include/grub/disk.h (enum grub_disk_dev_id): Add
42756 `GRUB_DISK_DEVICE_SCSI_ID'.
42758 2008-08-26 Robert Millan <rmh@aybabtu.com>
42760 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42761 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42764 2008-08-23 Bean <bean123ch@gmail.com>
42766 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42767 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42768 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42769 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42771 (raid5rec_mod_SOURCES): New macro.
42772 (raid5rec_mod_CFLAGS): Likewise.
42773 (raid5rec_mod_LDFLAGS): Likewise.
42774 (raid6rec_mod_SOURCES): Likewise.
42775 (raid6rec_mod_CFLAGS): Likewise.
42776 (raid6rec_mod_LDFLAGS): Likewise.
42777 (mdraid_mod_SOURCES): Likewise.
42778 (mdraid_mod_CFLAGS): Likewise.
42779 (mdraid_mod_LDFLAGS): Likewise.
42780 (dm_nv_mod_SOURCES): Likewise.
42781 (dm_nv_mod_CFLAGS): Likewise.
42782 (dm_nv_mod_LDFLAGS): Likewise.
42784 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42785 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42786 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42788 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42789 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42791 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42793 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42795 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42797 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42799 * disk/raid5_recover.c: New file.
42801 * disk/raid6_recover.c: Likewise.
42803 * disk/mdraid_linux.c: Likewise.
42805 * disk/dmraid_nvidia.c: Likewise.
42807 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42810 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42811 calculate the size of raid device.
42812 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42813 different layout of raid5.
42814 (grub_raid_scan_device): Remove code specific to mdraid.
42815 (grub_raid_list): New variable.
42816 (free_array): New function.
42817 (grub_raid_register): Likewise.
42818 (grub_raid_unregister): Likewise.
42819 (grub_raid_rescan): Likewise.
42820 (GRUB_MOD_INIT): Don't iterate device here.
42821 (GRUB_MOD_FINI): Use free_array to release resource.
42823 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42824 (grub_raid5_recover_func_t): New function variable type.
42825 (grub_raid6_recover_func_t): Likewise.
42826 (grub_raid5_recover_func): New variable.
42827 (grub_raid6_recover_func): Likewise.
42828 (grub_raid_register): New function.
42829 (grub_raid_unregister): Likewise.
42830 (grub_raid_rescan): Likewise.
42831 (grub_raid_block_xor): Likewise.
42833 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42834 (CMD_CRC): New macro.
42836 (read_file): Handle device as well as file.
42837 (cmd_crc): New function.
42838 (fstest): Handle multiple disks.
42839 (options): Remove part, raw and long, add root and diskcount.
42840 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42841 (main): Find the first non option entry and ignore subsequent options,
42842 add handling for the new options, support multiple disks.
42844 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42846 2008-08-23 Bean <bean123ch@gmail.com>
42848 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42850 * genfslist.sh: Ignore kernel.mod.
42852 * genpartmaplist.sh: Likewise.
42854 2008-08-23 Robert Millan <rmh@aybabtu.com>
42856 * util/getroot.c (find_root_device): Skip anything that starts with
42857 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42859 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42861 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42862 * util/grub.d/00_header.in: Allow the administrator to change default
42863 gfxmode via ${GRUB_GFXMODE}.
42865 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42867 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42869 2008-08-21 Robert Millan <rmh@aybabtu.com>
42871 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42873 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42874 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42876 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42878 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42879 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42881 2008-08-19 Robert Millan <rmh@aybabtu.com>
42883 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42884 (struct grub_virtual_screen): Remove `cursor_color'.
42885 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42887 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42889 2008-08-18 Robert Millan <rmh@aybabtu.com>
42891 Unify (identical) linux_normal.c files.
42892 * loader/i386/efi/linux_normal.c: Move from here ...
42893 * loader/linux_normal.c: ... to here. Update all users.
42894 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42895 * loader/i386/ieee1275/linux_normal.c: Likewise.
42897 2008-08-18 Robert Millan <rmh@aybabtu.com>
42899 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42900 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42901 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42902 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42903 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42905 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42906 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42907 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42908 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42909 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42910 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42911 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42912 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42913 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42914 portably using grub_getxy().
42915 Replace `-EFI' with `-bzImage' in boot message.
42917 2008-08-17 Robert Millan <rmh@aybabtu.com>
42919 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42921 2008-08-17 Robert Millan <rmh@aybabtu.com>
42923 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42925 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42926 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42927 (grub_machine_mmap_iterate): New function declaration.
42928 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42930 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42933 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42934 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42935 Move e820 parsing from here ...
42936 * kern/i386/pc/mmap.c: New file.
42937 (grub_machine_mmap_iterate): ... to here.
42939 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42940 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42941 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42942 (grub_available_iterate): Redeclare to return `void', and redeclare
42943 its hook to use grub_uint64_t as addr and size parameters, and rename
42945 (grub_machine_mmap_iterate): ... this. Update all users.
42947 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42948 to make it more readable. Rename to ...
42949 (grub_machine_mmap_iterate): ... this.
42951 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42952 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42953 (grub_multiboot): Allocate an extra region after the payload, and fill
42954 it with a Multiboot memory map. Adjust a.out loader to calculate size
42955 with the extra space.
42956 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42957 with the extra space.
42959 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42961 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42963 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42965 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42966 mdate-sh to the list `find' searches for.
42967 * DISTLIST: Regenerated.
42969 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42971 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42972 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42973 genmoddep.awk, gensymlist.sh.in.
42974 (DISTDIRS): Add bus, docs, hook, lib.
42975 * DISTLIST: Regenerated.
42976 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42978 2008-08-16 Robert Millan <rmh@aybabtu.com>
42980 * disk/raid.c (grub_raid_init): Handle/report errors set by
42981 grub_device_iterate().
42982 * disk/lvm.c (grub_lvm_init): Likewise.
42984 2008-08-15 Bean <bean123ch@gmail.com>
42986 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42988 (datetime_mod_SOURCES): New macro.
42989 (datetime_mod_CFLAGS): Likewise.
42990 (datetime_mod_LDFLAGS): Likewise.
42991 (date_mod_SOURCES): Likewise.
42992 (date_mod_CFLAGS): Likewise.
42993 (date_mod_LDFLAGS): Likewise.
42994 (datehook_mod_SOURCES): Likewise.
42995 (datehook_mod_CFLAGS): Likewise.
42996 (datehook_mod_LDFLAGS): Likewise.
42998 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
43000 (datetime_mod_SOURCES): New macro.
43001 (datetime_mod_CFLAGS): Likewise.
43002 (datetime_mod_LDFLAGS): Likewise.
43003 (date_mod_SOURCES): Likewise.
43004 (date_mod_CFLAGS): Likewise.
43005 (date_mod_LDFLAGS): Likewise.
43006 (datehook_mod_SOURCES): Likewise.
43007 (datehook_mod_CFLAGS): Likewise.
43008 (datehook_mod_LDFLAGS): Likewise.
43010 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
43012 (datetime_mod_SOURCES): New macro.
43013 (datetime_mod_CFLAGS): Likewise.
43014 (datetime_mod_LDFLAGS): Likewise.
43015 (date_mod_SOURCES): Likewise.
43016 (date_mod_CFLAGS): Likewise.
43017 (date_mod_LDFLAGS): Likewise.
43018 (datehook_mod_SOURCES): Likewise.
43019 (datehook_mod_CFLAGS): Likewise.
43020 (datehook_mod_LDFLAGS): Likewise.
43022 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
43024 (datetime_mod_SOURCES): New macro.
43025 (datetime_mod_CFLAGS): Likewise.
43026 (datetime_mod_LDFLAGS): Likewise.
43027 (date_mod_SOURCES): Likewise.
43028 (date_mod_CFLAGS): Likewise.
43029 (date_mod_LDFLAGS): Likewise.
43030 (datehook_mod_SOURCES): Likewise.
43031 (datehook_mod_CFLAGS): Likewise.
43032 (datehook_mod_LDFLAGS): Likewise.
43034 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
43036 (datetime_mod_SOURCES): New macro.
43037 (datetime_mod_CFLAGS): Likewise.
43038 (datetime_mod_LDFLAGS): Likewise.
43039 (date_mod_SOURCES): Likewise.
43040 (date_mod_CFLAGS): Likewise.
43041 (date_mod_LDFLAGS): Likewise.
43042 (datehook_mod_SOURCES): Likewise.
43043 (datehook_mod_CFLAGS): Likewise.
43044 (datehook_mod_LDFLAGS): Likewise.
43046 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
43048 * commands/date.c: New file.
43050 * hook/datehook.c: Likewise.
43052 * include/grub/lib/datetime.h: Likewise.
43054 * include/grub/i386/cmos.h: Likewise.
43056 * lib/datetime.c: Likewise.
43058 * lib/i386/datetime.c: Likewise.
43060 * lib/efi/datetime.c: Likewise.
43062 2008-08-14 Robert Millan <rmh@aybabtu.com>
43064 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
43065 (grub_mkelfimage_SOURCES): New variable.
43066 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
43068 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
43069 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
43070 * conf/powerpc-ieee1275.rmk: Likewise.
43071 * conf/i386-ieee1275.rmk: Likewise.
43073 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
43074 * kern/i386/coreboot/init.c: Likewise.
43076 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
43077 with `<grub/cpu/kernel.h>'.
43078 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
43080 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
43081 * kern/i386/coreboot/startup.S: Likewise.
43083 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
43084 (GRUB_MOD_GAP): Remove.
43085 * include/grub/powerpc/kernel.h: New file.
43086 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
43087 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
43088 * include/grub/i386/kernel.h: New file.
43089 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
43090 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
43091 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
43093 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
43095 Use --directory when invoking grub_mkimage.
43097 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
43098 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
43099 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
43100 and GRUB_KERNEL_CPU_PREFIX.
43102 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
43104 * include/grub/err.h (grub_err_printf): New function prototype.
43105 * util/misc.c (grub_err_printf): New function.
43106 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
43108 * kern/err.c (grub_print_error): Use grub_err_printf.
43110 2008-08-13 Robert Millan <rmh@aybabtu.com>
43112 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
43114 2008-08-13 Robert Millan <rmh@aybabtu.com>
43116 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
43119 2008-08-12 Robert Millan <rmh@aybabtu.com>
43121 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
43122 of the relocation code from here ...
43123 (grub_multiboot): ... to here.
43124 (forward_relocator, backward_relocator): Move from here ...
43125 * kern/i386/loader.S (grub_multiboot_forward_relocator)
43126 (grub_multiboot_backward_relocator): ... to here.
43127 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
43128 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
43129 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
43130 (grub_multiboot_forward_relocator_end)
43131 (grub_multiboot_backward_relocator)
43132 (grub_multiboot_backward_relocator_end): New variables.
43134 2008-08-12 Bean <bean123ch@gmail.com>
43136 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
43138 2008-08-11 Robert Millan <rmh@aybabtu.com>
43140 * kern/i386/linuxbios/startup.S: Move from here ...
43141 * kern/i386/coreboot/startup.S: ... to here.
43143 * kern/i386/linuxbios/init.c: Move from here ...
43144 * kern/i386/coreboot/init.c: ... to here.
43146 * kern/i386/linuxbios/table.c: Move from here ...
43147 * kern/i386/coreboot/mmap.c: ... to here.
43149 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
43151 2008-08-11 Robert Millan <rmh@aybabtu.com>
43153 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
43154 errors. Leave it to the upper layer to handle them.
43156 2008-08-09 Christian Franke <franke@computer.org>
43158 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
43159 * conf/common.rmk: Install `grub-pe2elf' only if requested.
43160 Install `grub.d/10_windows' only on Cygwin.
43161 * configure.ac: Add subst of `target_os'.
43162 Check `target_os' also before setting TARGET_OBJ2ELF.
43163 Add `--enable-grub-pe2elf'.
43165 2008-08-08 Robert Millan <rmh@aybabtu.com>
43167 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43168 (grub_last_time): Change type to grub_uint64_t.
43169 (grub_disk_open): Migrate code from to using grub_get_time_ms().
43170 (grub_disk_close): Likewise.
43172 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43173 (run_menu): Migrate code from to using grub_get_time_ms().
43175 * util/misc.c (grub_get_time_ms): New function.
43177 2008-08-08 Marco Gerards <marco@gnu.org>
43179 * disk/ata.c (grub_ata_regget): Change return type to
43181 (grub_ata_regget2): Likewise.
43182 (grub_ata_wait_status): New function.
43183 (grub_ata_wait_busy): Removed function, updated all users to use
43184 `grub_ata_wait_status'.
43185 (grub_ata_wait_drq): Likewise.
43186 (grub_ata_cmd): New function.
43187 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
43189 (grub_ata_pio_write): Add error handling.
43190 (grub_atapi_identify): Likewise.
43191 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43193 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43194 handling. Actually use the detected registers. Reorder the
43195 detection logic such that it is easier to read.
43196 (grub_ata_pciinit): Do not assign the same ID to each controller.
43197 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43199 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43201 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43203 2008-08-08 Marco Gerards <marco@gnu.org>
43207 2008-08-07 Bean <bean123ch@gmail.com>
43209 * include/grub/x86_64/pci.h: New file.
43211 2008-08-07 Christian Franke <franke@computer.org>
43213 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43214 (TIMER2_GATE): Likewise.
43215 (grub_pit_wait): Add enable/disable of the timer2 gate
43216 bit of port 0x61. This fixes a possible infinite loop.
43218 2008-08-07 Bean <bean123ch@gmail.com>
43220 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43221 kern/i386/tsc.c and kern/i386/pit.c.
43223 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43226 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43229 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43231 2008-08-07 Bean <bean123ch@gmail.com>
43233 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43235 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43237 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43238 multiple inclusion. Add #include <grub/types.h>.
43240 2008-08-06 Christian Franke <franke@computer.org>
43242 * conf/common.rmk: Build and install `10_windows'.
43243 * util/grub.d/10_windows.in: New script.
43245 2008-08-06 Pavel Roskin <proski@gnu.org>
43247 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43249 2008-08-06 Robert Millan <rmh@aybabtu.com>
43251 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43252 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43254 2008-08-06 Bean <bean123ch@gmail.com>
43256 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43257 (grub_pxefs_fs_int): Remove dummy definition.
43258 (grub_pxefs_open): Use data->block_size to store the current block
43260 (grub_pxefs_read): Use block size stored in data->block_size. As the
43261 value of grub_pxe_blksize can be changed after the file is opened.
43263 2008-08-06 Bean <bean123ch@gmail.com>
43265 * fs/i386/pc/pxe.c (curr_file): new variable.
43266 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43267 require the dummy internal file system anymore.
43268 (grub_pxefs_read): Removed.
43269 (grub_pxefs_close): Likewise.
43270 (grub_pxefs_fs_int): Likewise.
43271 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43272 connection when we switch file.
43273 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43275 2008-08-06 Robert Millan <rmh@aybabtu.com>
43277 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43279 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43280 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43282 * kern/i386/halt.c: New file.
43283 * kern/i386/reboot.c: Likewise.
43284 * include/grub/i386/reboot.h: Likewise.
43285 * include/grub/i386/halt.h: Likewise.
43287 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43288 Include `<grub/cpu/halt.h>'.
43289 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43290 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43292 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43293 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43294 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43295 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43296 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43297 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43299 * include/grub/i386/at_keyboard.h: ... to here.
43301 2008-08-05 Robert Millan <rmh@aybabtu.com>
43303 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43304 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43305 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43306 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43307 `kern/generic/millisleep.c'.
43309 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43310 instead of grub_get_rtc().
43311 (grub_tsc_init): Initialize `tsc_boot_time'.
43313 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43314 (grub_machine_init): Use grub_tsc_init() rather than
43315 installing an RTC-based handler via grub_install_get_time_ms().
43317 * kern/i386/pit.c: New file.
43318 * include/grub/i386/pit.h: Likewise.
43320 2008-08-05 Bean <bean123ch@gmail.com>
43322 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43324 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43325 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43326 (pxe_mod_SOURCES): New macro.
43327 (pxe_mod_CFLAGS): Likewise.
43328 (pxe_mod_LDFLAGS): Likewise.
43329 (pxecmd_mod_SOURCES): Likewise.
43330 (pxecmd_mod_CFLAGS): Likewise.
43331 (pxecmd_mod_LDFLAGS): Likewise.
43333 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43334 (grub_pxe_call): Likewise.
43336 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43338 * commands/i386/pc/pxecmd.c: New file.
43340 * fs/i386/pc/pxe.c: Likewise.
43342 * include/grub/i386/pc/pxe.h: Likewise.
43344 2008-08-05 Bean <bean123ch@gmail.com>
43346 * util/console.c (grub_console_cur_color): New variable.
43347 (grub_console_standard_color): Likewise.
43348 (grub_console_normal_color): Likewise.
43349 (grub_console_highlight_color): Likewise.
43350 (color_map): Likewise.
43351 (use_color): Likewise.
43352 (NUM_COLORS): New macro.
43353 (grub_ncurses_setcolorstate): Handle color properly.
43354 (grub_ncurses_setcolor): Don't change color here, just remember the
43355 settings, color will be set in grub_ncurses_setcolorstate.
43356 (grub_ncurses_getcolor): New function.
43357 (grub_ncurses_init): Initialize color pairs.
43358 (grub_ncurses_term): New member grub_ncurses_getcolor.
43360 2008-08-05 Colin D Bennett <colin@gibibit.com>
43362 High resolution timer support. Implemented for x86 CPUs using TSC.
43363 Extracted generic grub_millisleep() so it's linked in only as needed.
43364 This requires a Pentium compatible CPU; if the RDTSC instruction is
43365 not supported, then it falls back on the generic grub_get_time_ms()
43366 implementation that uses the machine's RTC.
43368 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43369 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43370 `kern/generic/millisleep.c'.
43372 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43373 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43375 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43376 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43378 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43380 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43381 `kern/generic/millisleep.c'.
43383 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43385 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43387 * kern/generic/rtc_get_time_ms.c: New file.
43389 * kern/generic/millisleep.c: New file.
43391 * kern/misc.c: Don't include
43392 <kern/time.h> anymore.
43393 (grub_millisleep_generic): Removed.
43395 * commands/sleep.c (grub_interruptible_millisleep): Uses
43396 grub_get_time_ms() instead of grub_get_rtc().
43398 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43400 (grub_cpu_is_cpuid_supported): New inline function.
43401 (grub_cpu_is_tsc_supported): New inline function.
43402 (grub_tsc_init): New function prototype.
43403 (grub_tsc_get_time_ms): New function prototype.
43405 * kern/i386/tsc.c (grub_get_time_ms): New file.
43407 * include/grub/time.h: Include <grub/types.h.
43408 (grub_millisleep_generic): Removed.
43409 (grub_get_time_ms): New prototype.
43410 (grub_install_get_time_ms): New prototype.
43411 (grub_rtc_get_time_ms): New prototype.
43413 * kern/time.c (grub_get_time_ms): New function.
43414 (grub_install_get_time_ms): New function.
43416 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43417 <grub/time.h> anymore.
43418 (grub_millisleep): Removed.
43419 (grub_machine_init): Call grub_tsc_init.
43421 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43422 get_time_ms() implementation.
43424 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43425 (ieee1275_get_time_ms): New function.
43426 (grub_machine_init): Install get_time_ms() implementation.
43428 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43429 (grub_machine_init): Call grub_tsc_init().
43430 (grub_millisleep): Removed.
43432 * kern/ieee1275/init.c (grub_millisleep): Removed.
43433 (grub_machine_init): Install ieee1275_get_time_ms()
43435 (ieee1275_get_time_ms): New function.
43436 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43439 2008-08-05 Marco Gerards <marco@gnu.org>
43441 * disk/ata.c: Include <grub/pci.h>.
43442 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43443 (grub_ata_initialize): Rewritten.
43444 (grub_ata_device_initialize): New function.
43446 2008-08-04 Pavel Roskin <proski@gnu.org>
43448 * kern/main.c: Include grub/mm.h.
43450 2008-08-04 Robert Millan <rmh@aybabtu.com>
43452 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43453 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43454 corruption problem).
43456 2008-08-04 Robert Millan <rmh@aybabtu.com>
43458 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43459 warnings introduced in my last commit.
43461 2008-08-03 Robert Millan <rmh@aybabtu.com>
43463 Make PCI available on all i386 architectures.
43465 * include/grub/i386/pc/pci.h: Move from here ...
43466 * include/grub/i386/pci.h: ... to here.
43468 * include/grub/i386/pc/pci.h: Remove.
43469 * include/grub/i386/efi/pci.h: Remove.
43470 * include/grub/x86_64/efi/pci.h: Remove.
43472 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43473 `<grub/cpu/pci.h>'.
43475 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43476 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43477 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43479 * conf/i386-ieee1275.rmk: Likewise.
43481 2008-08-03 Robert Millan <rmh@aybabtu.com>
43483 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43484 (grub_console_setcursor): Make it possible to set cursor off.
43486 2008-08-03 Robert Millan <rmh@aybabtu.com>
43488 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43489 of modules instead of assuming which platform provides what.
43490 * util/update-grub.in: Likewise.
43492 2008-08-03 Robert Millan <rmh@aybabtu.com>
43494 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43495 instead of `grub_install_dos_part' to determine whether a drive needs
43496 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43497 because it can be overridden when loading GRUB via Multiboot).
43499 2008-08-02 Robert Millan <rmh@aybabtu.com>
43501 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43503 2008-08-02 Robert Millan <rmh@aybabtu.com>
43505 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43506 of informational grub_dprintf() calls.
43508 2008-08-02 Robert Millan <rmh@aybabtu.com>
43510 * disk/memdisk.c (memdisk_size): Don't initialize.
43511 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43513 * include/grub/i386/pc/kernel.h
43514 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43515 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43516 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43517 (grub_arch_memdisk_size): Remove.
43519 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43520 field (was only used to transfer a constant). Add `type' field to
43521 support multiple module types.
43522 (grub_module_iterate): New function.
43524 * kern/device.c (grub_device_open): Do not hide error messages
43525 when grub_disk_open() fails. Use grub_print_error() instead.
43527 * kern/i386/pc/init.c (grub_arch_modules_addr)
43528 (grub_arch_memdisk_size): Remove functions.
43529 (grub_arch_modules_addr): Return the module address in high memory
43530 (now that it isn't copied anymore).
43532 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43533 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43534 decompression routine (grub_total_module_size already includes that
43535 now). Don't copy modules back to low memory.
43537 * kern/main.c: Include `<grub/mm.h>'.
43538 (grub_load_modules): Split out (and use) ...
43539 (grub_module_iterate): ... this function, which iterates through
43540 module objects and runs a hook.
43541 Comment out grub_mm_init_region() call, as it would cause non-ELF
43542 modules to be overwritten.
43544 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43545 the memdisk image in its own region, make it part of the module list.
43546 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43547 (main): Parse --memdisk|-m option, and pass user-provided path as
43548 parameter to generate_image().
43549 (add_segments): Pass `memdisk_path' down to load_modules().
43550 (load_modules): Embed memdisk image in module section when requested.
43551 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43552 `header.type' instead of `header.offset'.
43554 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43555 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43556 (memdisk_mod_LDFLAGS): New variables.
43557 * conf/i386-coreboot.rmk: Likewise.
43558 * conf/i386-ieee1275.rmk: Likewise.
43560 2008-08-02 Robert Millan <rmh@aybabtu.com>
43562 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43563 (backward_relocator): New variables. Used to allocate and relocate
43564 the payload, respectively.
43565 (grub_multiboot_load_elf32): Load into heap instead of requested
43566 address, install the appropriate relocator code in each bound of
43567 the payload, and set the entry point such that
43568 grub_multiboot_real_boot() will jump to one of them.
43570 * kern/i386/loader.S (grub_multiboot_payload_size)
43571 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43572 (grub_multiboot_payload_entry_offset): New variables.
43573 (grub_multiboot_real_boot): Set cpu context to what the relocator
43574 expects, and jump to the relocator instead of the payload.
43576 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43577 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43578 (grub_multiboot_payload_entry_offset): Export.
43580 2008-08-01 Bean <bean123ch@gmail.com>
43582 * normal/menu_entry.c (editor_getline): Don't return the original
43583 string as result, as it will be released by lexer once it has done
43586 2008-08-01 Robert Millan <rmh@aybabtu.com>
43588 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43589 within menuentries, not before them.
43590 util/grub.d/10_hurd.in: Likewise.
43592 2008-08-01 Bean <bean123ch@gmail.com>
43594 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43595 (bufio_mod_SOURCES): New macro.
43596 (bufio_mod_CFLAGS): Likewise.
43597 (bufio_mod_LDFLAGS): Likewise.
43599 * include/grub/bufio.h: New file.
43601 * io/bufio.c: Likewise.
43603 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43604 (grub_video_reader_png): Use grub_buffile_open to open file.
43606 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43607 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43609 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43610 (grub_video_reader_tga): Use grub_buffile_open to open file.
43612 * font/manager.c: Include <grub/bufio.h>.
43613 (add_font): Use grub_buffile_open to open file.
43615 2008-07-31 Robert Millan <rmh@aybabtu.com>
43617 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43618 ELF segments, use a macro for arbitrarily accessing any of them instead
43619 of preparing a pointer that allows access to one at a time.
43620 (grub_multiboot_load_elf64): Likewise.
43622 2008-07-31 Bean <bean123ch@gmail.com>
43624 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43625 GRUB_KERNEL_MACHINE_DATA_END.
43627 2008-07-30 Robert Millan <rmh@aybabtu.com>
43629 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43630 Increase from 0x50 to 0x60.
43631 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43632 use UUIDs to identify the root drive for them. If that's not
43634 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43635 check, for cross-disk installs.
43637 2008-07-30 Robert Millan <rmh@aybabtu.com>
43639 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43640 is non-empty, use it to set the `prefix' environment variable instead
43641 of the usual approach.
43642 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43643 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43644 environment variable instead of dummy make_install_device().
43646 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43647 (start): Insert a data section, with `grub_prefix' variable.
43648 * kern/i386/linuxbios/startup.S: Likewise.
43650 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43651 New variable reference.
43652 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43653 New macro. Defines offset of `grub_prefix' within startup.S (relative
43655 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43656 section within startup.S (relative to `start').
43657 * include/grub/i386/coreboot/kernel.h: Likewise.
43659 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43660 Overwrite grub_prefix with its contents, at the beginning of the
43662 (main): Understand -p|--prefix.
43664 2008-07-30 Robert Millan <rmh@aybabtu.com>
43666 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43668 2008-07-30 Robert Millan <rmh@aybabtu.com>
43670 * term/i386/pc/vga_text.c (grub_console_cls): Use
43671 grub_console_gotoxy() to go back to beginning of the screen.
43672 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43674 2008-07-29 Christian Franke <franke@computer.org>
43676 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43677 Add conversion of emulated mount points on Cygwin.
43679 2008-07-29 Christian Franke <franke@computer.org>
43681 * util/update-grub.in: Add a check for admin
43683 Remove old `grub.cfg.new' before creation.
43684 Add `-f' to `mv' to handle the different filesystem
43685 semantics of Windows.
43687 2008-07-29 Bean <bean123ch@gmail.com>
43689 * normal/main.c (get_line): Fix buffer overflow bug.
43691 2008-07-28 Robert Millan <rmh@aybabtu.com>
43693 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43694 (struct grub_apple_header): New struct. Describes the layout of
43695 the partmap header.
43696 (apple_partition_map_iterate): Check the header magic as well as the
43697 partition magic (which was already being checked).
43699 2008-07-28 Pavel Roskin <proski@gnu.org>
43701 * genmk.rb: Add a warning to the beginning of the output that
43702 it's a generated file and should not be edited.
43704 2008-07-28 Robert Millan <rmh@aybabtu.com>
43706 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43707 with the same number are found, just use issue a warning with
43708 grub_dprintf(), as this error has been reported to be non-fatal.
43710 2008-07-27 Robert Millan <rmh@aybabtu.com>
43712 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43715 2008-07-27 Bean <bean123ch@gmail.com>
43717 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43718 (grub_fat_find_dir): Ignore case when comparing filename.
43720 2008-07-27 Bean <bean123ch@gmail.com>
43722 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43723 smallino, as it's more descriptive, and i8count can be confused with
43724 the other field count.
43725 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43728 2008-07-27 Bean <bean123ch@gmail.com>
43730 * commands/crc.c: New file.
43732 * lib/crc.c: Likewise.
43734 * include/grub/lib/crc.h: Likewise.
43736 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43738 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43739 (hexdump): Move this function to ...
43741 * lib/hexdump.c: ... here.
43743 * include/grub/hexdump.h: Renamed to ...
43745 * include/grub/lib/hexdump.h: ... this.
43747 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43749 * util/grub-editenv.c: Likewise.
43751 * include/envblk.h: Renamed to ...
43753 * include/lib/envblk.h: ... this.
43755 * util/envblk.c: Renamed to ...
43757 * lib/envblk.c: ... this.
43759 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43761 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43762 (pkglib_MODULES): Add crc.mod.
43763 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43764 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43765 (crc_mod_SOURCES): New macro.
43766 (crc_mod_CFLAGS): Likewise.
43767 (crc_mod_LDFLAGS): Likewise.
43769 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43771 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43773 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43775 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43777 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43779 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43781 * commands/help.c: Include <grub/term.h>.
43782 (TERM_WIDTH): Removed. Updated all users.
43784 2008-07-27 Pavel Roskin <proski@gnu.org>
43786 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43787 spurious warnings about a comment within a comment.
43789 2008-07-25 Robert Millan <rmh@aybabtu.com>
43791 * util/getroot.c (find_root_device): Skip devices that match
43792 /dev/dm-[0-9]. This lets the real device be found for any type of
43793 abstraction (LVM, EVMS, RAID..).
43794 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43795 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43796 device is found first, find_root_device() will now skip it.
43798 2008-07-24 Pavel Roskin <proski@gnu.org>
43800 * include/grub/types.h: Use __builtin_bswap32() and
43801 __builtin_bswap64() with gcc 4.3 and newer.
43803 2008-07-24 Christian Franke <franke@computer.org>
43805 * util/i386/pc/grub-install.in: If `--debug' is specified,
43806 pass `--verbose' to grub-setup.
43807 Abort script if make_system_path_relative_to_its_root() fails.
43809 2008-07-24 Bean <bean123ch@gmail.com>
43811 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43812 variable `target_platform' should be `platform'.
43814 2008-07-24 Bean <bean123ch@gmail.com>
43816 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43817 (grub_png_init_fixed_block): New function.
43818 (grub_png_decode_image_data): Handle fixed huffman code compression.
43820 2008-07-24 Bean <bean123ch@gmail.com>
43822 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43823 (grub_pe2elf_SOURCES): New macro.
43824 (CLEANFILES): Add grub-pe2elf.
43826 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43827 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43828 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43829 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43830 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43831 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43832 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43833 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43834 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43835 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43836 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43837 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43838 (GRUB_PE32_DT_FUNCTION): Likewise.
43839 (GRUB_PE32_REL_I386_DIR32): Likewise.
43840 (GRUB_PE32_REL_I386_REL32): Likewise.
43841 (grub_pe32_symbol): New structure.
43842 (grub_pe32_reloc): Likewise.
43844 * util/grub-pe2elf.c: New file.
43846 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43847 start symbol in non pc platform.
43849 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43851 The following patches are from Christian Franke.
43853 * include/grub/dl.h: Remove .previous, gas supports this only
43856 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43857 Remove .type, gas supports this only for ELF format.
43859 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43860 nullbytes in symbol table. This fixes an infinite loop if table is
43863 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43864 TARGET_IMG_LDFLAGS and EXEEXT.
43866 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43867 TARGET_IMG_LDFLAGS_AC.
43868 (grub_CHECK_STACK_ARG_PROBE): New function.
43870 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43872 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43874 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43875 to set TARGET_IMG_LD* accordingly.
43876 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43877 Add call to grub_CHECK_STACK_ARG_PROBE.
43878 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43880 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43882 * genmk.rb: Add EXEEXT to CLEANFILES.
43884 2008-07-23 Robert Millan <rmh@aybabtu.com>
43886 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43887 define the codes for arrows and lines used for the menu).
43888 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43891 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43892 fonts, because the latter are too slow.
43894 2008-07-21 Bean <bean123ch@gmail.com>
43896 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43897 a20. Run keyboard test last, as it will cause macbook to halt.
43899 2008-07-18 Pavel Roskin <proski@gnu.org>
43901 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43902 load foreign architecture modules correctly anyway. Keep
43903 support for loading host architecture modules, whether we
43904 compile them or not.
43906 2008-07-17 Pavel Roskin <proski@gnu.org>
43908 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43909 change target_cpu. The compiler default can mismatch target_cpu
43912 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43913 * kern/efi/efi.c: Likewise.
43915 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43916 target compiler is functional.
43917 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43920 * configure.ac: Default to efi platform for x86_64-apple. Allow
43921 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43922 adjustments from the rest, only do them if target is not
43923 explicitly given. Merge other adjustments with the final sanity
43924 check. Remove an extraneous check for supported CPU. Be
43925 specific which CPU and which platform is not supported.
43927 * configure.ac: Default to pc platform for x86_64.
43929 2008-07-17 Robert Millan <rmh@aybabtu.com>
43931 Partial LinuxBIOS -> Coreboot rename.
43933 * conf/i386-linuxbios.rmk: Renamed to ...
43934 * conf/i386-coreboot.rmk: ... this.
43935 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43936 * configure.ac: Accept "coreboot" as input platform (but maintain
43937 compatibility with "linuxbios").
43938 * include/grub/i386/linuxbios: Renamed to ...
43939 * include/grub/i386/coreboot: ... this.
43941 2008-07-17 Bean <bean123ch@gmail.com>
43943 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43944 (appleldr_mod_SOURCE): New variable.
43945 (appleldr_mod_CFLAGS): Likewise.
43946 (appleldr_mod_LDFLAGS): Likewise.
43947 (pci_mod_SOURCES): Likewise.
43948 (pci_mod_CFLAGS): Likewise.
43949 (pci_mod_LDFLAGS): Likewise.
43950 (lspci_mod_SOURCES): Likewise.
43951 (lspci_mod_CFLAGS): Likewise.
43952 (lspci_mod_LDFLAGS): Likewise.
43954 * conf/x86_64-efi.rmk: New file.
43956 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43958 (grub_efidisk_write): Likewise.
43960 * include/efi/api.h (efi_call_0): New macro.
43961 (efi_call_1): Likewise.
43962 (efi_call_2): Likewise.
43963 (efi_call_3): Likewise.
43964 (efi_call_4): Likewise.
43965 (efi_call_5): Likewise.
43966 (efi_call_6): Likewise.
43968 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43969 grub_rescue_cmd_chainloader.
43971 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43972 (grub_pe32_optional_header): Change some fields based on i386 or
43974 (GRUB_PE32_PE32_MAGIC): Likewise.
43976 * include/grub/efi/uga_draw.h: New file.
43978 * include/grub/elf.h (STN_ABS): New constant.
43979 (R_X86_64_NONE): Relocation constant for x86_64.
43980 (R_X86_64_64): Likewise.
43981 (R_X86_64_PC32): Likewise.
43982 (R_X86_64_GOT32): Likewise.
43983 (R_X86_64_PLT32): Likewise.
43984 (R_X86_64_COPY): Likewise.
43985 (R_X86_64_GLOB_DAT): Likewise.
43986 (R_X86_64_JUMP_SLOT): Likewise.
43987 (R_X86_64_RELATIVE): Likewise.
43988 (R_X86_64_GOTPCREL): Likewise.
43989 (R_X86_64_32): Likewise.
43990 (R_X86_64_32S): Likewise.
43991 (R_X86_64_16): Likewise.
43992 (R_X86_64_PC16): Likewise.
43993 (R_X86_64_8): Likewise.
43994 (R_X86_64_PC8): Likewise.
43996 * include/grub/i386/efi/pci.h: New file.
43998 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43999 Change it value based on platform.
44000 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
44001 (GRUB_E820_RAM): Likewise.
44002 (GRUB_E820_RESERVED): Likewise.
44003 (GRUB_E820_ACPI): Likewise.
44004 (GRUB_E820_NVS): Likewise.
44005 (GRUB_E820_EXEC_CODE): Likewise.
44006 (GRUB_E820_MAX_ENTRY): Likewise.
44007 (grub_e820_mmap): New structure.
44008 (linux_kernel_header): Change the efi field according to different
44009 kernel version, also field from linux_kernel_header.
44011 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
44013 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
44014 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
44015 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
44016 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
44017 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
44018 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
44019 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
44020 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
44021 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
44022 (GRUB_PCI_ADDR_IO_MASK): Likewise.
44024 * include/grub/x86_64/efi/kernel.h: New file.
44026 * include/grub/x86_64/efi/loader.h: Likewise.
44028 * include/grub/x86_64/efi/machine.h: Likewise.
44030 * include/grub/x86_64/efi/pci.h: Likewise.
44032 * include/grub/x86_64/efi/time.h: Likewise.
44034 * include/grub/x86_64/linux.h: Likewise.
44036 * include/grub/x86_64/setjmp.h: Likewise.
44038 * include/grub/x86_64/time.h: Likewise.
44040 * include/grub/x86_64/types.h: Likewise.
44042 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
44043 GRUB_TARGET_SIZEOF_VOID_P.
44045 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
44046 (grub_efi_locate_handle): Likewise.
44047 (grub_efi_open_protocol): Likewise.
44048 (grub_efi_set_text_mode): Likewise.
44049 (grub_efi_stall): Likewise.
44050 (grub_exit): Likewise.
44051 (grub_reboot): Likewise.
44052 (grub_halt): Likewise.
44053 (grub_efi_exit_boot_services): Likewise.
44054 (grub_get_rtc): Likewise.
44056 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
44057 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
44058 (grub_efi_allocate_pages): Wrap efi calls.
44059 (grub_efi_free_pages): Wrap efi calls.
44060 (grub_efi_get_memory_map): Wrap efi calls.
44062 * kern/x86_64/dl.c: New file.
44064 * kern/x86_64/efi/callwrap.S: Likewise.
44066 * kern/x86_64/efi/startup.S: Likewise.
44068 * loader/efi/appleloader.c: Likewise.
44070 * loader/efi/chainloader.c (cmdline): New variable.
44071 (grub_chainloader_unload): Wrap efi calls.
44072 (grub_chainloader_boot): Likewise.
44073 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
44076 * loader/efi/chainloader_normal.c (chainloader_command):
44077 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
44080 * loader/i386/efi/linux.c (allocate_pages): Change allocation
44082 (grub_e820_add_region): New function.
44083 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
44085 (grub_find_video_card): New function.
44086 (grub_linux_setup_video): New function.
44087 (grub_rescue_cmd_linux): Probe for video information.
44089 * normal/x86_64/setjmp.S: New file.
44091 * term/efi/console.c (map_char): New function.
44092 (grub_console_putchar): Map unicode char.
44093 (grub_console_checkkey): Wrap efi calls.
44094 (grub_console_getkey): Likewise.
44095 (grub_console_getwh): Likewise.
44096 (grub_console_gotoxy): Likewise.
44097 (grub_console_cls): Likewise.
44098 (grub_console_setcolorstate): Likewise.
44099 (grub_console_setcursor): Likewise.
44101 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
44103 2008-07-16 Pavel Roskin <proski@gnu.org>
44105 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
44108 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
44109 pointer, not an integer. This fixes a warning and prevents
44110 precision loss on 64-bit systems.
44111 (relocate_addresses): Remove unneeded cast.
44113 2008-07-15 Pavel Roskin <proski@gnu.org>
44115 * kern/i386/ieee1275/init.c: Include grub/cache.h.
44117 * term/ieee1275/ofconsole.c: Disable code unused on i386.
44119 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
44120 Fix comparison between signed and unsigned.
44122 * include/grub/i386/ieee1275/console.h: Declare
44123 grub_console_init() and grub_console_fini().
44125 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
44126 It's empty and unused.
44128 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
44129 beginning to avoid warnings with some compilers.
44131 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
44132 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
44134 2008-07-14 Pavel Roskin <proski@gnu.org>
44136 * kern/env.c (grub_register_variable_hook): Don't copy empty
44137 string, it leaks memory. Pass "" to grub_env_set(), it should
44138 handle constant strings.
44140 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
44141 * commands/cmp.c (grub_cmd_cmp): Likewise.
44142 * kern/dl.c (grub_dl_flush_cache): Likewise.
44143 (grub_dl_load_core): Likewise.
44144 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
44145 (grub_elf64_load_phdrs): Likewise.
44147 2008-07-13 Pavel Roskin <proski@gnu.org>
44149 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
44150 between signed and unsigned.
44151 (LzmaEnc_Finish): Fix warning about an unused parameter.
44153 2008-07-13 Bean <bean123ch@gmail.com>
44155 * Makefile.in (enable_lzo): New rule.
44157 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
44159 * configure.ac (ENABLE_LZO): New option --enable-lzo.
44161 * boot/i386/pc/lnxboot.S: #include <config.h>.
44163 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
44164 its value according to the compression algorithm used, lzo or lzma.
44166 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
44167 compression algorithm according to configure macro.
44169 * kern/i386/pc/startup.S (codestart): Likewise.
44171 * kern/i386/pc/lzma_decode.S: New file.
44173 * include/grub/lib/LzFind.h: Likewise.
44175 * include/grub/lib/LzHash.h: Likewise.
44177 * include/grub/lib/LzmaDec.h: Likewise.
44179 * include/grub/lib/LzmaEnc.h: Likewise.
44181 * include/grub/lib/LzmaTypes.h: Likewise.
44183 * lib/LzFind.c: Likewise.
44185 * lib/LzmaDec.c: Likewise.
44187 * lib/LzmaEnc.c: Likewise.
44189 2008-07-13 Bean <bean123ch@gmail.com>
44191 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44192 (grub_ext4_extent_header): New structure.
44193 (grub_ext4_extent): Likewise.
44194 (grub_ext4_extent_idx): Likewise.
44195 (grub_ext4_find_leaf): New function.
44196 (grub_ext2_read_block): Handle extents.
44198 2008-07-12 Robert Millan <rmh@aybabtu.com>
44200 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44202 2008-07-11 Robert Millan <rmh@aybabtu.com>
44204 * util/grub.d/40_custom.in: New file. Example on how to add custom
44205 entries to /etc/grub.d.
44206 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44207 40_custom (implicitly, by merging all the grub.d rules).
44209 2008-07-11 Pavel Roskin <proski@gnu.org>
44211 * commands/read.c (grub_getline): Fix invalid memory access.
44212 Don't add newline to the variable value.
44214 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44215 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44216 (serial_hw_get_port): Check validity of the port number.
44217 (grub_cmd_serial): Check return value of serial_hw_get_port().
44219 2008-07-07 Pavel Roskin <proski@gnu.org>
44221 * boot/i386/pc/diskboot.S (notification_string): Replace
44222 "Loading kernel" with just "loading". This is shorter, less
44223 confusing and saves a few bytes for possible future changes.
44225 2008-07-05 Pavel Roskin <proski@gnu.org>
44227 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44228 size for ATAPI devices, they are undefined. Output sector
44229 number in decimal form.
44231 * disk/ata.c: Use named constants for status bits.
44233 2008-07-04 Pavel Roskin <proski@gnu.org>
44235 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44236 grub_addr_t before casting it to the void pointer to fix a
44237 warning. Non-addressable regions are discarded earlier.
44238 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44239 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44240 (check_signature): Don't shadow table_header.
44241 (grub_linuxbios_table_iterate): Cast numeric constants to
44242 grub_linuxbios_table_header_t.
44243 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44246 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44249 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44250 pointer, which can cause warnings. Support 64-bit addresses.
44252 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44253 of sizeof(long). This fixes PowerPC image generation on x86_64.
44255 2008-07-04 Robert Millan <rmh@aybabtu.com>
44257 This fixes a performance issue when pc & gpt partmap iterators
44258 didn't abort iteration even after our hook found what it was
44259 looking for (often causing expensive probes of non-existent drives).
44261 Some callers relied on previous buggy behaviour, since they would
44262 raise an error when their own hooks caused early abortion of its
44265 * kern/device.c (grub_device_open): Improve error message.
44266 * disk/lvm.c (grub_lvm_open): Likewise.
44267 * disk/raid.c (grub_raid_open): Likewise.
44269 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44270 when hook requests it, independently of grub_errno.
44271 (pc_partition_map_probe): Do not fail when find_func() caused
44272 early abortion of pc_partition_map_iterate().
44274 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44275 when hook requests it, independently of grub_errno.
44276 (gpt_partition_map_probe): Do not fail when find_func() caused
44277 early abortion of gpt_partition_map_iterate().
44279 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44280 when hook requests it, independently of grub_errno. Do not fail when
44281 part_map_iterate_hook() caused early abortion of p->iterate().
44283 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44284 when grub_partition_iterate() returned with non-zero.
44286 2008-07-03 Pavel Roskin <proski@gnu.org>
44288 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44289 like we do in grub_ata_pio_read().
44290 (grub_ata_readwrite): Always write individual sectors. Fix the
44291 sector count for the remainder.
44292 (grub_ata_write): Enable writing to ATA devices. Correctly
44293 report error for ATAPI devices.
44295 2008-07-02 Pavel Roskin <proski@gnu.org>
44297 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44300 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44301 for every read sector, we already increment it for the whole
44302 batch. This fixes reading more than 256 sectors at once.
44304 * util/grub-editenv.c (cmd_info): Cast argument to long
44305 explicitly. ptrdiff_t reduces to int on i386.
44307 * util/grub-editenv.c (main): Be specific which parameter is
44310 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44311 (memdisk): Make memdisk_orig_addr a pointer.
44313 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44314 for file offsets, use grub_off_t instead. Fix printf format
44317 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44318 there. Real unexpected warnings should not drown in the noise
44319 about known problems.
44321 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44322 grub_disk_addr_t for memory addresses.
44324 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44325 explicitly to fix a warning.
44327 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44329 * Makefile.in (MODULE_LDFLAGS): New variable.
44330 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44331 the linker accepts --build-id=none.
44332 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44334 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44336 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44337 those in Linux XFS code. Provide a way to access 64-bit parent
44339 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44340 the end of struct grub_xfs_dir_header.
44342 2008-07-02 Bean <bean123ch@gmail.com>
44344 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44345 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44346 and GRUB_IEEE1275_FLAG_NO_ANSI.
44348 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44349 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44350 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44352 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44353 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44355 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44356 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44358 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44359 esc sequence on non ANSI terminal.
44360 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44362 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44365 2008-07-02 Bean <bean123ch@gmail.com>
44367 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44368 (grub_editenv_SOURCES): New variable.
44369 (pkglib_MODULES): Add loadenv.mod.
44370 (loadenv_mod_SOURCES): New variable.
44371 (loadenv_mod_CFLAGS): Likewise.
44372 (loadenv_mod_LDFLAGS): Likewise.
44374 * include/grub/envblk.h: New file.
44376 * util/envblk.c: New file.
44378 * util/grub-editenv.c: New file.
44380 * commands/loadenv.c: New file.
44382 2008-07-01 Pavel Roskin <proski@gnu.org>
44384 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44385 not unsigned char. This fixes warnings and is consistent with
44388 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44390 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44392 * term/tparm.c (analyze): Always set *popcount.
44394 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44395 cast to fix a warning.
44397 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44398 cast to suppress a warning.
44400 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44401 grub_fshelp_read_file() expects.
44403 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44404 write uuid as a 32-bit value in CPU byte order, so declare and
44407 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44408 long if the format specifier expects it.
44409 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44410 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44411 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44412 long to fix a warning.
44413 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44414 grub_dprintf() arguments to fix warnings.
44416 2008-06-30 Pavel Roskin <proski@gnu.org>
44418 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44419 install_bsd_part immediately before core.img is embedded or
44420 modified on disk. This fixes core.img verification if core.img
44421 cannot be embedded.
44423 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44424 core_path to calculate the blocklist.
44425 Patch from Javier Martín <lordhabbit@gmail.com>
44427 2008-06-29 Robert Millan <rmh@aybabtu.com>
44429 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44430 block to disk block.
44431 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44432 Patch from Niels Böhm <bitbucket@arcor.de>
44434 2008-06-29 Robert Millan <rmh@aybabtu.com>
44436 * util/update-grub_lib.in (font_path): Search for fonts in
44437 /boot/grub first, which is more likely to be readable (we aren't
44438 deciding where fonts live, just looking for them).
44440 2008-06-26 Pavel Roskin <proski@gnu.org>
44442 * util/biosdisk.c (read_device_map): Don't leave dead map
44443 entries for devices failing stat() check.
44445 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44446 core_path_dev for the core.img path on the target device.
44448 2008-06-26 Robert Millan <rmh@aybabtu.com>
44450 * disk/fs_uuid.c: New file.
44451 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44452 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44453 (fs_uuid_mod_LDFLAGS): New variables.
44454 * include/grub/disk.h (grub_disk_dev_id): Add
44455 `GRUB_DISK_DEVICE_UUID_ID'.
44456 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44457 implement iterate().
44459 2008-06-26 Robert Millan <rmh@aybabtu.com>
44461 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44462 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44463 Linux image includes no initrd.
44465 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44467 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44468 call to resolve the core image location that effectively appended the
44471 2008-06-21 Robert Millan <rmh@aybabtu.com>
44473 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44476 * util/grub.d/10_hurd.in: ... to here ...
44477 * util/grub.d/10_linux.in: ... and here.
44479 2008-06-19 Robert Millan <rmh@aybabtu.com>
44481 * kern/main.c (grub_main): Export `prefix' variable immediately
44482 after it has been set by grub_machine_set_prefix().
44484 2008-06-19 Robert Millan <rmh@aybabtu.com>
44486 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44487 search result when not saving to variable, not the other way around.
44488 When saving to variable, abort iteration as soon as a match is found.
44490 2008-06-19 Robert Millan <rmh@aybabtu.com>
44492 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44493 check for partition that provides /boot/grub. Its logic is flawed,
44494 as it prevents prepare_grub_to_access_device() from being called
44497 2008-06-19 Robert Millan <rmh@aybabtu.com>
44499 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44500 "insmod" command directly when abstraction modules are needed,
44501 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44502 since it had already been processed).
44504 2008-06-19 Pavel Roskin <proski@gnu.org>
44506 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44507 changed. This is needed in case GRUB_LIBDIR changes.
44508 * conf/i386-ieee1275.rmk: Likewise.
44509 * conf/i386-linuxbios.rmk: Likewise.
44510 * conf/i386-pc.rmk: Likewise.
44511 * conf/powerpc-ieee1275.rmk: Likewise.
44513 2008-06-18 Pavel Roskin <proski@gnu.org>
44515 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44516 kernel_elf_symlist.c to symlist.c for consistency with other
44517 architectures. Update all users.
44518 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44520 2008-06-18 Robert Millan <rmh@aybabtu.com>
44522 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44525 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44526 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44527 a RAID device, run setup() for all members independently on whether
44528 LVM abstraction is being used.
44529 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44530 If grub-mkimage has set `*install_dos_part == -2', don't override this
44532 Perform *install_dos_part adjustments independently on whether
44533 we're embedding or not.
44534 Clarify error message when image is too big for embedding.
44535 Remove duplicate *install_dos_part stanza.
44537 2008-06-17 Robert Millan <rmh@aybabtu.com>
44539 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44540 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44542 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44543 values in grub_ofconsole_normal_color and
44544 grub_ofconsole_highlight_color (they're not directly related to
44545 background and foreground).
44546 (grub_ofconsole_setcolorstate): Extract background and foreground
44547 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44549 2008-06-17 Robert Millan <rmh@aybabtu.com>
44551 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44552 /boot/grub for the check in last commit, not /boot (they could be
44553 different partitions).
44555 2008-06-16 Robert Millan <rmh@aybabtu.com>
44557 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44558 asked to setup access for the same partition that provides /boot,
44559 don't bother using UUIDs since our root already has the value we
44562 2008-06-16 Robert Millan <rmh@aybabtu.com>
44564 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44566 Patch from Sven Mueller <sven@debian.org>.
44568 2008-06-16 Robert Millan <rmh@aybabtu.com>
44570 * util/update-grub.in: Check for $EUID instead of $UID.
44571 Reported by Vincent Zweije.
44573 2008-06-16 Bean <bean123ch@gmail.com>
44575 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44576 (grub_ext2_read_block): Likewise.
44577 (grub_ext2_read_inode): Likewise.
44578 (grub_ext2_mount): Likewise.
44579 (grub_ext2_close): Likewise.
44580 (grub_ext3_get_journal): Removed.
44582 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44583 (grub_reiserfs_read_symlink): Likewise.
44584 (grub_reiserfs_mount): Likewise.
44585 (grub_reiserfs_open): Likewise.
44586 (grub_reiserfs_read): Likewise.
44587 (grub_reiserfs_close): Likewise.
44588 (grub_reiserfs_get_journal): Removed.
44590 * fs/fshelp.c (grub_fshelp_read): Removed.
44591 (grub_fshelp_map_block): Likewise.
44593 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44594 (grub_fshelp_journal): Likewise.
44595 (grub_fshelp_read): Likewise.
44596 (grub_fshelp_map_block): Likewise.
44598 2008-06-16 Pavel Roskin <proski@gnu.org>
44600 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44601 floating point anymore.
44602 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44604 2008-06-15 Pavel Roskin <proski@gnu.org>
44606 * commands/ls.c (grub_ls_list_files): Use integer calculations
44607 for human readable format, avoid floating point use.
44608 * kern/misc.c (grub_ftoa): Remove.
44609 (grub_vsprintf): Remove floating point support.
44611 2008-06-15 Robert Millan <rmh@aybabtu.com>
44613 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44615 Reported by Max Vozeler.
44617 2008-06-15 Robert Millan <rmh@aybabtu.com>
44619 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44620 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44622 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44623 the beginning of the prefix.
44625 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44626 It is assumed that if we have a memdisk, grub-mkimage has set
44627 grub_prefix to include the "(memdisk)" drive in it.
44629 2008-06-15 Robert Millan <rmh@aybabtu.com>
44631 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44632 Initialize keyboard controller after registering the terminal, so that
44633 grub_printf() can be called from grub_keyboard_controller_init().
44635 2008-06-15 Robert Millan <rmh@aybabtu.com>
44637 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44638 extent-btree which is written as big endian on disk.
44639 Reported by Alain Greppin <al@chilibi.org>.
44641 2008-06-14 Robert Millan <rmh@aybabtu.com>
44643 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44644 * util/i386/pc/grub-install.in (modules): Likewise.
44646 2008-06-13 Pavel Roskin <proski@gnu.org>
44648 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44650 2008-06-13 Bean <bean123ch@gmail.com>
44652 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44654 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44656 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44657 to indicate sparse block.
44659 2008-06-12 Pavel Roskin <proski@gnu.org>
44661 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44662 number, grub_fshelp_read() does it for us.
44664 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44665 linear disk read with journal translation.
44666 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44667 * include/grub/fshelp.h: Declare grub_fshelp_read().
44669 2008-06-09 Pavel Roskin <proski@gnu.org>
44671 * fs/minix.c (grub_minix_mount): Handle error reading
44674 2008-06-08 Robert Millan <rmh@aybabtu.com>
44676 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44677 don't append the RAID prefix afterwards.
44678 Reported by Clint Adams.
44680 2008-06-08 Robert Millan <rmh@aybabtu.com>
44682 Based on description from Pavel:
44683 * kern/disk.c (grub_disk_check_range): Rename to ...
44684 (grub_disk_adjust_range): ... this. Add a comment explaining the
44685 tasks performed by this function.
44687 2008-06-08 Robert Millan <rmh@aybabtu.com>
44689 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44690 `num_serial' (for consistency with other variables).
44691 (struct grub_ntfs_data): Add `uuid' member.
44692 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44693 (grub_ntfs_uuid): New function.
44694 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44696 2008-06-07 Pavel Roskin <proski@gnu.org>
44698 * util/biosdisk.c (open_device): Revert last change to the
44699 function, it broke installation. The sector needs to be
44700 different dependent on which device is opened.
44702 2008-06-06 Robert Millan <rmh@aybabtu.com>
44704 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44705 rest of GRUB, and breakage doesn't happen if its value were modified.
44707 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44708 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44709 a constant (same value).
44710 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44711 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44713 2008-06-06 Robert Millan <rmh@aybabtu.com>
44715 * util/biosdisk.c (open_device): Do not modify sector offset when
44716 accessing a partition. kern/disk.c already handles this for us.
44718 2008-06-06 Robert Millan <rmh@aybabtu.com>
44720 * util/grub-emu.c (grub_machine_init): Move code in this function from
44722 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44723 segfault in case grub_printf() is called).
44725 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44726 grub_probe. Update all users not to explicitly add it again.
44727 (grub_device): New variable; contains corresponding device for grubdir.
44728 (fs_module, partmap_module, devabstraction_module): Pass
44729 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44732 2008-06-05 Robert Millan <rmh@aybabtu.com>
44734 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44735 is found, print it (same layout as with labels).
44737 2008-06-04 Robert Millan <rmh@aybabtu.com>
44739 * util/biosdisk.c (get_drive): Rename to ...
44740 (find_grub_drive): ... this. Update all users.
44742 (get_os_disk): Rename to ...
44743 (convert_system_partition_to_system_disk): ... this. Update all users.
44745 (find_drive): Rename to ...
44746 (find_system_device): ... this. Update all users.
44748 2008-06-04 Robert Millan <rmh@aybabtu.com>
44750 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44751 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44752 (make_device_map): Likewise.
44754 2008-06-01 Robert Millan <rmh@aybabtu.com>
44756 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44757 before dereferencing it.
44759 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44760 union with fat12/fat16-specific ones. Add some new fields, including
44761 `num_serial' for both versions.
44762 (struct grub_fat_data): Add `uuid' member.
44763 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44764 names. Initialize `data->uuid' using `num_serial'.
44765 (grub_fat_uuid): New function.
44766 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44768 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44769 (grub_reiserfs_uuid): New function.
44770 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44773 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44774 (grub_xfs_uuid): New function.
44775 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44777 2008-06-01 Robert Millan <rmh@aybabtu.com>
44779 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44780 code that is backward compatible with pre-uuid search command.
44782 2008-05-31 Robert Millan <rmh@aybabtu.com>
44784 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44785 floppies after everything else, to ensure floppy drive isn't accessed
44786 unnecessarily (patch from Bean).
44788 2008-05-31 Robert Millan <rmh@aybabtu.com>
44790 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44791 not print device names when we were asked to set a variable.
44793 2008-05-31 Robert Millan <rmh@aybabtu.com>
44795 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44796 using "cursor-on" and "cursor-off" commands (understood at least by
44797 the Open Firmware flavour on OLPC).
44799 2008-05-31 Michael Gorven <michael@gorven.za.net>
44801 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44802 on and off sequences.
44804 2008-05-31 Robert Millan <rmh@aybabtu.com>
44806 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44807 * util/update-grub.in: Likewise.
44809 2008-05-30 Pavel Roskin <proski@gnu.org>
44811 * util/biosdisk.c (linux_find_partition): Simplify logic and
44812 make the code more universal. Keep special processing for
44813 devfs, but use a simple rule for all other devices. If the
44814 device ends with a number, append 'p' and the partition number.
44815 Otherwise, append only the partition number.
44817 2008-05-30 Robert Millan <rmh@aybabtu.com>
44819 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44820 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44821 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44822 the `root' parameter to Linux.
44824 2008-05-30 Robert Millan <rmh@aybabtu.com>
44826 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44827 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44828 --fs_uuid with --fs-uuid.
44829 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44830 all filesystems support them).
44832 2008-05-30 Robert Millan <rmh@aybabtu.com>
44834 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44835 grub_printf() flags, since we're printing in units of 2 bytes.
44837 2008-05-30 Robert Millan <rmh@aybabtu.com>
44839 * util/grub.d/00_header.in: Remove obsolete comment referencing
44840 convert_system_path_to_grub_path().
44841 * util/update-grub.in: Likewise.
44842 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44843 (convert_system_path_to_grub_path): Add a warning message explaining
44844 that this function is deprecated. Rely on is_path_readable_by_grub()
44845 for the readability checks.
44846 (font_path): Use is_path_readable_by_grub() for the readability
44847 check rather than convert_system_path_to_grub_path().
44849 2008-05-30 Robert Millan <rmh@aybabtu.com>
44851 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44852 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44853 converting it first.
44854 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44855 grub.cfg for access to font file, and afterwards call it again to set
44858 2008-05-30 Robert Millan <rmh@aybabtu.com>
44860 * commands/search.c (options): Add --fs_uuid option.
44861 (search_fs_uuid): New function.
44862 (grub_cmd_search): Fix --set argument passing.
44863 Use search_fs_uuid() when requested via --fs_uuid.
44864 (grub_search_init): Update help message.
44865 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44866 and redeclare it as an array of 16-bit words.
44867 (grub_ext2_uuid): New function.
44868 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44869 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44870 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44871 (GRUB_DEVICE_BOOT_UUID): New variables.
44872 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44873 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44875 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44876 just assume `root' variable has the right value.
44877 * util/grub.d/10_linux.in: Likewise.
44878 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44880 (main): Recognise `-t fs_uuid' argument.
44882 2008-05-30 Robert Millan <rmh@aybabtu.com>
44884 * util/biosdisk.c (map): Redefine structure to hold information
44885 about GRUB drive name.
44886 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44888 (call_hook): Remove.
44889 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44890 member. Assume drive has partitions.
44891 (grub_util_biosdisk_open): Access device names via `.device' struct
44893 (open_device): Likewise.
44894 (find_drive): Likewise.
44895 (read_device_map): Adjust map[] usage to match the new struct
44896 definition. Don't check for duplicates (still possible, but not cheap
44898 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44899 (make_device_name): Remove assumption of BIOS-like drive names.
44901 2008-05-30 Pavel Roskin <proski@gnu.org>
44903 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44904 compiling execute.c doesn't need grub_script.tab.h anymore.
44905 (normal/command.c_DEPENDENCIES): Likewise.
44906 (normal/function.c_DEPENDENCIES): Likewise.
44907 * conf/i386-ieee1275.rmk: Likewise.
44908 * conf/i386-linuxbios.rmk: Likewise.
44909 * conf/i386-pc.rmk: Likewise.
44910 * conf/powerpc-ieee1275.rmk: Likewise.
44911 * conf/sparc64-ieee1275.rmk: Likewise.
44913 2008-05-29 Pavel Roskin <proski@gnu.org>
44915 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44916 when scanning metadata for volume group name.
44918 * include/grub/script.h: Don't include grub_script.tab.h. It's
44919 a generated file, which may only be included from the files with
44920 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44921 use union YYSTYPE, as the later allows forward declaration.
44922 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44924 2008-05-29 Robert Millan <rmh@aybabtu.com>
44926 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44927 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44928 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44929 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44932 2008-05-29 Robert Millan <rmh@aybabtu.com>
44934 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44935 control key combinations.
44937 2008-05-29 Robert Millan <rmh@aybabtu.com>
44939 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44940 * util/ieee1275/grub-install.in: ... to here.
44941 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44942 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44943 (grub_install_SOURCES): Likewise.
44945 2008-05-29 Robert Millan <rmh@aybabtu.com>
44947 * fs/affs.c: Update copyright year.
44948 * fs/ext2.c: Likewise.
44949 * fs/fshelp.c: Likewise.
44950 * fs/hfsplus.c: Likewise.
44951 * fs/ntfs.c: Likewise.
44952 * fs/xfs.c: Likewise.
44953 * include/grub/fshelp.h: Likewise.
44954 * util/grub-mkdevicemap.c: Likewise.
44956 2008-05-28 Robert Millan <rmh@aybabtu.com>
44958 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44959 might need to be fatfs to support some firmware implementations
44962 2008-05-28 Robert Millan <rmh@aybabtu.com>
44964 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44966 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44967 (make_device_map): Likewise.
44969 2008-05-20 Bean <bean123ch@gmail.com>
44971 * fs/fshelp.c (grub_fshelp_map_block): New function.
44972 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44973 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44975 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44976 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44977 (grub_fshelp_journal): New structure.
44978 (grub_fshelp_map_block): New function prototype.
44979 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44980 (grub_fshelp_map_block): Likewise.
44982 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44983 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44984 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44985 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44986 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44987 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44988 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44989 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44990 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44991 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44992 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44993 (grub_ext2_sblock): New members for journal support.
44994 (grub_ext3_journal_header): New structure.
44995 (grub_ext3_journal_revoke_header): Likewise.
44996 (grub_ext3_journal_block_tag): Likewise.
44997 (grub_ext3_journal_sblock): Likewise.
44998 (grub_fshelp_node): New members logfile and journal.
44999 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
45000 grub_fshelp_map_block to get real block number.
45001 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
45003 (grub_ext2_read_inode): Likewise.
45004 (grub_ext3_get_journal): New function.
45005 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
45006 (grub_ext2_close): Release memory used by journal.
45008 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
45009 (REISERFS_MAGIC_DESC_BLOCK): New macro.
45010 (grub_reiserfs_transaction_header): Renamed to
45011 grub_reiserfs_description_block, replace field data with real_blocks.
45012 (grub_reiserfs_commit_block): New structure.
45013 (grub_reiserfs_data): New member journal.
45014 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
45016 (grub_reiserfs_read_symlink): Likewise.
45017 (grub_reiserfs_iterate_dir): Likewise.
45018 (grub_reiserfs_open): Likewise.
45019 (grub_reiserfs_read): Likewise.
45020 (grub_reiserfs_get_journal): New function.
45021 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
45022 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
45023 using grub_reiserfs_get_journal.
45024 (grub_reiserfs_close): Release memory used by journal.
45026 * fs/affs.c (grub_affs_read_block): Change block type to
45027 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
45029 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
45031 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
45033 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
45035 * fs/udf.c (grub_udf_read_block): Change block type to
45036 grub_disk_addr_t. Use type cast to avoid warning.
45038 * fs/xfs.c (grub_xfs_read_block): Likewise.
45040 2008-05-16 Christian Franke <franke@computer.org>
45042 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
45043 to ensure that break with ESC will always work.
45044 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
45045 Remove ESC from keyboard queue.
45047 2008-05-16 Christian Franke <franke@computer.org>
45049 * util/biosdisk.c: [__CYGWIN__] Add includes.
45050 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
45051 (get_os_disk): Move variable declarations to OS specific
45052 parts to avoid warning.
45053 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
45054 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
45055 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
45057 * util/getroot.c: [__CYGWIN__] Add includes.
45058 (strip_extra_slashes): Fix "/" case.
45059 [__CYGWIN__] (get_win32_path): New function.
45060 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
45061 [__CYGWIN__] (find_root_device): Disable.
45062 [__CYGWIN__] (get_bootsec_serial): New function.
45063 [__CYGWIN__] (find_cygwin_root_device): Likewise.
45064 [__linux__] (grub_guess_root_device): Add early returns to simplify
45066 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
45067 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
45068 check for Linux only.
45070 2008-05-15 Bean <bean123ch@gmail.com>
45072 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
45073 keyboard hang problem in apple's intel mac.
45075 2008-05-09 Robert Millan <rmh@aybabtu.com>
45077 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
45079 * util/grub-mkdevicemap.c (get_virtio_disk_name)
45080 (make_device_map): Likewise.
45081 Reported by Aurelien Jarno <aurel32@debian.org>
45083 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
45085 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
45086 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
45087 (make_device_map): Output entries for xvd type disks.
45089 2008-05-07 Robert Millan <rmh@aybabtu.com>
45091 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
45093 * util/grub-mkdevicemap.c (get_cciss_disk_name)
45094 (make_device_map): Likewise.
45095 Reported by Roland Dreier <rdreier@cisco.com>
45097 2008-05-07 Robert Millan <rmh@aybabtu.com>
45099 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
45100 grub_strstr() call. Correct a few mistakes in failure path handling.
45102 2008-05-06 Robert Millan <rmh@aybabtu.com>
45104 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
45105 Do not print a trailing slash (therefore, the root directory is an
45107 (convert_system_path_to_grub_path): Do not remove trailing slash
45108 from make_system_path_relative_to_its_root() output.
45110 * util/i386/pc/grub-install.in: Add trailing slash to output from
45111 make_system_path_relative_to_its_root().
45113 2008-05-06 Robert Millan <rmh@aybabtu.com>
45115 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
45116 ensures that output lines aren't intermangled with those sent to
45117 stderr (via grub_util_info()).
45118 * util/grub-probe.c (grub_refresh): Likewise.
45119 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
45121 2008-05-05 Christian Franke <franke@computer.org>
45123 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
45124 Add Cygwin device names.
45125 (get_ide_disk_name) [__CYGWIN__]: Likewise.
45126 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
45127 (check_device): Return error instead of success on empty name.
45128 (make_device_map): Move label inside linux specific code to
45129 prevent compiler warning.
45131 2008-04-30 Robert Millan <rmh@aybabtu.com>
45133 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
45134 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
45136 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
45138 2008-04-29 Robert Millan <rmh@aybabtu.com>
45140 * docs/grub.cfg: New file (example GRUB configuration).
45142 2008-04-26 Robert Millan <rmh@aybabtu.com>
45144 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
45145 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
45146 and `disk/ieee1275/nand.c'.
45148 2008-04-25 Bean <bean123ch@gmail.com>
45150 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
45153 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
45154 change the buffer size to 4096 for cdrom device.
45156 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
45158 (_linux_mod_SOURCES): New variable.
45159 (_linux_mod_CFLAGS): Likewise.
45160 (_linux_mod_LDFLAGS): Likewise.
45161 (linux_mod_SOURCES): Likewise.
45162 (linux_mod_CFLAGS): Likewise.
45163 (linux_mod_LDFLAGS): Likewise.
45164 (nand_mod_SOURCES): Likewise.
45165 (nand_mod_CFLAGS): Likewise.
45166 (nand_mod_LDFLAGS): Likewise.
45168 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
45169 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
45170 type property. (nand device in olpc don't have this property)
45172 * include/grub/disk.h (grub_disk_dev_id): New macro
45173 GRUB_DISK_DEVICE_NAND_ID.
45175 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
45176 function prototype.
45177 (grub_rescue_cmd_initrd): Likewise.
45179 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
45180 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
45181 ofw_cif_handler and ofw_idt, adjust padding number.
45183 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45184 GRUB_MACHINE_IEEE1275 is defined.
45186 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45187 Use NESTED_FUNC_ATTR attribute on the hook parameter.
45189 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45190 on nested function heap_init.
45191 (grub_upper_mem): New variable for i386-ieee1275.
45192 (grub_get_extended_memory): New function for i386-ieee1275.
45193 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45195 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45196 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45199 * loader/i386/ieee1275/linux.c: New file.
45201 * loader/i386/ieee1275/linux_normal.c: New file.
45203 * disk/ieee1275/nand.c: New file.
45205 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45207 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45209 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45211 2008-04-18 Robert Millan <rmh@aybabtu.com>
45213 Restructures early code path on ieee1275 to unify grub_main() as
45214 the first C function that is executed in every platform.
45216 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45217 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45219 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45220 * kern/ieee1275/cmain.c (cmain): Rename to ...
45221 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45222 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45225 2008-04-18 Robert Millan <rmh@aybabtu.com>
45227 * util/update-grub.in: Fix syntax error when setting
45228 `GRUB_PRELOAD_MODULES'.
45229 Reported by Stephane Chazelas <stephane@artesyncp.com>
45231 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45233 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45234 section into account, newer toolchains generate unique build ids
45235 * configure.ac: remove the test for --build-id=none acceptance,
45236 we want build ids to be preserved
45237 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45238 far from other sections don't cause the raw binary images grow
45241 2008-04-15 Robert Millan <rmh@aybabtu.com>
45243 * disk/lvm.c: Update copyright year.
45244 * kern/misc.c: Likewise.
45246 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45248 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45249 there is no memory left for physical volume name.
45251 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45253 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45254 volume name mapping to support bigger than 9 character names properly.
45256 2008-04-13 Robert Millan <rmh@aybabtu.com>
45258 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45259 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45261 2008-04-13 Christian Franke <franke@computer.org>
45263 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45264 to create a floppy emulation boot CD when non emulation mode
45266 Enable Joliet CD filesystem extension.
45268 2008-04-13 Robert Millan <rmh@aybabtu.com>
45270 * kern/misc.c (grub_strncat): Fix off-by-one error.
45271 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45273 * kern/env.c (grub_env_context_close): Clear current context, not
45275 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45277 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45279 2008-04-13 Robert Millan <rmh@aybabtu.com>
45281 Improve robustness when handling LVM.
45283 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45284 (and leave `*p' unmodified).
45285 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45287 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45288 iterating through it.
45289 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45291 (grub_lvm_scan_device): Check the return value (and fail gracefully
45292 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45293 Don't assume `vg->pvs != NULL' when iterating through it.
45295 2008-04-13 Robert Millan <rmh@aybabtu.com>
45297 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45298 * genmk.rb (partmap): New variable.
45299 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45300 (#{partmap}): New target rule.
45301 * genpartmaplist.sh: New file.
45302 * Makefile.in (pkglib_DATA): Add partmap.lst.
45303 (partmap.lst): New target rule.
45304 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45305 modules (including all partition maps), instead of preloading them.
45307 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45309 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45310 `linux-boot-prober' (if installed) to detect other operating
45311 systems which are installed on the computer and add them to
45313 * conf/common.rmk: Build and install 30_os-prober.
45315 2008-04-12 Robert Millan <rmh@aybabtu.com>
45317 * kern/powerpc/ieee1275/init.c: Move from here ...
45318 * kern/ieee1275/init.c: ... to here. Update all users.
45320 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45321 * kern/ieee1275/cmain.c: ... to here. Update all users.
45323 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45324 * kern/ieee1275/openfw.c: ... to here. Update all users.
45326 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45327 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45329 2008-04-10 Pavel Roskin <proski@gnu.org>
45331 * configure.ac: Always use "_cv_" in cache variables for
45332 compatibility with Autoconf 2.62.
45334 2008-04-07 Robert Millan <rmh@aybabtu.com>
45336 Revert grub/machine/init.h addition by Pavel (since it breaks on
45337 i386-ieee1275 and others):
45338 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45339 * util/powerpc/ieee1275/misc.c: Likewise.
45341 2008-04-07 Robert Millan <rmh@aybabtu.com>
45343 * util/grub-probe.c (probe): Improve error message.
45345 2008-04-07 Robert Millan <rmh@aybabtu.com>
45347 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45348 (this prevents the presence of a bogus entry from ruining the whole
45351 2008-04-06 Pavel Roskin <proski@gnu.org>
45353 * util/biosdisk.c: Include grub/util/biosdisk.h.
45354 * util/grub-fstest.c (execute_command): Make static.
45355 * util/grub-mkdevicemap.c (check_device): Likewise.
45356 * util/i386/pc/misc.c: Include grub/machine/init.h.
45357 * util/powerpc/ieee1275/misc.c: Likewise.
45358 * util/lvm.c: Include grub/util/lvm.h.
45359 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45361 * util/raid.c: Include grub/util/raid.h.
45362 (grub_util_getdiskname): Make static.
45364 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45365 grub_hostfs_fini(), as they are called from grub_init_all() and
45366 grub_fini_all() respectively. This fixes an infinite loop in
45367 grub-fstest due to double registration of hostfs.
45368 Reported by Christian Franke <Christian.Franke@t-online.de>
45370 2008-04-05 Pavel Roskin <proski@gnu.org>
45372 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45373 all 8 functions. Otherwise, probe function 0 only.
45375 2008-04-04 Pavel Roskin <proski@gnu.org>
45377 * commands/lspci.c (grub_lspci_iter): Print the bus number
45380 * commands/lspci.c (grub_pci_classes): Fix typos.
45381 (grub_lspci_iter): Don't print func twice. Print vendor ID
45382 before device ID, as it's normally done.
45384 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45385 Fix signedness warnings.
45386 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45388 * util/ieee1275/get_disk_name.c: Include config.h so that
45389 _GNU_SOURCE is defined and getline() is declared. Mark an
45390 unused argument as such. Fix a signedness warning.
45392 2008-04-02 Pavel Roskin <proski@gnu.org>
45394 * genkernsyms.sh.in: Use more robust assignments for CC and
45395 srcdir. Quote srcdir.
45396 * gensymlist.sh.in: Likewise. Assert at the compile time that
45397 the symbol table is not empty.
45399 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45400 * fs/cpio.c (grub_cpio_read): Likewise.
45402 2008-04-01 Pavel Roskin <proski@gnu.org>
45404 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45405 * disk/host.c (grub_host_open): Likewise.
45406 * disk/loopback.c (grub_loopback_open): Likewise.
45407 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45408 disk->id as in disk/host.c, not a multi-character constant.
45410 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45411 later is obsolete, potentially dangerous and sets a bad example.
45412 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45413 * util/misc.c (grub_util_get_image_size): Likewise.
45415 * disk/loopback.c (options): Improve help for "--partitions".
45417 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45418 options to align them with the short options, e.g. "echo -e".
45420 2008-03-31 Bean <bean123ch@gmail.com>
45422 * video/reader/png.c (grub_png_data): New member is_16bit and
45424 (grub_png_decode_image_header): Detect 16 bit png image.
45425 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45426 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45427 (grub_video_reader_png): Release memory occupied by image_data.
45429 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45431 (grub_nfs_mount): Skip the test for sector per cluster.
45433 * include/grub/ntfs.h (MAX_SPC): Removed.
45435 2008-03-31 Bean <bean123ch@gmail.com>
45437 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45438 (grub_probe_SOURCES): Add fs/afs.c.
45439 (grub_fstest_SOURCES): Likewise.
45440 (afs_mod_SOURCES): New variable.
45441 (afs_mod_CFLAGS): Likewise.
45442 (afs_mod_LDFLAGS): Likewise.
45444 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45445 (grub_emu_SOURCES): Likewise.
45447 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45449 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45451 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45453 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45455 * fs/afs.c: New file.
45457 2008-03-30 Pavel Roskin <proski@gnu.org>
45459 * disk/host.c: Include grub/misc.h to fix a warning.
45460 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45461 warnings about implicit declarations.
45463 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45465 * include/grub/i386/loader.h: Change declaration of
45466 grub_linux_boot() to match what grub_loader_set() expects.
45467 * util/getroot.c (grub_guess_root_device): Return const char* to
45469 * util/grub-probe.c (probe): Fix a warning about uninitialized
45470 abstraction_name variable.
45471 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45472 second argument as unused to fix a warning.
45474 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45475 missing grub_error() call.
45477 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45478 2.60 and newer uses it to define datadir.
45480 * commands/sleep.c: Fix warning about implicit declaration.
45481 * disk/memdisk.c: Likewise.
45482 * loader/aout.c: Likewise.
45483 * loader/i386/bsd_normal.c: Likewise.
45484 * util/grub-probe.c: Likewise.
45486 * commands/i386/cpuid.c (has_longmode): Make static.
45487 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45488 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45490 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45491 GDT. This is more robust, as %ds can change.
45492 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45493 calling real_to_prot().
45494 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45496 2008-03-28 Pavel Roskin <proski@gnu.org>
45498 * kern/i386/pc/startup.S: Assert that uncompressed functions
45499 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45500 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45501 code, as they push parts of the code (error handlers) beyond
45502 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45503 code as correctness and size.
45505 2008-03-28 Pavel Roskin <proski@gnu.org>
45507 * kern/i386/pc/startup.S
45508 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45509 data block address to the real mode, keep offset minimal. This
45510 works around a bug in AWARD BIOS on old Athlon systems, which
45511 makes CD detection hang.
45513 2008-03-26 Pavel Roskin <proski@gnu.org>
45515 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45517 * include/grub/normal.h: Add grub_parse_color_name_pair()
45520 2008-03-24 Bean <bean123ch@gmail.com>
45522 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45523 (cd_count): Removed.
45524 (cd_drive): New variable.
45525 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45526 (grub_biosdisk_call_hook): Likewise.
45527 (grub_biosdisk_iterate): Change cdrom detection method.
45528 (grub_biosdisk_open): Replace cd_start with cd_drive.
45529 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45530 detect cdrom device.
45532 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45534 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45535 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45536 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45537 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45538 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45539 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45540 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45541 (grub_biosdisk_cdrp): New structure.
45542 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45544 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45546 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45549 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45552 2008-03-20 Robert Millan <rmh@aybabtu.com>
45554 Remove 2 TiB limit in ata.mod.
45555 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45556 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45557 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45558 grub_uint64_t instead of grub_uint32_t.
45560 2008-03-05 Bean <bean123ch@gmail.com>
45562 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45563 (grub_multiboot): Set boot device.
45565 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45567 2008-03-02 Bean <bean123ch@gmail.com>
45569 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45572 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45574 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45577 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45580 * docs/fdl.texi: New file.
45582 * docs/mdate-sh: New file. Copied from gnulib.
45583 * docs/texinfo.tex: Likewise.
45585 * config.guess: Updated from gnulib.
45586 * install-sh: Likewise.
45588 2008-02-28 Robert Millan <rmh@aybabtu.com>
45590 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45591 (aout_mod_SOURCES): New variable.
45592 (aout_mod_CFLAGS): Likewise.
45593 (aout_mod_LDFLAGS): Likewise.
45595 * conf/i386-ieee1275.rmk: Likewise.
45597 2008-02-28 Robert Millan <rmh@aybabtu.com>
45599 * util/update-grub.in: Reorganise terminal validity check. Accept
45600 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45601 Based on suggestion by Franklin PIAT.
45603 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45605 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45607 * util/getroot.c (grub_util_check_block_device): New function that
45608 returns the given argument if it is a block device and returns NULL else.
45609 * util/grub-probe.c (argument_is_device): New variable.
45610 (probe): Promote device_name from a variable to an argument. Receive
45611 device_name from grub_util_check_block_device() if path is NULL and from
45612 grub_guess_root_device() else. Do not free() device_name anymore.
45613 (options): Introduce new parameter '-d, --device'.
45614 (main): Add description of the new parameter to the help screen.
45615 Rename path variable to argument. Set argument_is_device if the '-d'
45616 option is given. Pass argument to probe() depending on
45617 argument_is_device.
45619 2008-02-24 Bean <bean123ch@gmail.com>
45621 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45622 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45623 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45624 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45625 (GRUB_ISO9660_VOLDESC_END): Likewise.
45626 (grub_iso9660_primary_voldesc): New member escape.
45627 (grub_iso9660_data): New member joliet.
45628 (grub_iso9660_convert_string): New function.
45629 (grub_iso9660_mount): Detect joliet extension.
45630 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45631 (grub_iso9660_iso9660_label): Likewise.
45633 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45634 (grub_setup_SOURCES): Add fs/udf.c.
45635 (grub_fstest_SOURCES): Likewise.
45636 (udf_mod_SOURCES): New variable.
45637 (udf_mod_CFLAGS): Likewise.
45638 (udf_mod_LDFLAGS): Likewise.
45640 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45641 (grub_emu_SOURCES): Likewise.
45643 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45645 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45647 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45649 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45651 * fs/udf.c: New file.
45653 2008-02-24 Robert Millan <rmh@aybabtu.com>
45655 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45656 (normal/lexer.c_DEPENDENCIES): New variables.
45657 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45658 (normal/lexer.c_DEPENDENCIES): Likewise.
45659 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45660 (normal/lexer.c_DEPENDENCIES): Likewise.
45661 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45662 (normal/lexer.c_DEPENDENCIES): Likewise.
45663 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45664 (normal/lexer.c_DEPENDENCIES): Likewise.
45665 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45666 (normal/lexer.c_DEPENDENCIES): Likewise.
45668 2008-02-23 Robert Millan <rmh@aybabtu.com>
45670 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45671 since they were intended to be in hex. This didn't break previously
45672 because of a bug in gpt_partition_map_iterate() (see below).
45674 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45675 when checking the validity of GPT header.
45676 Remove `partno', since it always provides the same information as `i'.
45678 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45680 * include/grub/efi/time.h: Fix a wrong comment.
45682 2008-02-19 Pavel Roskin <proski@gnu.org>
45684 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45687 2008-02-19 Bean <bean123ch@gmail.com>
45689 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45690 (aout_mod_SOURCES): New variable.
45691 (aout_mod_CFLAGS): Likewise.
45692 (aout_mod_LDFLAGS): Likewise.
45693 (_bsd_mod_SOURCES): New variable.
45694 (_bsd_mod_CFLAGS): Likewise.
45695 (_bsd_mod_LDFLAGS): Likewise.
45696 (bsd_mod_SOURCES): New variable.
45697 (bsd_mod_CFLAGS): Likewise.
45698 (bsd_mod_LDFLAGS): Likewise.
45700 * include/grub/aout.h: New file.
45702 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45704 * include/grub/i386/bsd.h: New file.
45706 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45709 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45710 function is called, so that it's possible to change it inside the hook.
45711 (grub_elf64_load): Likewise.
45712 (grub_elf_file): Don't close the file if elf header is not found.
45713 (grub_elf_close): Close the file if grub_elf_file fails (The new
45714 grub_elf_file won't close it).
45715 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45716 (grub_elf64_size): Likewise.
45718 * kern/i386/loader.S (grub_unix_real_boot): New function.
45720 * loader/aout.c: New file.
45722 * loader/i386/bsd.c: New file.
45724 * loader/i386/bsd_normal.c: New file.
45726 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45728 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45729 can test other formats.
45731 2008-02-19 Robert Millan <rmh@aybabtu.com>
45733 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45734 (grub_gpt_partition_type_empty): Redefine with macro from
45735 `<grub/gpt_partition.h>'.
45736 (gpt_partition_map_iterate): Adjust partition type comparison.
45738 Export `entry' as partmap-specific `part.data' struct.
45739 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45741 * include/grub/gpt_partition.h (grub_gpt_header)
45742 (grub_gpt_partentry): ... to here (new file).
45744 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45746 (grub_gpt_partition_type_bios_boot): New const variable, defined
45747 with macro from `<grub/gpt_partition.h>'.
45749 (setup): Replace `first_start' with `embed_region', which keeps
45750 track of the embed region (and is partmap-agnostic).
45752 Replace find_first_partition_start() with find_usable_region(),
45753 which finds a usable region for embedding using partmap-specific
45754 knowledge (supports PC/MSDOS and GPT).
45756 Fix all assumptions that the embed region start at sector 1, using
45757 `embed_region.start' from now on. Similarly, use `embed_region.end'
45758 rather than `first_start' to calculate available size.
45760 In grub_util_info() message, replace "into after the MBR" with an
45761 indication of the specific sector our embed region starts at.
45763 2008-02-19 Robert Millan <rmh@aybabtu.com>
45765 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45766 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45767 `commands/reboot.c'.
45768 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45769 (halt_mod_SOURCES): Likewise.
45770 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45771 (halt_mod_SOURCES): Likewise.
45773 2008-02-17 Christian Franke <franke@computer.org>
45775 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45777 2008-02-17 Robert Millan <rmh@aybabtu.com>
45779 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45780 set `first_start' to 0 for non-PC/MSDOS partition maps.
45782 2008-02-16 Robert Millan <rmh@aybabtu.com>
45784 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45785 do not assume partition map is PC/MSDOS before performing checks that
45786 are specific to that layout.
45788 2008-02-13 Robert Millan <rmh@aybabtu.com>
45790 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45791 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45792 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45794 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45796 * configure.ac: Only a cosmetic change on the handling of
45797 -fno-stack-protector.
45799 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45801 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45802 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45804 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45805 (halt_mod_SOURCES): New variable.
45806 (halt_mod_CFLAGS): Likewise.
45807 (halt_mod_LDFLAGS): Likewise.
45808 (reboot_mod_SOURCES): Likewise.
45809 (reboot_mod_CFLAGS): Likewise.
45810 (reboot_mod_LDFLAGS): Likewise.
45812 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45813 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45815 (halt_mod_SOURCES): Likewise.
45816 (reboot_mod_SOURCES): Likewise.
45818 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45819 commands/i386/pc/reboot.c by commands/reboot.c.
45820 (reboot_mod_SOURCES): Likewise.
45822 * commands/i386/pc/reboot.c: merge this file ...
45824 * commands/ieee1275/reboot.c: ... and this file ...
45826 * commands/reboot.c: ... to this file.
45827 Add some precompiler directive to include the correct header for
45830 * commands/ieee1275/halt.c: move this file ...
45832 * commands/halt.c: ... to here.
45833 Add some precompiler directive to include the correct header for
45836 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45837 (grub_halt): Likewise.
45839 * kern/efi/efi.c (grub_reboot): New function.
45840 (grub_halt): Likewise.
45842 2008-02-12 Robert Millan <rmh@aybabtu.com>
45844 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45845 /dev (like it is done for /dev/mapper). This doesn't provide support
45846 for EVMS, but at least it is now easy to identify the problem when it
45849 2008-02-11 Robert Millan <rmh@aybabtu.com>
45851 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45852 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45853 comparing it with -1, not 0.
45855 2008-02-10 Robert Millan <rmh@aybabtu.com>
45857 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45859 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45860 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45862 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45863 `disk/lvm.c' to the end of the list.
45864 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45865 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45867 2008-02-10 Robert Millan <rmh@aybabtu.com>
45869 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45870 grub_print_error() instead. This will let user know why we're entering
45872 Based on suggestions from Sam Morris.
45874 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45876 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45877 on remaining N args, instead of "--" arg N times.
45879 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45881 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45882 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45883 pattern for unknown glyphs.
45885 2008-02-09 Robert Millan <rmh@aybabtu.com>
45887 * configure.ac: Probe for `help2man'.
45888 * Makefile.in (builddir): New variable.
45889 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45890 or otherwise add a few flags/options to it.
45891 (install-local): For every executable utility or script that is
45892 installed, invoke $(HELP2MAN) to install a manpage based on --help
45895 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45896 that it doesn't prevent --help from working in build tree.
45898 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45899 with `bug-grub@gnu.org'.
45900 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45901 * util/update-grub.in (usage): New function.
45902 Implement proper argument check, with support for --help and --version
45903 (as well as existing -y).
45905 2008-02-09 Christian Franke <franke@computer.org>
45907 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45908 avoid overwriting previous output.
45909 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45911 2008-02-09 Robert Millan <rmh@aybabtu.com>
45913 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45916 2008-02-09 Robert Millan <rmh@aybabtu.com>
45918 * commands/sleep.c: New file.
45919 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45920 (sleep_mod_SOURCES): New variable.
45921 (sleep_mod_CFLAGS): Likewise.
45922 (sleep_mod_LDFLAGS): Likewise.
45924 2008-02-09 Robert Millan <rmh@aybabtu.com>
45926 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45927 situations in which we can deduce the RAID size and the superblock
45930 2008-02-09 Robert Millan <rmh@aybabtu.com>
45932 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45933 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45934 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45936 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45937 and return a grub_diskmemberlist_t composed of physical array members.
45938 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45940 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45942 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45943 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45944 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45946 * util/grub-probe.c (probe): Move partmap probing code from here ...
45947 (probe_partmap): ... to here.
45948 (probe): Use probe_partmap() once for the disk we're probing, and
45949 additionally, when such disk contains a memberlist() struct member,
45950 once for each disk that is contained in the structure returned by
45953 2008-02-09 Robert Millan <rmh@aybabtu.com>
45955 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45956 environment variable to 'all' in order to obtain debug output from
45958 * util/i386/pc/grub-setup.c (main): Likewise.
45960 2008-02-08 Robert Millan <rmh@aybabtu.com>
45962 * disk/raid.c (grub_raid_scan_device): Check for
45963 `array->device[sb.this_disk.number]' rather than for
45964 `array->device[sb.this_disk.number]->name', since the latter is not
45965 guaranteed to be accessible.
45967 2008-02-08 Robert Millan <rmh@aybabtu.com>
45969 * disk/raid.c: Update copyright.
45970 * fs/cpio.c: Likewise.
45971 * include/grub/raid.h: Likewise.
45972 * loader/i386/pc/multiboot.c: Likewise.
45973 * util/hostfs.c: Likewise.
45975 2008-02-08 Robert Millan <rmh@aybabtu.com>
45977 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45978 to a grub_disk_t array.
45979 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45981 (grub_raid_scan_device): Replace `device[x].name' accesses with
45982 `device[x]->name'. Simplify initialization of `array->device[x]'.
45984 2008-02-08 Robert Millan <rmh@aybabtu.com>
45986 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45987 grub_dprintf() calls.
45988 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45991 2008-02-07 Christian Franke <franke@computer.org>
45993 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45994 instead of fseek and ftell to support large files.
45995 (grub_hostfs_read): Likewise.
45997 2008-02-07 Robert Millan <rmh@aybabtu.com>
45999 Patch from Jeroen Dekkers.
46000 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
46001 failure, since successfully reading all array members might not be
46004 2008-02-06 Robert Millan <rmh@aybabtu.com>
46006 * util/grub-probe.c (probe): Simplify partmap probing (with the
46007 assumption that the first word up to the underscore equals to
46010 2008-02-06 Christian Franke <franke@computer.org>
46012 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
46013 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
46014 last block of a cpio or tar stream.
46015 Check for "TRAILER!!!" instead of any empty data
46016 block to detect last block of a cpio stream.
46017 (grub_cpio_dir): Fix constness of variable np.
46018 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
46019 cpio or tar trailer is detected. This fixes a crash
46020 on open of a non existing file.
46022 2008-02-05 Bean <bean123ch@gmail.com>
46024 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
46026 (grub_multiboot_load_elf64): Likewise.
46027 (grub_multiboot): Initialize mbi structure.
46029 * util/grub-fstest.c: Don't include unused header file script.h.
46031 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
46033 (grub_fstest_SOURCES): Likewise.
46035 2008-02-05 Robert Millan <rmh@aybabtu.com>
46037 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
46038 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
46039 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
46040 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
46042 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
46043 (translation_table): Replace hardcoded values with macros
46044 provided by `<grub/term.h>'.
46046 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
46047 (keyboard_map): Correct/add a few values, with macros provided
46048 by `<grub/term.h>'.
46049 (keyboard_map_shift): Zero values that don't differ from their
46050 `keyboard_map' equivalents.
46051 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
46052 Discard the second scan code that is always sent by Caps lock.
46053 Only use `keyboard_map_shift' when it provides a non-zero value,
46054 otherwise fallback to `keyboard_map'.
46056 2008-02-04 Bean <bean123ch@gmail.com>
46058 * Makefile.in (enable_grub_fstest): New variable.
46060 * conf/common.rmk (grub_fstest_init.lst): New rule.
46061 (grub_fstest_init.h): Likewise.
46062 (grub_fstest_init.c): Likewise.
46063 (util/grub-fstest.c_DEPENDENCIES): New variable.
46064 (grub_fstest_SOURCES): Likewise.
46066 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
46068 * util/grub-fstest.c: New file.
46070 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46072 Make grub-setup handle a separate root device.
46074 * util/i386/pc/grub-setup.c (setup): Always open the root device,
46075 so that the root device can be compared with the destination
46077 When embedding the core image, if the root and destination devices
46078 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
46080 When not embedding, set ROOT_DRIVE to 0xFF.
46082 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46084 Add support for having a grub directory in a different drive. This
46085 is still only the data handling part.
46087 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
46088 (codestart): Save %dh in GRUB_ROOT_DRIVE.
46089 (grub_root_drive): New variable.
46091 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
46092 instead of GRUB_BOOT_DRIVE to construct a device name. Set
46093 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
46096 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
46098 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
46100 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
46102 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
46103 is bogus, because PXE booting does not specify any drive
46106 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
46107 am not sure if this is really correct.
46109 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
46110 is always identical to the boot drive when booting from a CD.
46112 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
46114 (root_drive): New variable.
46115 (real_start): Unconditionally set %dh to ROOT_DRIVE.
46116 (setup_sectors): Push %dx right after popping it, because %dh will
46118 (copy_buffer): Restore %dx.
46120 2008-02-03 Robert Millan <rmh@aybabtu.com>
46122 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
46123 use `cdboot.img' for cdrom images.
46125 2008-02-03 Robert Millan <rmh@aybabtu.com>
46127 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
46128 only setup gfxterm when `font' command has succeeded.
46130 2008-02-03 Robert Millan <rmh@aybabtu.com>
46132 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
46133 (grub_rescue_cmd_multiboot_loader)
46134 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
46136 2008-02-03 Pavel Roskin <proski@gnu.org>
46138 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
46139 %edx and %esi from stack only after grub_gate_a20() is called.
46140 grub_gate_a20() clobbers %edx.
46142 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46144 * configure.ac (AC_INIT): Bumped to 1.96.
46146 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
46147 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
46148 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
46149 video/readers/png.c.
46151 2008-02-03 Bean <bean123ch@gmail.com>
46153 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
46154 (cdboot_img_SOURCES): New variable.
46155 (cdboot_img_ASFLAGS): New variable.
46156 (cdboot_img_LDFLAGS): New variable.
46158 * boot/i386/pc/cdboot.S: New file.
46160 * disk/i386/pc/biosdisk.c (cd_start): New variable.
46161 (cd_count): Likewise.
46162 (grub_biosdisk_get_drive): Add support for cd device.
46163 (grub_biosdisk_call_hook): Likewise.
46164 (grub_biosdisk_iterate): Likewise.
46165 (grub_biosdisk_open): Likewise.
46166 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
46167 (grub_biosdisk_rw): Support reading from cd device.
46168 (GRUB_MOD_INIT): Iterate cd devices.
46170 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
46171 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
46172 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
46174 * kern/i386/pc/init.c (make_install_device): Check for cd device.
46176 2008-02-02 Robert Millan <rmh@aybabtu.com>
46178 * commands/read.c: New file.
46179 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
46180 (read_mod_SOURCES): New variable.
46181 (read_mod_CFLAGS): Likewise.
46182 (read_mod_LDFLAGS): Likewise.
46184 2008-02-02 Robert Millan <rmh@aybabtu.com>
46186 * normal/main.c (grub_normal_execute): Check for `menu->size' when
46187 determining whether menu has to be displayed.
46189 2008-02-02 Marco Gerards <marco@gnu.org>
46191 * bus/pci.c: New file.
46193 * include/grub/pci.h: Likewise.
46195 * include/grub/i386/pc/pci.h: Likewise.
46197 * commands/lspci.c: Likewise.
46199 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46201 (pci_mod_SOURCES): New variable.
46202 (pci_mod_CFLAGS): Likewise.
46203 (pci_mod_LDFLAGS): Likewise.
46204 (lspci_mod_SOURCES): Likewise.
46205 (lspci_mod_CFLAGS): Likewise.
46206 (lspci_mod_LDFLAGS): Likewise.
46208 2008-02-02 Bean <bean123ch@gmail.com>
46210 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46211 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46213 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46214 (grub_xfs_btree_node): New structure.
46215 (grub_xfs_btree_root): New structure.
46216 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46217 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46218 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46219 (GRUB_XFS_EXTENT_SIZE): Likewise.
46220 (grub_xfs_read_block): Support btree format type.
46221 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46222 Use directory block as basic unit.
46224 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46226 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46227 __attribute__ ((__regparm__ (1))).
46229 2008-02-01 Robert Millan <rmh@aybabtu.com>
46231 Correct a mistake in previous commit.
46233 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46235 (normal/command.c_DEPENDENCIES): New variable.
46237 2008-02-01 Robert Millan <rmh@aybabtu.com>
46239 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46241 (normal/command.c_DEPENDENCIES): New variable.
46242 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46243 * conf/i386-ieee1275.rmk: Likewise.
46244 * conf/i386-linuxbios.rmk: Likewise.
46245 * conf/i386-pc.rmk: Likewise.
46246 * conf/sparc64-ieee1275.rmk: Likewise.
46247 * conf/powerpc-ieee1275.rmk: Likewise.
46248 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46250 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46252 2008-02-01 Robert Millan <rmh@aybabtu.com>
46254 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46255 call at beginning of function.
46257 2008-01-31 Pavel Roskin <proski@gnu.org>
46259 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46260 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46261 (grub_mkrescue_SOURCES): Likewise.
46262 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46264 2008-01-30 Robert Millan <rmh@aybabtu.com>
46266 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46267 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46268 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46269 (grub_probe_SOURCES): ... to here.
46271 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46272 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46273 * conf/i386-ieee1275.rmk: Likewise.
46274 * conf/i386-linuxbios.rmk: Likewise.
46275 * conf/powerpc-ieee1275.rmk: Likewise.
46277 2008-01-30 Tristan Gingold <gingold@free.fr>
46279 * kern/rescue.c: Silently accept empty lines.
46281 2008-01-29 Bean <bean123ch@gmail.com>
46283 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46284 (real_code_2): Code cleanup and change comment style.
46285 (move_memory): Avoid using 32-bit address mode.
46287 2008-01-29 Bean <bean123ch@gmail.com>
46289 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46290 (png_mod_SOURCES): New variable.
46291 (png_mod_CFLAGS): Likewise.
46292 (png_mod_LDFLAGS): Likewise.
46294 * video/readers/png.c: New file.
46296 2008-01-28 Robert Millan <rmh@aybabtu.com>
46298 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46299 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46300 `ifndef GRUB_MOD_GAP' hack.
46301 * util/elf/grub-mkimage.c (add_segments): Likewise.
46303 2008-01-27 Robert Millan <rmh@aybabtu.com>
46305 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46306 `GRUB_MOD_GAP' for platforms in which it's not defined.
46307 * util/elf/grub-mkimage.c (add_segments): Likewise.
46309 2008-01-27 Robert Millan <rmh@aybabtu.com>
46311 Get grub-emu to build again (including parallel builds).
46313 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46315 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46316 (normal/execute.c_DEPENDENCIES): ... this, ...
46317 (grub-emu_DEPENDENCIES): ... and this.
46319 * conf/i386-efi.rmk: Likewise.
46320 * conf/i386-linuxbios.rmk: Likewise.
46321 * conf/i386-ieee1275.rmk: Likewise.
46322 * conf/powerpc-ieee1275.rmk: Likewise.
46323 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46325 2008-01-27 Robert Millan <rmh@aybabtu.com>
46327 * NEWS: Add a few items.
46329 2008-01-27 Robert Millan <rmh@aybabtu.com>
46331 Fix parallel builds with grub-emu. Based on earlier commit for
46332 grub-probe and grub-setup.
46334 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46335 (util/grub-emu.c_DEPENDENCIES): ... this.
46336 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46337 (util/grub-emu.c_DEPENDENCIES): ... this.
46338 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46339 (util/grub-emu.c_DEPENDENCIES): ... this.
46340 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46341 (util/grub-emu.c_DEPENDENCIES): ... this.
46342 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46343 (util/grub-emu.c_DEPENDENCIES): ... this.
46345 2008-01-27 Pavel Roskin <proski@gnu.org>
46347 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46348 to create a gap between _end and the modules added to the image
46349 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46350 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46351 * util/elf/grub-mkimage.c (add_segments): Likewise.
46353 2008-01-26 Pavel Roskin <proski@gnu.org>
46355 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46356 just return an error.
46358 2008-01-26 Bean <bean123ch@gmail.com>
46360 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46361 (grub_reiserfs_get_item): Save offset of the next item.
46362 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46364 2008-01-25 Robert Millan <rmh@aybabtu.com>
46366 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46367 make all filesystem sources appear together (possibly fixing omissions
46369 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46370 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46371 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46372 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46374 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46376 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46377 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46378 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46379 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46381 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46382 (probe): Add a sanity check to make sure of our ability to read
46383 requested files when probing for filesystem type.
46385 * genmk.rb: Update copyright year (2007).
46387 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46388 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46389 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46390 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46391 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46392 : Remove function prototypes.
46394 2008-01-25 Robert Millan <rmh@aybabtu.com>
46396 Revert my previous commits (based on wrong assumption of how grub_errno
46399 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46400 * kern/file.c (grub_file_open): Likewise.
46402 2008-01-24 Pavel Roskin <proski@gnu.org>
46404 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46405 that hang if GRUB tries to setup colors.
46406 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46407 colors for firmwares that don't support it.
46408 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46409 Recognize Open Hack'Ware, set flags to work around its
46412 2008-01-24 Robert Millan <rmh@aybabtu.com>
46414 * kern/file.c (grub_file_open): Do not account previous failures of
46415 unrelated functions when grub_errno is checked for.
46416 Reported by Oleg Strikov.
46418 2008-01-24 Bean <bean123ch@gmail.com>
46420 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46421 (grub_ufs_sblock): New member volume name.
46422 (grub_ufs_find_file): Fix string copy bug.
46423 (grub_ufs_label): Implement this function properly.
46425 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46426 (grub_hfs_iterate_records): Use the correct file number for extents
46427 and catalog file. Fix problem in next index calculation.
46428 (grub_hfs_find_node): Replace recursive function call with loop.
46429 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46431 2008-01-23 Robert Millan <rmh@aybabtu.com>
46433 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46434 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46435 (grub_multiboot2_real_boot): New function prototype.
46437 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46438 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46440 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46441 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46443 2008-01-23 Robert Millan <rmh@aybabtu.com>
46445 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46446 #ifdef'ed out grub_printf().
46448 2008-01-23 Robert Millan <rmh@aybabtu.com>
46450 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46451 grub_dprintf calls, since they make "debug=all" mode unusable.
46452 (grub_console_checkkey): Likewise.
46454 2008-01-23 Robert Millan <rmh@aybabtu.com>
46456 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46457 `term/i386/pc/at_keyboard.c'.
46458 (pkglib_MODULES): Add `serial.mod'.
46459 (serial_mod_SOURCES): New variable.
46460 (serial_mod_CFLAGS): Likewise.
46461 (serial_mod_LDFLAGS): Likewise.
46463 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46464 `<grub/powerpc/ieee1275/console.h>'.
46465 (grub_keyboard_controller_init): New function prototype.
46466 (grub_console_checkkey): Likewise.
46467 (grub_console_getkey): Likewise.
46469 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46472 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46473 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46475 2008-01-23 Robert Millan <rmh@aybabtu.com>
46477 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46478 present, "(memdisk)/boot/grub" becomes the default prefix.
46480 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46481 a memdisk tarball with all the modules. Add --overlay=DIR option that
46482 allows users to overlay additional files into the image.
46484 2008-01-23 Robert Millan <rmh@aybabtu.com>
46486 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46487 and `machine/memory.h'.
46488 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46489 (_multiboot_mod_SOURCES): New variable.
46490 (_multiboot_mod_CFLAGS): Likewise.
46491 (_multiboot_mod_LDFLAGS): Likewise.
46492 (multiboot_mod_SOURCES): Likewise.
46493 (multiboot_mod_CFLAGS): Likewise.
46494 (multiboot_mod_LDFLAGS): Likewise.
46496 * include/grub/i386/ieee1275/loader.h: New file.
46498 * include/grub/i386/ieee1275/machine.h: Likewise.
46500 * include/grub/i386/ieee1275/memory.h: Likewise.
46502 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46503 variable declaration.
46504 (grub_os_area_size): Likewise.
46506 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46507 (grub_lower_mem, grub_upper_mem): New variables.
46508 (grub_stop_floppy): New function (just to make
46509 grub_multiboot2_real_boot() happy).
46511 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46512 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46513 (grub_stop): New function.
46514 Include `"../realmode.S"' and `"../loader.S"'.
46516 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46517 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46519 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46520 rely on grub_multiboot2_real_boot() for final boot.
46522 2008-01-22 Robert Millan <rmh@aybabtu.com>
46524 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46525 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46526 device that doesn't look like an SD card.
46527 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46528 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46529 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46530 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46533 2008-01-22 Robert Millan <rmh@aybabtu.com>
46535 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46536 avoid claiming over our own code.
46538 2008-01-22 Bean <bean123ch@gmail.com>
46540 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46541 (jpeg_mod_SOURCES): New variable.
46542 (jpeg_mod_CFLAGS): Likewise.
46543 (jpeg_mod_LDFLAGS): Likewise.
46545 * video/readers/jpeg.c : New file.
46547 2008-01-22 Bean <bean123ch@gmail.com>
46549 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46550 there are no more items.
46552 2008-01-21 Robert Millan <rmh@aybabtu.com>
46554 * kern/mm.c (grub_mm_init_region): Improve debug message.
46556 2008-01-21 Robert Millan <rmh@aybabtu.com>
46558 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46559 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46561 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46563 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46564 Indicates start of upper memory.
46565 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46566 (generate_image): Abort when image size is big enough to corrupt
46569 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46570 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46571 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46572 instead of hardcoding 0xA0000.
46573 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46574 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46575 instead of hardcoding 0xA0000.
46577 2008-01-21 Robert Millan <rmh@aybabtu.com>
46579 * disk/memdisk.c (memdisk_size): New variable.
46580 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46582 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46583 image to dynamic memory.
46584 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46585 `memdisk_size'. Free memdisk block.
46587 2008-01-21 Robert Millan <rmh@aybabtu.com>
46589 Fix detection of very small filesystems (like tar).
46591 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46592 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46593 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46594 a problem with this disk).
46596 2008-01-21 Robert Millan <rmh@aybabtu.com>
46598 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46599 on grub_biosdisk_rw_standard() error.
46601 2008-01-21 Robert Millan <rmh@aybabtu.com>
46603 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46605 * kern/elf.c: Likewise.
46606 * kern/ieee1275/ieee1275.c: Likewise.
46607 * kern/powerpc/ieee1275/openfw.c: Likewise.
46608 * term/ieee1275/ofconsole.c: Likewise.
46610 2008-01-21 Robert Millan <rmh@aybabtu.com>
46612 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46614 * include/grub/kernel.h (grub_arch_memdisk_addr)
46615 (grub_arch_memdisk_size): Moved from here ...
46617 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46618 (grub_arch_memdisk_size): ... to here.
46620 2008-01-21 Robert Millan <rmh@aybabtu.com>
46622 Mostly based on bugfix from Bean.
46624 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46625 attribute with hook() parameter.
46626 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46628 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46629 attribute with hook() parameter.
46630 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46633 2008-01-21 Robert Millan <rmh@aybabtu.com>
46635 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46636 (pkglib_MODULES): Add `memdisk.mod'.
46637 (memdisk_mod_SOURCES): New variable.
46638 (memdisk_mod_CFLAGS): Likewise.
46639 (memdisk_mod_LDFLAGS): Likewise.
46641 * disk/memdisk.c: New file.
46643 * include/grub/disk.h (grub_disk_dev_id): Add
46644 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46646 * include/grub/i386/pc/kernel.h
46647 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46648 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46649 (grub_kernel_image_size): New variable declaration.
46650 (grub_total_module_size): Likewise.
46651 (grub_memdisk_image_size): Likewise.
46653 * include/grub/i386/pc/memory.h
46654 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46656 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46657 (grub_arch_memdisk_addr): New variable declaration.
46658 (grub_arch_memdisk_size): Likewise.
46660 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46661 (grub_arch_memdisk_size): Likewise.
46663 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46664 (codestart): Replace hardcoded `0x100000' with
46665 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46667 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46668 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46669 not NULL, append the contents of the file it refers to, at the end of
46670 the compressed kernel image. Initialize `grub_memdisk_image_size'
46671 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46672 (options): Add "memdisk"|'m' option.
46673 (main): Parse --memdisk|-m option, and pass user-provided path as
46674 parameter to generate_image().
46676 2008-01-20 Robert Millan <rmh@aybabtu.com>
46678 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46679 grub_dprintf() calls from here ...
46680 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46682 2008-01-20 Robert Millan <rmh@aybabtu.com>
46684 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46686 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46688 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46689 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46690 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46691 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46693 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46694 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46696 2008-01-19 Robert Millan <rmh@aybabtu.com>
46698 Get rid of confusing function (superseded by
46699 `grub_ieee1275_get_integer_property')
46700 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46702 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46704 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46705 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46706 in native endianness from grub_ieee1275_get_integer_property().
46708 2008-01-19 Robert Millan <rmh@aybabtu.com>
46710 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46711 command after "shut-down", since implementations differ on which
46712 the command for halt is.
46714 2008-01-19 Robert Millan <rmh@aybabtu.com>
46716 * include/grub/i386/linuxbios/console.h: Add header protection.
46717 (grub_keyboard_controller_init): New function prototype.
46718 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46719 (KEYBOARD_COMMAND_READ): Likewise.
46720 (KEYBOARD_COMMAND_WRITE): Likewise.
46721 (KEYBOARD_SCANCODE_SET1): Likewise.
46722 (grub_keyboard_controller_write): New function.
46723 (grub_keyboard_controller_read): Likewise.
46724 (grub_keyboard_controller_init): Likewise.
46726 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46727 (grub_console_init): On coreboot/LinuxBIOS, call
46728 grub_keyboard_controller_init().
46730 2008-01-19 Robert Millan <rmh@aybabtu.com>
46732 PowerPC changes provided by Pavel Roskin.
46734 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46735 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46736 don't rely on cmain() doing it.
46737 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46738 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46740 2008-01-16 Robert Millan <rmh@aybabtu.com>
46742 * include/grub/i386/linuxbios/memory.h
46743 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46744 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46745 receive `table_header' as argument. Instead, probe for it in the
46746 known memory ranges where it can be present.
46747 (grub_available_iterate): Do not pass a fixed `table_header' address
46748 to grub_linuxbios_table_iterate().
46750 2008-01-15 Robert Millan <rmh@aybabtu.com>
46752 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46753 * conf/i386-ieee1275.rmk: New file.
46754 * include/grub/i386/ieee1275/console.h: Likewise.
46755 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46756 * include/grub/i386/ieee1275/kernel.h: Likewise.
46757 * include/grub/i386/ieee1275/time.h: Likewise.
46758 * kern/i386/ieee1275/init.c: Likewise.
46759 * kern/i386/ieee1275/startup.S: Likewise.
46761 2008-01-15 Robert Millan <rmh@aybabtu.com>
46763 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46764 when pointers are 32-bit (but still do set it to one when they are
46767 2008-01-15 Robert Millan <rmh@aybabtu.com>
46769 * include/grub/ieee1275/ieee1275.h
46770 (grub_ieee1275_get_integer_property): New function prototype.
46772 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46773 (grub_ieee1275_get_integer_property): New function. Wraps around
46774 grub_ieee1275_get_property() to handle endianness.
46776 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46777 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46779 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46780 (grub_map): Likewise.
46781 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46783 2008-01-15 Bean <bean123ch@gmail.com>
46785 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46786 (grub_script_execute_cmdline): Reset grub_errno.
46788 * normal/main.c (read_config_file): Reset grub_errno.
46790 * normal/parse.y (script_init): New.
46791 (script): Move function and menuentry here.
46793 (command): Add delimiter at the end of command.
46794 (commands): Adjust to match the new command.
46795 (commandblock): Remove grub_script_lexer_record_start.
46796 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46797 (if): Use the new commands.
46799 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46801 2008-01-15 Robert Millan <rmh@aybabtu.com>
46803 * normal/menu.c (run_menu): Move timeout message from here ...
46804 (print_timeout): ... to here.
46805 (run_menu): Use print_timeout() once during initial draw to print
46806 the whole message, and again in every clock tick to update only
46807 the number of seconds.
46809 2008-01-15 Robert Millan <rmh@aybabtu.com>
46811 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46812 actual size of `available' from grub_ieee1275_get_property(), and
46813 restrict parsing to that bound.
46815 2008-01-15 Christian Franke <franke@computer.org>
46817 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46818 (argp_program_version): Remove variable.
46819 (argp_program_bug_address): Likewise.
46820 (options): Convert from struct argp_option to struct option.
46821 (struct arguments): Remove.
46822 (parse_opt): Remove.
46823 (usage): New function.
46824 (main): Replace struct args members by simple variables.
46825 Replace argp_parse() by getopt_long().
46826 Add switch to evaluate options.
46827 Add missing "(...)" around root_dev in prefix string.
46829 2008-01-14 Robert Millan <rmh@aybabtu.com>
46831 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46832 for grub_ieee1275_exit(), in order to improve portability.
46834 2008-01-14 Robert Millan <rmh@aybabtu.com>
46836 * util/grub.d/10_linux.in (prefix): Define.
46837 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46839 2008-01-13 Pavel Roskin <proski@gnu.org>
46841 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46842 grub_errno if no errors have been detected.
46844 2008-01-12 Robert Millan <rmh@aybabtu.com>
46846 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46847 (grub_util_get_dev_abstraction): New function prototype.
46849 * util/getroot.c: Include `<grub/util/getroot.h>'
46850 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46851 (grub_util_get_dev_abstraction): ... here (new function).
46853 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46854 `PRINT_ABSTRACTION'.
46855 (probe): Probe for abstraction type when requested.
46856 (main): Understand `--target=abstraction'.
46858 * util/i386/efi/grub-install.in: Add abstraction module to core
46859 image when it is found to be necessary.
46860 * util/i386/pc/grub-install.in: Likewise.
46861 * util/powerpc/ieee1275/grub-install.in: Likewise.
46863 * util/update-grub_lib.in (font_path): Return system path without
46864 converting to GRUB path.
46865 * util/update-grub.in: Convert system path returned by font_path()
46866 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46867 abstraction module is needed for loading fonts (if any). Export
46868 that as `GRUB_PRELOAD_MODULES'.
46869 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46872 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46874 Remove some unused code from reiserfs.
46876 * fs/reiserfs.c (struct grub_reiserfs_key)
46877 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46878 (struct grub_reiserfs_node_body): Removed.
46879 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46881 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46883 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46885 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46887 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46889 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46891 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46892 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46893 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46895 2008-01-10 Robert Millan <rmh@aybabtu.com>
46897 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46898 Determines if a file is garbage left by packaging systems, etc.
46899 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46900 for processing /etc/grub.d scripts.
46901 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46902 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46903 as a condition for processing Linux images.
46905 2008-01-10 Pavel Roskin <proski@gnu.org>
46907 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46908 to compile reiserfs.c on PowerPC.
46910 2008-01-10 Robert Millan <rmh@aybabtu.com>
46912 * kern/device.c (grub_device_iterate): Do not abort device iteration
46913 when one of the devices cannot be opened.
46914 * kern/disk.c (grub_disk_open): Do not account previous failures of
46915 unrelated functions when grub_errno is checked for.
46917 2008-01-08 Robert Millan <rmh@aybabtu.com>
46919 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46920 `! grub_linux_is_bzimage', change order of address comparison to make
46921 it more intuitive, and improve "too big zImage" error message.
46923 2008-01-08 Robert Millan <rmh@aybabtu.com>
46925 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46926 `$(update-grub_DATA)'.
46927 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46930 2008-01-07 Robert Millan <rmh@aybabtu.com>
46932 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46933 which instruction is modified by grub-setup during installation
46934 (since it wasn't obvious by only looking at this file).
46936 2008-01-07 Robert Millan <rmh@aybabtu.com>
46938 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46939 listing actual TODO items.
46941 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46943 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46945 (grub_reiserfs_get_key_offset): Likewise.
46946 (grub_reiserfs_set_key_offset): Likewise.
46947 (grub_reiserfs_set_key_type): Likewise.
46948 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46950 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46951 better to remove the bitfield version completely.
46953 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46955 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46956 allocated from the heap, due to the fshelp implementation.
46957 (grub_reiserfs_dir): Free NODE, due to the same reason.
46959 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46961 Mostly from Vincent Pelletier:
46963 * fs/reiserfs.c: New file.
46965 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46966 (reiserfs_mod_SOURCES): New variable.
46967 (reiserfs_mod_CFLAGS): Likewise.
46968 (reiserfs_mod_LDFLAGS): Likewise.
46970 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46971 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46972 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46975 2008-01-06 Robert Millan <rmh@aybabtu.com>
46977 * normal/color.c: Remove `<grub/env.h>'.
46979 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46981 * include/grub/normal.h: Include <grub/env.h>.
46983 2008-01-05 Robert Millan <rmh@aybabtu.com>
46985 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46986 usage example with `(hd0,1)'.
46987 Reported by Samuel Thibault.
46989 2008-01-05 Robert Millan <rmh@aybabtu.com>
46991 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46992 (grub_linux_boot_zimage): Rename to ...
46993 (grub_linux_boot): ... this.
46994 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46995 (grub_linux_boot_zimage): Conditionalize zImage copy.
46997 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46998 (grub_linux_boot_bzimage): Remove prototype.
46999 (grub_linux_boot_zimage): Rename to ...
47000 (grub_linux_boot): ... this.
47002 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
47003 (grub_linux_boot): Remove function.
47005 2008-01-05 Robert Millan <rmh@aybabtu.com>
47007 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
47008 (grub_env_write_color_highlight): Likewise.
47009 (grub_wait_after_message): Likewise.
47011 * normal/color.c: New file.
47013 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
47014 (normal_mod_DEPENDENCIES): Likewise.
47016 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
47017 (normal_mod_DEPENDENCIES): Likewise.
47019 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
47020 (normal_mod_DEPENDENCIES): Likewise.
47022 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
47023 (normal_mod_DEPENDENCIES): Likewise.
47025 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
47026 for waiting after a message is printed.
47027 * normal/main.c (read_config_file): Likewise.
47028 (grub_normal_init): Register grub_env_write_color_normal() and
47029 grub_env_write_color_highlight() hooks. Mark `color_normal' and
47030 `color_highlight' variables as global.
47032 * normal/menu.c (grub_wait_after_message): New function.
47033 (grub_color_menu_normal): New variable. Replaces ...
47034 (GRUB_COLOR_MENU_NORMAL): ... this macro.
47035 (grub_color_menu_highlight): New variable. Replaces ...
47036 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
47037 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
47038 `GRUB_TERM_COLOR_STANDARD'.
47039 (print_message): Use `grub_setcolorstate' to reload colors. Rename
47040 `normal_code' and `highlight_code' to `old_color_normal' and
47041 `old_color_highlight', respectively.
47042 (grub_menu_init_page): Update colors when drawing the menu, based on
47043 `menu_color_normal' and `menu_color_highlight' variables.
47044 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
47045 a message is printed.
47047 2008-01-05 Robert Millan <rmh@aybabtu.com>
47049 * kern/env.c (grub_env_context_open): Propagate hooks for global
47050 variables to new context.
47052 * kern/main.c (grub_set_root_dev): Export `root' variable.
47054 2008-01-05 Robert Millan <rmh@aybabtu.com>
47056 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
47057 discs unconditionally, since udev and others have options to provide
47060 2008-01-05 Robert Millan <rmh@aybabtu.com>
47062 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
47064 2008-01-04 Christian Franke <franke@computer.org>
47066 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
47069 2008-01-03 Pavel Roskin <proski@gnu.org>
47071 * kern/i386/linuxbios/init.c: Put "void" to all function
47072 declarations with no arguments.
47073 * kern/powerpc/ieee1275/init.c: Likewise.
47074 * term/i386/pc/at_keyboard.c: Likewise.
47075 * term/i386/pc/vga_text.c: Likewise.
47076 * util/grub-mkdevicemap.c: Likewise.
47078 2008-01-02 Robert Millan <rmh@aybabtu.com>
47080 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
47081 message when loaded image is out of bounds.
47082 (grub_multiboot_load_elf64): Likewise.
47084 2008-01-02 Pavel Roskin <proski@gnu.org>
47086 * util/grub.d/10_linux.in: Try version without ".old" when
47087 looking for initrd. It's better to use initrd from the newer
47088 kernel of the same version than no initrd at all.
47090 2008-01-01 Robert Millan <rmh@aybabtu.com>
47092 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
47094 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
47096 * include/grub/video.h: Added grub_video_unmap_color and
47097 grub_video_get_active_render_target.
47098 (grub_video_adapter): Added unmap_color and get_active_render_target.
47100 * video/video.c: Added grub_video_unmap_color and
47101 grub_video_get_active_render_target.
47102 (grub_video_get_info): Changed method to accept NULL pointer as an
47103 argument to allow detection of active video adapter.
47105 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
47106 grub_video_vbe_unmap_color_int.
47107 Added grub_video_vbe_unmap_color and
47108 grub_video_vbe_get_active_render_target.
47109 (grub_video_vbe_adapter): Added unmap_color and
47110 get_active_render_target.
47112 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
47113 with grub_video_vbe_unmap_color_int.
47115 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
47116 (DEFAULT_NORMAL_COLOR): Likewise.
47117 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
47118 (DEFAULT_FG_COLOR): Removed.
47119 (DEFAULT_BG_COLOR): Likewise.
47120 (DEFAULT_CURSOR_COLOR): Changed value.
47121 (grub_virtual_screen): Added standard_color_setting,
47122 normal_color_setting, highlight_color_setting and term_color.
47123 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
47124 (bitmap_width): Added.
47125 (bitmap_height): Likewise.
47126 (bitmap): Likewise.
47127 (set_term_color): Likewise.
47128 (grub_virtual_screen_setup): Changed to use new terminal coloring
47130 (grub_gfxterm_init): Added init for bitmap.
47131 (grub_gfxterm_fini): Added destroy for bitmap.
47132 (redraw_screen_rect): Updated to use background bitmap and new
47134 (scroll_up): Added optimization for case when there is no bitmap.
47135 (grub_gfxterm_cls): Fixed to use correct background color.
47136 (grub_virtual_screen_setcolorstate): Changed to use new terminal
47138 (grub_virtual_screen_setcolor): Likewise.
47139 (grub_virtual_screen_getcolor): Added.
47140 (grub_gfxterm_background_image_cmd): Likewise.
47141 (grub_video_term): Added setcolor and getcolor.
47142 (MOD_INIT): Added registration of background_image command.
47143 (MOD_TERM): Added unregistration for background_image command.
47145 2007-12-30 Pavel Roskin <proski@gnu.org>
47147 * loader/multiboot_loader.c: Fix multiboot command
47148 unregistration. Fix all typos in the word "multiboot".
47150 2007-12-29 Pavel Roskin <proski@gnu.org>
47152 * util/grub.d/10_linux.in: Refactor search for initrd. Add
47153 support for initrd names used in Fedora.
47155 2007-12-26 Bean <bean123ch@gmail.com>
47157 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
47158 (cpio_mod_SOURCES): New variable.
47159 (cpio_mod_CFLAGS): Likewise.
47160 (cpio_mod_LDFLAGS): Likewise.
47162 * fs/cpio.c: New file.
47164 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
47166 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
47168 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
47170 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47172 2007-12-25 Robert Millan <rmh@aybabtu.com>
47174 * include/grub/term.h (struct grub_term): Add `getcolor' function.
47175 (grub_getcolor): New function.
47177 * kern/term.c (grub_getcolor): New function.
47178 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
47179 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
47180 (print_entry): Set normal and highlight colors to
47181 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47182 respectively, before printing and restore them to old
47184 (grub_menu_init_page): Likewise. Fill an additional colored space
47185 that would otherwise be left blank.
47187 * term/efi/console.c (grub_console_getcolor): New function.
47188 (struct grub_console_term.getcolor): New variable.
47189 * term/i386/pc/console.c (grub_console_getcolor): New function.
47190 (struct grub_console_term.getcolor): New variable.
47191 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47192 (struct grub_console_term.getcolor): New variable.
47194 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47195 (struct grub_console_term.setcolor): Remove variable.
47196 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47197 (struct grub_console_term.setcolor): Remove variable.
47198 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47199 (struct grub_console_term.setcolor): Remove variable.
47200 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47201 (struct grub_console_term.setcolor): Remove variable.
47203 2007-12-25 Robert Millan <rmh@aybabtu.com>
47205 * configure.ac: Search for possible unifont.hex locations, and
47206 define UNIFONT_HEX if found.
47208 * Makefile.in (UNIFONT_HEX): Define variable.
47209 (DATA): Rename to ...
47210 (PKGLIB): ... this. Update all users.
47211 (PKGDATA): New variable.
47212 (pkgdata_IMAGES): Rename to ...
47213 (pkglib_IMAGES): ... this. Update all users.
47214 (pkgdata_MODULES): Rename to ...
47215 (pkglib_MODULES): ... this. Update all users.
47216 (pkgdata_PROGRAMS): Rename to ...
47217 (pkglib_PROGRAMS): ... this. Update all users.
47218 (pkgdata_DATA): Rename to ...
47219 (pkglib_DATA): ... this. Update all users.
47220 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47221 (unicode.pff, ascii.pff): New rules.
47222 (all-local): Add `$(PKGDATA)' dependency.
47223 (install-local): Process `$(PKGDATA)'.
47225 * util/update-grub_lib.in (font_path): Search for *.pff files in
47226 a few more locations, including `${pkgdata}'.
47228 2007-12-23 Robert Millan <rmh@aybabtu.com>
47230 Patch from Bean <bean123ch@gmail.com>:
47231 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47234 2007-12-21 Bean <bean123ch@gmail.com>
47236 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47237 (ntfscomp_mod_SOURCES): New variable.
47238 (ntfscomp_mod_CFLAGS): Likewise.
47239 (ntfscomp_mod_LDFLAGS): Likewise.
47241 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47242 (grub_probe_SOURCES): Likewise.
47243 (grub_emu_SOURCES): Likewise.
47245 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47246 (grub_emu_SOURCES): Likewise.
47248 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47249 (grub_emu_SOURCES): Likewise.
47251 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47252 (grub_emu_SOURCES): Likewise.
47254 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47255 (read_run_list): Renamed to grub_ntfs_read_run_list.
47256 (decomp_nextvcn): Moved to ntfscomp.c.
47257 (decomp_getch): Likewise.
47258 (decomp_get16): Likewise.
47259 (decomp_block): Likewise.
47260 (read_block): Likewise.
47261 (read_data): Partially moved to ntfscomp.c.
47262 (fixup): Change unsigned to grub_uint16_t.
47263 (read_mft): Change unsigned long to grub_uint32_t.
47264 (read_attr): Likewise.
47265 (read_data): Likewise.
47266 (read_run_data): Likewise.
47267 (read_run_list): Likewise.
47268 (read_mft): Likewise.
47270 * fs/ntfscomp.c: New file.
47272 * include/grub/ntfs.h: New file.
47274 2007-12-16 Robert Millan <rmh@aybabtu.com>
47276 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47277 IDE disk check, since Linux is known to support 20 IDE disks.
47278 Reported by Colin Watson.
47280 2007-12-15 Bean <bean123ch@gmail.com>
47282 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47283 (lnxboot_img_SOURCES): New variable.
47284 (lnxboot_img_ASFLAGS): Likewise.
47285 (lnxboot_img_LDFLAGS): Likewise.
47287 * boot/i386/pc/lnxboot.S: New file.
47289 2007-11-24 Pavel Roskin <proski@gnu.org>
47291 * configure.ac: Test if '--build-id=none' is supported by the
47292 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47293 objcopy to generate incorrect binary files (binutils
47294 2.17.50.0.18-1 as shipped by Fedora 8).
47295 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47296 linking, so that build ID doesn't break the test.
47298 2007-11-24 Pavel Roskin <proski@gnu.org>
47300 * include/grub/i386/time.h: use "void" in the argument list
47301 of grub_cpu_idle().
47302 * include/grub/powerpc/time.h: Likewise.
47303 * include/grub/sparc64/time.h: Likewise.
47305 2007-11-18 Christian Franke <franke@computer.org>
47307 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47308 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47309 This fixes the problem that function keys did not work in grub-emu.
47311 2007-11-18 Christian Franke <franke@computer.org>
47313 * disk/host.c (grub_host_open): Remove attribute unused from
47314 name parameter. Add check for "host". This fixes the problem
47315 that grub-emu does not find partitions.
47317 2007-11-18 Christian Franke <franke@computer.org>
47319 * util/hostfs.c (is_dir): New function.
47320 (grub_hostfs_dir): Handle missing dirent.d_type case.
47321 (grub_hostfs_read): Add missing fseek().
47322 (grub_hostfs_label): Clear label pointer. This fixes a crash
47323 of grub-emu on "ls (host)".
47325 2007-11-18 Christian Franke <franke@computer.org>
47327 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47328 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47329 to 64 bit boundary by default.
47331 2007-11-18 Bean <bean123ch@gmail.com>
47333 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47334 (hexdump_mod_SOURCES): New variable.
47335 (hexdump_mod_CFLAGS): Likewise.
47336 (hexdump_mod_LDFLAGS): Likewise.
47338 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47340 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47342 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47344 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47346 * include/grub/hexdump.h: New file.
47348 * commands/hexdump.c: New file.
47350 2007-11-10 Robert Millan <rmh@aybabtu.com>
47352 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47353 in grub_outb() calls.
47354 (beep_on): Likewise.
47356 2007-11-10 Christian Franke <franke@computer.org>
47358 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47359 (grub_menu_run): Likewise.
47361 2007-11-10 Robert Millan <rmh@aybabtu.com>
47363 * include/grub/i386/efi/machine.h: New file.
47364 * include/grub/i386/linuxbios/machine.h: Likewise.
47365 * include/grub/i386/pc/machine.h: Likewise.
47366 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47367 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47369 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47370 (serial_hw_io_addr): New variable.
47371 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47372 instead of `(unsigned short *) 0x400'.
47374 2007-11-10 Bean <bean123ch@gmail.com>
47376 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47378 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47380 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47381 (vga_mod_SOURCES): Added.
47382 (vga_mod_CFLAGS): Likewise.
47383 (vga_mod_LDFLAGS): Likewise.
47385 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47387 (set_map_mask): Likewise.
47388 (set_read_map): Likewise.
47389 (set_read_address): Likewise.
47390 (vga_font): Removed variable.
47391 (get_vga_glyph): Removed function.
47392 (invalidate_char): Likewise.
47393 (write_char): Changed to use grub_font_get_glyph() for font
47395 (grub_vga_putchar): Likewise.
47396 (grub_vga_getcharwidth): Likewise.
47398 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47400 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47402 (pxeboot_img_LDFLAGS): Likewise.
47403 (diskboot_img_LDFLAGS): Likewise.
47404 (kernel_img_LDFLAGS): Likewise.
47406 2007-11-06 Robert Millan <rmh@aybabtu.com>
47408 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47409 in grub_outb() calls.
47410 (serial_hw_init): Likewise.
47412 2007-11-05 Robert Millan <rmh@aybabtu.com>
47414 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47415 spaces. Skip non-regular files.
47417 2007-11-05 Robert Millan <rmh@aybabtu.com>
47419 * kern/disk.c (grub_disk_firmware_fini)
47420 (grub_disk_firmware_is_tainted): New variables.
47422 * include/grub/disk.h (grub_disk_firmware_fini)
47423 (grub_disk_firmware_is_tainted): Likewise.
47425 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47426 (grub_disk_biosdisk_fini): ... to here.
47427 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47428 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47429 is set. Register grub_disk_biosdisk_fini() in
47430 `grub_disk_firmware_fini'.
47432 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47433 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47434 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47435 to finish existing firmware disk interface.
47437 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47438 (ata_mod_SOURCES): New variable.
47439 (ata_mod_CFLAGS): Likewise.
47440 (ata_mod_LDFLAGS): Likewise.
47442 2007-11-05 Robert Millan <rmh@aybabtu.com>
47444 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47445 (grub_ata_wait): Reimplement using grub_millisleep().
47447 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47448 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47450 2007-11-03 Marco Gerards <marco@gnu.org>
47452 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47453 (CRTC_ADDR_PORT): New macro.
47454 (CRTC_DATA_PORT): Likewise.
47455 (CRTC_CURSOR): Likewise.
47456 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47457 (CRTC_CURSOR_ADDR_LOW): Likewise.
47458 (update_cursor): New function.
47459 (grub_console_real_putchar): Call `update_cursor'.
47460 (grub_console_gotoxy): Likewise.
47461 (grub_console_cls): Set the default color when clearing the
47463 (grub_console_setcursor): Implemented.
47465 2007-11-03 Marco Gerards <marco@gnu.org>
47467 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47469 (grub_ata_pio_write): Likewise.
47471 (grub_atapi_identify): Wait after issuing an ATA command.
47472 (grub_atapi_packet): Likewise.
47473 (grub_ata_identify): Likewise.
47474 (grub_ata_readwrite): Likewise.
47476 2007-11-03 Marco Gerards <marco@gnu.org>
47478 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47479 (grub_ata_pio_write): Likewise.
47480 (grub_ata_readwrite): Use `grub_error', instead of
47481 returning `grub_errno'.
47483 2007-11-03 Marco Gerards <marco@gnu.org>
47485 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47486 grub_ata_pio_write once for every single sector, instead of for
47489 2007-10-31 Robert Millan <rmh@aybabtu.com>
47491 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47493 * conf/i386-linuxbios.rmk: New file.
47495 * kern/i386/pc/hardware.c: Likewise.
47496 * term/i386/pc/at_keyboard.c: Likewise.
47497 * term/i386/pc/vga_text.c: Likewise.
47499 * include/grub/i386/linuxbios/boot.h: Likewise.
47500 * include/grub/i386/linuxbios/console.h: Likewise.
47501 * include/grub/i386/linuxbios/init.h: Likewise.
47502 * include/grub/i386/linuxbios/kernel.h: Likewise.
47503 * include/grub/i386/linuxbios/loader.h: Likewise.
47504 * include/grub/i386/linuxbios/memory.h: Likewise.
47505 * include/grub/i386/linuxbios/serial.h: Likewise.
47506 * include/grub/i386/linuxbios/time.h: Likewise.
47508 * kern/i386/linuxbios/init.c: Likewise.
47509 * kern/i386/linuxbios/startup.S: Likewise.
47510 * kern/i386/linuxbios/table.c: Likewise.
47512 2007-10-31 Marco Gerards <marco@gnu.org>
47514 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47515 (ata_mod_SOURCES): New variable.
47516 (ata_mod_CFLAGS): Likewise.
47517 (ata_mod_LDFLAGS): Likewise.
47519 * disk/ata.c: New file.
47521 * include/grub/disk.h (grub_disk_dev_id): Add
47522 `GRUB_DISK_DEV_ATA_ID'.
47524 2007-10-31 Robert Millan <rmh@aybabtu.com>
47526 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47527 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47529 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47530 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47532 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47535 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47537 2007-10-27 Robert Millan <rmh@aybabtu.com>
47539 * include/grub/types.h (ULONG_MAX): Define macro.
47541 2007-10-22 Robert Millan <rmh@aybabtu.com>
47543 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47545 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47547 2007-10-22 Robert Millan <rmh@aybabtu.com>
47549 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47550 (pkgdata_MODULES): Add `biosdisk.mod'.
47551 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47554 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47555 (grub_biosdisk_init): Replace with ...
47556 (GRUB_MOD_INIT(biosdisk)): ... this.
47557 (grub_biosdisk_fini): Replace with ...
47558 (GRUB_MOD_FINI(biosdisk)): ... this.
47560 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47561 (grub_machine_init): Remove call to grub_biosdisk_init().
47562 (grub_machine_fini): Remove call to grub_machine_fini().
47564 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47566 2007-10-22 Robert Millan <rmh@aybabtu.com>
47568 * include/grub/time.h: New file.
47569 * include/grub/i386/time.h: Likewise.
47570 * include/grub/powerpc/time.h: Likewise.
47571 * include/grub/sparc64/time.h: Likewise.
47573 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47575 (KERNEL_MACHINE_TIME_HEADER): ... this.
47576 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47578 (KERNEL_MACHINE_TIME_HEADER): ... this.
47579 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47581 (KERNEL_MACHINE_TIME_HEADER): ... this.
47583 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47584 (grub_millisleep): New function.
47585 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47586 (grub_millisleep): New function.
47587 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47588 Remove `grub/machine/time.h' include.
47589 (grub_millisleep): New function.
47590 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47591 Remove `grub/machine/time.h' include.
47592 (grub_millisleep): New function.
47594 * include/grub/misc.h (grub_div_roundup): New function.
47596 * kern/misc.c: Include `<grub/time.h>'.
47597 (grub_millisleep_generic): New function.
47599 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47601 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47603 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47604 `machine/time.h'. Add `time.h'.
47605 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47607 2007-10-21 Robert Millan <rmh@aybabtu.com>
47609 * include/grub/misc.h (grub_max): New function.
47611 2007-10-21 Robert Millan <rmh@aybabtu.com>
47613 * util/misc.c (grub_util_info): Call fflush() before returning.
47615 2007-10-20 Robert Millan <rmh@aybabtu.com>
47617 * genmk.rb (Image): Copy `extra_flags' from here ...
47618 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47620 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47621 to `argc' and `args' arguments.
47623 2007-10-17 Robert Millan <rmh@aybabtu.com>
47625 * kern/i386/loader.S: New file.
47627 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47628 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47629 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47630 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47631 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47632 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47633 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47634 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47635 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47636 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47637 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47638 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47639 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47640 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47642 * kern/i386/realmode.S: New file.
47644 * kern/i386/pc/startup.S (protstack): Moved from here ...
47645 * kern/i386/realmode.S (protstack)... to here.
47646 * kern/i386/pc/startup.S (gdt): Moved from here ...
47647 * kern/i386/realmode.S (gdt)... to here.
47648 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47649 * kern/i386/realmode.S (prot_to_real)... to here.
47651 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47652 `kern/i386/realmode.S'.
47654 2007-10-17 Robert Millan <rmh@aybabtu.com>
47656 * include/grub/i386/loader.h: New file.
47658 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47659 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47660 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47661 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47662 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47663 * include/grub/i386/loader.h (grub_linux_prot_size)
47664 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47665 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47666 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47667 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47669 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47671 2007-10-15 Robert Millan <rmh@aybabtu.com>
47673 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47674 filesystem when dev->disk is unset.
47675 Do probe for filesystem even when dev->disk->has_partitions is set.
47676 In case a filesystem is found, always report it.
47677 In case it isn't, if dev->disk->has_partitions is set, report that
47678 a partition table was found instead of reporting that no filesystem
47679 could be identified.
47681 2007-10-12 Robert Millan <rmh@aybabtu.com>
47683 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47684 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47686 * include/grub/types.h (grub_host_to_target16): New macro.
47687 (grub_host_to_target32): Likewise.
47688 (grub_host_to_target64): Likewise.
47689 (grub_target_to_host16): Likewise.
47690 (grub_target_to_host32): Likewise.
47691 (grub_target_to_host64): Likewise.
47693 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47694 Renamed from to ...
47695 (GRUB_MOD_ALIGN): ...this. Update all users.
47697 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47698 grub_host_to_target32.
47699 Replace grub_be_to_cpu32 with grub_target_to_host32.
47700 (load_modules): Likewise.
47701 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47702 Replace grub_be_to_cpu32 with grub_target_to_host32.
47703 Replace grub_cpu_to_be16 with grub_host_to_target16.
47704 Replace grub_cpu_to_be32 grub_host_to_target32.
47706 2007-10-12 Robert Millan <rmh@aybabtu.com>
47708 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47709 * util/elf/grub-mkimage.c: ... here.
47711 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47712 `util/powerpc/ieee1275/grub-mkimage.c'.
47714 2007-10-07 Robert Millan <rmh@aybabtu.com>
47716 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47717 and make it easier to figure out.
47718 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47719 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47720 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47721 leave us with less than HEAP_MIN_SIZE total heap.
47722 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47724 2007-10-03 Robert Millan <rmh@aybabtu.com>
47726 * include/grub/i386/io.h: New file.
47727 * commands/i386/pc/play.c (inb): Removed.
47729 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47731 * term/i386/pc/serial.c (inb): Removed.
47733 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47735 * term/i386/pc/vga.c (inb): Removed.
47737 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47740 2007-10-02 Robert Millan <rmh@aybabtu.com>
47742 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47743 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47744 Reported by Marcin Kurek.
47746 2007-09-07 Robert Millan <rmh@aybabtu.com>
47748 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47749 SmartFirmware version updates (as released by Sven Luther), and avoid
47750 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47751 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47754 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47756 From Hitoshi Ozeki:
47757 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47758 when merging two regions.
47760 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47762 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47763 * normal/completion.c (grub_normal_do_completion): Likewise.
47764 Reported by Hitoshi Ozeki.
47766 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47768 Do not use devices at boot in chainloading.
47770 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47771 (boot_part_addr): Likewise.
47772 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47773 with BOOT_DRIVE and BOOT_PART_ADDR.
47774 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47775 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47777 2007-08-29 Robert Millan <rmh@aybabtu.com>
47779 Patch from Simon Peter <dn.tlp@gmx.net>:
47780 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47781 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47782 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47783 util/i386/pc/grub-setup.c_DEPENDENCIES.
47784 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47785 util/grub-probe.c_DEPENDENCIES.
47786 * conf/powerpc-ieee1275.rmk: Likewise.
47788 2007-08-28 Robert Millan <rmh@aybabtu.com>
47790 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47791 to tell grub-mkdevicemap how to name devices.
47792 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47795 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47796 util/i386/get_disk_name.c.
47797 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47798 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47799 util/ieee1275/get_disk_name.c.
47801 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47803 * DISTLIST: Add util/i386/get_disk_name.c and
47804 util/ieee1275/get_disk_name.c.
47806 * util/grub-mkdevicemap.c: Replace device naming logic with
47807 grub_util_get_disk_name() calls.
47809 2007-08-20 Robert Millan <rmh@aybabtu.com>
47811 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47812 (so that it works for both plural and singular quantities).
47814 2007-08-05 Robert Millan <rmh@aybabtu.com>
47816 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47817 so that [xz] isn't taken into account when determining order.
47819 2007-08-02 Marco Gerards <marco@gnu.org>
47821 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47822 `include/multiboot2.h', `include/grub/elfload.h',
47823 `include/multiboot.h', `include/grub/multiboot.h',
47824 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47825 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47826 `kern/elf.c', `loader/multiboot_loader.c',
47827 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47828 `loader/i386/pc/multiboot2.c',
47829 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47830 `util/i386/pc/grub-mkrescue.in'. Remove
47831 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47832 `include/grub/i386/pc/util/biosdisk.h' and
47833 `include/grub/powerpc/ieee1275/multiboot.h'.
47835 2007-08-02 Bean <bean123ch@gmail.com>
47837 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47838 (ntfs_mod_SOURCES): New variable.
47839 (ntfs_mod_CFLAGS): Likewise.
47840 (ntfs_mod_LDFLAGS): Likewise.
47842 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47843 (grub_probe_SOURCES): Likewise.
47844 (grub_emu_SOURCES): Likewise.
47846 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47847 (grub_emu_SOURCES): Likewise.
47849 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47850 (grub_emu_SOURCES): Likewise.
47852 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47854 * fs/ntfs.c: New file.
47856 2007-08-02 Bean <bean123ch@gmail.com>
47858 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47860 * file.h (grub_file): Likewise.
47862 * fshelp.h (grub_fshelp_read_file): Likewise.
47864 * util/i386/pc/grub-setup.c (setup): Likewise.
47865 (save_first_sector): Likewise.
47866 (save_blocklists): Likewise.
47868 * fs/affs.c (grub_affs_read_file): Likewise.
47870 * fs/ext2.c (grub_ext2_read_file): Likewise.
47872 * fs/fat.c (grub_fat_read_data): Likewise.
47874 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47876 * fs/hfs.c (grub_hfs_read_file): Likewise.
47878 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47880 * fs/jfs.c (grub_jfs_read_file): Likewise.
47882 * fs/minix.c (grub_minix_read_file): Likewise.
47884 * fs/sfs.c (grub_sfs_read_file): Likewise.
47886 * fs/ufs.c (grub_ufs_read_file): Likewise.
47888 * fs/xfs.c (grub_xfs_read_file): Likewise.
47890 * command/blocklist.c (read_blocklist): Likewise.
47891 (print_blocklist): Likewise.
47893 2007-08-02 Marco Gerards <marco@gnu.org>
47895 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47898 * disk/host.c: New file.
47900 * util/hostfs.c: Likewise.
47902 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47903 return `GRUB_ERR_BAD_FS'.
47904 * fs/sfs.c (grub_sfs_mount): Likewise.
47905 * fs/xfs.c (grub_xfs_mount): Likewise.
47907 * include/grub/disk.h (enum grub_disk_dev_id): Add
47908 `GRUB_DISK_DEVICE_HOST_ID'.
47910 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47912 2007-07-24 Jerone Young <jerone@gmail.com>
47914 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47915 modules for compilation.
47916 * conf/powerpc-ieee1275.rmk: Likewise.
47918 * include/multiboot.h: Move multiboot definitions to one file. Rename
47919 many definitions to not get grub specific.
47920 * include/multiboot2.h: Create header with multiboot 2 definitions.
47921 * include/grub/multiboot.h: Header for grub specific function
47922 prototypes and definitions.
47923 * include/grub/multiboot2.h: Likewise.
47924 * include/grub/multiboot_loader.h: Likewise.
47925 * include/grub/i386/pc/multiboot.h: Removed.
47926 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47928 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47929 and 2 to allow for one multiboot and module commands.
47930 * loader/multiboot2.c: Add multiboot2 functionality.
47931 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47932 and definition names.
47933 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47935 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47936 ieee1275 specific multiboot2 code.
47938 * kern/i386/pc/startup.S: Change headers and definition names for
47939 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47941 2007-07-22 Robert Millan <rmh@aybabtu.com>
47943 * geninitheader.sh: Process file specified in first parameter rather
47944 than hardcoding grub_modules_init.lst.
47945 * geninit.sh: Likewise. Also, construct header name dynamically rather
47946 than hardcoding grub_modules_init.h.
47948 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47949 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47950 grub_probe_init.[ch] and grub_setup_init.[ch].
47952 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47953 grub_modules_init.h with grub_emu_init.h.
47954 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47955 grub_probe_init.[ch] files.
47956 * conf/i386-efi.rmk: Likewise.
47957 * conf/i386-pc.rmk: Likewise.
47958 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47959 grub_setup_init.[ch] files.
47961 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47962 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47963 to initialize modules rather than a list of hardcoded functions.
47964 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47965 grub_init_all() to initialize modules rather than a list of hardcoded
47968 2007-07-22 Robert Millan <rmh@aybabtu.com>
47970 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47971 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47973 2007-07-22 Robert Millan <rmh@aybabtu.com>
47975 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47976 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47977 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47978 flag when running on SmartFirmware.
47979 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47980 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47983 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47984 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47985 rather than decreasing it.
47987 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47988 there's not enough space to do it, fail in the same way as when it
47989 can't be done because there are no partitions.
47991 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47992 when nvsetenv failed.
47994 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47996 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47997 because this rule is automatically generated.
47998 (grub-mkrescue): Removed for the same reason as above.
48000 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
48002 Migrate to GNU General Public License Version 3.
48004 * COPYING: Replaced with the plain text version of GPLv3.
48006 * config.guess: Updated from gnulib.
48007 * config.sub: Likewise.
48009 * geninit.sh: Output a GPLv3 copyright notice.
48010 * geninitheader.sh: Likewise.
48011 * genmodsrc.sh: Likewise.
48012 * gensymlist.sh.in: Likewise.
48014 * boot/i386/pc/boot.S: Upgraded to GPLv3.
48015 * boot/i386/pc/diskboot.S: Likewise.
48016 * boot/i386/pc/pxeboot.S: Likewise.
48017 * commands/blocklist.c: Likewise.
48018 * commands/boot.c: Likewise.
48019 * commands/cat.c: Likewise.
48020 * commands/cmp.c: Likewise.
48021 * commands/configfile.c: Likewise.
48022 * commands/echo.c: Likewise.
48023 * commands/help.c: Likewise.
48024 * commands/ls.c: Likewise.
48025 * commands/search.c: Likewise.
48026 * commands/terminal.c: Likewise.
48027 * commands/test.c: Likewise.
48028 * commands/videotest.c: Likewise.
48029 * commands/i386/cpuid.c: Likewise.
48030 * commands/i386/pc/halt.c: Likewise.
48031 * commands/i386/pc/play.c: Likewise.
48032 * commands/i386/pc/reboot.c: Likewise.
48033 * commands/i386/pc/vbeinfo.c: Likewise.
48034 * commands/i386/pc/vbetest.c: Likewise.
48035 * commands/ieee1275/halt.c: Likewise.
48036 * commands/ieee1275/reboot.c: Likewise.
48037 * commands/ieee1275/suspend.c: Likewise.
48038 * disk/loopback.c: Likewise.
48039 * disk/lvm.c: Likewise.
48040 * disk/raid.c: Likewise.
48041 * disk/efi/efidisk.c: Likewise.
48042 * disk/i386/pc/biosdisk.c: Likewise.
48043 * disk/ieee1275/ofdisk.c: Likewise.
48044 * font/manager.c: Likewise.
48045 * fs/affs.c: Likewise.
48046 * fs/ext2.c: Likewise.
48047 * fs/fat.c: Likewise.
48048 * fs/fshelp.c: Likewise.
48049 * fs/hfs.c: Likewise.
48050 * fs/hfsplus.c: Likewise.
48051 * fs/iso9660.c: Likewise.
48052 * fs/jfs.c: Likewise.
48053 * fs/minix.c: Likewise.
48054 * fs/sfs.c: Likewise.
48055 * fs/ufs.c: Likewise.
48056 * fs/xfs.c: Likewise.
48057 * hello/hello.c: Likewise.
48058 * include/grub/acorn_filecore.h: Likewise.
48059 * include/grub/arg.h: Likewise.
48060 * include/grub/bitmap.h: Likewise.
48061 * include/grub/boot.h: Likewise.
48062 * include/grub/cache.h: Likewise.
48063 * include/grub/device.h: Likewise.
48064 * include/grub/disk.h: Likewise.
48065 * include/grub/dl.h: Likewise.
48066 * include/grub/elfload.h: Likewise.
48067 * include/grub/env.h: Likewise.
48068 * include/grub/err.h: Likewise.
48069 * include/grub/file.h: Likewise.
48070 * include/grub/font.h: Likewise.
48071 * include/grub/fs.h: Likewise.
48072 * include/grub/fshelp.h: Likewise.
48073 * include/grub/gzio.h: Likewise.
48074 * include/grub/hfs.h: Likewise.
48075 * include/grub/kernel.h: Likewise.
48076 * include/grub/loader.h: Likewise.
48077 * include/grub/lvm.h: Likewise.
48078 * include/grub/misc.h: Likewise.
48079 * include/grub/mm.h: Likewise.
48080 * include/grub/net.h: Likewise.
48081 * include/grub/normal.h: Likewise.
48082 * include/grub/parser.h: Likewise.
48083 * include/grub/partition.h: Likewise.
48084 * include/grub/pc_partition.h: Likewise.
48085 * include/grub/raid.h: Likewise.
48086 * include/grub/rescue.h: Likewise.
48087 * include/grub/script.h: Likewise.
48088 * include/grub/setjmp.h: Likewise.
48089 * include/grub/symbol.h: Likewise.
48090 * include/grub/term.h: Likewise.
48091 * include/grub/terminfo.h: Likewise.
48092 * include/grub/tparm.h: Likewise.
48093 * include/grub/types.h: Likewise.
48094 * include/grub/video.h: Likewise.
48095 * include/grub/efi/api.h: Likewise.
48096 * include/grub/efi/chainloader.h: Likewise.
48097 * include/grub/efi/console.h: Likewise.
48098 * include/grub/efi/console_control.h: Likewise.
48099 * include/grub/efi/disk.h: Likewise.
48100 * include/grub/efi/efi.h: Likewise.
48101 * include/grub/efi/pe32.h: Likewise.
48102 * include/grub/efi/time.h: Likewise.
48103 * include/grub/i386/linux.h: Likewise.
48104 * include/grub/i386/setjmp.h: Likewise.
48105 * include/grub/i386/types.h: Likewise.
48106 * include/grub/i386/efi/kernel.h: Likewise.
48107 * include/grub/i386/efi/loader.h: Likewise.
48108 * include/grub/i386/efi/time.h: Likewise.
48109 * include/grub/i386/pc/biosdisk.h: Likewise.
48110 * include/grub/i386/pc/boot.h: Likewise.
48111 * include/grub/i386/pc/chainloader.h: Likewise.
48112 * include/grub/i386/pc/console.h: Likewise.
48113 * include/grub/i386/pc/init.h: Likewise.
48114 * include/grub/i386/pc/kernel.h: Likewise.
48115 * include/grub/i386/pc/loader.h: Likewise.
48116 * include/grub/i386/pc/memory.h: Likewise.
48117 * include/grub/i386/pc/multiboot.h: Likewise.
48118 * include/grub/i386/pc/serial.h: Likewise.
48119 * include/grub/i386/pc/time.h: Likewise.
48120 * include/grub/i386/pc/vbe.h: Likewise.
48121 * include/grub/i386/pc/vbeblit.h: Likewise.
48122 * include/grub/i386/pc/vbefill.h: Likewise.
48123 * include/grub/i386/pc/vbeutil.h: Likewise.
48124 * include/grub/i386/pc/vga.h: Likewise.
48125 * include/grub/ieee1275/ieee1275.h: Likewise.
48126 * include/grub/ieee1275/ofdisk.h: Likewise.
48127 * include/grub/powerpc/libgcc.h: Likewise.
48128 * include/grub/powerpc/setjmp.h: Likewise.
48129 * include/grub/powerpc/types.h: Likewise.
48130 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
48131 * include/grub/powerpc/ieee1275/console.h: Likewise.
48132 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
48133 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
48134 * include/grub/powerpc/ieee1275/loader.h: Likewise.
48135 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
48136 * include/grub/powerpc/ieee1275/time.h: Likewise.
48137 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
48138 * include/grub/sparc64/libgcc.h: Likewise.
48139 * include/grub/sparc64/setjmp.h: Likewise.
48140 * include/grub/sparc64/types.h: Likewise.
48141 * include/grub/sparc64/ieee1275/console.h: Likewise.
48142 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48143 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48144 * include/grub/sparc64/ieee1275/time.h: Likewise.
48145 * include/grub/util/biosdisk.h: Likewise.
48146 * include/grub/util/getroot.h: Likewise.
48147 * include/grub/util/lvm.h: Likewise.
48148 * include/grub/util/misc.h: Likewise.
48149 * include/grub/util/raid.h: Likewise.
48150 * include/grub/util/resolve.h: Likewise.
48151 * io/gzio.c: Likewise.
48152 * kern/device.c: Likewise.
48153 * kern/disk.c: Likewise.
48154 * kern/dl.c: Likewise.
48155 * kern/elf.c: Likewise.
48156 * kern/env.c: Likewise.
48157 * kern/err.c: Likewise.
48158 * kern/file.c: Likewise.
48159 * kern/fs.c: Likewise.
48160 * kern/loader.c: Likewise.
48161 * kern/main.c: Likewise.
48162 * kern/misc.c: Likewise.
48163 * kern/mm.c: Likewise.
48164 * kern/parser.c: Likewise.
48165 * kern/partition.c: Likewise.
48166 * kern/rescue.c: Likewise.
48167 * kern/term.c: Likewise.
48168 * kern/efi/efi.c: Likewise.
48169 * kern/efi/init.c: Likewise.
48170 * kern/efi/mm.c: Likewise.
48171 * kern/i386/dl.c: Likewise.
48172 * kern/i386/efi/init.c: Likewise.
48173 * kern/i386/efi/startup.S: Likewise.
48174 * kern/i386/pc/init.c: Likewise.
48175 * kern/i386/pc/lzo1x.S: Likewise.
48176 * kern/i386/pc/startup.S: Likewise.
48177 * kern/ieee1275/ieee1275.c: Likewise.
48178 * kern/powerpc/cache.S: Likewise.
48179 * kern/powerpc/dl.c: Likewise.
48180 * kern/powerpc/ieee1275/cmain.c: Likewise.
48181 * kern/powerpc/ieee1275/crt0.S: Likewise.
48182 * kern/powerpc/ieee1275/init.c: Likewise.
48183 * kern/powerpc/ieee1275/openfw.c: Likewise.
48184 * kern/sparc64/cache.S: Likewise.
48185 * kern/sparc64/dl.c: Likewise.
48186 * kern/sparc64/ieee1275/init.c: Likewise.
48187 * kern/sparc64/ieee1275/openfw.c: Likewise.
48188 * loader/efi/chainloader.c: Likewise.
48189 * loader/efi/chainloader_normal.c: Likewise.
48190 * loader/i386/efi/linux.c: Likewise.
48191 * loader/i386/efi/linux_normal.c: Likewise.
48192 * loader/i386/pc/chainloader.c: Likewise.
48193 * loader/i386/pc/chainloader_normal.c: Likewise.
48194 * loader/i386/pc/linux.c: Likewise.
48195 * loader/i386/pc/linux_normal.c: Likewise.
48196 * loader/i386/pc/multiboot.c: Likewise.
48197 * loader/i386/pc/multiboot_normal.c: Likewise.
48198 * loader/powerpc/ieee1275/linux.c: Likewise.
48199 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48200 * normal/arg.c: Likewise.
48201 * normal/cmdline.c: Likewise.
48202 * normal/command.c: Likewise.
48203 * normal/completion.c: Likewise.
48204 * normal/execute.c: Likewise.
48205 * normal/function.c: Likewise.
48206 * normal/lexer.c: Likewise.
48207 * normal/main.c: Likewise.
48208 * normal/menu.c: Likewise.
48209 * normal/menu_entry.c: Likewise.
48210 * normal/misc.c: Likewise.
48211 * normal/parser.y: Likewise.
48212 * normal/script.c: Likewise.
48213 * normal/i386/setjmp.S: Likewise.
48214 * normal/powerpc/setjmp.S: Likewise.
48215 * normal/sparc64/setjmp.S: Likewise.
48216 * partmap/acorn.c: Likewise.
48217 * partmap/amiga.c: Likewise.
48218 * partmap/apple.c: Likewise.
48219 * partmap/gpt.c: Likewise.
48220 * partmap/pc.c: Likewise.
48221 * partmap/sun.c: Likewise.
48222 * term/gfxterm.c: Likewise.
48223 * term/terminfo.c: Likewise.
48224 * term/efi/console.c: Likewise.
48225 * term/i386/pc/console.c: Likewise.
48226 * term/i386/pc/serial.c: Likewise.
48227 * term/i386/pc/vesafb.c: Likewise.
48228 * term/i386/pc/vga.c: Likewise.
48229 * term/ieee1275/ofconsole.c: Likewise.
48230 * util/biosdisk.c: Likewise.
48231 * util/console.c: Likewise.
48232 * util/genmoddep.c: Likewise.
48233 * util/getroot.c: Likewise.
48234 * util/grub-emu.c: Likewise.
48235 * util/grub-mkdevicemap.c: Likewise.
48236 * util/grub-probe.c: Likewise.
48237 * util/lvm.c: Likewise.
48238 * util/misc.c: Likewise.
48239 * util/raid.c: Likewise.
48240 * util/resolve.c: Likewise.
48241 * util/update-grub.in: Likewise.
48242 * util/update-grub_lib.in: Likewise.
48243 * util/grub.d/00_header.in: Likewise.
48244 * util/grub.d/10_hurd.in: Likewise.
48245 * util/grub.d/10_linux.in: Likewise.
48246 * util/i386/efi/grub-install.in: Likewise.
48247 * util/i386/efi/grub-mkimage.c: Likewise.
48248 * util/i386/pc/grub-install.in: Likewise.
48249 * util/i386/pc/grub-mkimage.c: Likewise.
48250 * util/i386/pc/grub-mkrescue.in: Likewise.
48251 * util/i386/pc/grub-setup.c: Likewise.
48252 * util/i386/pc/misc.c: Likewise.
48253 * util/powerpc/ieee1275/grub-install.in: Likewise.
48254 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48255 * util/powerpc/ieee1275/misc.c: Likewise.
48256 * video/bitmap.c: Likewise.
48257 * video/video.c: Likewise.
48258 * video/i386/pc/vbe.c: Likewise.
48259 * video/i386/pc/vbeblit.c: Likewise.
48260 * video/i386/pc/vbefill.c: Likewise.
48261 * video/i386/pc/vbeutil.c: Likewise.
48262 * video/readers/tga.c: Likewise.
48264 2007-07-02 Robert Millan <rmh@aybabtu.com>
48266 * conf/i386-efi.rmk: Replace obsolete reference to
48267 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48268 with util/getroot.c.
48269 * conf/powerpc-ieee1275.rmk: Likewise.
48270 * conf/sparc64-ieee1275.rmk: Likewise.
48272 * util/grub-emu.c (main): Fix unchecked pointer handling.
48274 2007-07-02 Robert Millan <rmh@aybabtu.com>
48276 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48277 invocation to fail, in order to support partition-less media.
48279 * util/i386/pc/grub-install.in: Likewise.
48281 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48282 which fs or partmap modules are needed (akin to its sister scripts).
48284 Also use grub-probe to get rid of unportable /proc/mounts check.
48286 Print the same informational message that the other scripts do, before
48289 2007-06-23 Robert Millan <rmh@aybabtu.com>
48291 * util/update-grub_lib.in (font_path): New function. Determine whether
48292 a font file can be found and, if so, echo the GRUB path to it.
48294 * util/update-grub.in: Handle multiple terminals depending on user
48295 input, platform availability and font file presence. Propagate
48296 variables of our findings to /etc/grub.d/ children.
48298 * util/grub.d/00_header.in: Handle multiple terminals, based on
48299 environment setup by update-grub.
48301 2007-06-23 Robert Millan <rmh@aybabtu.com>
48303 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48305 2007-06-21 Robert Millan <rmh@aybabtu.com>
48307 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48308 indicate end of data section in kernel image.
48309 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48310 GRUB_KERNEL_MACHINE_DATA_END.
48312 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48314 * kern/i386/efi/startup.S: Likewise.
48316 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48317 during image generation. Implement --prefix option to override this
48319 * util/i386/efi/grub-mkimage.c: Likewise.
48321 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48322 code to make path relative to its root into a separate function.
48324 * util/i386/pc/grub-install.in: Use newly provided
48325 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48326 pass the result to grub-install --prefix.
48328 2007-06-13 Robert Millan <rmh@aybabtu.com>
48330 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48331 DEFAULT_DEVICE_MAP.
48332 * util/grub-emu.c: Use above definitions from misc.h instead of
48334 * util/grub-mkdevicemap.c: Likewise.
48335 * util/i386/pc/grub-setup.c: Likewise.
48336 * util/grub-probe.c: Likewise.
48337 (probe): Abort with grub_util_error() when either
48338 grub_guess_root_device or grub_util_get_grub_dev fails.
48340 2007-06-12 Robert Millan <rmh@aybabtu.com>
48342 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48343 "pager" assignment.
48344 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48346 * util/grub-probe.c (probe): Likewise for "drive_name".
48348 2007-06-11 Robert Millan <rmh@aybabtu.com>
48350 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48351 not just the cdrom one.
48353 2007-06-11 Robert Millan <rmh@aybabtu.com>
48355 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48356 Add --pkglibdir=DIR option to override pkglibdir.
48357 Mention --image-type=TYPE in help output.
48358 Fix --grub-mkimage (it was a no-op).
48359 Abort gracefully when no parameter is given.
48361 2007-06-11 Robert Millan <rmh@aybabtu.com>
48363 * util/i386/pc/grub-mkrescue.in: New file.
48364 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48365 * Makefile.in: Handle bin_SCRIPTS.
48367 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48369 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48370 list of video modes.
48372 2007-06-06 Robert Millan <rmh@aybabtu.com>
48374 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48375 file doesn't exist, or if it is in a filesystem grub can't read.
48377 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48378 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48379 header comment to fit in 80 columns when the variables are resolved.
48381 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48382 could be identified by update-grub. Remove redundant check for
48383 unifont.pff existence (since convert_system_path_to_grub_path now
48386 2007-06-04 Robert Millan <rmh@aybabtu.com>
48388 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48390 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48392 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48394 2007-06-04 Robert Millan <rmh@aybabtu.com>
48396 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48398 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48399 grub_apple_partition_map_fini.
48402 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48403 to access >2 TiB disks).
48405 Print disk->total_sectors with %llu instead of %lu, since this
48406 variable is always 64-bit (prevents wrong disk size from being displayed
48407 on either >2 TiB disk or big-endian CPU).
48409 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48410 into a generic case that supports all (sane) partition maps.
48412 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48415 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48416 and grub_apple_partition_map_fini() after that.
48418 2007-06-01 Robert Millan <rmh@aybabtu.com>
48420 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48422 * util/grub.d/00_header.in: Only enable gfxterm when
48423 convert_system_path_to_grub_path() succeeds.
48425 2007-05-20 Robert Millan <rmh@aybabtu.com>
48427 * util/update-grub_lib.in: New file.
48428 * DISTLIST: Add update-grub_lib.in.
48429 * conf/common.rmk: Generate update-grub_lib and install it in
48431 * Makefile.in: Add install routine for $(lib_DATA).
48433 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48434 function provided by update-grub_lib to support arbitrary paths of
48436 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48437 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48439 2007-05-19 Robert Millan <rmh@aybabtu.com>
48441 * commands/i386/cpuid.c: New module.
48442 * DISTLIST: Add it.
48443 * conf/i386-efi.rmk: Enable cpuid.mod.
48444 * conf/i386-pc.rmk: Likewise.
48446 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48448 * kern/disk.c (grub_disk_read): Check return value of
48451 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48453 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48455 * disk/raid.c (grub_raid_open): Likewise.
48457 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48459 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48460 stack instead of on the heap.
48462 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48463 before doing a read on it.
48465 * configure.ac: Only use -fno-stack-protector for the target
48468 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48470 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48471 __attribute_ ((unused)) to mode_type argument.
48473 * util/getroot.c (grub_guess_root_device): Fix #endif.
48475 * kern/misc.c (memcmp): Fix prototype.
48477 * include/grub/partition.h [GRUB_UTIL]
48478 (grub_gpt_partition_map_init): Add prototype.
48479 (grub_gpt_partition_map_fini): Likewise.
48481 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48482 at the right place.
48484 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48485 (grub_fat_read_data): Likewise.
48486 (grub_fat_find_dir): Likewise.
48488 * font/manager.c (find_glyph): Make table a const.
48489 (grub_font_get_glyph): Remove bitmap from if statement.
48491 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48493 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48494 code, first search for device in /dev/mapper, then in /dev.
48495 (grub_util_get_grub_dev): New function.
48496 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48498 * util/grub-probe.c (probe): Remove check for RAID, call
48499 grub_util_get_grub_dev() instead of
48500 grub_util_biosdisk_get_grub_dev().
48501 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48502 grub_util_biosdisk_get_grub_dev().
48503 * util/i386/pc/grub-setup.c (main): Likewise.
48505 2007-05-16 Robert Millan <rmh@aybabtu.com>
48507 * DISTLIST: Update for the latest changes.
48508 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48509 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48510 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48511 grub/util/biosdisk.h.
48512 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48513 grub/util/biosdisk.h.
48515 2007-05-16 Robert Millan <rmh@aybabtu.com>
48517 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48519 2007-05-16 Robert Millan <rmh@aybabtu.com>
48521 * util/i386/efi/grub-install.in: New.
48522 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48523 newly added grub-install.
48524 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48526 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48527 grub/util/biosdisk.h.
48528 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48529 grub/util/biosdisk.h.
48531 2007-05-16 Robert Millan <rmh@aybabtu.com>
48533 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48534 * include/grub/util/biosdisk.h: ... here.
48535 * util/i386/pc/biosdisk.c: Moved to ...
48536 * util/biosdisk.c: ... here.
48537 * util/i386/pc/getroot.c: Moved to ...
48538 * util/getroot.c: ... here.
48539 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48540 * util/grub-mkdevicemap.c: ... here.
48541 * util/i386/pc/grub-probe.c: Moved to ...
48542 * util/grub-probe.c: ... here.
48544 2007-05-15 Robert Millan <rmh@aybabtu.com>
48546 * util/update-grub.in: Remove duplicated line in grub.cfg header
48549 2007-05-13 Robert Millan <rmh@aybabtu.com>
48551 * util/update-grub.in: Fix a few assumptions about the devices holding
48552 /, /boot and /boot/grub being the same.
48553 * util/grub.d/00_header.in: Likewise.
48554 * util/grub.d/10_hurd.in: Likewise.
48555 * util/grub.d/10_linux.in: Likewise.
48557 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48558 patterns. Use that to define the `.old' suffix as older than `'.
48560 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48562 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48563 the grub.cfg header message.
48565 2007-05-11 Robert Millan <rmh@aybabtu.com>
48567 * util/update-grub.in: Create device.map if it doesn't already exist,
48568 before attempting to run grub-probe.
48569 Check for grub-probe and grub-mkdevicemap with the same code
48570 grub-install is using.
48573 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48575 * Makefile.in: Add the datarootdir autoconf variable.
48577 2007-05-09 Robert Millan <rmh@aybabtu.com>
48579 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48580 fail gracefully if dev->disk->partition == NULL.
48582 2007-05-07 Robert Millan <rmh@aybabtu.com>
48584 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48585 determine partition map module.
48586 * util/i386/pc/grub-install.in: Use this feature to decide which
48587 partition module to load, instead of hardcoding pc and gpt.
48589 2007-05-07 Robert Millan <rmh@aybabtu.com>
48591 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48592 source directory differs from build directory.
48594 2007-05-05 Robert Millan <rmh@aybabtu.com>
48596 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48599 2007-05-05 Robert Millan <rmh@aybabtu.com>
48601 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48603 2007-05-05 Robert Millan <rmh@aybabtu.com>
48605 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48606 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48608 2007-05-05 Robert Millan <rmh@aybabtu.com>
48610 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48611 (grub_probe_SOURCES): Likewise.
48612 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48613 GPT and initialize dos_part and bsd_part accordingly.
48614 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48616 (main): Activate gpt module for use during partition identification,
48617 and deactivate it afterwards.
48618 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48619 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48620 partition identification, and deactivate it afterwards.
48622 2007-05-05 Robert Millan <rmh@aybabtu.com>
48624 * term/i386/pc/console.c (grub_console_fini): Call
48625 grub_term_set_current() before grub_term_unregister().
48627 2007-05-04 Robert Millan <rmh@aybabtu.com>
48629 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48630 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48631 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48632 and update-grub_DATA.
48633 * conf/common.rmk: Build and install update-grub components.
48634 * conf/common.mk: Regenerate.
48635 * util/update-grub.in: New. Core of update-grub.
48636 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48637 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48638 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48639 * util/grub.d/README: New. Document grub.d directory layout.
48641 2007-05-01 Robert Millan <rmh@aybabtu.com>
48643 * util/grub-emu.c: Move initialization functions
48644 grub_util_biosdisk_init() and grub_init_all() before
48645 grub_util_biosdisk_get_grub_dev(), which relies on them.
48647 2007-04-19 Robert Millan <rmh@aybabtu.com>
48649 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48652 2007-04-18 Jerone Young <jerone@gmail.com>
48654 * kernel/elf.c: Add missing parenthesis for conditional statement
48657 2007-04-10 Jerone Young <jerone@gmail.com>
48659 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48660 continue on and look for device node with real device name.
48662 2007-04-10 Jerone Young <jerone@gmail.com>
48664 * configure.ac: Add argument for autoconf to use transformation
48666 * Makefile.in: Add autoconf package transformation code.
48667 * util/i386/pc/grub-install.in: Likewise.
48668 * util/powerpc/ieee1275/grub-install.in: Likewise.
48670 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48672 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48673 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48674 (EXT2_REVISION): Likewise.
48675 (EXT2_INODE_SIZE): Likewise.
48676 (struct grub_ext2_block_group): Added a missing member
48678 (grub_ext2_read_inode): Divide by the inode size in a superblock
48679 instead of 128 to obtain INODES_PER_BLOCK.
48680 Use the macro EXT2_INODE_SIZE instead of directly using
48681 SBLOCK->INODE_SIZE.
48683 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48685 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48686 superblock instead of the structure size to compute an
48687 offset. This fixes the problem that GRUB could not read a
48688 filesystem when inode size is different from 128-byte.
48690 2007-03-05 Marco Gerards <marco@gnu.org>
48692 * normal/main.c (read_config_file): When "menu" is not set, create
48693 an initial context.
48695 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48697 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48698 (HEAP_LIMIT): New macro.
48699 (grub_claim_heap): Claim memory up to `heaplimit'.
48701 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48703 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48704 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48705 (_start): Likewise.
48706 (grub_arch_modules_addr): Return address after `_end'.
48707 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48708 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48709 (add_segments): Calculate `_end' from phdr size and location.
48710 (ALIGN_UP): Moved to ...
48711 * include/grub/misc.h: here.
48712 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48714 (GRUB_IEEE1275_MODULE_BASE): Removed.
48716 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48718 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48721 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48723 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48725 (grub_elf64_load_hook_t): Likewise.
48726 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48729 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48731 * kern/mm.c: Update copyright.
48732 (grub_mm_debug): Correct syntax error.
48733 (grub_mm_dump_free): New function.
48734 (grub_debug_free): Call `grub_free'.
48735 * include/grub/mm.h: Update copyright.
48736 (grub_mm_dump_free): Add declaration.
48738 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48740 * include/grub/ieee1275/ieee1275.h: Update copyright.
48741 * kern/powerpc/ieee1275/init.c: Likewise.
48742 * kern/powerpc/ieee1275/openfw.c: Likewise.
48744 * loader/powerpc/ieee1275/linux.c: Likewise.
48745 * include/grub/elfload.h: Likewise.
48746 * kern/elf.c: Likewise.
48747 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48749 (grub_elf64_load): Likewise.
48750 (grub_elf32_load_segment): Move to a nested function.
48751 (grub_elf64_load_segment): Likewise.
48753 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48755 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48757 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48758 (grub_heap_len): Likewise.
48759 (HEAP_SIZE): New macro.
48760 (grub_claim_heap): New function.
48761 (grub_machine_init): Don't claim heap directly. Call
48763 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48764 (grub_available_iterate): New function.
48766 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48768 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48769 * configure.ac: Use it for testing the HOST and TARGET compilers.
48771 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48773 * Makefile.in (enable_grub_emu): New variable.
48774 * configure.ac (--enable-grub-emu): New option.
48775 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48776 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48777 * conf/i386-pc.rmk: Likewise.
48778 * conf/powerpc-ieee1275.rmk: Likewise.
48779 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48781 2006-12-12 Marco Gerards <marco@gnu.org>
48783 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48785 * kern/env.c (grub_env_unset): Don't free the member `value' when
48786 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48789 * normal/main.c (current_menu): Removed.
48790 (free_menu): Unset the `menu' environment variable.
48791 (grub_normal_menu_addentry): Make use of the environment variable
48792 `menu', instead of using the global `current_menu'. Allocate
48793 memory for the sourcecode of this entry.
48794 (read_config_file): New argument `nested', changed all callers.
48795 Only in the case of a new context, initialize a new menu. Set the
48796 `menu' environment variable.
48797 (grub_normal_execute): Don't set and unset the environment
48798 variable `menu' here anymore. Only free the menu when leaving the
48801 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48804 2006-12-11 Marco Gerards <marco@gnu.org>
48806 * normal/menu_entry.c (run): Fix off by one bug so the last line
48807 is executed. Move the loader check to outside the loop.
48809 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48811 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48813 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48815 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48816 the number of sectors. Reported by Andrey Shuvikov
48817 <mr_hyro@yahoo.com>.
48819 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48821 * kern/disk.c (grub_disk_read): When there is a read error, always
48822 try to read only the necessary data.
48824 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48826 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48828 [GRUB_UTIL] (grub_raid_fini): Likewise.
48829 [GRUB_UTIL] (grub_lvm_init): Likewise.
48830 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48831 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48832 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48833 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48834 and grub_raid_fini().
48836 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48838 * include/grub/types.h (__unused): Rename to UNUSED.
48839 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48840 (grub_elf64_size): Likewise.
48842 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48844 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48845 grub_error_push and grub_error_pop in the error-handling path.
48846 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48849 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48851 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48852 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48853 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48854 (kernel_elf_SOURCES): Likewise.
48855 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48856 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48857 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48858 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48859 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48860 (elf_mod_SOURCES): New variable.
48861 (elf_mod_CFLAGS): Likewise.
48862 (elf_mod_LDFLAGS): Likewise.
48863 * include/grub/types.h (__unused): New macro.
48864 * include/grub/elfload.h: New file.
48865 * kern/elf.c: Likewise.
48866 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48867 (ELF32_LOADMASK): New macro.
48868 (ELF64_LOADMASK): Likewise.
48869 (vmlinux): Removed.
48870 (grub_linux_load32): New function.
48871 (grub_linux_load64): Likewise.
48872 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48873 Use grub_elf_t instead of grub_file_t.
48875 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48877 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48878 `catch_result' to struct set_color_args.
48880 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48882 * normal/menu.c: Include grub/script.h.
48883 * normal/menu_entry.c: Likewise.
48884 * include/grub/normal.h: Do not include grub/script.h.
48886 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48888 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48890 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48892 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48894 (grub_disk_close): Print debug messages when closing a disk.
48895 (grub_disk_read): Print debug messages when disk read fails.
48896 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48898 * kern/partition.c: Include misc.h.
48899 (grub_partition_iterate): Print debug messages when detecting
48902 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48904 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48906 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48908 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48910 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48911 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48913 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48915 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48916 instead of sizeof(lv). Patch by Michael Guntsche.
48918 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48920 * disk/lvm.c: Rename VGS to VG_LIST.
48921 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48922 (grub_lvm_open): Likewise.
48923 Thanks to Michael Guntsche for finding this bug.
48925 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48927 * configure.ac (AC_INIT): Bumped to 1.95.
48929 2006-10-14 Robert Millan <rmh@aybabtu.com>
48931 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48932 with "/dev/.static/dev/md".
48934 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48936 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48937 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48938 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48939 DRIVE_NAME are always freed.
48941 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48942 DOS_PART, as a DOS partition is counted from one instead of zero
48943 now. Reported by Robert Millan.
48945 2006-10-14 Robert Millan <rmh@aybabtu.com>
48947 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48948 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48949 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48950 string returned by grub_guess_root_device.
48951 * util/i386/pc/grub-setup.c: Likewise.
48952 * util/i386/pc/grub-probefs.c: Likewise.
48954 * util/i386/pc/grub-probefs.c: Rename to ...
48955 * util/i386/pc/grub-probe.c: ... this.
48956 * DISTLIST: Remove grub-probefs, add grub-probe.
48957 * conf/i386-efi.rmk: Likewise.
48958 * conf/i386-pc.rmk: Likewise.
48959 * util/i386/pc/grub-install.in: Likewise.
48961 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48962 choose which information we want to print.
48964 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48966 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48967 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48968 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48969 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48970 video/readers/tga.c and video/i386/pc/vbeutil.c.
48972 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48974 Added support for RAID and LVM.
48976 * disk/lvm.c: New file.
48977 * disk/raid.c: Likewise.
48978 * include/grub/lvm.h: Likewise.
48979 * include/grub/raid.h: Likewise.
48980 * include/grub/util/lvm.h: Likewise.
48981 * include/grub/util/raid.h: Likewise.
48982 * util/lvm.c: Likewise.
48983 * util/raid.c: Likewise.
48985 * include/grub/disk.h (grub_disk_dev_id): Add
48986 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48987 (grub_disk_get_size): New prototype.
48988 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48989 returns a partition.
48990 (grub_disk_get_size): New function.
48992 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48993 verbatim if grub_install_dos_part is -2.
48995 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48998 * util/i386/pc/grub-setup.c (setup): New argument
48999 MUST_EMBED. Force embedding of GRUB when the argument is
49000 true. Close FILE before returning.
49001 (main): Add support for RAID and LVM.
49003 * conf/common.rmk: Add RAID and LVM modules.
49004 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
49006 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
49008 * kern/misc.c (grub_strstr): New function.
49009 * include/grub/misc.h (grub_strstr): New prototype.
49011 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
49013 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
49015 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
49017 * kern/misc.c (grub_strtoull): Guess the base only if not
49020 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
49022 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
49025 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
49027 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
49029 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
49030 Remove `flags' argument. All callers changed.
49031 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
49032 (IEEE1275_IHANDLE_INVALID): New variable.
49033 (IEEE1275_CELL_INVALID): New variable.
49034 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
49035 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
49036 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
49037 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
49038 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
49039 codes from Open Firmware. All callers updated.
49040 (grub_ieee1275_next_property): Directly return Open Firmware return
49042 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
49043 Standardize error checking from `grub_ieee1275_get_property'.
49044 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
49045 `devalias' to `aliases'. Correct comments. Consolidate error paths.
49047 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
49049 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
49050 `instance_to_package_args' to `instance_to_path_args'.
49052 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
49053 `grub_ieee1275_chosen'.
49055 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
49056 `grub_ieee1275_interpret'.
49058 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
49060 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
49062 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
49064 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
49065 (__cmpdi): Likewise.
49067 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
49068 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
49071 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
49073 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
49074 to type `grub_ssize_t'.
49075 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
49077 2006-09-22 Marco Gerards <marco@gnu.org>
49079 * normal/script.c (grub_script_create_cmdmenu): Skip leading
49082 2006-09-22 Marco Gerards <marco@gnu.org>
49084 * commands/echo.c: New file.
49086 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
49088 * conf/common.rmk (echo_mod_SOURCES): New variable.
49089 (echo_mod_CFLAGS): Likewise.
49090 (echo_mod_LDFLAGS): Likewise.
49092 2006-09-22 Marco Gerards <marco@gnu.org>
49094 * normal/main.c (get_line): Malloc memory instead of using
49095 preallocated memory. Removed the arguments `cmdline' and
49096 `max_len'. Updated all callers.
49098 2006-09-22 Marco Gerards <marco@gnu.org>
49100 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
49101 (normal_mod_DEPENDENCIES): Likewise.
49103 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
49104 (normal_mod_DEPENDENCIES): Likewise.
49106 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
49108 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
49110 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
49112 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
49113 (normal_mod_DEPENDENCIES): Likewise.
49114 * conf/i386-pc.mk: Regenerate.
49115 * conf/i386-efi.mk: Likewise
49116 * conf/common.mk: Likewise.
49117 * conf/powerpc-ieee1275.mk: Likewise.
49118 * conf/sparc64-ieee1275.mk: Likewise.
49120 2006-09-22 Robert Millan <rmh@aybabtu.com>
49122 Sync with i386 version.
49123 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
49124 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
49126 2006-09-21 Robert Millan <rmh@aybabtu.com>
49128 Import from GRUB Legacy (lib/device.c):
49129 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
49130 (init_device_map) [__linux__]: Add support for I2O devices.
49132 2006-09-14 Marco Gerards <marco@gnu.org>
49134 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
49137 2006-09-14 Robert Millan <rmh@aybabtu.com>
49139 * util/i386/pc/grub-install.in: Skip menu.lst when removing
49142 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
49144 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
49145 before adding it to device.map.
49147 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
49149 * genmk.rb: Let GCC generate dependencies the first time it
49150 compiles a file; using the -MD option.
49151 * conf/common.mk: Regenerate.
49152 * conf/i386-pc.mk: Likewise.
49153 * conf/i386-efi.mk: Likewise.
49154 * conf/powerpc-ieee1275.mk: Likewise.
49155 * conf/sparc64-ieee1275.mk: Likewise.
49157 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
49159 Move the prototypes of grub_setjmp and grub_longjmp to
49160 cpu/setjmp.h, so that each architecture may specify different
49163 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
49164 (grub_longjmp): Likewise.
49165 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
49166 (grub_longjmp): Likewise.
49167 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
49168 (grub_longjmp): Likewise.
49170 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
49171 [!GRUB_UTIL] (grub_longjmp): Removed.
49173 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
49175 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
49176 "color!" method does not return any value.
49178 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49180 * include/grub/bitmap.h: New file.
49182 * include/grub/i386/pc/vbeutil.h: Likewise.
49184 * video/bitmap.c: Likewise.
49186 * video/readers/tga.c: Likewise.
49188 * video/i386/pc/vbeutil.c: Likewise.
49190 * commands/videotest.c: Code cleanup and updated to reflect to new
49193 * term/gfxterm.c: Likewise.
49195 * video/video.c: Likewise.
49197 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49198 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49199 (bitmap_mod_SOURCES): New entry.
49200 (bitmap_mod_CFLAGS): Likewise.
49201 (bitmap_mod_LDFLAGS): Likewise.
49202 (tga_mod_SOURCES): Likewise.
49203 (tga_mod_CFLAGS): Likewise.
49204 (tga_mod_LDFLAGS): Likewise.
49206 * include/grub/video.h (grub_video_blit_operators): New enum type.
49207 (grub_video_render_target): Changed as forward declaration and moved
49208 actual definition to be video driver specific.
49209 (grub_video_adapter.blit_bitmap): Added blitting operator.
49210 (grub_video_adapter.blit_render_target): Likewise.
49211 (grub_video_blit_bitmap): Likewise.
49212 (grub_video_blit_render_target): Likewise.
49214 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49215 driver specific render target definition.
49216 (grub_video_vbe_map_rgba): Added driver internal helper.
49217 (grub_video_vbe_unmap_color): Updated to use
49218 grub_video_i386_vbeblit_info.
49219 (grub_video_vbe_get_video_ptr): Likewise.
49221 * include/grub/i386/pc/vbeblit.h
49222 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49223 grub_video_i386_vbeblit_info.
49224 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49225 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49226 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49227 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49228 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49229 (grub_video_i386_vbeblit_index_index): Likewise.
49230 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49231 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49232 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49233 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49235 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49238 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49239 include/grub/i386/pc/vbeblit.h.
49241 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49242 Updated to use grub_video_i386_vbeblit_info.
49243 (grub_video_i386_vbefill_R8G8B8): Likewise.
49244 (grub_video_i386_vbefill_index): Likewise.
49245 (grub_video_i386_vbefill): Added generic filler.
49247 * video/i386/pc/vbefill.c: Updated to reflect changes on
49248 include/grub/i386/pc/vbefill.h.
49250 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49251 grub_video_i386_vbeblit_info.
49252 (grub_video_vbe_unmap_color): Likewise.
49253 (grub_video_vbe_blit_glyph): Likewise.
49254 (grub_video_vbe_scroll): Likewise.
49255 (grub_video_vbe_draw_pixel): Removed function.
49256 (grub_video_vbe_get_pixel): Likewise.
49257 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49258 updated code to use it.
49259 (common_blitter): Added common blitter for render target and bitmap.
49260 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49261 (grub_video_vbe_blit_render_target): Likewise.
49263 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49265 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49266 is in text mode if there is no console control protocol instance
49269 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49271 * include/grub/video.h: Code cleanup.
49273 * include/grub/i386/pc/vbe.h: Likewise.
49275 * video/i386/pc/vbe.c: Likewise.
49277 * video/i386/pc/vbeblit.c: Likewise.
49279 * video/i386/pc/vbefill.c: Likewise.
49281 * video/video.c: Likewise. Also added more comments.
49283 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49285 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49286 (struct grub_biosdisk_dap): Likewise.
49288 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49289 linkage settings for all functions.
49291 2006-07-12 Marco Gerards <marco@gnu.org>
49293 * configure.ac (--enable-mm-debug): Fix typo.
49295 * genkernsyms.sh.in: Use proper quoting for `CC'.
49297 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49299 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49300 (normal_mod_ASFLAGS): Remove "-m32".
49302 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49304 * util/misc.c: Include config.h.
49305 [!HAVE_MEMALIGN]: Do not include malloc.h.
49306 (grub_memalign): Use posix_memalign, if present. Then, use
49307 memalign, if present. Otherwise, emit an error.
49309 * util/grub-emu.c: Do not include malloc.h.
49311 * include/grub/util/misc.h: Include unistd.h. This is required for
49312 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49313 D. Eades III <hde@foobar-qux.org>.
49315 * configure.ac (AC_GNU_SOURCE): Added.
49316 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49319 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49321 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49322 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49324 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49326 * include/grub/types.h (grub_host_addr_t): Rename to
49327 grub_target_addr_t.
49328 (grub_host_off_t): Rename to grub_target_off_t.
49329 (grub_host_size_t): Rename to grub_target_size_t.
49330 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49331 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49333 * include/grub/kernel.h (struct grub_module_header): Change type
49334 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49335 (grub_module_info): Likewise.
49337 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49339 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49340 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49341 Velazquez <jesus.velazquez@gmail.com>.
49343 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49345 Count partitions from 1 instead of 0 in the string representation
49346 of partitions. Still use 0-based internally.
49348 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49349 (sun_partition_map_iterate): Use grub_partition_t instead of
49350 struct grub_partition *. Cast DESC->START_CYLINDER to
49351 grub_uint64_t after converting the endian.
49352 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49353 (sun_partition_map_get_name): Add 1 to P->INDEX.
49355 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49357 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49359 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49360 zero instead of one.
49361 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49362 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49364 * partmap/apple.c (apple_partition_map_iterate): Change the type
49365 of POS to unsigned.
49366 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49367 (apple_partition_map_get_name): Add 1 into P->INDEX.
49369 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49370 of POS to unsigned.
49371 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49372 calculate the offset of a partition.
49373 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49374 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49376 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49377 SECTOR to grub_disk_addr_t.
49378 (acorn_partition_map_iterate): Likewise.
49379 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49380 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49382 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49384 * kern/i386/pc/init.c (make_install_device): Add 1 into
49385 GRUB_INSTALL_DOS_PART.
49387 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49390 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49392 Clean up the code to support 64-bit addressing in disks and
49393 files. This change is not enough for filesystems yet.
49395 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49396 type of "start" to grub_uint64_t.
49397 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49398 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49399 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49402 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49403 to grub_disk_addr_t.
49405 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49408 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49410 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49413 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49415 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49417 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49419 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49420 to grub_off_t, to detect an error from grub_file_seek.
49421 (grub_multiboot_load_elf32): Likewise.
49423 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49424 maximum unsigned long value when an overflow is detected.
49425 (grub_strtoull): New function.
49426 (grub_divmod64): Likewise.
49427 (grub_lltoa): use grub_divmod64.
49429 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49431 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49432 the pointer to next character. Use grub_strtoull instead of
49434 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49435 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49438 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49439 return value is signed.
49440 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49441 test if OFFSET is less than zero, as OFFSET is unsigned now.
49443 * kern/disk.c (struct grub_disk_cache): Change the type of
49444 "sector" to grub_disk_addr_t.
49445 (grub_disk_cache_get_index): Change the type of SECTOR to
49446 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49447 unsigned after shifting.
49448 (grub_disk_cache_invalidate): Change the type of SECTOR to
49450 (grub_disk_cache_unlock): Likewise.
49451 (grub_disk_cache_store): Likewise.
49452 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49453 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49454 grub_disk_addr_t and grub_uint64_t, respectively.
49455 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49456 body, as the value of OFFSET is tweaked by
49457 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49458 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49460 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49461 body, as the value of OFFSET is tweaked by
49462 grub_disk_check_range. Change the types of LEN and N to
49465 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49466 and "saved_offset" to grub_off_t.
49467 (test_header): Cast BUF to char *.
49468 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49470 (grub_gzio_read): Change the types of OFFSET and SIZE to
49471 grub_off_t and grub_size_t, respectively.
49473 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49475 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49476 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49477 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49478 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49479 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49481 * include/grub/types.h (grub_off_t): Unconditionally set to
49483 (grub_disk_addr_t): Changed to grub_uint64_t.
49485 * include/grub/partition.h (struct grub_partition): Change the
49486 types of "start", "len" and "offset" to grub_disk_addr_t,
49487 grub_uint64_t and grub_disk_addr_t, respectively.
49488 (grub_partition_get_start): Return grub_disk_addr_t.
49489 (grub_partition_get_len): Return grub_uint64_t.
49491 * include/grub/misc.h (grub_strtoull): New prototype.
49492 (grub_divmod64): Likewise.
49494 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49495 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49496 grub_off_t, respectively.
49497 All callers and references changed.
49499 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49500 grub_size_t in "read".
49501 All callers and references changed.
49503 * include/grub/file.h (struct grub_file): Change the types of
49504 "offset" and "size" to grub_off_t and grub_off_t,
49505 respectively. Change the type of SECTOR to grub_disk_addr_t in
49507 (grub_file_read): Change the type of LEN to grub_size_t.
49508 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49510 (grub_file_size): Return grub_off_t.
49511 (grub_file_tell): Likewise.
49512 All callers and references changed.
49514 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49515 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49517 (struct grub_disk): Change the type of "total_sectors" to
49518 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49520 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49521 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49522 (grub_disk_write): Likewise.
49523 All callers and references changed.
49525 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49526 char * for grub_strncmp to silence gcc.
49527 (grub_iso9660_mount): Likewise.
49528 (grub_iso9660_mount): Likewise.
49529 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49531 (grub_iso9660_iterate_dir): Likewise.
49532 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49534 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49535 LEN to grub_disk_addr_t and grub_size_t, respectively.
49537 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49539 * fs/jfs.c (grub_jfs_read_file): Likewise.
49541 * fs/minix.c (grub_jfs_read_file): Likewise.
49543 * fs/sfs.c (grub_jfs_read_file): Likewise.
49545 * fs/ufs.c (grub_jfs_read_file): Likewise.
49547 * fs/xfs.c (grub_jfs_read_file): Likewise.
49549 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49550 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49553 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49554 BLKNR to -1 instead of returning GRUB_ERRNO.
49555 (grub_ext2_read_file): Change the types of SECTOR and
49556 LEN to grub_disk_addr_t and grub_size_t, respectively.
49558 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49559 LEN to grub_disk_addr_t and grub_size_t, respectively.
49561 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49564 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49565 string. Do not cast SECTOR explicitly.
49567 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49568 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49569 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49570 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49571 over 2TB and LBA mode is not supported, raise an error.
49572 (get_safe_sectors): New function.
49573 (grub_biosdisk_read): Use get_safe_sectors.
49574 (grub_biosdisk_write): Likewise.
49576 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49577 (grub_efidisk_write): Likewise.
49579 * disk/loopback.c (delete_loopback): Cosmetic changes.
49580 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49582 (grub_loopback_open): Likewise.
49583 (grub_loopback_read): Likewise. Also, change the type of POS to
49584 grub_off_t, and fix the usage of grub_memset.
49586 * commands/i386/pc/play.c: Include grub/machine/time.h.
49588 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49591 * commands/configfile.c: Include grub/env.h.
49593 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49594 GRUB_ERRNO directly instead. Change the type of POS to
49595 grub_off_t. Follow the coding standard.
49597 * commands/blocklist.c: Include grub/partition.h.
49598 (grub_cmd_blocklist): Return an error if the underlying device is
49599 not a disk. Take the starting sector of a partition into account,
49600 if a partition is used.
49602 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49604 (lba_mode): Support 64-bit addresses.
49605 (chs_mode): Likewise.
49606 (copy_buffer): Adapted to the new offsets of a length field and a
49608 (blocklist_default_start): Allocate 64-bit space.
49610 * boot/i386/pc/boot.S (force_lba): Removed.
49611 (boot_drive): Moved to under KERNEL_SECTOR.
49612 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49614 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49616 (lba_mode): Refactored to support a 64-bit address. More size
49618 (setup_sectors): Likewise.
49620 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49622 * DISTLIST: Added include/grub/i386/linux.h. Removed
49623 include/grub/i386/pc/linux.h
49625 * configure.ac (AC_INIT): Bumped to 1.94.
49627 * config.guess: Updated from gnulib.
49628 * config.sub: Likewise.
49629 * install-sh: Likewise.
49630 * mkinstalldirs: Likewise.
49632 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49634 * conf/common.rmk (grub_modules_init.lst): Depended on
49635 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49638 * genmk.rb (PModule::rule): Reverted the previous change.
49640 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49642 * conf/common.rmk (grub_modules_init.lst): Depends on
49643 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49644 that the target does not exist before producing.
49645 (grub_modules_init.h): Remove the target before generating.
49646 (grub_emu_init.c): Likewise.
49648 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49650 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49652 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49653 for the target-specific tests. Make sure that we also have the
49654 up-to-date target variables for those tests.
49656 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49658 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49659 (PModule::rule): Likewise.
49661 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49663 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49664 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49665 target-specific flags should be prefixed.
49666 (PModule::rule): Likewise.
49668 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49670 * configure.ac (CMP): Check if cmp is available explicitly.
49672 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49674 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49675 (target_cpu): New variable.
49676 (pkglibdir): Use target_cpu instead of host_cpu.
49678 * util/i386/pc/grub-install.in (host_cpu): Removed.
49679 (target_cpu): New variable.
49680 (pkglibdir): Use target_cpu instead of host_cpu.
49682 * util/genmoddep.c: Removed.
49684 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49685 instead of GRUB_HOST_SIZEOF_VOID_P.
49686 * kern/dl.c: Likewise.
49688 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49690 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49691 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49692 (GRUB_TARGET_SIZEOF_LONG): ... this.
49693 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49694 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49695 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49697 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49698 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49699 (GRUB_TARGET_SIZEOF_LONG): ... this.
49700 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49701 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49702 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49704 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49705 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49706 (GRUB_TARGET_SIZEOF_LONG): ... this.
49707 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49708 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49710 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49711 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49712 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49713 instead of GRUB_HOST_SIZEOF_LONG.
49714 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49715 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49716 GRUB_CPU_WORDS_BIGENDIAN.
49717 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49718 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49721 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49722 (genmoddep_SOURCES): Likewise.
49723 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49724 (genmoddep_SOURCES): Likewise.
49725 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49726 (genmoddep_SOURCES): Likewise.
49727 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49729 (genmoddep_SOURCES): Likewise.
49731 * genmoddep.awk: New file.
49733 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49734 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49735 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49736 (PModule::rule): Likewise.
49737 (Program::rule): Likewise.
49738 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49739 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49742 * configure.ac: Rewritten intensively to use host and target
49743 instead of build and host, respectively.
49745 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49746 (host_cpu): Removed.
49747 (target_cpu): New variable.
49748 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49749 (BUILD_CC): Removed.
49750 (BUILD_CFLAGS): Likewise.
49751 (BUILD_CPPFLAGS): Likewise.
49752 (TARGET_CC): New variable.
49753 (TARGET_CFLAGS): Likewise.
49754 (TARGET_CPPFLAGS): Likewise.
49755 (TARGET_LDFLAGS): Likewise.
49757 (include): Use target_cpu instead of host_cpu.
49758 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49760 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49762 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49764 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49765 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49766 field 'false' to 'exec_on_false'.
49767 (grub_script_create_cmdif): Renamed argument names to reflect above
49770 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49772 * normal/script.c (grub_script_create_cmdif): Likewise.
49774 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49776 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49778 (grub_hfsplus_btree_recptr): Likewise.
49779 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49780 FILEBLOCK both to pass a block number and store next block
49782 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49783 overflow file correctly. Specify errors appropriately, because
49784 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49785 grub_hfsplus_btree_recptr to get the pointer to a found key.
49786 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49789 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49791 (_linux_mod_SOURCES): New variable.
49792 (_linux_mod_CFLAGS): Likewise.
49793 (_linux_mod_LDFLAGS): Likewise.
49794 (linux_mod_SOURCES): Likewise.
49795 (linux_mod_CFLAGS): Likewise.
49796 (linux_mod_LDFLAGS): Likewise.
49798 * DISTLIST: Added loader/i386/efi/linux.c,
49799 loader/i386/efi/linux_normal.c and
49800 include/grub/i386/efi/loader.h.
49802 * loader/i386/efi/linux.c: New file.
49803 * loader/i386/efi/linux_normal.c: Likewise.
49804 * include/grub/i386/efi/loader.h: Likewise.
49806 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49808 * commands/blocklist.c: New file.
49810 * DISTLIST: Added commands/blocklist.c.
49812 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49813 color for the background, and a darker color for the foreground.
49814 (grub_console_checkkey): Return READ_KEY.
49815 (grub_console_cls): Set the background to
49816 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49818 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49820 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49821 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49823 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49826 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49827 BG. The spec is wrong again.
49829 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49831 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49833 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49834 commands/blocklist.c.
49835 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49837 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49838 (blocklist_mod_SOURCES): New variable.
49839 (blocklist_mod_CFLAGS): Likewise.
49840 (blocklist_mod_LDFLAGS): Likewise.
49842 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49844 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49846 (lba_mode): Use %eax more intensively to reduce the code size.
49848 2006-05-20 Marco Gerards <marco@gnu.org>
49850 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49852 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49854 (script): Accept leading newlines.
49855 (newlines): New rule to describe 0 or more newlines.
49856 (commands): Accept `command' with trailing newline. Fixed the
49857 order in which arguments were passed to `grub_script_add_cmd'.
49858 Accept commands separated by newlines.
49859 (function): Changed to accept newlines.
49860 (menuentry) Rewritten.
49862 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49863 front of the list, instead of to the end.
49865 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49867 * util/i386/pc/grub-install.in (bindir): New variable.
49868 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49869 Shaver <lbgwjl@gmail.com>.
49871 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49873 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49874 grub/machine/linux.h
49875 * loader/i386/pc/linux.c: Likewise.
49877 * include/grub/i386/pc/linux.h: Moved to ...
49878 * include/grub/i386/linux.h: ... here.
49880 * include/grub/i386/linux.h (struct linux_kernel_params): New
49883 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49885 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49887 (grub_video_vbe_blit_glyph): Likewise.
49888 (grub_video_vbe_blit_bitmap): Likewise.
49889 (grub_video_vbe_blit_render_target): Likewise.
49891 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49893 * configure.ac (--with-platform): Properly quote the square
49896 2006-05-08 Marco Gerards <marco@gnu.org>
49898 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49900 (kernel_elf_HEADERS): ...to this. Updated all users.
49901 (grubof_symlist.c): Renamed from this...
49902 (kernel_elf_symlist.c): ...to this. Updated all users.
49903 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49904 (grubof_SOURCES): Renamed from this...
49905 (kernel_elf_SOURCES): ...to this.
49906 (grubof_HEADERS): Renamed from this...
49907 (kernel_elf_HEADERS): ...to this.
49908 (grubof_CFLAGS): Renamed from this...
49909 (kernel_elf_CFLAGS): ...to this.
49910 (grubof_ASFLAGS): Renamed from this...
49911 (kernel_elf_ASFLAGS): ...to this.
49912 (grubof_LDFLAGS): Renamed from this...
49913 (kernel_elf_LDFLAGS): ...to this.
49915 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49917 (kernel_elf_HEADERS): ...to this. Updated all users.
49918 (grubof_symlist.c): Renamed from this...
49919 (kernel_elf_symlist.c): ...to this. Updated all users.
49920 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49921 (grubof_SOURCES): Renamed from this...
49922 (kernel_elf_SOURCES): ...to this.
49923 (grubof_HEADERS): Renamed from this...
49924 (kernel_elf_HEADERS): ...to this.
49925 (grubof_CFLAGS): Renamed from this...
49926 (kernel_elf_CFLAGS): ...to this.
49927 (grubof_ASFLAGS): Renamed from this...
49928 (kernel_elf_ASFLAGS): ...to this.
49929 (grubof_LDFLAGS): Renamed from this...
49930 (kernel_elf_LDFLAGS): ...to this.
49932 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49933 `kernel.elf' instead of `grubof'.
49935 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49937 Add --with-platform to configure. Use pkglibdir instead of
49938 pkgdatadir. This is reported by Roger Leigh.
49940 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49941 (host_vendor): Likewise.
49942 (host_os): Likewise.
49943 (pkgdatadir): Likewise.
49944 (platform): New variable.
49945 (pkglibdir): Likewise.
49946 Use PKGLIBDIR instead of PKGDATADIR.
49948 * util/i386/pc/grub-install.in (datadir): Removed.
49949 (host_vendor): Likewise.
49950 (host_os): Likewise.
49951 (pkgdatadir): Likewise.
49952 (platform): New variable.
49953 (pkglibdir): Likewise.
49954 Use PKGLIBDIR instead of PKGDATADIR.
49956 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49957 instead of GRUB_DATADIR.
49959 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49961 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49964 * configure.ac (--with-platform): New option.
49965 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49967 * Makefile.in: Include a makefile based on PLATFORM instead of
49969 (pkgdatadir): Not appended by the machine type.
49970 (pkglibdir): Appended by the machine type.
49971 (host_vendor): Removed.
49972 (platform): New variable.
49973 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49974 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49975 (uninstall): Likewise.
49977 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49979 Use the environment context in the menu. Remove the commands
49980 "default" and "timeout", and use variables instead.
49982 * normal/menu.c: Include grub/env.h.
49983 (print_entry): Cast TITLE to silence gcc.
49984 (get_timeout): New function.
49985 (set_timeout): Likewise.
49986 (get_entry_number): Likewise.
49987 (run_menu): Use a default entry, a fallback entry and a timeout
49988 in the environment variables "default", "fallback" and
49989 "timeout". Also, tweak the default entry if it is not within the
49990 current menu entries.
49991 (grub_menu_run): Use a fallback entry in the environment variable
49994 * normal/main.c (read_config_file): Do not initialize
49995 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49997 (grub_normal_execute): Use a data slot to store the menu.
49999 * include/grub/normal.h (struct grub_menu): Removed default_entry,
50000 fallback_entry and timeout.
50001 (struct grub_menu_list): Removed.
50002 (grub_menu_list_t): Likewise.
50003 (struct grub_context): Likewise.
50004 (grub_context_t): Likewise.
50005 (grub_context_get): Likewise.
50006 (grub_context_get_current_menu): Likewise.
50007 (grub_context_push_menu): Likewise.
50008 (grub_context_pop_menu): Likewise.
50009 (grub_default_init): Likewise.
50010 (grub_default_fini): Likewise.
50011 (grub_timeout_init): Likewise.
50012 (grub_timeout_fini): Likewise.
50014 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
50016 (normal_mod_SOURCES): Removed normal/context.c.
50018 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
50019 commands/default.c, commands/timeout.c and normal/context.c.
50020 (normal_mod_SOURCES): Removed normal/context.c.
50022 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
50023 commands/timeout.c and normal/context.c.
50024 (normal_mod_SOURCES): Removed normal/context.c.
50026 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
50027 commands/default.c, commands/timeout.c and normal/context.c.
50028 (normal_mod_SOURCES): Removed normal/context.c.
50030 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
50032 (default_mod_SOURCES): Removed.
50033 (default_mod_CFLAGS): Likewise.
50034 (default_mod_LDFLAGS): Likewise.
50035 (timeout_mod_SOURCES): Removed.
50036 (timeout_mod_CFLAGS): Likewise.
50037 (timeout_mod_LDFLAGS): Likewise.
50039 * DISTLIST: Removed commands/default.c, commands/timeout.c and
50042 * commands/default.c: Removed.
50043 * commands/timeout.c: Likewise.
50044 * normal/context.c: Likewise.
50046 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
50048 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
50050 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
50052 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
50053 "next" to "prev" for readability.
50054 (struct grub_env_sorted_var): New struct.
50055 (grub_env_context): Renamed to ...
50056 (initial_context): ... this.
50057 (grub_env_var_context): Renamed to ...
50058 (current_context): ... this.
50059 (grub_env_find): Look only at CURRENT_CONTEXT.
50060 (grub_env_context_open): Rewritten to copy exported variables from
50062 (grub_env_context_close): Rewritten according to the new
50063 scheme. Also, add an assertion to prevent the initial context from
50065 (grub_env_insert): Removed the code for the sorted list.
50066 (grub_env_remove): Likewise.
50067 (grub_env_export): Simply mark the variable with
50068 GRUB_ENV_VAR_GLOBAL.
50069 (grub_env_set): A cosmetic change for naming consistency.
50070 (grub_env_get): Likewise.
50071 (grub_env_unset): Likewise.
50072 (grub_env_iterate): Rewritten to sort variables within this
50074 (grub_register_variable_hook): Fixed for naming consistency. Call
50075 grub_env_find again, only if NAME is not found at the first time.
50076 (mangle_data_slot_name): New function.
50077 (grub_env_set_data_slot): Likewise.
50078 (grub_env_get_data_slot): Likewise.
50079 (grub_env_unset_data_slot): Likewise.
50081 * include/grub/env.h (grub_env_var_type): New enum.
50082 (GRUB_ENV_VAR_LOCAL): New constant.
50083 (GRUB_ENV_VAR_GLOBAL): Likewise.
50084 (GRUB_ENV_VAR_DATA): Likewise.
50085 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
50087 (grub_env_set): Replace VAR with NAME for consistency.
50088 (grub_register_variable_hook): Likewise.
50089 (grub_env_export): Specify the name of the argument.
50090 (grub_env_set_data_slot): New prototype.
50091 (grub_env_get_data_slot): Likewise.
50092 (grub_env_unset_data_slot): Likewise.
50094 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50096 Extend the loader so that GRUB can accept a loader which comes
50097 back to GRUB when a loaded image exits. Also, this change adds
50098 support for a chainloader on EFI.
50100 * term/efi/console.c: Include grub/misc.h.
50101 (grub_console_checkkey): Display a scan code on the top for
50102 debugging. This will be removed once the EFI port gets stable.
50103 Correct the scan code mapping.
50105 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
50106 allocate memory from larger regions, in order to reduce the number
50107 of allocated regions. Otherwise, the MacOSX loader panics.
50108 (filter_memory_map): Avoid less than 1MB for compatibility with
50110 (add_memory_regions): Allocate from the tail of a region, if
50111 possible, to avoid allocating a region near to 1MB, for the MacOSX
50114 * kern/efi/init.c (grub_efi_set_prefix): Specify
50115 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
50117 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
50118 argument IMAGE_HANDLE and specify it to get a loaded image.
50119 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
50120 grub_efi_get_loaded_image.
50121 (grub_efi_get_filename): Divide the length by the size of
50123 (grub_efi_get_device_path): New function.
50124 (grub_efi_print_device_path): Print End Device Path nodes. Divide
50125 the length by the size of grub_efi_char16_t for a file path device
50128 * kern/loader.c (grub_loader_noreturn): New variable.
50129 (grub_loader_set): Accept a new argument NORETURN. Set
50130 GRUB_LOADER_NORETURN to NORETURN.
50131 All callers changed.
50132 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
50135 * include/grub/efi/efi.h (grub_efi_get_device_path): New
50137 (grub_efi_get_loaded_image): Take an argument to specify an image
50140 * include/grub/loader.h (grub_loader_set): Added one more argument
50143 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
50144 instead of grub_efi_open_protocol.
50145 (grub_efidisk_get_device_name): Likewise.
50146 (grub_efidisk_close): Print a newline.
50147 (grub_efidisk_get_device_handle): Fixed to use
50148 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
50149 GRUB_EFI_DEVICE_PATH_TYPE.
50151 * disk/efi/efidisk.c (device_path_guid): Moved to ...
50152 * kern/efi/efi.c (device_path_guid): ... here.
50154 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
50156 (kernel_mod_HEADERS): Added efi/disk.h.
50157 (_chain_mod_SOURCES): New variable.
50158 (_chain_mod_CFLAGS): Likewise.
50159 (_chain_mod_LDFLAGS): Likewise.
50160 (chain_mod_SOURCES): Likewise.
50161 (chain_mod_CFLAGS): Likewise.
50162 (chain_mod_LDFLAGS): Likewise.
50164 * DISTLIST: Added include/grub/efi/chainloader.h,
50165 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
50167 * include/grub/efi/chainloader.h: New file.
50168 * loader/efi/chainloader.c: Likewise.
50169 * loader/efi/chainloader_normal.c: Likewise.
50171 2006-04-30 Marco Gerards <marco@gnu.org>
50173 * commands/configfile.c (grub_cmd_source): New function.
50174 (GRUB_MOD_INIT): Register the commands `source' and `.'.
50175 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
50177 2006-04-30 Marco Gerards <marco@gnu.org>
50179 * normal/execute.c (grub_script_execute_cmd): Change the return
50180 type to `grub_err_t'. Correctly return the error.
50181 (grub_script_execute_cmdline): In case a command line is not a
50182 command or a function, try to interpret it as an assignment.
50184 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50186 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50187 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50188 skip a node whose name is obviously invalid as UTF-16,
50189 i.e. contains a NUL character. Stop the iteration when the last
50190 directory entry is found. Instead of using the return value of
50191 grub_hfsplus_btree_iterate_node, store the value in RET and use
50192 it, because the iterator can be stopped by the last directory
50195 2006-04-30 Marco Gerards <marco@gnu.org>
50197 * include/grub/env.h (grub_env_export): New prototype. Reported
50198 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50200 2006-04-30 Marco Gerards <marco@gnu.org>
50202 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50203 size of the extents in a catalog file record.
50205 2006-04-29 Marco Gerards <marco@gnu.org>
50207 * commands/configfile.c (grub_cmd_configfile): Execute the
50208 configfile within its own context.
50210 * include/grub/env.h (grub_env_context_open): New prototype.
50211 (grub_env_context_close): Likewise.
50213 * kern/env.c (grub_env): Removed.
50214 (grub_env_sorted): Likewise.
50215 (grub_env_context): New variable.
50216 (grub_env_var_context): Likewise.
50217 (grub_env_find): Search both the active context and the global
50219 (grub_env_context_open): New function.
50220 (grub_env_context_close): Likewise.
50221 (grub_env_insert): Likewise.
50222 (grub_env_remove): Likewise.
50223 (grub_env_export): Likewise.
50224 (grub_env_set): Changed to use helper functions to avoid code
50226 (grub_env_iterate): Rewritten so both the current context and the
50227 global context are being used.
50229 * normal/command.c (export_command): New function.
50230 (grub_command_init): Register the `export' function.
50232 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50234 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50235 explicitly to suppress gcc's warnings.
50236 * fs/fat.c (grub_fat_find_dir): Likewise.
50237 (grub_fat_label): Likewise.
50238 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50239 (grub_xfs_mount): Likewise.
50240 (grub_xfs_label): Likewise.
50241 * fs/affs.c (grub_affs_mount): Likewise.
50242 (grub_affs_label): Likewise.
50243 (grub_affs_iterate_dir): Likewise.
50244 * fs/sfs.c (grub_sfs_mount): Likewise.
50245 (grub_sfs_iterate_dir): Likewise.
50246 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50247 * fs/hfs.c (grub_hfs_mount): Likewise.
50248 (grub_hfs_cmp_catkeys): Likewise.
50249 (grub_hfs_find_dir): Likewise.
50250 (grub_hfs_dir): Likewise.
50251 (grub_hfs_label): Likewise.
50252 * fs/jfs.c (grub_jfs_mount): Likewise.
50253 (grub_jfs_opendir): Likewise.
50254 (grub_jfs_getent): Likewise.
50255 (grub_jfs_lookup_symlink): Likewise.
50256 (grub_jfs_label): Likewise.
50257 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50258 (grub_hfsplus_iterate_dir): Likewise.
50259 (grub_hfsplus_btree_iterate_node): Made static.
50261 * util/grub-emu.c (prefix): New variable.
50262 (grub_machine_set_prefix): New function.
50263 (main): Do not set the environment variable "prefix" here. Only
50264 set PREFIX, which is used later by grub_machine_set_prefix.
50266 * include/grub/video.h: Do not include grub/symbol.h.
50267 (grub_video_register): Not exported. This symbol is not defined in
50269 (grub_video_unregister): Likewise.
50270 (grub_video_iterate): Likewise.
50271 (grub_video_setup): Likewise.
50272 (grub_video_restore): Likewise.
50273 (grub_video_get_info): Likewise.
50274 (grub_video_get_blit_format): Likewise.
50275 (grub_video_set_palette): Likewise.
50276 (grub_video_get_palette): Likewise.
50277 (grub_video_set_viewport): Likewise.
50278 (grub_video_get_viewport): Likewise.
50279 (grub_video_map_color): Likewise.
50280 (grub_video_map_rgb): Likewise.
50281 (grub_video_map_rgba): Likewise.
50282 (grub_video_fill_rect): Likewise.
50283 (grub_video_blit_glyph): Likewise.
50284 (grub_video_blit_bitmap): Likewise.
50285 (grub_video_blit_render_target): Likewise.
50286 (grub_video_scroll): Likewise.
50287 (grub_video_swap_buffers): Likewise.
50288 (grub_video_create_render_target): Likewise.
50289 (grub_video_delete_render_target): Likewise.
50290 (grub_video_set_active_render_target): Likewise.
50292 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50294 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50296 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50297 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50298 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50299 instead of $(srcdir)/genkernsyms.sh.
50301 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50302 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50303 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50304 instead of $(srcdir)/genkernsyms.sh.
50306 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50307 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50308 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50309 instead of $(srcdir)/genkernsyms.sh.
50311 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50312 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50313 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50314 instead of $(srcdir)/genkernsyms.sh.
50316 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50319 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50321 (gensymlist.sh): New target.
50322 (genkernsyms.sh): Likewise.
50324 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50325 genkernsyms.sh.in and gensymlist.sh.in.
50327 * genkernsyms.sh: Removed.
50328 * gensymlist.sh: Likewise.
50330 * genkernsyms.sh.in: New file.
50331 * gensymlist.sh.in: Likewise.
50333 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50335 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50336 clobber "prefix", since we may have already set it manually.
50338 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50340 * kern/misc.c (abort): New alias for grub_abort.
50342 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50344 A new machine-specific function "grub_machine_set_prefix" is
50345 defined. This is called after loading modules, so that a prefix
50346 initialization can use modules. Also, this change adds an
50347 intensive debugging feature for the memory manager via the
50348 configure option "--enable-mm-debug".
50350 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50353 * kern/sparc64/ieee1275/init.c (abort): Removed.
50354 (grub_stop): Likewise.
50355 (grub_exit): New function.
50356 (grub_set_prefix): Renamed to ...
50357 (grub_machine_set_prefix): ... this.
50358 (grub_machine_init): Do not call grub_set_prefix.
50360 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50361 (grub_machine_set_prefix): ... this.
50362 (grub_machine_init): Do not call grub_set_prefix.
50364 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50365 (grub_machine_init): Do not set the prefix here.
50367 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50369 * kern/efi/init.c: Include grub/mm.h.
50370 (grub_efi_set_prefix): New function.
50372 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50373 (grub_efi_get_filename): New function.
50374 (grub_print_device_path): Renamed to ...
50375 (grub_efi_print_device_path): ... this.
50377 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50378 [MM_DEBUG] (grub_realloc): Likewise.
50379 [MM_DEBUG] (grub_free): Likewise.
50380 [MM_DEBUG] (grub_memalign): Likewise.
50381 [MM_DEBUG] (grub_mm_debug): New variable.
50382 [MM_DEBUG] (grub_debug_malloc): New function.
50383 [MM_DEBUG] (grub_debug_free): New function.
50384 [MM_DEBUG] (grub_debug_realloc): New function.
50385 [MM_DEBUG] (grub_debug_memalign): New function.
50387 * kern/misc.c (grub_abort): Print a newline to distinguish
50390 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50391 grub_set_root_dev after loading modules. This is necessary when
50392 setting a prefix depends on modules.
50394 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50395 (grub_efi_print_device_path): ... this.
50396 (grub_efi_get_filename): New prototype.
50397 (grub_efi_set_prefix): Likewise.
50399 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50401 (grub_efidisk_get_device_handle): New prototype.
50402 (grub_efidisk_get_device_name): Likewise.
50404 * include/grub/mm.h: Include config.h.
50405 (MM_DEBUG): Removed.
50406 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50407 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50408 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50409 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50410 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50411 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50412 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50413 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50414 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50416 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50418 * disk/efi/efidisk.c: Include grub/partition.h.
50419 (iterate_child_devices): New function.
50420 (add_device): First, compare only last device path nodes, so that
50421 devices are sorted by the types.
50422 (grub_efidisk_get_device_handle): New function.
50423 (grub_efidisk_get_device_name): Likewise.
50425 * configure.ac (--enable-mm-debug): New option to enable the
50426 memory manager debugging feature. This makes the binary much
50427 bigger, so is disabled by default.
50429 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50431 Use grub_abort instead of grub_stop, and grub_exit must be
50432 define in each architecture now. Also, this change adds support
50435 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50436 (grub_getkey): New function.
50437 (grub_term_get_current): Likewise.
50439 * util/i386/pc/grub-setup.c: Include grub/term.h.
50440 (grub_getkey): New function.
50441 (grub_term_get_current): Likewise.
50443 * util/misc.c (grub_stop): Renamed to ...
50444 (grub_exit): ... this.
50446 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50447 (grub_exit): ... this.
50448 (grub_machine_init): Use grub_abort instead of abort.
50449 (grub_stop): Removed.
50451 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50454 * kern/i386/pc/startup.S (grub_exit): New function.
50455 (cold_reboot): New label.
50457 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50458 (grub_efi_init): Call grub_efidisk_init.
50459 (grub_efi_fini): Call grub_efidisk_fini.
50461 * kern/efi/efi.c: Include grub/mm.h.
50462 (grub_efi_console_control_guid): Renamed to ...
50463 (console_control_guid): ... this.
50464 (grub_efi_loaded_image_guid): Renamed to ...
50465 (loaded_image_guid): ... this.
50466 (grub_efi_locate_handle): New function.
50467 (grub_efi_open_protocol): Likewise.
50468 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50469 GRUB_EFI_CONSOLE_CONTROL_GUID.
50470 (grub_efi_exit): Removed.
50471 (grub_stop): Likewise.
50472 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50473 (grub_exit): New function.
50474 (grub_print_device_path): Likewise.
50476 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50477 (grub_enter_rescue_mode): Register "exit".
50479 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50480 (grub_abort): New function.
50482 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50484 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50486 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50488 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50489 (grub_print_device_path): New prototype.
50490 (grub_efi_locate_handle): Likewise.
50491 (grub_efi_open_protocol): Likewise.
50493 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50494 * disk/efi/efidisk.c: Likewise.
50496 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50498 * include/grub/efi/console_control.h
50499 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50501 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50502 last 8 bytes as an array.
50503 (GRUB_EFI_DISK_IO_GUID): New macro.
50504 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50505 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50506 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50508 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50509 (struct grub_efi_device_path): Rename the member "sub_type" to
50511 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50512 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50513 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50514 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50515 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50516 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50517 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50518 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50519 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50520 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50521 (struct grub_efi_pci_device_path): New structure.
50522 (grub_efi_pci_device_path_t): New type.
50523 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50524 (struct grub_efi_pccard_device_path): New structure.
50525 (grub_efi_pccard_device_path_t): New type.
50526 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50527 (struct grub_efi_memory_mapped_device_path): New structure.
50528 (grub_efi_memory_mapped_device_path_t): New type.
50529 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50530 (struct grub_efi_vendor_device_path): New structure.
50531 (grub_efi_vendor_device_path_t): New type.
50532 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50533 (struct grub_efi_controller_device_path): New structure.
50534 (grub_efi_controller_device_path_t): New type.
50535 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50536 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50537 (struct grub_efi_acpi_device_path): New structure.
50538 (grub_efi_acpi_device_path_t): New type.
50539 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50540 (struct grub_efi_expanded_acpi_device_path): New structure.
50541 (grub_efi_expanded_acpi_device_path_t): New type.
50542 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50543 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50544 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50545 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50546 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50547 (struct grub_efi_atapi_device_path): New structure.
50548 (grub_efi_atapi_device_path_t): New type.
50549 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50550 (struct grub_efi_fibre_channel_device_path): New structure.
50551 (grub_efi_fibre_channel_device_path_t): New type.
50552 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50553 (struct grub_efi_1394_device_path): New structure.
50554 (grub_efi_1394_device_path_t): New type.
50555 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50556 (struct grub_efi_usb_device_path): New structure.
50557 (grub_efi_usb_device_path_t): New type.
50558 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50559 (struct grub_efi_usb_class_device_path): New structure.
50560 (grub_efi_usb_class_device_path_t): New type.
50561 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50562 (struct grub_efi_i2o_device_path): New structure.
50563 (grub_efi_i2o_device_path_t): New type.
50564 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50565 (struct grub_efi_mac_address_device_path): New structure.
50566 (grub_efi_mac_address_device_path_t): New type.
50567 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50568 (struct grub_efi_ipv4_device_path): New structure.
50569 (grub_efi_ipv4_device_path_t): New type.
50570 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50571 (struct grub_efi_ipv6_device_path): New structure.
50572 (grub_efi_ipv6_device_path_t): New type.
50573 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50574 (struct grub_efi_infiniband_device_path): New structure.
50575 (grub_efi_infiniband_device_path_t): New type.
50576 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50577 (struct grub_efi_uart_device_path): New structure.
50578 (grub_efi_uart_device_path_t): New type.
50579 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50580 (struct grub_efi_vendor_messaging_device_path): New structure.
50581 (grub_efi_vendor_messaging_device_path_t): New type.
50582 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50583 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50584 (struct grub_efi_hard_drive_device_path): New structure.
50585 (grub_efi_hard_drive_device_path_t): New type.
50586 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50587 (struct grub_efi_cdrom_device_path): New structure.
50588 (grub_efi_cdrom_device_path_t): New type.
50589 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50590 (struct grub_efi_vendor_media_device_path): New structure.
50591 (grub_efi_vendor_media_device_path_t): New type.
50592 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50593 (struct grub_efi_file_path_device_path): New structure.
50594 (grub_efi_file_path_device_path_t): New type.
50595 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50596 (struct grub_efi_protocol_device_path): New structure.
50597 (grub_efi_protocol_device_path_t): New type.
50598 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50599 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50600 (struct grub_efi_bios_device_path): New structure.
50601 (grub_efi_bios_device_path_t): New type.
50602 (struct grub_efi_disk_io): New structure.
50603 (grub_efi_disk_io_t): New type.
50604 (struct grub_efi_block_io_media): New structure.
50605 (grub_efi_block_io_media_t): New type.
50606 (struct grub_efi_block_io): New structure.
50607 (grub_efi_block_io_t): New type.
50609 * include/grub/misc.h (grub_stop): Removed.
50610 (grub_exit): New prototype.
50611 (grub_abort): Likewise.
50613 * include/grub/disk.h (enum grub_disk_dev_id): Added
50614 GRUB_DISK_DEVICE_EFIDISK_ID.
50616 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50617 disk/efi/efidisk.c.
50618 (kernel_syms.lst): Remove the target if an error occurs.
50620 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50622 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50623 as it was simply too buggy.
50625 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50627 * kern/misc.c (grub_lltoa): New function.
50628 (grub_vsprintf): Added support for the long long suffix,
50631 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50633 * Makefile.in (LDFLAGS): Add variable.
50634 (LD): Remove variable.
50635 * configure.ac: Add -m32 to LDFLAGS.
50636 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50637 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50638 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50639 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50640 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50642 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50643 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50644 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50646 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50648 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50649 length for unknown glyph.
50651 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50653 Add support for pre-loaded modules into the EFI port.
50655 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50656 completely. Accept one more argument DIR. The caller has changed.
50658 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50660 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50661 (grub_efi_loaded_image_guid): New variable.
50662 (grub_efi_get_loaded_image): New function.
50663 (grub_arch_modules_addr): Likewise.
50665 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50668 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50669 (struct grub_efi_loaded_image): New structure.
50670 (grub_efi_loaded_image_t): New type.
50672 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50674 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50675 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50676 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50678 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50680 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50682 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50684 * DISTLIST: Added include/grub/efi/console.h,
50685 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50686 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50688 * include/grub/efi/console.h: New file.
50689 * include/grub/efi/time.h: Likewise.
50690 * include/grub/i386/efi/kernel.h: Likewise.
50691 * kern/efi/init.c: Likewise.
50692 * kern/efi/mm.c: Likewise.
50693 * term/efi/console.c: Likewise.
50695 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50696 (grub_stop): Removed.
50697 (grub_get_rtc): Likewise.
50698 (grub_machine_init): Simply call grub_efi_init.
50699 (grub_machine_fini): Call grub_efi_fini.
50701 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50702 (grub_efi_output_string): Removed.
50703 (grub_efi_stall): New function.
50704 (grub_stop): Likewise.
50705 (grub_get_rtc): Likewise.
50707 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50708 (grub_efi_stall): New prototype.
50709 (grub_efi_allocate_pages): Likewise.
50710 (grub_efi_free_pages): Likewise.
50711 (grub_efi_get_memory_map): Likewise.
50712 (grub_efi_mm_init): Likewise.
50713 (grub_efi_mm_fini): Likewise.
50714 (grub_efi_init): Likewise.
50715 (grub_efi_fini): Likewise.
50717 * include/grub/i386/efi/time.h: Do not include
50718 grub/symbol.h. Include grub/efi/time.h.
50719 (GRUB_TICKS_PER_SECOND): Removed.
50720 (grub_get_rtc): Likewise.
50722 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50723 Added padding. The EFI spec is buggy.
50724 (GRUB_EFI_BLACK): New macro.
50725 (GRUB_EFI_BLUE): Likewise.
50726 (GRUB_EFI_GREEN): Likewise.
50727 (GRUB_EFI_CYAN): Likewise.
50728 (GRUB_EFI_RED): Likewise.
50729 (GRUB_EFI_MAGENTA): Likewise.
50730 (GRUB_EFI_BROWN): Likewise.
50731 (GRUB_EFI_LIGHTGRAY): Likewise.
50732 (GRUB_EFI_BRIGHT): Likewise.
50733 (GRUB_EFI_DARKGRAY): Likewise.
50734 (GRUB_EFI_LIGHTBLUE): Likewise.
50735 (GRUB_EFI_LIGHTGREEN): Likewise.
50736 (GRUB_EFI_LIGHTCYAN): Likewise.
50737 (GRUB_EFI_LIGHTRED): Likewise.
50738 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50739 (GRUB_EFI_YELLOW): Likewise.
50740 (GRUB_EFI_WHITE): Likewise.
50741 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50742 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50743 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50744 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50745 (GRUB_EFI_BACKGROUND_RED): Likewise.
50746 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50747 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50748 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50749 (GRUB_EFI_TEXT_ATTR): Likewise.
50751 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50752 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50753 (kernel_mod_HEADERS): Added efi/time.h.
50755 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50757 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50758 include/grub/efi/api.h, include/grub/efi/console_control.h,
50759 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50760 include/grub/i386/efi/time.h, kern/efi/efi.c,
50761 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50762 and util/i386/efi/grub-mkimage.c.
50764 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50766 * genmk.rb (PModule#rule): Do not export symbols if
50767 #{prefix}_EXPORTS is set to "no".
50769 * conf/i386-efi.mk: New file.
50770 * conf/i386-efi.rmk: Likewise.
50771 * include/grub/efi/api.h: Likewise.
50772 * include/grub/efi/console_control.h: Likewise.
50773 * include/grub/efi/efi.h: Likewise.
50774 * include/grub/efi/pe32.h: Likewise.
50775 * include/grub/i386/efi/time.h: Likewise.
50776 * kern/efi/efi.c: Likewise.
50777 * kern/i386/efi/init.c: Likewise.
50778 * kern/i386/efi/startup.S: Likewise.
50779 * util/i386/efi/grub-mkimage.c: Likewise.
50781 2006-04-17 Marco Gerards <marco@gnu.org>
50783 * include/grub/script.h: Include <grub/parser.h> and
50784 "grub_script.tab.h".
50785 (struct grub_lexer_param): New struct.
50786 (struct grub_parser_param): Likewise.
50787 (grub_script_create_arglist): Pass the state in an argument.
50788 (grub_script_add_arglist): Likewise.
50789 (grub_script_create_cmdline): Likewise.
50790 (grub_script_create_cmdblock): Likewise.
50791 (grub_script_create_cmdif): Likewise.
50792 (grub_script_create_cmdmenu): Likewise.
50793 (grub_script_add_cmd): Likewise.
50794 (grub_script_arg_add): Likewise.
50795 (grub_script_lexer_ref): Likewise.
50796 (grub_script_lexer_deref): Likewise.
50797 (grub_script_lexer_record_start): Likewise.
50798 (grub_script_lexer_record_stop): Likewise.
50799 (grub_script_mem_record): Likewise.
50800 (grub_script_mem_record_stop): Likewise.
50801 (grub_script_malloc): Likewise.
50802 (grub_script_yylex): Likewise.
50803 (grub_script_yyparse): Likewise.
50804 (grub_script_yyerror): Likewise.
50805 (grub_script_yylex): Likewise.
50806 (grub_script_lexer_init): Return the state.
50808 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50809 (grub_script_lexer_done): Likewise.
50810 (grub_script_lexer_getline): Likewise.
50811 (grub_script_lexer_refs): Likewise.
50812 (script): Likewise.
50813 (newscript): Likewise.
50814 (record): Likewise.
50815 (recording): Likewise.
50816 (recordpos): Likewise.
50817 (recordlen): Likewise.
50818 (grub_script_lexer_init): Return the state instead of setting
50820 (grub_script_lexer_ref): Use the newly added argument for state
50821 instead of globals.
50822 (grub_script_lexer_deref): Likewise.
50823 (grub_script_lexer_record_start): Likewise.
50824 (grub_script_lexer_record_stop): Likewise.
50825 (recordchar): Likewise.
50826 (nextchar): Likewise.
50827 (grub_script_yylex2): Likewise.
50828 (grub_script_yylex): Likewise.
50829 (grub_script_yyerror): Likewise.
50831 * normal/parser.y (func_mem): Removed variable.
50832 (menu_entry): Likewise.
50834 (%lex-param): New parser option.
50835 (%parse-param): Likewise.
50836 (script): Always return the AST.
50837 (argument): Pass the state around.
50838 (arguments): Likewise.
50839 (grubcmd): Likewise.
50840 (commands): Likewise.
50841 (function): Likewise.
50842 (menuentry): Likewise.
50843 (if_statement): Likewise.
50846 * normal/script.c (grub_script_memused): Removed variable.
50847 (grub_script_parsed): Likewise.
50848 (grub_script_malloc): Added a state argument. Use that instead of
50850 (grub_script_mem_record): Likewise.
50851 (grub_script_mem_record_stop): Likewise.
50852 (grub_script_arg_add): Likewise.
50853 (grub_script_add_arglist): Likewise.
50854 (grub_script_create_cmdline): Likewise.
50855 (grub_script_create_cmdif): Likewise.
50856 (grub_script_create_cmdmenu): Likewise.
50857 (grub_script_add_cmd): Likewise.
50858 (grub_script_parse): Setup the state before calling the parser.
50860 2006-04-16 Marco Gerards <marco@gnu.org>
50862 * normal/command.c (grub_command_init): Remove the title command.
50864 * normal/lexer.c (grub_script_yylex): Renamed from this...
50865 (grub_script_yylex2): ... to this.
50866 (grub_script_yylex): New function. Temporary
50867 introduced to filter some tokens.
50868 (grub_script_yyerror): Print a newline.
50870 * normal/main.c (read_config_file): Output information about the
50871 lines that contain errors. Wait for a key after all lines have
50872 been processed. Don't return an empty menu.
50874 * normal/parser.y (func_mem): Don't initialize.
50875 (menu_entry): Likewise.
50876 (err): New variable.
50877 (script): Don't return anything when an error was encountered.
50878 (ws, returns): Removed rules.
50879 (argument): Disabled concatenated variable support.
50880 (arguments): Remove explicit separators.
50881 (grubcmd): Likewise.
50882 (function): Likewise.
50883 (menuentry): Likewise.
50885 (commands): Likewise. Add error handling.
50887 * normal/script.c (grub_script_create_cmdline): If
50888 `grub_script_parsed' is 0, assume the parser encountered an error.
50890 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50892 * configure.ac: Add support for EFI. Fix the typo
50893 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50895 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50897 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50898 foreign multibyte characters should be shown correctly.
50900 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50902 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50904 (read_config_file): Made it to close file before returning.
50906 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50908 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50909 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50910 video/i386/pc/vbefill.c.
50912 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50913 video/i386/pc/vbefill.c.
50915 * include/grub/video.h (grub_video_blit_format): New enum.
50916 (grub_video_mode_info): Added new member blit_format.
50917 (grub_video_get_blit_format): New function prototype.
50919 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50920 function prototype.
50921 (grub_video_vbe_map_rgb): Likewise.
50922 (grub_video_vbe_unmap_color): Likewise.
50924 * include/grub/i386/pc/vbeblit.h: New file.
50926 * include/grub/i386/pc/vbefill.h: New file.
50928 * video/video.c (grub_video_get_blit_format): New function.
50929 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50930 (grub_video_vbe_map_rgb): Likewise.
50931 (grub_video_vbe_unmap_color): Likewise.
50933 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50935 (grub_video_vbe_blit_render_target): Changed to use more optimized
50937 (grub_video_vbe_setup): Added detection for optimized settings.
50938 (grub_video_vbe_create_render_target): Likewise.
50940 * video/i386/pc/vbeblit.c: New file.
50942 * video/i386/pc/vbefill.c: New file.
50944 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50946 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50949 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50950 parsing to support both hex and dec ranges. If filename was missing
50951 show usage information.
50953 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50955 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50956 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50958 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50959 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50960 (video_mod_SOURCES): Added.
50961 (video_mod_CFLAGS): Likewise.
50962 (video_mod_LDFLAGS): Likewise.
50963 (gfxterm_mod_SOURCES): Likewise.
50964 (gfxterm_mod_CFLAGS): Likewise.
50965 (gfxterm_mod_LDFLAGS): Likewise.
50966 (videotest_mod_SOURCES): Likewise.
50967 (videotest_mod_CFLAGS): Likewise.
50968 (videotest_mod_LDFLAGS): Likewise.
50969 (vesafb_mod_SOURCES): Removed.
50970 (vesafb_mod_CFLAGS): Likewise.
50971 (vesafb_mod_LDFLAGS): Likewise.
50972 (vga_mod_SOURCES): Likewise.
50973 (vga_mod_CFLAGS): Likewise.
50974 (vga_mod_LDFLAGS): Likewise.
50976 * commands/videotest.c: New file.
50978 * font/manager.c (fill_with_default_glyph): Modified to use
50980 (grub_font_get_glyph): Likewise.
50981 (fontmanager): Renamed from this...
50982 (font_manager): ... to this.
50984 * include/grub/font.h (grub_font_glyph): Added new structure.
50985 (grub_font_get_glyph): Modified to use grub_font_glyph.
50987 * include/grub/misc.h (grub_abs): Added as inline function.
50989 * include/grub/video.h: New file.
50991 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50992 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50993 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50994 (grub_vbe_get_controller_info): Renamed from this...
50995 (grub_vbe_bios_get_controller_info): ... to this.
50996 (grub_vbe_get_mode_info): Renamed from this...
50997 (grub_vbe_bios_get_mode_info): ... to this.
50998 (grub_vbe_set_mode): Renamed from this...
50999 (grub_vbe_bios_set_mode): ... to this.
51000 (grub_vbe_get_mode): Renamed from this...
51001 (grub_vbe_bios_get_mode): ... to this.
51002 (grub_vbe_set_memory_window): Renamed from this...
51003 (grub_vbe_bios_set_memory_window): ... to this.
51004 (grub_vbe_get_memory_window): Renamed from this...
51005 (grub_vbe_bios_get_memory_window): ... to this.
51006 (grub_vbe_set_scanline_length): Renamed from this...
51007 (grub_vbe_set_scanline_length): ... to this.
51008 (grub_vbe_get_scanline_length): Renamed from this...
51009 (grub_vbe_bios_get_scanline_length): ... to this.
51010 (grub_vbe_set_display_start): Renamed from this...
51011 (grub_vbe_bios_set_display_start): ... to this.
51012 (grub_vbe_get_display_start): Renamed from this...
51013 (grub_vbe_bios_get_display_start): ... to this.
51014 (grub_vbe_set_palette_data): Renamed from this...
51015 (grub_vbe_bios_set_palette_data): ... to this.
51016 (grub_vbe_set_pixel_rgb): Removed.
51017 (grub_vbe_set_pixel_index): Likewise.
51019 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
51021 (grub_vbe_bios_get_controller_info): ... to this.
51022 (grub_vbe_get_mode_info): Renamed from this...
51023 (grub_vbe_bios_get_mode_info): ... to this.
51024 (grub_vbe_set_mode): Renamed from this...
51025 (grub_vbe_bios_set_mode): ... to this.
51026 (grub_vbe_get_mode): Renamed from this...
51027 (grub_vbe_bios_get_mode): ... to this.
51028 (grub_vbe_set_memory_window): Renamed from this...
51029 (grub_vbe_bios_set_memory_window): ... to this.
51030 (grub_vbe_get_memory_window): Renamed from this...
51031 (grub_vbe_bios_get_memory_window): ... to this.
51032 (grub_vbe_set_scanline_length): Renamed from this...
51033 (grub_vbe_set_scanline_length): ... to this.
51034 (grub_vbe_get_scanline_length): Renamed from this...
51035 (grub_vbe_bios_get_scanline_length): ... to this.
51036 (grub_vbe_set_display_start): Renamed from this...
51037 (grub_vbe_bios_set_display_start): ... to this.
51038 (grub_vbe_get_display_start): Renamed from this...
51039 (grub_vbe_bios_get_display_start): ... to this.
51040 (grub_vbe_set_palette_data): Renamed from this...
51041 (grub_vbe_bios_set_palette_data): ... to this.
51042 (grub_vbe_bios_get_controller_info): Fixed problem with registers
51043 getting corrupted after calling it. Added more pushes and pops.
51044 (grub_vbe_bios_set_mode): Likewise.
51045 (grub_vbe_bios_get_mode): Likewise.
51046 (grub_vbe_bios_get_memory_window): Likewise.
51047 (grub_vbe_bios_set_scanline_length): Likewise.
51048 (grub_vbe_bios_get_scanline_length): Likewise.
51049 (grub_vbe_bios_get_display_start): Likewise.
51050 (grub_vbe_bios_set_palette_data): Likewise.
51052 * normal/cmdline.c (cl_set_pos): Refresh the screen.
51053 (cl_insert): Likewise.
51054 (cl_delete): Likewise.
51056 * term/gfxterm.c: New file.
51058 * term/i386/pc/vesafb.c: Removed file.
51060 * video/video.c: New file.
51062 * video/i386/pc/vbe.c (real2pm): Added new function.
51063 (grub_video_vbe_draw_pixel): Likewise.
51064 (grub_video_vbe_get_video_ptr): Likewise.
51065 (grub_video_vbe_get_pixel): Likewise
51066 (grub_video_vbe_init): Likewise.
51067 (grub_video_vbe_fini): Likewise.
51068 (grub_video_vbe_setup): Likewise.
51069 (grub_video_vbe_get_info): Likewise.
51070 (grub_video_vbe_set_palette): Likewise.
51071 (grub_video_vbe_get_palette): Likewise.
51072 (grub_video_vbe_set_viewport): Likewise.
51073 (grub_video_vbe_get_viewport): Likewise.
51074 (grub_video_vbe_map_color): Likewise.
51075 (grub_video_vbe_map_rgb): Likewise.
51076 (grub_video_vbe_map_rgba): Likewise.
51077 (grub_video_vbe_unmap_color): Likewise.
51078 (grub_video_vbe_fill_rect): Likewise.
51079 (grub_video_vbe_blit_glyph): Likewise.
51080 (grub_video_vbe_blit_bitmap): Likewise.
51081 (grub_video_vbe_blit_render_target): Likewise.
51082 (grub_video_vbe_scroll): Likewise.
51083 (grub_video_vbe_swap_buffers): Likewise.
51084 (grub_video_vbe_create_render_target): Likewise.
51085 (grub_video_vbe_delete_render_target): Likewise.
51086 (grub_video_vbe_set_active_render_target): Likewise.
51087 (grub_vbe_set_pixel_rgb): Remove function.
51088 (grub_vbe_set_pixel_index): Likewise.
51089 (index_color_mode): Remove static variable.
51090 (active_mode): Likewise.
51091 (framebuffer): Likewise.
51092 (bytes_per_scan_line): Likewise.
51093 (grub_video_vbe_adapter): Added new static variable.
51094 (framebuffer): Likewise.
51095 (render_target): Likewise.
51096 (initial_mode): Likewise.
51097 (mode_in_use): Likewise.
51098 (mode_list): Likewise.
51100 2006-03-10 Marco Gerards <marco@gnu.org>
51102 * configure.ac (AC_INIT): Bumped to 1.93.
51104 * DISTLIST: Added `include/grub/hfs.h'.
51106 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
51108 * boot/i386/pc/boot.S (general_error): Before looping, try INT
51109 18H, which might help the BIOS falling back to next boot media.
51111 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
51113 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
51114 Poe Chen <poe.poechen@gmail.com>.
51116 2006-01-17 Marco Gerards <marco@gnu.org>
51118 * include/grub/normal.h: Include <grub/script.h>.
51119 (grub_command_list): Removed struct.
51120 (grub_command_list_t): Removed type.
51121 (grub_menu_entry): Remove members `num' and `command_list'. Add
51122 members `commands' and `sourcecode'.
51123 * include/grub/script.h: Add inclusion guards.
51124 (grub_script_cmd_menuentry): New struct.
51125 (grub_script_execute_menuentry): New prototype.
51126 (grub_script_lexer_record_start): Likewise.
51127 (grub_script_lexer_record_stop): Likewise.
51128 * normal/execute.c (grub_script_execute_menuentry): New function.
51129 * normal/lexer.c (record, recording, recordpos, recordlen): New
51131 (grub_script_lexer_record_start): New function.
51132 (grub_script_lexer_record_stop): Likewise.
51133 (recordchar): Likewise.
51134 (nextchar): Likewise.
51135 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
51136 2048 as the buffer size. Add the tokens `menuentry' and `@'.
51137 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
51138 (current_menu): New variable.
51139 (free_menu): Mainly rewritten.
51140 (grub_normal_menu_addentry): New function.
51141 (read_config_file): Rewritten.
51142 * normal/menu.c (run_menu_entry): Mainly rewritten.
51143 * normal/menu_entry.c (make_screen): Rewritten the code to insert
51145 (run): Mainly rewritten.
51146 * normal/parser.y (menu_entry): New variable.
51147 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
51148 (menuentry): New rule.
51149 (command): Add `menuentry'.
51150 (if_statement): Allow additional returns before `fi'.
51151 * normal/script.c (grub_script_create_cmdmenu): New function.
51153 2006-01-03 Marco Gerards <marco@gnu.org>
51155 * INSTALL: GNU Bison is required.
51156 * configure.ac: Rewritten the test to detect Bison.
51157 * Makefile.in (YACC): New variable. Reported by Xun Sun
51158 <xun.sun.cn@gmail.com>.
51160 2006-01-03 Marco Gerards <marco@gnu.org>
51162 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
51163 the HFS+ filesystem to filesystem blocks.
51164 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
51165 GCC warning is silenced.
51167 2006-01-03 Marco Gerards <marco@gnu.org>
51169 * partmap/apple.c (apple_partition_map_iterate): Convert the data
51170 read from disk from big endian to host byte order.
51172 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
51174 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
51176 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
51177 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
51178 embedded HFS+ filesystem.
51179 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
51180 (grub_hfs_sblock): Move from here...
51181 * include/grub/hfs.h: To here... New file.
51182 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
51184 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51186 (grub_hfsplus_volheader): Change type of member `magic' to
51188 (grub_hfsplus_data): Add new member `embedded_offset'.
51189 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51191 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51192 Calculate the offset.
51194 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51196 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51198 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51200 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51202 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51203 ENV->NAME is NULL after allocating ENV->VALUE.
51205 2005-12-25 Marco Gerards <marco@gnu.org>
51207 * kern/env.c (grub_env_set): Rewritten the error handling code.
51209 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51211 * geninit.sh: Made more robust, and more portable.
51213 2005-12-25 Marco Gerards <marco@gnu.org>
51215 Add support for Apple HFS+ filesystems.
51217 * fs/hfsplus.c: New file.
51219 * DISTLIST: Added `fs/hfsplus.c'.
51221 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51222 (hfsplus_mod_SOURCES): New variable.
51223 (hfsplus_mod_CFLAGS): Likewise.
51224 (hfsplus_mod_LDFLAGS): Likewise.
51225 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51226 (grub_setup_SOURCES): Likewise.
51227 (grub_mkdevicemap_SOURCES): Likewise.
51228 (grub_emu_SOURCES): Likewise.
51229 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51231 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51233 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51235 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51237 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51238 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51239 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51240 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51241 normal/lexer.c, normal/parser.y, normal/script.c, and
51243 Removed kern/sparc64/cache.c.
51245 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51246 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51249 * configure.ac (AC_INIT): Bumped to 1.92.
51251 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51253 * kern/err.c (grub_error_push): Added new function to support error
51255 (grub_error_pop): Likewise.
51256 (grub_error_stack_items): New local variable to support error stacks.
51257 (grub_error_stack_pos): Likewise.
51258 (grub_error_stack_assert): Likewise.
51259 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51261 (grub_print_error): Added support to print errors from error stack.
51263 * include/grub/err.h (grub_error_push): Added function prototype.
51264 (grub_error_pop): Likewise.
51266 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51268 * configure.ac: Accept `powerpc64' as host_cpu.
51269 (amd64): Rename to `biarch32'.
51271 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51272 non-cacheline-aligned addresses.
51274 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51275 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51276 if `size' is non-zero.
51278 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51280 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51281 and `cd' to make sure the filename is not prefixed with a
51283 (pkgdata_MODULES): Add `gpt.mod'.
51284 (gpt_mod_SOURCES): New variable.
51285 (gpt_mod_CFLAGS): Likewise.
51286 (gpt_mod_LDFLAGS): Likewise.
51288 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51290 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51293 * partmap/gpt.c: New file.
51295 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51296 GPT partition map is detected.
51298 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51300 * commands/i386/pc/play.c: New file.
51301 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51302 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51305 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51307 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51308 ((unused))' to silence gcc warning.
51310 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51312 * configure.ac: Correct `AC_PROG_YACC' test.
51314 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51316 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51317 check before installing files.
51319 2005-11-22 Mike Small <smallm@panix.com>
51321 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51322 number regex so multidigit numbers are recognized correctly.
51324 2005-11-22 Mike Small <smallm@panix.com>
51326 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51327 debugging message before attempting to claim memory.
51328 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51329 multiple addresses in case of failure.
51331 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51333 * term/tparm.c (get_space): Remove empty `if' statement.
51335 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51337 * kern/parser.c (check_varstate): Rename `state' to 's'.
51339 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51341 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51342 variable definitions to the beginning of each function. Sort stack
51344 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51345 `buf' argument to `char *'.
51347 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51349 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51350 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51351 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51352 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51353 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51354 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51355 configfile.mod, search.mod, gzio.mod and test.mod.
51356 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51357 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51358 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51359 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51360 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51361 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51362 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51363 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51364 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51365 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51366 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51367 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51368 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51369 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51370 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51371 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51372 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51373 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51374 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51375 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51376 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51377 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51378 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51380 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51382 (pkgdata_MODULES): Add test.mod.
51384 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51386 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51387 appending to variables with "+=".
51388 (PModule): Use full pathname to generate *.lst filenames.
51390 * Makefile.in: Fixed list rules moved from genmk.rb.
51391 (.DELETE_ON_ERROR): New special target.
51392 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51394 * conf/i386-pc.rmk: Include conf/common.mk.
51395 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51396 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51397 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51398 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51399 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51400 configfile.mod, search.mod, gzio.mod and test.mod.
51401 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51402 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51403 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51404 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51405 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51406 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51407 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51408 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51409 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51410 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51411 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51412 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51413 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51414 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51415 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51416 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51417 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51418 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51419 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51420 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51421 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51422 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51423 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51425 * conf/common.rmk: ... to here. New file.
51427 * conf/common.mk: New file.
51429 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51431 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51432 (grub_script.tab.c): ... here.
51434 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51435 (grub_script.tab.c): ... here.
51437 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51438 (grub_script.tab.c): ... here.
51440 * normal/command.c (grub_command_find): Fixed a memory leak of
51441 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51443 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51445 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51446 "@" which marks the start of a comment on ARM.
51447 (VARIABLE): Likewise.
51449 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51451 Add support for Linux/ADFS partition tables.
51453 * partmap/acorn.c: New file.
51455 * include/grub/acorn_filecore.h: Likewise.
51457 * DISTLIST: Added `partmap/acorn.c' and
51458 `include/grub/acorn_filecore.h'.
51460 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51462 (pkgdata_MODULES): Add `acorn.mod'.
51463 (acorn_mod_SOURCES): New variable.
51464 (acorn_mod_CFLAGS): Likewise.
51466 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51468 (pkgdata_MODULES): Add `acorn.mod'.
51469 (acorn_mod_SOURCES): New variable.
51470 (acorn_mod_CFLAGS): Likewise.
51472 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51473 (pkgdata_MODULES): Add `acorn.mod'.
51474 (acorn_mod_SOURCES): New variable.
51475 (acorn_mod_CFLAGS): Likewise.
51476 (acorn_mod_LDFLAGS): Likewise.
51478 * include/types.h (grub_disk_addr_t): New typedef.
51480 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51482 * geninit.sh: New file.
51484 * geninitheader.sh: Likewise.
51486 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51487 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51488 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51489 * commands/configfile.c (grub_configfile_init)
51490 (grub_configfile_fini): Likewise.
51491 * commands/default.c (grub_default_init, grub_default_fini):
51493 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51494 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51495 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51496 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51498 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51499 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51501 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51502 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51504 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51506 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51508 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51509 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51510 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51511 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51512 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51513 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51514 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51515 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51516 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51517 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51518 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51519 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51520 * partmap/amiga.c (grub_amiga_partition_map_init)
51521 (grub_amiga_partition_map_fini): Likewise.
51522 * partmap/apple.c (grub_apple_partition_map_init)
51523 (grub_apple_partition_map_fini): Likewise.
51524 * partmap/pc.c (grub_pc_partition_map_init)
51525 (grub_pc_partition_map_fini): Likewise.
51526 * partmap/sun.c (grub_sun_partition_map_init,
51527 grub_sun_partition_map_fini): Likewise.
51528 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51531 * util/grub-emu.c: Include <grub_modules_init.h>.
51532 (main): Don't initialize and de-initialize any modules directly,
51533 use `grub_init_all' and `grub_fini_all' instead.
51535 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51536 `grub_vesafb_mod_init'.
51537 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51539 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51540 `grub_vga_mod_init'. Updated all users.
51541 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51543 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51544 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51547 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51548 Generate a function to initialize the module in utilities.
51549 Updated all callers.
51550 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51551 initialize the module in utilities. Updated all callers.
51553 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51555 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51556 escape sequence and a literal ^L to clear the screen.
51558 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51559 when returning from Open Firmware.
51561 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51563 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51564 (grub_ofconsole_height): Likewise.
51565 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51566 manually insert a '\n'.
51567 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51568 `grub_ofconsole_height'. Return early if these are already set.
51570 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51572 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51573 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51574 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51575 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51576 and `normal/script.c'.
51577 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51578 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51579 (test_mod_SOURCES): New variable.
51580 (test_mod_CFLAGS): Likewise.
51581 (test_mod_LDFLAGS): Likewise.
51582 (pkgdata_MODULES): Add `test.mod'.
51583 (grub_script.tab.c): New rule.
51584 (grub_script.tab.h): Likewise.
51586 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51588 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51589 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51590 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51591 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51592 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51593 (test_mod_SOURCES): New variable.
51594 (test_mod_CFLAGS): Likewise.
51595 (pkgdata_MODULES): Add `test.mod'.
51596 (grub_script.tab.c): New rule.
51597 (grub_script.tab.h): Likewise.
51599 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51601 Add initial scripting support.
51603 * commands/test.c: New file.
51604 * include/grub/script.h: Likewise.
51605 * normal/execute.c: Likewise.
51606 * normal/function.c: Likewise.
51607 * normal/lexer.c: Likewise.
51608 * normal/parser.y: Likewise.
51609 * normal/script.c: Likewise.
51611 * configure.ac: Add `AC_PROG_YACC' test.
51613 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51614 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51615 `normal/function.c' and `normal/script.c'.
51616 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51617 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51618 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51620 (pkgdata_MODULES): Add `test.mod'.
51621 (grub_script.tab.c): New rule.
51622 (grub_script.tab.h): Likewise.
51624 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51626 * include/grub/normal.h (grub_test_init): New prototype.
51627 (grub_test_fini): Likewise.
51629 * normal/command.c: Include <grub/script.h>.
51630 (grub_command_execute): Rewritten.
51632 * util/grub-emu.c (main): Call `grub_test_init' and
51635 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51637 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51639 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51640 there are no pending characters.
51642 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51644 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51645 `grub_strndup' to drop device arguments. Replace unnecessary
51646 `grub_strndup' with `grub_strdup'.
51648 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51650 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51651 `debug' environment variable has been set.
51653 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51655 * Makefile.in (install-local): Use $(DATA).
51656 (uninstall): Likewise.
51657 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51658 (sbin_UTILITIES): ... to here.
51659 (sbin_SCRIPTS): New variable.
51660 (grub_install_SOURCES): New variable.
51661 * util/powerpc/ieee1275/grub-install.in: New file.
51662 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51664 (add_segments): Call `grub_util_get_path'.
51666 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51668 From Timothy Baldwin:
51669 * commands/ls.c (grub_ls_list_files): Close FILE with
51671 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51673 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51675 * include/grub/parser.h: New file.
51677 * kern/parser.c: Likewise.
51679 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51680 (grub_setup_SOURCES): Likewise.
51681 (grub_probefs_SOURCES): Likewise.
51682 (grub_emu_SOURCES): Likewise.
51683 (kernel_img_HEADERS): Add `parser.h'.
51685 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51686 (grub_emu_SOURCES): Add `kern/parser.c'.
51687 (grubof_SOURCES): Likewise.
51689 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51690 (grubof_SOURCES): Add `kern/parser.c'.
51692 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51694 * kern/misc.c (grub_split_cmdline): Removed function.
51696 * kern/rescue.c: Include <grub/parser.h>.
51697 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51698 of `grub_split_cmdline'.
51700 * normal/command.c: Include <grub/parser.h>.
51701 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51702 of `grub_split_cmdline'.
51704 * normal/completion.c: Include <grub/parser.h>.
51705 (cmdline_state): New variable.
51706 (iterate_dir): End the filename with a quote depending on the
51707 command line state.
51708 (get_state): new function.
51709 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51710 split the arguments and determine the current argument. When the
51711 argument string is not quoted, escape all spaces.
51713 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51715 * normal/sparc64/setjmp.S: New file.
51717 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51719 * include/grub/sparc64/libgcc.h: New file.
51720 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51721 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51722 normal/sparc64/setjmp.c.
51724 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51726 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51727 * kern/sparc64/cache.S: New file.
51728 * kern/sparc64/cache.c: Removed.
51729 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51730 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51732 (COMMON_LDFLAGS): Add -melf64_sparc.
51733 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51734 (grubof_SOURCES): Use cache.S instead of cache.c.
51735 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51736 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51737 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51739 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51740 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51741 (linux_mod_CFLAGS): Commented out.
51742 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51743 out because module isn't built.
51744 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51745 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51746 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51747 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51748 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51749 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51750 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51751 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51752 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51753 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51754 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51755 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51756 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51757 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51759 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51761 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51762 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51763 longer, because HFS should not be used on PC.
51765 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51767 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51768 consistently within the loop.
51770 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51772 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51773 directory can not be read.
51775 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51777 * configure.ac (AC_INIT): Increase the version number to 1.91.
51779 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51780 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51781 term/i386/pc/serial.c.
51783 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51785 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51786 file size must be permitted.
51788 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51789 between %ah and %al.
51791 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51793 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51795 Call the hook with a NUL-terminated filename.
51796 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51799 * kern/term.c (cursor_state): New variable.
51800 (grub_term_set_current): Reset the cursor state on a new
51802 (grub_setcursor): Rewritten to use CURSOR_STATE.
51803 (grub_getcursor): New function.
51805 * include/grub/term.h (grub_getcursor): New prototype.
51807 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51808 integers on ARM. Reported by Timothy Baldwin
51809 <T.E.Baldwin99@members.leeds.ac.uk>.
51811 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51813 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51815 (grub_sfs_dir): Likewise.
51817 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51819 Add support for the SFS filesystem.
51821 * fs/sfs.c: New file.
51823 * DISTLIST: Added `fs/sfs.c'.
51825 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51826 (grub_probefs_SOURCES): Likewise.
51827 (grub_emu_SOURCES): Likewise.
51828 (pkgdata_MODULES): Add `sfs.mod'.
51829 (sfs_mod_SOURCES): New variable.
51830 (sfs_mod_CFLAGS): Likewise.
51831 (sfs_mod_LDFLAGS): Likewise.
51833 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51834 (pkgdata_MODULES): Add `sfs.mod'.
51835 (sfs_mod_SOURCES): New variable.
51836 (sfs_mod_CFLAGS): Likewise.
51838 * util/grub-emu.c (main): Call `grub_sfs_init' and
51841 * include/grub/fs.h (grub_sfs_init): New prototype.
51842 (grub_sfs_fini): Likewise.
51844 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51846 Add support for the AFFS filesystem.
51848 * fs/affs.c: New file.
51850 * DISTLIST: Added `fs/affs.c'.
51852 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51853 (grub_probefs_SOURCES): Likewise.
51854 (grub_emu_SOURCES): Likewise.
51855 (pkgdata_MODULES): Add `affs.mod'.
51856 (affs_mod_SOURCES): New variable.
51857 (affs_mod_CFLAGS): Likewise.
51858 (affs_mod_LDFLAGS): Likewise.
51860 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51861 (pkgdata_MODULES): Add `affs.mod'.
51862 (affs_mod_SOURCES): New variable.
51863 (affs_mod_CFLAGS): Likewise.
51865 * util/grub-emu.c (main): Call `grub_affs_init' and
51868 * include/grub/fs.h (grub_affs_init): New prototype.
51869 (grub_affs_fini): Likewise.
51871 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51873 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51875 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51877 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51880 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51883 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51884 (COMMON_LDFLAGS): New variable.
51885 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51886 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51887 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51888 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51889 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51890 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51891 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51892 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51893 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51894 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51895 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51896 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51897 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51898 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51899 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51901 (normal_mod_ASFLAGS): Add `-m32'.
51903 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51904 (grub_host_size_t, grub_host_ssize_t): New types.
51905 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51906 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51907 `GRUB_HOST_SIZEOF_VOID_P'.
51909 * include/grub/kernel.h (struct grub_module_header): Type of
51910 member offset changed to `grub_host_off_t'. Type of member size
51911 changed to `grub_host_size_t'.
51912 (struct grub_module_info): Type of member offset changed to
51913 `grub_host_off_t'. Type of member size changed to
51914 `grub_host_size_t'.
51916 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51918 Make GRUB's kernel compliant to Multiboot Specification.
51920 * kern/i386/pc/startup.S (multiboot_header): New label.
51921 (multiboot_entry): Likewise.
51922 (multiboot_trampoline): Likewise.
51924 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51925 Increased to 0x4A0.
51927 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51928 put parentheses after a question mark.
51929 [!GRUB_UTIL] (my_mod): New variable.
51931 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51933 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51935 Adds support for the XFS filesystem. Btrees are not supported
51938 * fs/xfs.c: New file.
51940 * DISTLIST: Added `fs/xfs.c'.
51942 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51943 (grub_probefs_SOURCES): Likewise.
51944 (grub_emu_SOURCES): Likewise.
51945 (pkgdata_MODULES): Add `xfs.mod'.
51946 (xfs_mod_SOURCES): New variable.
51947 (xfs_mod_CFLAGS): Likewise.
51949 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51950 (pkgdata_MODULES): Add `xfs.mod'.
51951 (xfs_mod_SOURCES): New variable.
51952 (xfs_mod_CFLAGS): Likewise.
51954 * util/grub-emu.c (main): Call `grub_xfs_init' and
51957 * include/grub/fs.h (grub_xfs_init): New prototype.
51958 (grub_xfs_fini): Likewise.
51961 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51963 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51964 color modes, allow greater than 16 colors to be configured as
51967 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51969 * normal/completion.c (complete_arguments): Add the qualifier
51970 const into OPTIONS.
51972 From Omniflux <omniflux+lists@omniflux.com>:
51973 * include/grub/terminfo.h: New file.
51974 * include/grub/tparm.h: Likewise.
51975 * include/grub/i386/pc/serial.h: Likewise.
51976 * term/terminfo.c: Likewise.
51977 * term/tparm.c: Likewise.
51978 * term/i386/pc/serial.c: Likewise.
51979 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51981 (terminfo_mod_SOURCES): New variable.
51982 (terminfo_mod_CFLAGS): Likewise.
51983 (serial_mod_SOURCES): Likewise.
51984 (serial_mod_CFLAGS): Likewise.
51986 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51988 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51989 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51990 and kern/powerpc/ieee1275/cmain.c, respectively.
51992 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51993 * kern/powerpc/ieee1275/crt0.S: ... here.
51995 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51996 * kern/powerpc/ieee1275/cmain.c: ... here.
51998 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51999 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
52000 instead of boot/powerpc/ieee1275/crt0.S and
52001 boot/powerpc/ieee1275/cmain.c, respectively.
52003 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
52004 sectors. It was not used anyway.
52006 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
52008 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
52009 `unused parameter' warning.
52011 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
52013 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
52015 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
52018 2005-08-28 Marco Gerards <metgerards@student.han.nl>
52020 * include/grub/normal.h (enum grub_completion_type): Added
52021 `GRUB_COMPLETION_TYPE_ARGUMENT'.
52023 * normal/cmdline.c (print_completion): Handle
52024 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
52025 * normal/menu_entry.c (store_completion): Likewise.
52027 * normal/completion.c (complete_arguments): New function.
52028 (grub_normal_do_completion): Call `complete_arguments' when the
52029 current words start with a dash.
52031 2005-08-27 Marco Gerards <metgerards@student.han.nl>
52033 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
52034 `gzio.mod' instead of `io.mod').
52036 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
52038 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
52039 (DISTDIRS): Added io and video.
52040 Rewrite the search routine to make an output consistently.
52042 * DISTLIST: Added conf/sparc64-ieee1275.mk,
52043 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
52044 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
52045 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
52046 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
52047 util/powerpc/ieee1275/misc.c.
52049 * include/grub/gzio.h: New file.
52050 * io/gzio.c: Likewise.
52052 * kern/file.c (grub_file_close): Call grub_device_close only if
52053 FILE->DEVICE is not NULL.
52055 * include/grub/mm.h [!NULL] (NULL): New macro.
52057 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
52059 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
52060 (pkgdata_MODULES): Added gzio.mod.
52061 (gzio_mod_SOURCES): New variable.
52062 (gzio_mod_CFLAGS): Likewise.
52064 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
52065 (pkgdata_MODULES): Added gzio.mod.
52066 (gzio_mod_SOURCES): New variable.
52067 (gzio_mod_CFLAGS): Likewise.
52069 * commands/cat.c: Include grub/gzio.h.
52070 (grub_cmd_cat): Use grub_gzfile_open instead of
52073 * commands/cmp.c: Include grub/gzio.h.
52074 (grub_cmd_cmp): Use grub_gzfile_open instead of
52077 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
52078 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
52080 (grub_rescue_cmd_module): Likewise.
52082 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
52084 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
52085 kern/sparc64/ieee1275/init.c because it contains _start.
52086 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
52088 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
52090 * configure.ac: Add support for sparc64 host with ieee1275
52092 * configure: Generated from configure.ac.
52093 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
52095 (grub_ofdisk_read): Likewise.
52096 (grub_ofdisk_open): Use %p to print pointer values, and cast the
52097 pointers as (void *) to remove a warning.
52098 (grub_ofdisk_close): Likewise.
52099 (grub_ofdisk_read): Likewise.
52100 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
52101 returns, so make it return void to remove a warning.
52102 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
52103 Corresponding prototype change.
52104 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
52105 values, and cast the pointers as (void *) to remove a warning.
52106 (grub_mm_dump): Likewise.
52107 * conf/sparc64-ieee1275.mk: New file.
52108 * conf/sparc64-ieee1275.rmk: Likewise.
52109 * include/grub/sparc64/setjmp.h: Likewise.
52110 * include/grub/sparc64/types.h: Likewise.
52111 * include/grub/sparc64/ieee1275/console.h: Likewise.
52112 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
52113 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
52114 * include/grub/sparc64/ieee1275/time.h: Likewise.
52115 * kern/sparc64/cache.c: Likewise.
52116 * kern/sparc64/dl.c: Likewise.
52117 * kern/sparc64/ieee1275/init.c: Likewise.
52118 * kern/sparc64/ieee1275/openfw.c: Likewise.
52120 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
52122 * util/console.c (grub_ncurses_putchar): If C is greater than
52123 0x7f, set C to a question mark.
52124 (grub_ncurses_getcharwidth): New function.
52125 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
52128 * normal/menu.c (print_entry): Made aware of Unicode. First,
52129 convert TITLE to UCS-4, and predict the cursor position by
52132 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
52134 * kern/misc.c (grub_utf16_to_utf8): Likewise.
52136 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52138 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
52139 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52142 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
52143 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52144 grub_strcpy and grub_strlen. Take it into account that a space
52145 character is inserted as a delimiter.
52147 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52149 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
52150 invalid magic in the error.
52152 * commands/search.c: New file.
52154 * util/grub-emu.c (main): Call grub_search_init and
52157 * kern/rescue.c (grub_rescue_print_disks): Removed.
52158 (grub_rescue_print_devices): New function.
52159 (grub_rescue_cmd_ls): Use grub_device_iterate with
52160 grub_rescue_print_devices instead of grub_disk_dev_iterate with
52161 grub_rescue_print_disks.
52163 * kern/partition.c (grub_partition_iterate): Return the result of
52164 PARTMAP->ITERATE instead of GRUB_ERRNO.
52166 * kern/device.c: Include grub/partition.h.
52167 (grub_device_iterate): New function.
52169 * include/grub/partition.h (grub_partition_iterate): Return int
52170 instead of grub_err_t.
52172 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
52174 [GRUB_UTIL] (grub_search_fini): Likewise.
52176 * include/grub/device.h (grub_device_iterate): New prototype.
52178 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52180 (pkgdata_MODULES): Added search.mod.
52181 (search_mod_SOURCES): New variable.
52182 (search_mod_CFLAGS): Likewise.
52184 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52185 (pkgdata_MODULES): Added search.mod.
52186 (search_mod_SOURCES): New variable.
52187 (search_mod_CFLAGS): Likewise.
52189 * commands/ls.c (grub_ls_list_disks): Renamed to ...
52190 (grub_ls_list_devices): ... this, and use grub_device_iterate.
52191 All callers changed.
52193 * DISTLIST: Added commands/search.c.
52195 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52197 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52199 (grub_getcharwidth): New function.
52201 * kern/misc.c (grub_utf8_to_ucs4): New function.
52203 * include/grub/term.h (struct grub_term): Added a new member
52205 (grub_getcharwidth): New prototype.
52207 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52209 * term/i386/pc/console.c (map_char): New function. Segregated from
52210 grub_console_putchar.
52211 (grub_console_putchar): Use map_char.
52212 (grub_console_getcharwidth): New function.
52213 (grub_console_term): Specified grub_console_getcharwidth as
52216 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52217 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52219 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52221 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52222 on grub_strtoul completely.
52223 (write_char): Declare local variables in the beginning of the
52225 (grub_vesafb_getcharwidth): New function.
52226 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52229 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52231 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52232 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52233 commands/i386/pc/vbetest.c.
52235 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52236 call grub_vbe_get_controller_info again, because the returned
52237 information is volatile.
52238 (grub_vbe_set_video_mode): Mostly rewritten.
52239 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52240 grub_vbe_status_t correctly.
52241 (grub_vbe_get_video_mode_info): Likewise.
52242 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52243 several if statements.
52245 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52246 * commands/i386/pc/vbeinfo.c: ... this.
52248 * commands/i386/pc/vbe_test.c: Renamed to ...
52249 * commands/i386/pc/vbetest.c: ... this.
52251 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52253 (grub_cmd_vbeinfo): ... this. Save video modes before
52254 iterating. Skip a video mode, if it is not available, not enough
52255 information is given or it is monochrome. Show the memory
52256 model. Leave the interpretation of MODEVAR to grub_strtoul
52258 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52259 (GRUB_MOD_FINI): Likewise.
52261 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52262 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52263 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52264 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52265 grub_strtoul completely.
52266 (real2pm): Removed.
52267 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52268 (GRUB_MOD_FINI): Likewise.
52270 * normal/misc.c: Include grub/mm.h.
52272 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52273 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52274 (vbe_list_modes_mod_SOURCES): Removed.
52275 (vbe_list_modes_mod_CFLAGS): Likewise.
52276 (vbe_test_mod_SOURCES): Likewise.
52277 (vbe_test_mod_CFLAGS): Likewise.
52278 (vbeinfo_mod_SOURCES): New variable.
52279 (vbeinfo_mod_CFLAGS): Likewise.
52280 (vbetest_mod_SOURCES): Likewise.
52281 (vbetest_mod_CFLAGS): Likewise.
52283 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52285 * normal/misc.c: New file.
52287 * DISTLIST: Added normal/misc.c.
52289 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52290 DISK to HOOK. Call HOOK with DISK.
52291 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52292 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52293 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52295 * normal/menu_entry.c (struct screen): Added a new member
52296 "completion_shown".
52297 (completion_buffer): New global variable.
52298 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52299 (store_completion): New function.
52300 (complete): Likewise.
52301 (clear_completions): Likewise.
52302 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52303 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52304 a tab, call complete.
52306 * normal/completion.c (disk_dev): Removed.
52307 (print_simple_completion): Likewise.
52308 (print_partition_completion): Likewise.
52309 (print_func): New global variable.
52310 (add_completion): Do not take the arguments WHAT or PRINT any
52311 longer. Added a new argument TYPE. Instead of printing directly,
52312 call PRINT_FUNC if not NULL.
52313 All callers changed.
52314 (complete_device): Use a local variable DEV instead of
52315 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52316 (grub_normal_do_completion): Take a new argument HOOK. Do not
52317 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52318 empty string, return NULL instead.
52319 All callers changed.
52321 * normal/cmdline.c (print_completion): New function.
52323 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52325 All callers changed.
52327 * kern/disk.c (grub_print_partinfo): Removed.
52329 * include/grub/partition.h (struct grub_partition_map): Add a new
52330 argument DISK into HOOK of ITERATE.
52331 (grub_partition_iterate): Add a new argument DISK to HOOK.
52333 * include/grub/normal.h (enum grub_completion_type): New enum.
52334 (grub_completion_type_t): New type.
52335 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52336 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52337 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52338 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52339 (grub_normal_do_completion): Added a new argument HOOK.
52340 (grub_normal_print_device_info): New prototype.
52342 * include/grub/disk.h (grub_print_partinfo): Removed.
52344 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52345 (normal_mod_SOURCES): Likewise.
52346 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52347 (normal_mod_SOURCES): Likewise.
52349 * commands/ls.c (grub_ls_list_disks): Use
52350 grub_normal_print_device_info instead of grub_print_partinfo. Free
52352 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52353 duplicating the code.
52355 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52357 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52358 follow GCS more precisely.
52359 * commands/i386/pc/vbe_test.c: Likewise.
52360 * include/grub/i386/pc/vbe.h: Likewise.
52361 * term/i386/pc/vesafb.c: Likewise.
52362 * video/i386/pc/vbe.c: Likewise.
52364 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52366 * DISTLIST: Added term/i386/pc/vesafb.c
52367 DISTLIST: Added video/i386/pc/vbe.c
52368 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52369 DISTLIST: Added commands/i386/pc/vbe_test.c.
52370 * commands/i386/pc/vbe_list_modes.c: New file.
52371 * commands/i386/pc/vbe_test.c: Likewise.
52372 * term/i386/pc/vesafb.c: Likewise.
52373 * video/i386/pc/vbe.c: Likewise.
52374 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52375 (grub_vbe_probe) Added prototype.
52376 (grub_vbe_set_video_mode) Likewise.
52377 (grub_vbe_get_video_mode) Likewise.
52378 (grub_vbe_get_video_mode_info) Likewise.
52379 (grub_vbe_set_pixel_rgb) Likewise.
52380 (grub_vbe_set_pixel_index) Likewise.
52381 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52382 (pkgdata_MODULES): Added vesafb.mod.
52383 (pkgdata_MODULES): Added vbe_list_modes.mod.
52384 (pkgdata_MODULES): Added vbe_test.mod.
52385 (vbe_mod_SOURCES): Added.
52386 (vbe_mod_CFLAGS): Likewise.
52387 (vesafb_mod_SOURCES): Likewise.
52388 (vesafb_mod_CFLAGS): Likewise.
52389 (vbe_list_modes_mod_SOURCES): Likewise.
52390 (vbe_list_modes_mod_CFLAGS): Likewise.
52391 (vbe_test_mod_SOURCES): Likewise.
52392 (vbe_test_mod_CFLAGS): Likewise.
52394 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52396 * normal/command.c (grub_command_execute): If INTERACTIVE is
52397 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52398 CMDLINE. Disable the pager if INTERACTIVE is true.
52399 All callers are changed.
52401 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52402 before reading a config file.
52403 * normal/main.c (read_config_file): Even if a command is not
52404 found, register it if it is within an entry.
52406 * util/grub-emu.c: Include sys/types.h and unistd.h.
52407 (options): Added --hold.
52408 (struct arguments): Added a new member "hold".
52409 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52411 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52412 cleared by a debugger, if it is not zero.
52414 * include/grub/normal.h (grub_command_execute): Add an argument
52417 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52419 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52421 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52423 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52424 program with another one, because the old one didn't detect a bug
52425 in gcc-3.4. Always use regparm 2, because the new test is still
52426 not enough for gcc-4.0. Someone must investigate a simple test
52427 case which detects a bug in gcc-4.0.
52429 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52431 * DISTLIST: Added normal/completion.c.
52433 * normal/completion.c: New file.
52435 * term/i386/pc/console.c (grub_console_getwh): New function.
52436 (grub_console_term): Assign grub_console_getwh to getwh.
52438 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52439 function is defined in normal/completion.c as
52440 grub_normal_do_completion.
52441 (grub_cmdline_get): Use grub_normal_do_completion instead of
52444 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52445 returns non-zero, otherwise return 0.
52446 (grub_partition_iterate): First, probe the partition map. Then,
52447 call ITERATE only for this partition map.
52449 * kern/misc.c (grub_strncmp): Rewritten.
52451 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52452 returns non-zero. Otherwise return 0.
52454 * include/grub/partition.h (grub_partition_map_iterate): Return
52455 int instead of void.
52457 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52459 * include/grub/misc.h (grub_strncmp): Change the type of N to
52462 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52465 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52466 unsigned explicitly before comparing it with I.
52468 * kern/main.c (grub_env_write_root): Add the attribute unused into
52471 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52472 normal/completion.c.
52473 (normal_mod_SOURCES): Likewise.
52474 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52475 (normal_mod_SOURCES): Likewise.
52477 * normal/command.c (grub_iterate_commands): If ITERATE returns
52478 non-zero, return one immediately.
52480 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52482 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52483 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52485 (grub_vbe_get_controller_info): New function.
52486 (grub_vbe_get_mode_info): Likewise.
52487 (grub_vbe_set_mode): Likewise.
52488 (grub_vbe_get_mode): Likewise.
52489 (grub_vbe_set_memory_window): Likewise.
52490 (grub_vbe_get_memory_window): Likewise.
52491 (grub_vbe_set_scanline_length): Likewise.
52492 (grub_vbe_get_scanline_length): Likewise.
52493 (grub_vbe_set_display_start): Likewise.
52494 (grub_vbe_get_display_start): Likewise.
52495 (grub_vbe_set_palette_data): Likewise.
52496 * include/grub/i386/pc/vbe.h: New file.
52498 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52500 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52501 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52502 * DISTLIST: Likewise.
52503 * kern/ieee1275/of.c: Moved to ...
52504 * kern/ieee1275/ieee1275.c: ... here.
52506 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52508 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52509 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52510 Pass 0 as `end' parameter to grub_strtoul().
52512 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52514 * include/grub/powerpc/ieee1275/console.h: Do not include
52515 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52517 (grub_console_cur_color): Remove i386-specific prototype.
52518 (grub_console_real_putchar): Likewise.
52519 (grub_console_checkkey): Likewise.
52520 (grub_console_getkey): Likewise.
52521 (grub_console_getxy): Likewise.
52522 (grub_console_gotoxy): Likewise.
52523 (grub_console_cls): Likewise.
52524 (grub_console_setcursor): Likewise.
52525 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52526 Include <grub/machine/console.h>.
52527 * term/ieee1275/ofconsole.c: Likewise.
52529 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52531 * Makefile.in (LIBLZO): New variable.
52533 * configure.ac: Check for LZO version 2.
52535 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52536 lzo/lzo1x.h instead of lzo1x.h.
52538 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52541 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52542 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52544 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52545 copying the data from PARTITION to P.
52547 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52549 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52550 negative, unload the module.
52552 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52553 map is "pc_partition_map" but not "pc".
52554 (usage): Fix the description. The options are --boot-image and
52555 --core-image but not --boot-file or --core-file.
52556 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52557 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52560 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52561 --core-file. Specify INSTALL_DEVICE as an argument.
52563 * util/console.c: Include config.h.
52564 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52565 [HAVE_NCURSES_H]: Include ncurses.h.
52566 [HAVE_CURSES_H]: Include curses.h.
52567 [!A_NORMAL] (A_NORMAL): Defined as zero.
52568 [!A_STANDOUT] (A_STANDOUT): Likewise.
52570 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52572 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52574 * configure.ac: Check for curses libraries and headers.
52576 * Makefile.in (LIBCURSES): New variable.
52578 * genmk.rb (Script::rule): Set the executable bits.
52580 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52581 name of the PC partition map is "pc_partition_map" but not "pc".
52583 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52585 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52586 (modules): Likewise.
52587 (usage): Added descriptions for --modules and --grub-probefs.
52588 Handle --modules and --grub-probefs. Save the arguments in MODULES
52589 and GRUB_PROBEFS, respectively.
52590 Auto-detect a filesystem module against GRUBDIR. If the result is
52591 empty and modules are not specified explicitly, abort the
52592 installation. Add the result to MODULES.
52594 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52595 disk/powerpc/ieee1275/ofdisk.c,
52596 include/grub/powerpc/ieee1275/init.h and
52597 term/powerpc/ieee1275/ofconsole.c.
52598 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52599 term/ieee1275/ofconsole.c.
52601 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52603 * COPYING: Upgraded to the latest version. Only the address of the
52604 FSF office has changed.
52606 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52608 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52609 kern/ieee1275.c with kern/ieee1275/of.c.
52611 * kern/ieee1275.c: Moved to ...
52612 * kern/ieee1275/of.c: ... here.
52614 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52616 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52619 * config.guess: Updated to the latest version from gnulib.
52620 * config.sub: Likewise.
52621 * install.sh: Likewise.
52622 * mkinstalldirs: Likewise.
52624 * include/grub/console.h: Removed. This file is arch-specific. Do
52625 not put this in include/grub.
52627 * include/grub/i386/pc/console.h: Resurrected.
52629 * util/console.c: Include grub/machine/console.h instead of
52631 * util/grub-emu.c: Likewise.
52633 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52635 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52638 From Vincent Pelletier <subdino2004@yahoo.fr>
52639 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52640 Redefined to use grub_getwh.
52641 (grub_term): New member named getwh.
52642 (grub_getwh): New prototype.
52643 * kern/term.c (grub_getwh): New function.
52644 * term/i386/pc/console.c (grub_console_getwh): New function.
52645 (grub_console_term): New member `getwh'.
52646 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52647 (grub_vga_term): New member `getwh'.
52648 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52650 (grub_ofconsole_getw): New function.
52651 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52652 (grub_ofconsole_term): New field named getwh and new initial
52655 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52657 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52658 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52659 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52660 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52661 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52662 of <grub/machine/ieee1275.h>.
52663 * commands/ieee1275/reboot.c: Likewise.
52664 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52665 * kern/ieee1275.c: ... to here. All users updated. Change all
52666 parameter structs to use new type `grub_ieee1275_cell_t'.
52667 * term/powerpc/ieee1275/ofconsole.c: Move ...
52668 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52669 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52670 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52671 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52673 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52674 Remove unused prototypes. All users updated.
52675 * include/grub/powerpc/ieee1275/console.h: Removed.
52676 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52677 `grub_ieee1275_cell_t'.
52678 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52679 Cast comparisons with -1 to the correct type.
52680 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52681 type to match `grub_ieee1275_entry_fn'.
52683 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52685 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52687 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52688 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52690 (grub_probefs_SOURCES): New variable.
52692 * util/i386/pc/grub-probefs.c: New file.
52694 * util/i386/pc/grub-setup.c (main): Call
52695 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52696 grub_hfs_init and grub_jfs_init to initialize the system. Call
52697 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52698 grub_pc_partition_map_fini to finish the system.
52700 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52702 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52704 (grub_multiboot_load_elf32): Likewise.
52705 (grub_multiboot_is_elf64): Likewise.
52706 (grub_multiboot_load_elf64): Likewise.
52707 (grub_multiboot_load_elf): Likewise.
52708 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52709 an ELF32 or ELF64 file.
52710 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52712 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52713 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52714 NULL before calling FS->LABEL.
52715 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52716 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52717 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52718 before calling FS->LABEL.
52720 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52722 * util/i386/pc/grub-install.in (datadir): New variable.
52724 (pkgdatadir): New variable.
52725 (pkglibdir): Removed.
52727 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52729 * DISTLIST: Added util/i386/pc/grub-install.in.
52731 * util/i386/pc/grub-install.in: New file.
52733 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52734 (grub_install_SOURCES): Likewise.
52736 * genmk.rb: Added support for scripts.
52737 (Script): New class.
52738 (scripts): New variable.
52740 * Makefile.in (install-local): Install sbin_SCRIPTS by
52742 (uninstall): Remove sbin_SCRIPTS.
52744 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52745 device, try to get a GRUB device by
52746 grub_util_biosdisk_get_grub_dev.
52749 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52750 description for --device-map.
52752 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52754 Change the semantics of variable hooks. They now return strings
52755 instead of error values.
52757 * util/i386/pc/grub-setup.c: Include grub/env.h.
52758 (setup): Use grub_device_set_root instead of grub_env_set.
52760 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52761 grub_env_get instead of grub_device_set_root and
52762 grub_device_get_root, respectively.
52764 * kern/main.c (grub_env_write_root): New function.
52765 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52766 grub_env_set instead of grub_device_set_root.
52768 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52770 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52771 rather than calling ENV->WRITE_HOOK afterwards.
52772 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52773 passing a pointer of a pointer.
52774 (grub_register_variable_hook): Change the types of "read_hook" and
52775 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52777 Allocate the default empty string on the heap, because this string
52778 may be freed later.
52780 * kern/device.c: Include grub/env.h.
52781 (grub_device_set_root): Removed.
52782 (grub_device_get_root): Likewise.
52783 (grub_device_open): Use grub_env_get instead of
52784 grub_device_get_root.
52786 * include/grub/env.h (grub_env_read_hook_t): New type.
52787 (grub_env_write_hook_t): Likewise.
52788 (grub_env_var): Change the types of "read_hook" and "write_hook"
52789 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52790 (grub_register_variable_hook): Likewise.
52792 * include/grub/device.h (grub_device_set_root): Removed.
52793 (grub_device_set_root): Likewise.
52795 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52796 make sure that DIRNAME terminates with '/', so that
52797 grub_fat_find_dir will fail if PATH is not a directory.
52799 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52801 Use the qualifier auto for print_files and print_files_long.
52802 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52804 Put a newline only if there is no error.
52805 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52808 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52810 * kern/partition.c (grub_partition_probe): Initialize PART to
52811 NULL. Otherwise, when no partition map is registered, this returns
52814 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52816 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52817 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52820 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52822 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52823 information on each device, if it does not have partitions. Print
52824 "Device" instead of "Disk", because this function is not specific
52827 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52828 static to ensure that it is put on the memory rather than a
52831 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52833 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52834 (grub_cat_init): Likewise.
52835 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52836 (options): Likewise.
52837 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52838 (grub_configfile_init): Likewise.
52839 * font/manager.c (GRUB_MOD_INIT): Likewise.
52840 * commands/help.c (GRUB_MOD_INIT): Likewise.
52841 (grub_help_init): Likewise.
52842 * normal/command.c (grub_command_init): Likewise.
52843 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52844 * disk/loopback.c (grub_loop_init): Likewise.
52845 (GRUB_MOD_INIT): Likewise.
52846 * commands/ls.c (grub_ls_init): Likewise.
52847 (GRUB_MOD_INIT): Likewise.
52848 (options): Likewise.
52849 * commands/boot.c (grub_boot_init): Likewise.
52850 (GRUB_MOD_INIT): Likewise.
52851 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52852 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52853 (GRUB_MOD_INIT): Likewise.
52854 * commands/cmp.c (grub_cmp_init): Likewise.
52855 (GRUB_MOD_INIT): Likewise.
52857 * normal/arg.c: Use <> instead of "" to include header files.
52858 (SHORT_ARG_HELP): New macro.
52859 (SHORT_ARG_USAGE): Likewise.
52860 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52861 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52863 (find_short): Check if C is 'h' or 'u' explicitly.
52864 (grub_arg_show_help): Use space characters instead of tabs. Treat
52865 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52866 are shown with --help and --usage only if they are not used for
52867 the command itself.
52868 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52871 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52872 const into "longarg". Change the type of "shortarg" to int.
52874 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52876 * boot/i386/pc/boot.S (boot_drive_check): New label.
52878 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52881 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52882 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52884 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52886 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52887 When turning off Gate A20, skip the check and return immediately,
52888 because this is not fatal usually.
52890 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52892 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52893 be 0x7C00 instead of 0x8000.
52895 * boot/i386/pc/pxeboot.S: Rewritten.
52897 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52899 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52902 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52904 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52905 robustness. This routine now supports a BIOS call and System
52906 Control Port A to modify the gate A20.
52908 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52909 Increased to 0x440.
52911 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52913 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52914 device path and resulting ihandle.
52915 (grub_ofdisk_close): dprintf the ihandle being closed.
52916 (grub_ofdisk_read): dprintf function parameters.
52917 * kern/mm.c (grub_mm_init_region): Likewise.
52918 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52919 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52920 size, and boot arguments.
52921 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52922 before loading into memory.
52923 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52924 before loading into memory.
52926 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52928 * kern/mm.c: Added much documentation.
52929 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52930 8, set to 5 instead of 8.
52932 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52934 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52936 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52937 (grub_mkdevicemap_SOURCES): New variable.
52939 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52940 lib/device.c of GRUB Legacy.
52942 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52944 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52945 instead of PATH is NULL.
52947 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52949 * commands/cmp.c (BUFFER_SIZE): New macro.
52950 (grub_cmd_cmp): Close the right file at the right time. Compare
52951 only data just read. Don't report files of different size as
52952 identical. Dynamically allocate buffers. Move variable
52953 declarations at the beginning of function.
52955 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52957 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52960 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52962 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52963 when backspace is pressed at beginning of line.
52965 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52967 * DISTLIST: Added genfslist.sh.
52969 * normal/main.c (fs_module_list): New variable.
52970 (autoload_fs_module): New function.
52971 (read_fs_list): Likewise.
52972 (grub_normal_execute): Call read_fs_list.
52974 * kern/fs.c (grub_fs_autoload_hook): New variable.
52975 (grub_fs_probe): Added support for auto-loading.
52977 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52978 (grub_fs_module_list_t): New type.
52980 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52981 (grub_fs_autoload_hook): New prototype.
52983 * genfslist.sh: New file.
52985 * genmk.rb: Added a rule to generate a filesystem list.
52987 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52989 * configure.ac: Fix the test for cross-compiling.
52991 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52992 define GRUB_UTIL anymore.
52994 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52995 so this function works on other systems than just big endian.
52996 (load_modules): Likewise.
52997 (add_segments): Likewise.
52999 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
53001 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
53002 contains `l' modifier, get a long from va_arg().
53004 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
53006 * kern/mm.c (grub_free): If the next free block which is being
53007 merged is the first free block, set the first block to the block
53009 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
53011 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
53013 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
53014 `grub_ieee1275_chosen'.
53016 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
53018 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
53019 (grub_ieee1275_chosen): New variable.
53020 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
53022 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
53023 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53024 Rename first argument to `phandle' for consistency.
53025 (grub_ieee1275_get_property_length): Likewise.
53026 (grub_ieee1275_next_property): Likewise. Change type of first argument
53027 to grub_ieee1275_phandle_t.
53028 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
53029 Move export next to declaration.
53030 (grub_ieee1275_chosen): New variable.
53031 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
53032 Correct cosmetic typo.
53033 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
53034 `grub_ieee1275_chosen'.
53035 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
53036 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
53037 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
53038 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
53039 `grub_ieee1275_chosen'.
53041 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
53043 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
53045 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
53046 /chosen/bootargs as "variable=value" pairs.
53048 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
53050 * include/grub/misc.h (grub_dprintf): New macro.
53051 (grub_real_dprintf): New prototype.
53052 (grub_strword): Likewise.
53053 (grub_iswordseparator): Likewise.
53054 * kern/misc.c (grub_real_dprintf): New function.
53055 (grub_strword): Likewise.
53056 (grub_iswordseparator): Likewise.
53058 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
53060 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
53061 (roundup): Remove macro.
53062 (grub_ieee1275_flags): Make static.
53063 (grub_ieee1275_realmode): Remove.
53064 (grub_ieee1275_test_flag): New function.
53065 (grub_ieee1275_set_flag): Likewise.
53066 (find_options): Rename to `grub_ieee1275_find_options'; update
53067 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
53068 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
53069 (cmain): New prototype.
53070 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
53071 `grub_ieee1275_flags' directly.
53072 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
53073 machine/biosdisk.h.
53074 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
53075 Don't include grub/machine/init.h.
53076 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
53077 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53079 (grub_ieee1275_realmode): Likewise.
53080 (grub_ieee1275_flag): New enum.
53081 (grub_ieee1275_test_flag): New prototype.
53082 (grub_ieee1275_set_flag): New prototype.
53083 * include/grub/powerpc/ieee1275/init.h: Remove file.
53084 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
53085 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
53086 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
53087 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
53089 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
53090 `grub_ieee1275_test_flag'.
53091 (grub_ieee1275_encode_devname): Likewise.
53093 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
53095 * include/grub/powerpc/ieee1275/ieee1275.h
53096 (grub_ieee1275_encode_devname): New prototype.
53097 (grub_ieee1275_get_filename): Likewise.
53098 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
53100 (grub_set_prefix): Likewise.
53101 (grub_machine_init): Call grub_set_prefix.
53102 * kern/powerpc/ieee1275/openfw.c: Fix typos.
53103 (grub_parse_type): New enum.
53104 (grub_ieee1275_get_devargs): New function.
53105 (grub_ieee1275_get_devname): Likewise.
53106 (grub_ieee1275_parse_args): Likewise.
53107 (grub_ieee1275_get_filename): Likewise.
53108 (grub_ieee1275_encode_devname): Likewise.
53110 2005-03-30 Marco Gerards <metgerards@student.han.nl>
53112 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
53113 `grub_loader_unset'.
53115 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
53117 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
53118 instead of grub_ieee1275_interpret.
53119 (grub_halt_init): New function.
53120 (grub_halt_fini): Likewise.
53121 (GRUB_MOD_INIT): Correct message grammar.
53122 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
53123 instead of grub_ieee1275_interpret.
53124 (grub_reboot_init): New function.
53125 (grub_reboot_fini): Likewise.
53126 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
53127 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
53128 util/i386/pc/misc.c with commands/ieee1275/halt.c,
53129 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
53130 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
53132 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
53134 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
53136 (grub_halt): Likewise.
53137 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
53138 (cmain): Remove __attribute__((unused)).
53139 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
53140 (grub_heap_len): Likewise.
53141 (grub_machine_fini): New function.
53142 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
53143 (grub_halt): Likewise.
53144 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
53146 * util/powerpc/ieee1275/misc.c: New file.
53148 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
53150 * DISTLIST: New file.
53151 * gendistlist.sh: Likewise.
53153 * Makefile.in (COMMON_DISTFILES): Removed.
53154 (BOOT_DISTFILES): Likewise.
53155 (CONF_DISTFILES): Likewise.
53156 (DISK_DISTFILES): Likewise.
53157 (FS_DISTFILES): Likewise.
53158 (INCLUDE_DISTFILES): Likewise.
53159 (KERN_DISTFILES): Likewise.
53160 (LOADER_DISTFILES): Likewise.
53161 (TERM_DISTFILES): Likewise.
53162 (UTIL_DISTFILES): Likewise.
53163 (DISTFILES): Likewise.
53164 (uninstall): Uninstall files in $(pkgdata_DATA).
53165 (DISTLIST): New target.
53166 (distdir): Use the contents of the file DISTLIST to get a list of
53169 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
53171 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
53172 descriptor. This is ported from GRUB Legacy.
53174 * gencmdlist.sh: Added an extra semicolon to make it work with
53175 old sed versions. Reported by Robert Bihlmeyer
53176 <robbe@orcus.priv.at>.
53178 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
53180 Automatic loading of commands is supported.
53182 * normal/main.c (read_command_list): New function.
53183 (grub_normal_execute): Call read_command_list.
53185 * normal/command.c (grub_register_command): Return zero or CMD.
53186 Allocate CMD->NAME from the heap.
53187 Initialize CMD->MODULE_NAME to zero.
53188 Find the same name as well. If the same command is found and it is
53189 a dummy command, overwrite members. If it is not a dummy command,
53191 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53192 (grub_command_find): If a dummy command is found, load a module
53193 and retry to find a command only once.
53195 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53196 make sure that each command is loaded.
53198 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53200 (struct grub_command): Remove const from the member `name'.
53201 Add a new member `module_name'.
53202 (grub_register_command): Return grub_command_t.
53204 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53205 sure that each command is loaded.
53207 * genmk.rb (PModule::rule): Specify a module name without the
53208 suffix ".mod" to gencmdlist.sh.
53210 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53212 * gencmdlist.sh: New file.
53214 * genmk.rb (PModule::rule): Generate a rule for a command list.
53216 Generate command.lst from $(COMMANDFILES).
53218 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53219 (DATA): Added $(pkgdata_DATA).
53220 (install-local): Install files in $(pkgdata_DATA).
53222 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53224 * term/i386/pc/vga.c (debug_command): Removed.
53225 (GRUB_MOD_INIT): Do not register the command "debug".
53227 From Hollis Blanchard:
53228 * commands/configfile.c: New file.
53229 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53230 commands/configfile.c.
53231 (pkgdata_MODULES): Added configfile.mod.
53232 (configfile_mod_SOURCES): New variable.
53233 (configfile_mod_CFLAGS): Likewise.
53234 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53235 commands/configfile.c.
53236 (pkgdata_MODULES): Added configfile.mod.
53237 (configfile_mod_SOURCES): New variable.
53238 (configfile_mod_CFLAGS): Likewise.
53239 * util/grub-emu.c (main): Call grub_configfile_init and
53240 grub_configfile_fini.
53241 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53243 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53245 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53247 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53250 * commands/help.c (grub_cmd_help): Do not print newlines after
53251 the last command in print_command_help.
53253 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53255 * commands/default.h: New file.
53256 * commands/timeout.h: Likewise.
53257 * normal/context.c: Likewise.
53259 * util/misc.c: Do not include sys/times.h.
53260 Include sys/time.h and grub/machine/time.h.
53261 (grub_get_rtc): Rewritten with gettimeofday.
53263 * util/grub-emu.c (main): Call grub_default_init and
53264 grub_timeout_init before grub_normal_init, and call
53265 grub_timeout_fini and grub_default_fini after grub_main.
53267 * util/console.c (grub_ncurses_checkkey): Return the read
53270 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53273 * normal/main.c (read_config_file): Push MENU. If this fails,
53274 print an error and wait for a user input.
53275 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53276 If a menu is empty or an error occurs, pop MENU.
53277 (grub_normal_execute): Pop and free MENU after grub_menu_run
53280 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53282 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53284 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53286 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53288 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53291 * include/grub/normal.h (struct grub_menu_list): New struct.
53292 (grub_menu_list_t): New type.
53293 (struct grub_context): New struct.
53294 (grub_context_t): New type.
53295 (grub_register_command): Got rid of EXPORT_FUNC.
53296 (grub_unregister_command): Likewise.
53297 (grub_context_get): New prototype.
53298 (grub_context_get_current_menu): Likewise.
53299 (grub_context_push_menu): Likewise.
53300 (grub_context_pop_menu): Likewise.
53301 [GRUB_UTIL] (grub_default_init): Likewise.
53302 [GRUB_UTIL] (grub_default_fini): Likewise.
53303 [GRUB_UTIL] (grub_timeout_init): Likewise.
53304 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53306 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53307 commands/timeout.c and normal/context.c.
53308 (pkgdata_MODULES): Added default.mod and timeout.mod.
53309 (normal_mod_SOURCES): Added normal/context.c.
53310 (default_mod_SOURCES): New variable.
53311 (default_mod_CFLAGS): Likewise.
53312 (timeout_mod_SOURCES): Likewise.
53313 (timeout_mod_CFLAGS): Likewise.
53314 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53316 (pkgdata_MODULES): Added default.mod and timeout.mod.
53317 (normal_mod_SOURCES): Added normal/context.c.
53318 (default_mod_SOURCES): New variable.
53319 (default_mod_CFLAGS): Likewise.
53320 (timeout_mod_SOURCES): Likewise.
53321 (timeout_mod_CFLAGS): Likewise.
53323 * Makefile.in (all-local): Added $(MKFILES).
53325 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53327 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53328 (grub_emu_SOURCES): Likewise.
53329 (pkgdata_MODULES): Add `sun.mod'.
53330 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53331 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53333 (pkgdata_MODULES): Add `sun.mod'.
53334 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53335 * include/grub/partition.h (grub_sun_partition_map_init): New
53337 (grub_sun_partition_map_fini): Likewise.
53338 * partmap/sun.c: New file.
53339 * util/grub-emu.c (main): Initialize and de-initialize the sun
53340 partitionmap support.
53342 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53344 This implements an Emacs-like menu entry editor.
53346 * normal/menu_entry.c: New file.
53348 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53349 characters to ASCII.
53350 (saved_char): New variable.
53351 (grub_ncurses_checkkey): Rewritten completely.
53352 (grub_ncurses_getkey): Likewise.
53353 (grub_ncurses_init): Call raw instead of cbreak.
53355 * normal/menu.c (print_entry): Do not put a space.
53356 (init_page): Renamed to ...
53357 (grub_menu_init_page): ... this. All callers changed.
53358 (edit_menu_entry): Removed.
53359 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53361 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53363 * kern/misc.c (grub_vprintf): Call grub_refresh.
53365 * normal/menu.c (DISP_LEFT): Renamed to ...
53366 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53367 * normal/menu.c (DISP_UP): Renamed to ...
53368 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53369 * normal/menu.c (DISP_RIGHT): Renamed to ...
53370 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53371 * normal/menu.c (DISP_DOWN): Renamed to ...
53372 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53373 * normal/menu.c (DISP_HLINE): Renamed to ...
53374 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53375 * normal/menu.c (DISP_VLINE): Renamed to ...
53376 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53377 * normal/menu.c (DISP_UL): Renamed to ...
53378 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53379 * normal/menu.c (DISP_UR): Renamed to ...
53380 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53381 * normal/menu.c (DISP_LL): Renamed to ...
53382 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53383 * normal/menu.c (DISP_LR): Renamed to ...
53384 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53385 * normal/menu.c (TERM_WIDTH): Renamed to ...
53386 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53387 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53388 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53389 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53390 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53391 * normal/menu.c (TERM_MARGIN): Renamed to ...
53392 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53393 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53394 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53395 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53396 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53397 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53398 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53399 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53400 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53401 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53402 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53403 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53404 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53405 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53406 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53407 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53408 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53409 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53410 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53411 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53412 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53413 All callers changed.
53415 * include/grub/normal.h: New prototype.
53417 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53418 normal/menu_entry.c.
53419 (normal_mod_SOURCES): Likewise.
53420 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53421 (normal_mod_SOURCES): Likewise.
53423 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53425 * include/grub/normal.h (grub_halt_init): New prototype.
53426 (grub_halt_fini): Likewise.
53427 (grub_reboot_init): Likewise.
53428 (grub_reboot_fini): Likewise.
53430 * util/grub-emu.c: Include signal.h.
53431 (main_env): New global variable.
53432 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53434 (grub_machine_fini): New function.
53435 (main): Call grub_halt_init and grub_reboot_init before
53436 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53437 Call setjmp with MAIN_ENV to go back afterwards.
53438 Call grub_machine_fini right before return.
53440 * include/grub/util/misc.h: Include setjmp.h.
53441 (main_env): New prototype.
53443 * include/grub/kernel.h (grub_machine_fini): New prototype.
53444 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53445 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53447 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53448 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53449 * term/i386/pc/console.c (grub_console_fini): Likewise.
53451 * util/i386/pc/misc.c: New file.
53453 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53454 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53455 commands/i386/pc/reboot.c.
53457 2005-02-14 Guillem Jover <guillem@hadrons.org>
53459 * include/grub/dl.h (grub_dl_check_header): New prototype.
53460 (grub_arch_dl_check_header): Change return type to grub_err_t,
53461 remove size parameter and export function. Update all callers.
53462 * kern/dl.c (grub_dl_check_header): New function.
53463 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53464 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53465 are inside the core.
53466 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53467 independent ELF header checks.
53468 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53469 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53470 `grub_dl_check_header' instead of explicit checks. Check for the
53472 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53473 `grub_dl_check_header' instead of explicit checks. Remove arch
53474 specific ELF header checks.
53476 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53479 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53481 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53482 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53484 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53486 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53487 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53488 (part_map_iterate): Clear `grub_errno' and return 0 if
53489 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53490 * partmap/amiga.c (amiga_partition_map_iterate): Return
53491 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53492 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53494 2005-02-01 Guillem Jover <guillem@hadrons.org>
53496 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53499 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53501 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53503 (grub_rescue_cmd_linux): New prototype.
53504 (grub_rescue_cmd_initrd): Likewise.
53505 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53507 (grub_linux_release_mem): Release the memory for the initrd.
53508 (grub_load_linux): Renamed from this...
53509 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53510 Changed `entry' not to be static. Loop over memory regions to
53511 find another one when the default fails.
53512 (grub_rescue_cmd_initrd): New function.
53513 (grub_linux_init): Remove function.
53514 (grub_linux_fini): Likewise.
53515 (GRUB_MOD_INIT): Register `initrd'.
53516 (GRUB_MOD_FINI): Unregister `initrd'.
53517 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53519 (grub_linux_normal_fini): Likewise.
53520 (GRUB_MOD_INIT): Register `initrd'.
53521 (GRUB_MOD_FINI): Unregister `initrd'.
53523 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53525 * commands/help.c: New file.
53526 * normal/arg.c (show_help): Renamed to...
53527 (grub_arg_show_help): ... this.
53528 * commands/i386/pc/halt.c: New file.
53529 * commands/i386/pc/reboot.c: Likewise.
53530 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53531 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53532 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53533 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53535 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53537 (pkgdata_MODULES): Add `help.mod'.
53538 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53539 * grub/i386/pc/init.h (grub_reboot): New prototype.
53540 (grub_halt): Likewise.
53541 * include/grub/normal.h (grub_arg_show_help): New prototype.
53542 (grub_help_init): Likewise.
53543 (grub_help_fini): Likewise.
53544 * util/grub-emu.c (main): Initialize and deinitialize the help
53547 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53549 * normal/command.c (grub_command_init): Fixed the description of
53550 the `set' and `unset' commands.
53552 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53554 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53556 * commands/ieee1275/halt.c: New file.
53557 * commands/ieee1275/reboot.c: Likewise.
53558 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53559 `__attribute__ ((unused))'. Some GCS related fixed.
53560 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53561 (grub_suspend_fini): Likewise.
53562 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53564 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53565 (halt_mod_CFLAGS): New variables.
53566 * include/grub/powerpc/ieee1275/ieee1275.h
53567 (grub_ieee1275_interpret): New prototype.
53569 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53571 * include/grub/misc.h (memmove): New prototype.
53572 (memcpy): Likewise.
53574 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53576 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53577 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53579 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53581 * kern/misc.c (grub_strndup): Function rewritten.
53583 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53585 * normal/menu.c (TERM_WIDTH): Macro redefined.
53586 (TERM_TOP_BORDER_Y): Likewise.
53587 (draw_border): Replaced while-loop by a for-loop. Make the number
53588 of lines consistent with the number of lines displayed in
53589 print_entries. Added a margin below the rectangle.
53590 (print_entry): Make the entry fit in the rectangle.
53591 (print_entries): Display the scroll arrows next to the right
53594 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53596 * fs/minix.c (grub_minix_find_file): Reserve more space for
53597 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53598 `grub_strncpy' to copy `path' into it.
53600 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53602 Add the loopback device, a device via which files can be accessed
53605 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53606 (pkgdata_MODULES): Add loopback.mod.
53607 (loopback_mod_SOURCES): New variable.
53608 (loopback_mod_CFLAGS): Likewise.
53609 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53611 (pkgdata_MODULES): Add loopback.mod.
53612 (loopback_mod_SOURCES): New variable.
53613 (loopback_mod_CFLAGS): Likewise.
53614 * disk/loopback.c: new file.
53615 * include/grub/normal.h (grub_loop_init): New prototype.
53616 (grub_loop_fini): New prototype.
53617 * util/grub-emu.c (main): Initialize and de-initialize loopback
53619 * include/grub/disk.h (grub_disk_dev_id): Add
53620 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53622 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53624 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53626 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53627 (suspend_mod_SOURCES): New variable.
53628 (suspend_mod_CFLAGS): Likewise.
53629 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53631 * commands/ieee1275/suspend.c: New file.
53633 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53635 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53636 ((unused))' to `__attribute__ ((used))'.
53637 (GRUB_MOD_FINI): Likewise.
53638 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53639 * genmk.rb (PModule): Assign space to common symbols when linking
53642 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53644 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53645 `unsigned' arguments to `grub_size_t'.
53646 (grub_malloc): Likewise.
53647 (grub_realloc): Likewise.
53648 (grub_memalign): Likewise.
53649 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53650 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53651 * util/misc.c (grub_malloc): Likewise.
53652 (grub_realloc): Likewise.
53653 * kern/mm.c (get_header_from_pointer): Change the casts to
53654 `unsigned' into a cast to `grub_size_t'.
53656 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53657 point to `currnode' when `currnode' is changed.
53659 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53660 Schottelius <nico-linux@schottelius.org>.
53662 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53664 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53665 (note_path): Remove variable.
53666 (GRUB_IEEE1275_NOTE_NAME): New macro.
53667 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53668 (grub_ieee1275_note_hdr): New structure.
53669 (grub_ieee1275_note_desc): Likewise.
53670 (grub_ieee1275_note): Likewise.
53671 (load_note): Remove `dir' argument. All callers updated. Remove
53672 `note_img' and `path'. Do not load a file from `note_path'.
53673 Initialize a struct grub_ieee1275_note and write that to `out'.
53674 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53676 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53678 * util/misc.c (grub_util_read_image): Revert last change. It
53679 called `grub_util_read_at', which seeks from the beginning of the
53682 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53684 * TODO: Add note about endianness in grub-mkimage.
53685 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53687 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53688 (grub_mkimage_SOURCES): New target.
53689 * include/grub/kernel.h (grub_start_addr): Remove variable.
53690 (grub_end_addr): Likewise.
53691 (grub_total_module_size): Likewise.
53692 (grub_kernel_image_size): Likewise.
53693 (GRUB_MODULE_MAGIC): New constant.
53694 (grub_module_info): New structure.
53695 (grub_arch_modules_addr): New prototype.
53696 (grub_get_end_addr): Remove prototype.
53697 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53698 * include/grub/powerpc/ieee1275/kernel.h: New file.
53699 * include/grub/util/misc.h (grub_util_get_fp_size): New
53701 (grub_util_read_at): Likewise.
53702 (grub_util_write_image_at): Likewise.
53703 * kern/main.c (grub_get_end_addr): Remove function.
53704 (grub_load_modules): Call grub_arch_modules_addr instead of using
53705 grub_end_addr. Look for a grub_module_info struct in memory. Use
53706 the grub_module_info fields instead of calling grub_get_end_addr
53707 as loop conditions. Move grub_add_unused_region code here.
53708 (grub_add_unused_region): Remove function.
53709 * kern/i386/pc/init.c: Include grub/cache.h.
53710 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53711 one call to add_mem_region.
53712 (grub_arch_modules_addr): New function.
53713 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53714 (grub_total_module_size): Likewise.
53715 Include grub/machine/kernel.h.
53716 (grub_arch_modules_addr): New function.
53717 * util/grub-emu.c (grub_end_addr): Remove variable.
53718 (grub_total_module_size): Likewise.
53719 (grub_arch_modules_addr): New function.
53720 * util/misc.c: Include unistd.h.
53721 (grub_util_get_fp_size): New function.
53722 (grub_util_read_at): Likewise.
53723 (grub_util_write_image_at): Likewise.
53724 (grub_util_read_image): Call grub_util_read_at.
53725 (grub_util_write_image): Call grub_util_write_image_at.
53726 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53727 additional memory in kernel_img for a struct grub_module_info.
53728 Fill in that grub_module_info.
53729 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53731 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53733 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53735 * include/grub/powerpc/ieee1275/ieee1275.h
53736 (grub_ieee1275_milliseconds): New prototype.
53737 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53739 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53740 grub_ieee1275_milliseconds.
53742 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53744 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53746 (find_options): New function.
53747 (cmain): Call find_options.
53748 * include/grub/powerpc/ieee1275/ieee1275.h
53749 (grub_ieee1275_realmode): New extern variable.
53750 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53751 grub_map if grub_ieee1275_realmode is false.
53753 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53755 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53756 lines are inserted and make it work like readline. Reported by
53757 Vincent Pelletier <subdino2004@yahoo.fr>.
53759 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53761 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53763 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53764 `kern/powerpc/cache.S'.
53766 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53768 * genmk.rb: Handle the `Program' class in the main loop. Written
53769 by Johan Rydberg <jrydberg@gnu.org>.
53770 (Program): New class.
53771 (programs): New variable.
53772 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53773 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53774 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53775 (help_arch): Function removed.
53776 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53777 `powerpc/libgcc.h' and `loader.h'.
53778 (pkgdata_PROGRAMS): New variable.
53779 (sbin_UTILITIES): Variable removed.
53780 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53781 (grubof_SOURCES): Variable re-defined so it only includes the
53782 core functionality.
53783 (grubof_CFLAGS): Remove `-DGRUBOF'.
53784 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53785 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53786 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53787 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53788 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53789 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53790 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53791 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53792 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53793 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53794 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53795 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53796 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53797 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53798 (pc_mod_CFLAGS): New variables.
53799 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53800 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53801 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53802 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53804 * include/grub/i386/pc/init.h (grub_os_area_addr)
53805 (rub_os_area_size): ... to here.
53806 * include/grub/powerpc/ieee1275/ieee1275.h
53807 (grub_ieee1275_entry_fn): Export symbol.
53808 * include/grub/powerpc/ieee1275/init.h: New file.
53809 * include/grub/powerpc/libgcc.h: Likewise.
53810 * include/grub/cache.h: Likewise.
53811 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53812 <hollis@penguinppc.org>.
53813 * kern/dl.c: Include <grub/cache.h>.
53814 (grub_dl_flush_cache): New function.
53815 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53817 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53818 (grub_console_init): Removed prototypes.
53819 (grub_machine_init): Don't initialize the modules anymore.
53820 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53822 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53823 Macro undef removed.
53824 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53825 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53826 relocation `R_PPC_REL32'. Return an error when the relocation is
53828 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53829 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53830 * util/misc.c (grub_arch_sync_caches): Likewise.
53832 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53834 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53835 `symlist.c', add `grubof_symlist.c'.
53836 (symlist.c): Variable removed.
53837 (grubof_HEADERS): Variable added.
53838 (grubof_symlist.c): New target.
53839 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53840 `kernel_img_HEADERS'.
53841 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53842 * kern/powerpc/dl.c: New file.
53843 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53845 (grub_arch_dl_relocate_symbols): Likewise.
53846 (grub_register_exported_symbols): Likewise.
53848 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53850 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53851 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53852 to fail instead. Reported by Vincent Pelletier
53853 <subdino2004@yahoo.fr>.
53855 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53856 it is not allocated. Reported by Vincent Pelletier
53857 <subdino2004@yahoo.fr>.
53859 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53860 output so the output looks better.
53862 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53864 Modulize the partition map support and add support for the amiga
53867 * commands/ls.c: Include <grub/partition.h> instead of
53868 <grub/machine/partition.h>.
53869 * kern/disk.c: Likewise.
53870 * kern/rescue.c: Likewise.
53871 * loader/i386/pc/chainloader.c: Likewise.
53872 * normal/cmdline.c: Likewise.
53873 * kern/powerpc/ieee1275/init.c: Likewise.
53874 (grub_machine_init): Call `grub_pc_partition_map_init',
53875 `grub_amiga_partition_map_init' and
53876 `grub_apple_partition_map_init'.
53877 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53878 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53879 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53880 `partition.h' and `pc_partition.h'.
53881 (grub_setup_SOURCES): Remove
53882 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53883 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53884 (grub_emu_SOURCES): Likewise.
53885 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53886 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53887 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53888 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53889 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53890 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53891 (grubof_SOURCES): Likewise.
53892 * disk/i386/pc/partition.c: File removed.
53893 * disk/powerpc/ieee1275/partition.c: Likewise.
53894 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53895 * include/grub/i386/pc/partition.h: Likewise.
53896 * kern/partition.c: New file.
53897 * partmap/amiga.c: Likewise.
53898 * partmap/apple.c: Likewise.
53899 * partmap/pc.c: Likewise.
53900 * include/grub/partition.h: Likewise..
53901 * include/grub/pc_partition.h: Likewise.
53902 * util/grub-emu.c: Include <grub/partition.h> instead of
53903 <grub/machine/partition.h>.
53904 (main): Call `grub_pc_partition_map_init',
53905 `grub_amiga_partition_map_init' and
53906 `grub_apple_partition_map_init' and deinitialize afterwards.
53907 * util/i386/pc/biosdisk.c: Include `#include
53908 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53909 `<grub/machine/partition.h>'.
53910 * util/i386/pc/grub-setup.c: Likewise.
53911 * util/i386/pc/biosdisk.c: Likewise.
53912 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53913 partition information in case of a PC partition.
53914 * util/i386/pc/grub-setup.c: Include `#include
53915 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53916 `<grub/machine/partition.h>'.
53917 (setup): Only access the PC specific partition information in case
53920 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53922 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53923 (grub_longjmp): Likewise.
53924 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53926 * normal/powerpc/setjmp.S: New file.
53927 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53928 `normal/powerpc/setjmp.S'.
53929 (grubof_CFLAGS): Add `-DGRUBOF'.
53930 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53931 [GRUB_UTIL && !GRUBOF].
53933 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53935 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53936 property named `name'. Correctly handle the error returned by
53937 `grub_ieee1275_finddevice' if a device can not be opened.
53939 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53941 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53942 `actual' for negativity.
53943 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53946 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53948 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53949 (PAGE_OFFSET): New macro.
53950 (CRTC_ADDR_PORT): Likewise.
53951 (CRTC_DATA_PORT): Likewise.
53952 (START_ADDR_HIGH_REGISTER): Likewise.
53953 (START_ADDR_LOW_REGISTER): Likewise.
53954 (GRAPHICS_ADDR_PORT): Likewise.
53955 (GRAPHICS_DATA_PORT): Likewise.
53956 (READ_MAP_REGISTER): Likewise.
53957 (INPUT_STATUS1_REGISTER): Likewise.
53958 (INPUT_STATUS1_VERTR_BIT): Likewise.
53959 (page): New variable.
53960 (wait_vretrace): New function.
53961 (set_read_map): Likewise.
53962 (set_start_address): Likewise.
53963 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53965 (check_vga_mem): Take the page into account.
53966 (write_char): Likewise.
53967 (write_cursor): Likewise.
53968 (scroll_up): Likewise. Copy the page to the page that is not
53969 shown and switch between both pages.
53970 (grub_vga_putchar): Fix off by one error.
53971 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53974 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53976 Add support for iso9660 (including rockridge).
53978 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53979 (iso9660_mod_SOURCES): New variable.
53980 (iso9660_mod_CFLAGS): Likewise.
53981 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53982 * include/grub/fs.h (grub_iso9660_init): New prototype.
53983 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53984 * fs/iso9660.c: New file.
53986 * include/grub/misc.h (grub_strncat): New prototype.
53987 * kern/misc.c (grub_strncat): New function.
53989 * fs/hfs.c (grub_hfs_mount): Translate the error
53990 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53991 * fs/jfs.c (grub_jfs_mount): Likewise.
53992 * fs/ufs.c (grub_ufs_mount): Likewise.
53994 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53996 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53997 which initialized BAT registers.
53998 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53999 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
54001 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
54002 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
54004 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
54005 (grub_mapclaim): Likewise.
54006 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
54007 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
54010 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
54012 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
54013 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
54014 -ffreestanding and -msoft-float.
54016 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
54018 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
54019 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
54020 set in grub_ieee1275_flags.
54022 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
54024 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
54026 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
54027 grub_console_init first.
54028 Change the memory range used for grub_ieee1275_claim and
54029 grub_mm_init_region.
54030 Print an error message if the claim fails.
54031 Include <grub/misc.h>.
54033 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
54035 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
54036 Call grub_children_iterate for device nodes of type `scsi',
54038 (grub_ofdisk_open): Remove manual device alias resolution.
54039 Fix memory leak when device cannot be opened.
54040 * include/grub/powerpc/ieee1275/ieee1275.h
54041 (grub_children_iterate): New prototype.
54042 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
54044 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54045 Return -1 if args.size was -1.
54047 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
54049 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
54050 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
54051 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
54052 Open Firmware's memory for it; claim memory from _start to _end.
54053 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
54054 (_end): New extern.
54055 (_start): Zero BSS from __bss_start to _end.
54056 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
54058 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
54060 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
54062 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
54063 -1 if args.base was -1.
54065 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
54067 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
54068 escape sequence instead of a literal ^L. Also call
54069 grub_ofconsole_gotoxy.
54071 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
54073 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
54074 void * arguments to grub_addr_t. All callers updated. Also make
54075 the `result' argument optional.
54076 (grub_ieee1275_release): change void * arguments to grub_addr_t.
54077 All callers updated.
54079 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
54081 * commands/ls.c (grub_ls_list_files): Use the string following the
54082 initial ')', if present, as the filesystem path.
54083 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
54085 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
54087 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
54089 Make the source code of the menu interface more readable.
54091 * normal/menu.c: Include grub/mm.h.
54092 (TERM_WIDTH): New macro.
54093 (TERM_HEIGHT): Likewise.
54094 (TERM_INFO_HEIGHT): Likewise.
54095 (TERM_MARGIN): Likewise.
54096 (TERM_SCROLL_WIDTH): Likewise.
54097 (TERM_TOP_BORDER_Y): Likewise.
54098 (TERM_LEFT_BORDER_X): Likewise.
54099 (TERM_BORDER_WIDTH): Likewise.
54100 (TERM_MESSAGE_HEIGHT): Likewise.
54101 (TERM_BORDER_HEIGHT): Likewise.
54102 (TERM_NUM_ENTRIES): Likewise.
54103 (TERM_FIRST_ENTRY_Y): Likewise.
54104 (TERM_ENTRY_WIDTH): Likewise.
54105 (TERM_CURSOR_X): Likewise.
54106 (draw_border): Use macros instead of magic numbers.
54107 (print_entry): Likewise.
54108 (print_entries): Likewise.
54109 (run_menu): Likewise. Also, handle the key 'e'.
54110 (run_menu_entry): Ignore empty command lines.
54111 (print_message): Added a new argument EDIT. If EDIT is true,
54112 print a different message.
54113 (init_page): Likewise.
54114 (edit_menu_entry): New function. Not implemented yet.
54116 2004-09-17 Marco Gerards <metgerards@student.han.nl>
54118 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
54119 can be loaded from normal mode.
54121 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
54123 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
54124 (multiboot_mod_CFLAGS): New variables.
54125 * loader/i386/pc/linux_normal.c: New file.
54126 * loader/i386/pc/multiboot_normal.c: Likewise.
54128 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
54129 attribute `unused'.
54131 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
54132 `fdiro' to read the mode information from instead of `diro'.
54134 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
54135 looking up a symlink.
54137 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
54139 * normal/command.c (grub_command_execute): Don't parse the
54140 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
54141 flags of the command.
54143 * normal/menu.c (grub_menu_run): Fix typo.
54145 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
54147 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
54149 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
54150 `y + 1' instead of `y - 1'.
54152 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
54154 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
54156 From Hollis Blanchard <hollis@penguinppc.org>:
54157 * kern/misc.c (memmove): New alias for grub_memmove.
54158 (memcmp): New alias for grub_memcmp.
54159 (memset): New alias for grub_memset.
54160 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54161 Change "int handle" to "grub_ieee1275_phandle_t handle".
54162 * include/grub/powerpc/ieee1275/ieee1275.h
54163 (grub_ieee1275_get_property): Likewise.
54165 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
54167 Added normal mode command `chainloader' as module chain.mod, which
54168 depends on normal.mod and _chain.mod.
54170 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
54171 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
54172 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
54174 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
54175 but arguments parsing moved to ...
54176 (grub_chainloader_cmd): ... here. New function.
54177 * include/grub/i386/pc/chainloader.h: New file.
54178 * loader/i386/pc/chainloader_normal.c: Likewise.
54180 2004-09-11 Marco Gerards <metgerards@student.han.nl>
54182 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54183 (grub_mkimage_LDFLAGS): Likewise.
54184 (grub_emu_SOURCES): Likewise.
54185 (kernel_img_HEADERS): Added fshelp.h.
54186 * fs/ext2.c: Include <grub/fshelp.h>.
54187 (FILETYPE_REG): New macro.
54188 (FILETYPE_INO_REG): Likewise.
54189 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54191 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
54193 (grub_fshelp_node): New struct.
54194 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54196 (grub_ext2_get_file_block): Removed function.
54197 (grub_ext2_read_block): New function.
54198 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54199 This function was written.
54200 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54201 (grub_ext2_find_file): Removed function.
54202 (grub_ext2_read_symlink): New function.
54203 (grub_ext2_iterate_dir): Likewise.
54204 (grub_ext2_open): Rewritten.
54205 (grub_ext2_dir): Rewritten.
54206 * include/grub/fshelp.h: New file.
54207 * fs/fshelp.c: Likewise.
54209 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54211 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54212 (print_message): Add a missing newline.
54213 (run_menu): Added timeout support.
54214 (run_menu_entry): New local function.
54215 (grub_menu_run): Added support for booting.
54217 * kern/loader.c (grub_loader_is_loaded): New function.
54219 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54220 (grub_get_rtc): Exported.
54222 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54223 (grub_get_rtc): Exported.
54225 * include/grub/normal.h (struct grub_command_list): Remove
54226 constant from the member `command'.
54228 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54230 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54232 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54234 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54236 Add support for the JFS filesystem.
54238 * fs/jfs.c: New file.
54239 * include/grub/fs.h (grub_jfs_init): New prototype.
54240 (grub_jfs_fini): New prototype.
54241 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54242 (grub_emu_SOURCES): Likewise.
54243 (pkgdata_MODULES): Add jfs.mod.
54244 (jfs_mod_SOURCES): New variable.
54245 (jfs_mod_CFLAGS): Likewise.
54246 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54247 (grubof_SOURCES): Likewise.
54248 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54250 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54251 endian to the host endian.
54252 (grub_fat_utf16_to_utf8): Move function from there...
54253 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54254 the endianness of the source string anymore.
54255 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54257 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54259 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54260 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54261 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54262 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54264 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54265 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54266 for `node_found' and `it_dir'.
54267 (grub_hfs_dir): Add prototype for `dir_hook'.
54269 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54270 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54271 and `indir32' to silence a gcc warning.
54273 * include/grub/fs.h (grub_hfs_init): New prototype.
54274 (grub_hfs_fini): Likewise.
54277 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54279 Each disk device has its own id now. This is useful to make use
54280 of multiple disk devices.
54282 * include/grub/disk.h (grub_disk_dev_id): New enum.
54283 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54284 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54286 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54287 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54289 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54290 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54292 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54293 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54295 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54296 "id" which is used by the cache manager.
54298 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54301 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54303 * fs/hfs.c: New file.
54304 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54305 (grub_emu_SOURCES): Likewise.
54306 (pkgdata_MODULES): Add hfs.mod.
54307 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54308 (grubof_SOURCES): Likewise.
54309 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54311 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54312 * kern/misc.c (grub_strncasecmp): Add function.
54314 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54316 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54319 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54320 (grub_ext2_dir): In case the directory entry type is unknown, read
54323 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54325 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54326 grub_load_linux instead of grub_rescue_cmd_linux as second
54327 argument of grub_rescue_register_command.
54329 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54331 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54333 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54335 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54336 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54337 `loader/powerpc/ieee1275/linux.c',
54338 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54339 * include/grub/powerpc/ieee1275/ieee1275.h
54340 (grub_ieee1275_release): New prototype.
54341 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54342 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54343 normal, boot, linux and linux_normal.
54344 * loader/powerpc/ieee1275/linux.c: New file.
54345 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54347 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54349 * normal/arg.c (grub_arg_parse): Correct error handling after
54350 reallocating the argumentlist (check if `argl' is not null instead
54351 of checking if `args' is not null).
54352 * kern/mm.c (grub_realloc): Return the same pointer when using the
54353 same region, instead of returning the header address.
54355 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54357 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54358 one block instead of two when looking for the initial partition.
54359 (grub_partition_probe): Initialize the local variable `p' with 0.
54360 Use base 10 for the grub_strtoul call.
54361 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54362 need for one local variable.
54363 (grub_strtoul): Don't add the new value to `num', instead of that
54366 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54368 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54369 (pxeboot_img_SOURCES): New variable.
54370 (pxeboot_img_ASFLAGS): Likewise.
54371 (pxeboot_img_LDFLAGS): Likewise.
54372 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54373 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54374 <lode_leroy@hotmail.com>.
54376 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54378 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54379 there was no input.
54381 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54383 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54384 the history buffer logic.
54386 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54388 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54389 (FILETYPE_INO_SYMLINK): New macros.
54390 (grub_ext2_find_file): Check if the node is a directory using the
54391 inode stat information instead of using the filetype in the
54392 dirent. Exclude the first character of an absolute symlink.
54393 (grub_ext2_dir): Mask out the filetype part of the mode member of
54396 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54398 Add support for UFS version 1 and 2. Add support for the minix
54399 filesystem version 1 and 2, both the variants with 14 and 30 long
54402 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54404 (grub_emu_SOURCES): Likewise.
54405 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54406 (ufs_mod_SOURCES): New variable.
54407 (ufs_mod_CFLAGS): Likewise.
54408 (minix_mod_SOURCES): Likewise.
54409 (minix_mod_CFLAGS): Likewise.
54410 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54412 (grubof_SOURCES): Likewise.
54413 * fs/ufs.c: New file.
54414 * fs/minix.c: New file.
54415 * include/grub/fs.h (grub_ufs_init): New prototype.
54416 (grub_ufs_fini): Likewise.
54417 (grub_minix_init): Likewise.
54418 (grub_minix_fini): Likewise.
54419 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54422 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54424 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54425 commands/ls.c, commands/terminal.c, commands/boot.c,
54426 commands/cmp.c and commands/cat.c.
54427 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54429 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54432 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54434 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54435 and grub_, respectively. Because the conversion is trivial and
54436 mechanical, I omit the details here. Please refer to the CVS
54437 if you need more information.
54439 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54441 * include/pupa: Renamed to ...
54442 * include/grub: ... this.
54443 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54444 * util/i386/pc/grub-mkimage.c: ... this.
54445 * util/i386/pc/pupa-setup.c: Renamed to ...
54446 * util/i386/pc/grub-setup.c: ... this.
54447 * util/pupa-emu.c: Renamed to ...
54448 * util/grub-emu.c: ... this.
54450 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54452 Add support for the newworld apple macintosh (PPC). This has been
54453 tested on the powerbook 2000 only. It only adds support for
54454 generic ieee1275 functions, console and disk support. This should
54455 be easy to port to other architectures with support for Open
54458 * configure.ac: Accept the powerpc as host_cpu. In the case of
54459 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54460 specific tests are only executed while building for the i386.
54461 Inverse test for crosscompile.
54462 * genmk.rb (Utility): Allow assembler files.
54463 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54464 * conf/powerpc-ieee1275.rmk: New file.
54465 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54466 * disk/powerpc/ieee1275/partition.c: Likewise.
54467 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54468 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54469 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54470 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54471 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54472 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54473 * include/pupa/powerpc/ieee1275/loader.h
54474 * include/pupa/powerpc/setjmp.h: Likewise.
54475 * include/pupa/powerpc/types.h: Likewise.
54476 * kern/powerpc/ieee1275/init.c: Likewise.
54477 * kern/powerpc/ieee1275/openfw.c: Likewise.
54478 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54480 These files were written by Johan Rydberg
54481 (jrydberg@night.trouble.net) and I only modified them slightly.
54483 * boot/powerpc/ieee1275/cmain.c: New file.
54484 * boot/powerpc/ieee1275/crt0.S: Likewise.
54485 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54486 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54488 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54490 * Makefile.in: Update copyright.
54491 * genmodsrc.sh: Likewise.
54492 * gensymlist.sh: Likewise.
54493 * term/i386/pc/vga.c: Indent correctly.
54495 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54496 bugreporting address.
54497 * util/i386/pc/pupa-setup.c (usage): Likewise,
54498 (main): Call pupa_ext2_init and pupa_ext2_fini.
54500 * fs/fat.c (log2): Renamed to ...
54501 (fat_log2): ... this.
54502 All callers changed.
54503 * kern/misc.c (memcpy): Alias to pupa_memmove.
54504 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54506 * util/console.c (pupa_ncurses_fini): Return 0.
54508 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54509 Move fail label here.
54510 [__GNU__]: Don't warn when using stat.
54511 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54512 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54513 long int. Use strtol instead of strtoul.
54515 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54517 * commands/boot.c: New file.
54518 * commands/cat.c: Likewise.
54519 * commands/cmp.c: Likewise.
54520 * commands/ls.c: Likewise.
54521 * commands/terminal.c: Likewise.
54522 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54523 (pupa_register_command): Changed interface to match the new
54525 (pupa_command_execute): Changed (almost rewritten) so it uses
54526 pupa_split_command. Added support for setting variables using the
54528 (rescue_command): Changed to work with the new argument parser.
54529 (terminal_command): Moved from here to commands/terminal.c.
54530 (set_command): New function.
54531 (unset_command): New function.
54532 (insmod_command): New function.
54533 (rmmod_command): New function.
54534 (lsmod_command): New function.
54535 (pupa_command_init): Don't initialize the command terminal
54536 anymore. Initialize the commands set, unset, insmod, rmmod and
54538 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54539 (kernel_img_HEADERS): Add arg.h and env.h.
54540 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54541 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54542 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54544 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54546 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54547 (boot_mod_SOURCES): New variable.
54548 (terminal_mod_SOURCES): Likewise.
54549 (ls_mod_SOURCES): Likewise.
54550 (cmp_mod_SOURCES): Likewise.
54551 (cat_mod_SOURCES): Likewise.
54553 * normal/arg.c: New file.
54554 * kern/env.c: Likewise.
54555 * include/pupa/arg.h: Likewise.
54556 * include/pupa/env.h: Likewise.
54557 * font/manager.c (font_command): Changed to match argument parsing
54559 (PUPA_MOD_INIT): Likewise.
54560 * hello/hello.c (pupa_cmd_hello): Likewise.
54561 (PUPA_MOD_INIT): Likewise.
54562 * include/pupa/disk.h: Include <pupa/device.h>.
54563 (pupa_print_partinfo): New prototype.
54564 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54565 (pupa_dl_get_prefix): Likewise.
54566 * include/pupa/misc.h: Include <pupa/err.h>.
54567 (pupa_isgraph): New prototype.
54568 (pupa_isdigit): Likewise.
54569 (pupa_split_cmdline): Likewise.
54570 * include/pupa/normal.h: Include <pupa/arg.h>.
54571 (pupa_command): Changed the prototype of the member `func' to
54572 match the argument parsing interface. Added member `options'.
54573 (pupa_register_command): Updated to match function.
54574 (pupa_arg_parse): New prototype.
54575 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54576 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54577 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54578 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54579 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54580 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54581 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54582 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54583 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54584 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54585 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54586 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54587 * kern/disk.c: Include <pupa/file.h>.
54588 (pupa_print_partinfo): New function.
54589 * kern/dl.c: Include <pupa/env.h>.
54590 (pupa_dl_dir): Variable removed.
54591 (pupa_dl_load): Use the environment variable `prefix' instead of
54592 the variable pupa_dl_dir.
54593 (pupa_dl_set_prefix): Function removed.
54594 (pupa_dl_get_prefix): Likewise.
54595 * kern/i386/pc/init.c: Include <pupa/env.h>.
54596 (pupa_machine_init): Use the environment variable `prefix' instead of
54597 using pupa_dl_set_prefix to set the prefix.
54598 * kern/main.c: Include <pupa/env.h>.
54599 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54600 using pupa_dl_get_prefix to get the prefix.
54601 * kern/misc.c: Include <pupa/env.h>.
54602 (pupa_isdigit): New function.
54603 (pupa_isgraph): Likewise.
54604 (pupa_ftoa): Likewise.
54605 (pupa_vsprintf): Added support for printing values of the type
54606 `double'. Make it possible to format variable output when using
54607 formatting like `%1.2%f'.
54608 (pupa_split_cmdline): New function.
54609 * kern/rescue.c: Include <pupa/env.h>.
54610 (next_word): Removed function.
54611 (pupa_rescue_cmd_prefix): Likewise.
54612 (pupa_rescue_cmd_set): New function.
54613 (pupa_rescue_cmd_unset): New function.
54614 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54615 split the command line instead of splitting it here. Added
54616 support for setting variables using the syntax `foo=bar'. Don't
54617 initialize the prefix command anymore. Initialized the set and
54619 * normal/cmdline.c: Include <pupa/env.h>.
54620 (pupa_tab_complete): Added prototypes for print_simple_completion,
54621 print_partition_completion, add_completion, iterate_commands,
54622 iterate_dev, iterate_part and iterate_dir. Moved code to print
54623 partition information from here to kern/disk.c.
54624 (pupa_cmdline_run): Don't check if the function exists anymore.
54625 * normal/main.c: Include <pupa/env.h>.
54626 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54627 instead of using pupa_dl_get_prefix to get the prefix.
54628 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54629 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54631 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54632 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54633 ((unused))' to silence a gcc warning.
54634 (pupa_vga_setcolor): Likewise.
54635 (debug_command): Changed to match argument parsing
54637 * util/pupa-emu.c: Include <pupa/env.h>.
54638 (options): Added 0's for unused fields to silence a gcc warning.
54640 (main): Use the environment variable `prefix' instead of using
54641 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54642 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54645 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54646 * util/misc.c: Include <malloc.h>.
54647 (pupa_malloc): Rewritten so errors are correctly reported.
54648 (pupa_realloc): Likewise.
54649 (pupa_memalign): Likewise.
54650 (pupa_mm_init_region): Declare unused variables with
54651 `__attribute__ ((unused))' to silence a gcc warning.
54652 * normal/i386/setjmp.S: Remove tab at the end of the file to
54653 silence a gcc warning.
54654 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54655 variables with `__attribute__ ((unused))' to silence a gcc
54657 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54658 local variable i unsigned to silence a gcc warning.
54660 * kern/term.c: Include <pupa/misc.h>.
54661 (pupa_more_lines): New variable.
54662 (pupa_more): Likewise.
54663 (pupa_putcode): When the pager is active pause at the end of every
54665 (pupa_set_more): New function.
54666 * include/pupa/term.h (pupa_set_more): New prototype.
54669 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54671 Now this project is GRUB 2 rather than PUPA. The location of
54672 the CVS repository was moved to GRUB's.
54674 * configure.ac: Use bug-grub as the reporting address.
54675 Use GRUB instead of PUPA.
54676 Change the version number to 1.90.
54678 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54680 * genkernsyms.sh: Updated copyright information.
54681 * genmk.rb: Likewise.
54682 * genmodsrc.sh: Likewise.
54683 * gensymlist.sh: Likewise.
54684 * boot/i386/pc/boot.S: Likewise.
54685 * boot/i386/pc/diskboot.S: Likewise.
54686 * disk/i386/pc/biosdisk.c: Likewise.
54687 * disk/i386/pc/partition.c: Likewise.
54688 * font/manager.c: Likewise.
54689 * fs/ext2.c: Likewise.
54690 * fs/fat.c: Likewise.
54691 * include/pupa/boot.h: Likewise.
54692 * include/pupa/device.h: Likewise.
54693 * include/pupa/disk.h: Likewise.
54694 * include/pupa/dl.h: Likewise.
54695 * include/pupa/elf.h: Likewise.
54696 * include/pupa/err.h: Likewise.
54697 * include/pupa/file.h: Likewise.
54698 * include/pupa/font.h: Likewise.
54699 * include/pupa/fs.h: Likewise.
54700 * include/pupa/kernel.h: Likewise.
54701 * include/pupa/loader.h: Likewise.
54702 * include/pupa/misc.h: Likewise.
54703 * include/pupa/mm.h: Likewise.
54704 * include/pupa/net.h: Likewise.
54705 * include/pupa/normal.h: Likewise.
54706 * include/pupa/rescue.h: Likewise.
54707 * include/pupa/setjmp.h: Likewise.
54708 * include/pupa/symbol.h: Likewise.
54709 * include/pupa/term.h: Likewise.
54710 * include/pupa/types.h: Likewise.
54711 * include/pupa/i386/setjmp.h: Likewise.
54712 * include/pupa/i386/types.h: Likewise.
54713 * include/pupa/i386/pc/biosdisk.h: Likewise.
54714 * include/pupa/i386/pc/boot.h: Likewise.
54715 * include/pupa/i386/pc/console.h: Likewise.
54716 * include/pupa/i386/pc/init.h: Likewise.
54717 * include/pupa/i386/pc/kernel.h: Likewise.
54718 * include/pupa/i386/pc/linux.h: Likewise.
54719 * include/pupa/i386/pc/loader.h: Likewise.
54720 * include/pupa/i386/pc/memory.h: Likewise.
54721 * include/pupa/i386/pc/multiboot.h: Likewise.
54722 * include/pupa/i386/pc/partition.h: Likewise.
54723 * include/pupa/i386/pc/time.h: Likewise.
54724 * include/pupa/i386/pc/vga.h: Likewise.
54725 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54726 * include/pupa/util/getroot.h: Likewise.
54727 * include/pupa/util/misc.h: Likewise.
54728 * include/pupa/util/resolve.h: Likewise.
54729 * kern/device.c: Likewise.
54730 * kern/disk.c: Likewise.
54731 * kern/dl.c: Likewise.
54732 * kern/err.c: Likewise.
54733 * kern/file.c: Likewise.
54734 * kern/fs.c: Likewise.
54735 * kern/loader.c: Likewise.
54736 * kern/main.c: Likewise.
54737 * kern/misc.c: Likewise.
54738 * kern/mm.c: Likewise.
54739 * kern/rescue.c: Likewise.
54740 * kern/term.c: Likewise.
54741 * kern/i386/dl.c: Likewise.
54742 * kern/i386/pc/init.c: Likewise.
54743 * kern/i386/pc/lzo1x.S: Likewise.
54744 * kern/i386/pc/startup.S: Likewise.
54745 * loader/i386/pc/chainloader.c: Likewise.
54746 * loader/i386/pc/linux.c: Likewise.
54747 * loader/i386/pc/multiboot.c: Likewise.
54748 * normal/cmdline.c: Likewise.
54749 * normal/command.c: Likewise.
54750 * normal/main.c: Likewise.
54751 * normal/menu.c: Likewise.
54752 * normal/i386/setjmp.S: Likewise.
54753 * term/i386/pc/console.c: Likewise.
54754 * term/i386/pc/vga.c: Likewise.
54755 * util/console.c: Likewise.
54756 * util/genmoddep.c: Likewise.
54757 * util/misc.c: Likewise.
54758 * util/pupa-emu.c: Likewise.
54759 * util/resolve.c: Likewise.
54760 * util/unifont2pff.rb: Likewise.
54761 * util/i386/pc/biosdisk.c: Likewise.
54762 * util/i386/pc/getroot.c: Likewise.
54763 * util/i386/pc/pupa-mkimage.c: Likewise.
54764 * util/i386/pc/pupa-setup.c: Likewise.
54766 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54768 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54769 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54770 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54771 reading and reset it after reading.
54772 (pupa_ext2_close): Return PUPA_ERR_NONE.
54774 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54776 (struct linux_kernel_header): Add kernel_version and
54778 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54779 pupa_file_read succeeds.
54780 (pupa_rescue_cmd_initrd): Implement.
54782 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54784 * fs/ext2.c (pupa_ext2_label): New function.
54785 (pupa_ext2_fs): Added label.
54786 * fs/fat.c (pupa_fat_label): New function.
54787 (pupa_fat_fs): Added label.
54788 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54790 * kern/misc.c (pupa_strndup): New function.
54791 * include/pupa/misc.h (pupa_strndup): New prototype.
54793 * include/pupa/normal.h: Include <pupa/err.h>.
54794 (pupa_set_history): New prototype.
54795 (pupa_iterate_commands): New prototype.
54796 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54797 <pupa/disk.h>, <pupa/file.h>.
54798 (hist_size): New variable.
54799 (hist_lines): Likewise.
54800 (hist_end): Likewise.
54801 (hist_used): Likewise.
54802 (pupa_set_history): New function.
54803 (pupa_history_get): Likewise.
54804 (pupa_history_add): Likewise.
54805 (pupa_history_replace): Likewise.
54806 (pupa_tab_complete): Likewise.
54807 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54808 completion shows partitionnames while completing partitions, this
54809 feature was suggested by Jeff Bailey.
54810 * normal/command.c (pupa_iterate_commands): New function.
54811 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54812 (pupa_normal_init): Initialize history buffer.
54813 (PUPA_MOD_INIT): Likewise.
54814 (pupa_normal_fini): Free the history buffer.
54815 (PUPA_MOD_FINI): Likewise.
54817 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54820 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54821 * configure.ac [i386]: Check for regparam bug.
54822 (NESTED_FUNC_ATTR) [! i386]: Defined.
54824 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54826 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54827 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54828 (pupa_emu_SOURCES): New variable.
54829 (pupa_emu_LDFLAGS): Likewise.
54830 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54831 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54832 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54833 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54834 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54835 (pupa_jmp_buf): New typedef.
54836 (pupa_setjmp) [PUPA_UTIL]: New macro.
54837 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54838 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54839 (pupa_refresh): New prototype.
54840 * include/pupa/util/getroot.h: New file.
54841 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54843 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54844 (pupa_rescue_cmd_cat): Likewise.
54845 (pupa_rescue_cmd_ls): Likewise.
54846 (pupa_rescue_cmd_testload): Likewise.
54847 (pupa_rescue_cmd_lsmod): Likewise.
54848 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54849 * normal/menu.c (run_menu): Likewise.
54850 * kern/term.c (pupa_cls): Likewise.
54851 (pupa_refresh): New function.
54852 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54853 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54854 * util/console.c: New file.
54856 * util/i386/pc/getroot.c: New file.
54857 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54858 (pupa_putchar): New function.
54859 (pupa_refresh): Likewise.
54860 (xgetcwd): Function moved to ...
54861 (strip_extra_slashes): Likewise.
54862 (get_prefix): Likewise.
54863 * util/i386/pc/getroot.c: ... here.
54864 (find_root_device): Function moved and renamed to...
54865 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54866 Changed all callers.
54867 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54869 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54870 Changed all callers.
54871 * util/misc.c (pupa_memalign): New function.
54872 (pupa_mm_init_region): Likewise.
54873 (pupa_register_exported_symbols): Likewise.
54874 (pupa_putchar): Function removed.
54875 * util/pupa-emu.c: New file.
54877 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54879 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54880 (_multiboot_mod_SOURCES): New variable.
54881 (_multiboot_mod_CFLAGS): Likewise.
54882 * loader/i386/pc/multiboot.c: New file.
54883 * include/pupa/i386/pc/multiboot.h: Likewise.
54884 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54885 (pupa_multiboot_real_boot): New function.
54886 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54887 (pupa_multiboot_real_boot): New prototype.
54888 (pupa_rescue_cmd_multiboot): Likewise
54889 (pupa_rescue_cmd_module): Likewise.
54891 * kern/loader.c (pupa_loader_set): Continue when
54892 pupa_loader_unload_func() fails.
54893 (pupa_loader_unset): New function.
54894 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54896 * kern/misc.c (pupa_stpcpy): New function.
54897 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54899 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54901 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54902 for available extensions.
54904 * include/pupa/i386/pc/time.h: New file.
54905 * kern/disk.c: Include <pupa/machine/time.h>.
54906 (PUPA_CACHE_TIMEOUT): New macro.
54907 (pupa_last_time): New variable.
54908 (pupa_disk_open): Flush the cache when there was a timeout.
54909 (pupa_disk_close): Reset the timer.
54910 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54912 * util/misc.c: Include <sys/times.h>
54913 (pupa_get_rtc): New function.
54915 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54917 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54919 (pupa_ext2_get_file_block): Use blocks member.
54921 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54922 first block. Return -1 instead of pupa_errno on error.
54924 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54926 * README: In the pupa-mkimage example use _chain instead of chain
54927 and ext2 instead of fat.
54928 * TODO: Replace ext2fs with jfs as an example. Add an item for
54929 adding journal playback for ext2fs.
54930 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54931 (pkgdata_MODULES): Added ext2.mod.
54932 (ext2_mod_SOURCES): New variable.
54933 (ext2_mod_CFLAGS): Likewise.
54934 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54935 * include/pupa/misc.h (pupa_strncpy): New prototype.
54936 (pupa_strcat): Likewise.
54937 (pupa_strncmp): Likewise.
54938 * kern/misc.c (pupa_strcat): Enable function.
54939 (pupa_strncpy): New function.
54940 (pupa_strncmp): Likewise.
54941 * fs/ext2.c: New file.
54943 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54944 when the read failed before retrying.
54945 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54946 (_FILE_OFFSET_BITS): Likewise.
54947 * configure.ac: Added AC_SYS_LARGEFILE.
54949 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54951 * genmk.rb (PModule#rule): Make sure to get only symbol names
54952 from the output of nm.
54953 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54955 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54957 I forgot to check in these changes for a long time. This adds
54958 incomplete support for VGA console, and this is still very
54959 buggy. Also, a lot of consideration is required for I18N,
54960 UNICODE, and VGA font issues. Therefore, assume that this is
54961 such that "better than nothing".
54963 * font/manager.c: New file.
54964 * include/pupa/font.h: Likewise.
54965 * include/pupa/i386/pc/vga.h: Likewise.
54966 * term/i386/pc/vga.c: Likewise.
54967 * util/unifont2pff.rb: Likewise.
54969 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54970 (pkgdata_MODULES): Added vga.mod and font.mod.
54971 (vga_mod_SOURCES): New variables.
54972 (vga_mod_CFLAGS): Likewise.
54973 (font_mod_SOURCES): Likewise.
54974 (font_mod_CFLAGS): Likewise.
54976 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54978 * include/pupa/term.h: Include pupa/err.h.
54979 (struct pupa_term): Added init and fini.
54980 Changed the argument of putchar to pupa_uint32_t.
54982 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54983 (pupa_console_real_putchar): New prototype.
54984 (pupa_console_putchar): Removed.
54985 (pupa_console_checkkey): Exported.
54986 (pupa_console_getkey): Likewise.
54988 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54991 * kern/term.c (pupa_term_set_current): Rewritten.
54992 (pupa_putchar): Likewise.
54993 (pupa_putcode): New function.
54995 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54996 (pupa_console_real_putchar): ... this.
54997 (pupa_vga_set_mode): New function.
54998 (pupa_vga_get_font): Likewise.
55000 * normal/command.c: Include pupa/term.h.
55001 (terminal_command): New function.
55002 (pupa_command_init): Register the command "terminal".
55004 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
55005 (DISP_UP): Likewise.
55006 (DISP_RIGHT): Likewise.
55007 (DISP_DOWN): Likewise.
55008 (DISP_HLINE): Likewise.
55009 (DISP_VLINE): Likewise.
55010 (DISP_UL): Likewise.
55011 (DISP_UR): Likewise.
55012 (DISP_LL): Likewise.
55013 (DISP_LR): Likewise.
55015 * term/i386/pc/console.c (pupa_console_putchar): New function.
55017 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
55019 * util/resolve.c (pupa_util_resolve_dependencies): BUG
55020 FIX. Reverse the path_list.
55022 * include/pupa/normal.h: Export pupa_register_command and
55023 pupa_unregister_command.
55025 * hello/hello.c (pupa_cmd_hello): New module.
55026 * conf/i386-pc.rmk: Added hello.mod.
55028 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
55030 * kern/i386/pc/lzo1x.S: New file.
55032 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
55033 (compress_kernel): New variable.
55034 (generate_image): Heavily modified to support compressing a
55035 large part of the core image.
55037 * util/misc.c (pupa_util_read_image): Fix a file descriptor
55039 (pupa_util_load_image): New function.
55041 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
55042 (pupa_compressed_size): New variable.
55043 (codestart): Enable Gate A20 here.
55044 Decompress the compressed part of the core image.
55045 Rearrange the code to put functions and variables which are
55046 required for initialization in the non-compressed part.
55049 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
55052 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
55054 * include/pupa/i386/pc/kernel.h
55055 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
55056 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
55057 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55058 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55059 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
55061 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
55063 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
55064 (Utility#rule): Likewise.
55066 * configure.ac: Check if LZO is available.
55068 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
55070 * include/pupa/normal.h: New file.
55071 * include/pupa/setjmp.h: Likewise.
55072 * include/pupa/i386/setjmp.h: Likewise.
55073 * normal/cmdline.c: Likewise.
55074 * normal/command.c: Likewise.
55075 * normal/main.c: Likewise.
55076 * normal/menu.c: Likewise.
55077 * normal/i386/setjmp.S: Likewise.
55079 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
55080 (pupa_rescue_cmd_initrd): Likewise.
55082 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
55085 * kern/i386/pc/startup.S (translation_table): New variable.
55086 (translate_keycode): New function.
55087 (pupa_console_getkey): Call translate_keycode.
55089 * kern/rescue.c (attempt_normal_mode): New function.
55090 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
55091 it failed, print a message.
55093 * kern/mm.c (pupa_real_malloc): Print more information when a
55094 free magic is broken.
55095 (pupa_free): If the first free header is not free actually, set
55098 * kern/main.c (pupa_load_normal_mode): Just load the module
55100 (pupa_main): Don't print the message
55101 "Entering into rescue mode..." here.
55103 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
55105 (pupa_rescue_cmd_initrd): Likewise.
55106 (pupa_rescue_cmd_initrd): Likewise.
55108 * include/pupa/symbol.h (FUNCTION): Specify the type.
55109 (VARIABLE): Likewise.
55111 * include/pupa/err.h (pupa_err_t): Added
55112 PUPA_ERR_UNKNOWN_COMMAND.
55114 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
55115 (pupa_dl_get_prefix): Likewise.
55117 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
55118 Added _chain.mod and _linux.mod instead of chain.mod and
55120 (chain_mod_SOURCES): Renamed to ...
55121 (_chain_mod_SOURCES): ... this.
55122 (chain_mod_CFLAGS): Renamed to ...
55123 (_chain_mod_CFLAGS): ... this.
55124 (linux_mod_SOURCES): Renamed to ...
55125 (_linux_mod_SOURCES): ... this.
55126 (linux_mod_CFLAGS): Renamed to ...
55127 (_linux_mod_CFLAGS): ... this.
55128 (normal_mod_SOURCES): New variable.
55129 (normal_mod_CFLAGS): Likewise.
55130 (normal_mod_ASFLAGS): Likewise.
55132 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
55134 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
55137 * kern/dl.c (pupa_dl_ref): Refer depending modules
55139 (pupa_dl_unref): Unrefer depending modules recursively.
55140 Don't call pupa_dl_unload implicitly, because PUPA can crash if
55141 a module is unloaded before one depending on that module is
55143 (pupa_dl_unload): Unload depending modules explicitly,
55146 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
55148 * include/pupa/i386/pc/linux.h: New file.
55149 * loader/i386/pc/linux.c: Likewise.
55151 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
55153 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
55154 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
55155 of PUPA_CHAINLOADER_BOOT_SECTOR.
55157 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
55158 (pupa_linux_prot_size): New variable.
55159 (pupa_linux_tmp_addr): Likewise.
55160 (pupa_linux_real_addr): Likewise.
55161 (pupa_linux_boot_zimage): New function.
55162 (pupa_linux_boot_bzimage): Likewise.
55164 * kern/i386/pc/init.c (struct mem_region): New structure.
55165 (MAX_REGIONS): New macro.
55166 (mem_regions): New variable.
55167 (num_regions): Likewise.
55168 (pupa_os_area_addr): Likewise.
55169 (pupa_os_area_size): Likewise.
55170 (pupa_lower_mem): Likewise.
55171 (pupa_upper_mem): Likewise.
55172 (add_mem_region): New function.
55173 (compact_mem_regions): Likewise.
55174 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
55175 the size of the conventional memory and that of so-called upper
55176 memory (before the first memory hole).
55177 Instead of adding each found region to free memory, use
55178 add_mem_region and add them after removing overlaps.
55179 Also, add only 1/4 of the upper memory to free memory. The rest
55180 is used for loading OS images. Maybe this is ad hoc, but this
55181 makes it much easier to relocate OS images when booting.
55183 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55184 (pupa_enter_rescue_mode): Don't register initrd and module.
55186 * kern/mm.c: Include pupa/dl.h.
55188 * kern/main.c: Include pupa/file.h and pupa/device.h.
55190 * kern/loader.c (pupa_loader_load_module_func): Removed.
55191 (pupa_loader_load_module): Likewise.
55193 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55196 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55197 (pupa_linux_tmp_addr): Likewise.
55198 (pupa_linux_real_addr): Likewise.
55199 (pupa_linux_boot_zimage): Likewise.
55200 (pupa_linux_boot_bzimage): Likewise.
55202 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55203 (pupa_upper_mem): Likewise.
55204 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55205 module is too dangerous.
55207 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55208 (pupa_os_area_size): Likewise.
55209 (pupa_loader_set): Remove the first argument. Loader doesn't
55210 manage modules or initrd any longer.
55211 (pupa_loader_load_module): Removed.
55213 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55214 (linux_mod_SOURCES): New variable.
55215 (linux_mod_CFLAGS): Likewise.
55217 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55219 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55220 the length of a blocklist correctly.
55222 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55223 Use ioctl only if the OS file is a block device.
55224 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55225 not very useful for normal files.
55227 * kern/main.c (pupa_set_root_dev): New function.
55228 (pupa_load_normal_mode): Likewise.
55229 (pupa_main): Call those above.
55231 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55234 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55236 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55238 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55239 (setup): Configure the installed partition information and the
55242 * loader/i386/pc/chainloader.c (my_mod): New variable.
55243 (pupa_chainloader_unload): New function.
55244 (pupa_rescue_cmd_chainloader): Refer itself.
55245 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55247 * kern/i386/pc/startup.S (install_partition): Removed.
55248 (version_string): Likewise.
55249 (config_file): Likewise.
55250 (pupa_install_dos_part): New variable.
55251 (pupa_install_bsd_part): Likewise.
55252 (pupa_prefix): Likewise.
55253 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55255 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55257 (make_install_device): New function.
55258 (pupa_machine_init): Set the dl prefix.
55260 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55261 (buf): Renamed to ...
55262 (linebuf): ... this.
55263 (pupa_rescue_cmd_prefix): New function.
55264 (pupa_rescue_cmd_insmod): Likewise.
55265 (pupa_rescue_cmd_rmmod): Likewise.
55266 (pupa_rescue_cmd_lsmod): Likewise.
55267 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55270 * kern/mm.c (pupa_memalign): If failed even after invalidating
55271 disk caches, unload unneeded modules and retry.
55273 * kern/misc.c (pupa_memmove): New function.
55274 (pupa_memcpy): Removed.
55275 (pupa_strcpy): New function.
55276 (pupa_itoa): Made static.
55278 * kern/dl.c (pupa_dl_iterate): New function.
55279 (pupa_dl_ref): Likewise.
55280 (pupa_dl_unref): Likewise.
55281 (pupa_dl_unload): Return if succeeded or not.
55282 (pupa_dl_unload_unneeded): New function.
55283 (pupa_dl_unload_all): Likewise.
55284 (pupa_dl_init): Renamed to ...
55285 (pupa_dl_set_prefix): ... this.
55286 (pupa_dl_get_prefix): New function.
55288 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55289 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55290 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55291 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55292 (pupa_install_dos_part): Declared.
55293 (pupa_install_bsd_part): Likewise.
55294 (pupa_prefix): Likewise.
55295 (pupa_boot_drive): Likewise.
55297 * include/pupa/types.h: Fix a typo.
55299 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55301 (pupa_memmove): Declared.
55302 (pupa_strcpy): Likewise.
55304 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55305 pupa_mod_init takes one argument, its own module.
55306 (pupa_dl_unload_unneeded): Declared.
55307 (pupa_dl_unload_all): Likewise.
55308 (pupa_dl_ref): Likewise.
55309 (pupa_dl_unref): Likewise.
55310 (pupa_dl_iterate): Likewise.
55311 (pupa_dl_init): Renamed to ...
55312 (pupa_dl_set_prefix): ... this.
55313 (pupa_dl_get_prefix): Declared.
55315 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55316 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55318 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55319 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55321 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55322 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55324 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55326 * util/i386/pc/pupa-setup.c (setup): Define the internal
55327 function find_first_partition_start at the top level, because GCC
55328 3.0.x cannot compile internal functions in deeper scopes
55330 (find_root_device): Use lstat instead of stat.
55331 Don't follow symbolic links.
55332 Fix the path-constructing code.
55334 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55335 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55336 by a BLKGETSIZE ioctl first, because block devices don't fill
55337 the member st_mode of the structure stat on Linux.
55338 [__linux__] (linux_find_partition): Use a temporary buffer
55339 REAL_DEV for the working space. Copy it to DEV before returning.
55340 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55341 buffer cache consistent.
55342 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55343 strncmp. The previous value was merely wrong.
55344 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55346 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55347 FAT size is 12. The previous value was merely wrong.
55349 * kern/main.c (pupa_main): Don't split the starting message from
55352 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55353 LF, because BIOS goes crazy about character attributes in this
55356 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55358 * include/i386/pc/util/biosdisk.h: New file.
55359 * util/i386/pc/biosdisk.c: Likewise.
55360 * util/i386/pc/pupa-setup.c: Likewise.
55362 * Makefile.in (INCLUDE_DISTFILES): Added
55363 include/pupa/i386/pc/util/biosdisk.h.
55364 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55365 directory util/i386/pc.
55366 (install-local): Added a rule for sbin_UTILITIES.
55367 (uninstall): Likewise.
55369 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55371 * util/misc.c (xrealloc): New function.
55372 (pupa_malloc): Likewise.
55373 (pupa_free): Likewise.
55374 (pupa_realloc): Likewise.
55375 (pupa_stop): Likewise.
55376 (pupa_putchar): Likewise.
55378 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55380 * include/pupa/util/misc.h (xrealloc): Declared.
55382 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55384 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55385 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55387 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55388 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55390 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55391 way should be implemented.
55392 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55394 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55395 the size of NAME for safety.
55396 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55399 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55400 (pupa_setup_SOURCES): Likewise.
55402 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55404 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55406 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55407 bunch of pushl's from pusha, because this destroys the return
55410 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55412 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55413 This means that any missing prototypes could be fatal. Also, you
55414 must take care when writing assembly code. See the comments at
55415 the beginning of startup.S, for more details.
55417 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55418 compilation mechanism.
55419 (pupa_chainloader_real_boot): Likewise.
55420 (pupa_biosdisk_rw_int13_extensions): Likewise.
55421 (pupa_biosdisk_rw_standard): Likewise.
55422 (pupa_biosdisk_check_int13_extensions): Likewise.
55423 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55424 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55425 (pupa_get_memsize): Likewise.
55426 (pupa_get_mmap_entry): Likewise.
55427 (pupa_console_putchar): Likewise.
55428 (pupa_console_setcursor): Likewise.
55429 (pupa_getrtsecs): Use pushl instead of push.
55431 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55432 memory instead of the stack for a mmap entry, because some
55433 BIOSes may ignore the maximum size and overflow.
55435 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55437 * genmk.rb (PModule#rule): Compile automatically generated
55438 sources with module-specific CFLAGS as well as other sources.
55440 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55442 * configure.ac: Check ld.
55443 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55444 respectively, before checking endianness and sizes.
55446 * Makefile.in (LD): New variable.
55448 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55450 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55452 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55454 * Changelog: New file.