1 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3 * grub-core/osdep/unix/cputime.c (grub_util_get_cpu_time_ms): Cache
4 sc_clk_tck and check it for sanity.
6 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8 * grub-core/kern/efi/mm.c (grub_efi_get_memory_map): Never return a
9 descriptor_size==0 to avoid potential divisions by zero.
11 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13 * grub-core/osdep/haiku/getroot.c (grub_util_find_partition_start_os):
14 Avoid division by zero.
16 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18 * grub-core/kern/generic/rtc_get_time_ms.c (grub_rtc_get_time_ms): Avoid
21 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23 * grub-core/loader/i386/xnu.c (guessfsb): Avoid division by 0.
25 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27 * grub-core/kern/i386/tsc.c (calibrate_tsc): Ensure that
28 no division by 0 occurs.
30 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
32 * include/grub/misc.h (grub_div_roundup): Remove as it's unused.
34 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
36 * grub-core/term/gfxterm.c: Avoid division by zero.
38 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
40 Avoid division by zero in serial.
42 * grub-core/term/serial.c (grub_cmd_serial): Ensure speed is not 0.
43 * grub-core/term/ns8250.c (serial_get_divisor): Exit if speed is 0.
45 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
47 * grub-core/video/readers/jpeg.c: Avoid sivision by zero.
49 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
51 * grub-core/disk/diskfilter.c: Validate volumes to avoid division
54 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
56 * include/grub/term.h: Avoid returining 0-sized terminal
57 as it may lead to division by zero.
59 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
61 * grub-core/fs/zfs.c: Avoid divisions by zero.
63 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
65 * grub-core/fs/btrfs.c: Avoid divisions by zero.
67 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
69 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Check that hash len is not 0.
71 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
73 * grub-core/osdep/linux/blocklist.c (grub_install_get_blocklist): Check
76 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
78 * grub-core/disk/i386/pc/biosdisk.c: Check disk size sanity.
80 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
82 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Check block size
85 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
87 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Do not
90 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
92 * grub-core/fs/hfs.c (grub_hfs_mount): Additional filesystem
95 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
97 * grub-core/fs/minix.c: Additional filesystem
100 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
102 * grub-core/fs/ext2.c (grub_ext2_mount): Additional
103 checks for superblock validity.
105 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
107 * grub-core/fs/ufs.c (grub_ufs_mount): Check
108 that sblock.ino_per_group is not 0.
110 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
112 Reject NILFS2 superblocks with over 1GiB blocks.
114 * grub-core/fs/nilfs2.c (grub_nilfs2_valid_sb): Check that
115 block size is <= 1GiB.
117 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
119 * grub-core/disk/ata.c (grub_ata_setaddress): Check that geometry
120 is sane when using CHS addressing.
122 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
124 * grub-core/disk/AFSplitter.c (AF_merge): Check that mdlen is not 0.
126 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
128 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Avoid
131 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
133 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_maxpacket): Avoid
134 potentially returning 0.
136 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
138 * grub-core/fs/minix.c (grub_minix_read_file): Avoid reading past
141 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
143 * grub-core/fs/fshelp.c (grub_fshelp_read_file): Don't attempt to read
144 past the end of file.
146 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
148 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Update len
149 synchronously with line.
151 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
153 Replace explicit sizeof divisions by ARRAY_SIZE.
155 2015-01-19 Kris Moore <kris@pcbsd.org>
157 * grub-core/disk/geli.c: Support GELI v6 and v7.
159 2014-12-09 Andrei Borzenkov <arvidjaar@gmail.com>
161 * grub-core/term/serial.c (grub_cmd_serial): Fix --rtscts
164 2014-12-07 David Kozub <zub.272@gmail.com>
166 * grub-core/kern/arm/misc.S: fix unaligned 64bit local variable
168 Fixes Savannah bug #43632.
170 2014-12-07 Peter Nelson <peterdn>
172 * grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse
175 2014-12-07 Andrei Borzenkov <arvidjaar@gmail.com>
177 * util/grub-mkconfig_lib.in (version_test_gt): Remove redundant
178 non-portable '-n' echo option.
179 * util/grub.d/10_kfreebsd.in: Change how list is built to avoid
180 non-portable 'echo -n.
181 * util/grub.d/10_linux.in: Likewise (closes 43668).
182 * util/grub.d/20_linux_xen.in: Likewise.
183 * util/grub.d/30_os-prober.in: Print spaces directly to avoid
184 non-portable 'echo -n'.
186 2014-12-07 Curtis Larsen <larsen@dixie.edu>
188 * grub-core/net/tcp.c (grub_net_recv_tcp_packet): Fix double
189 free when multiple empty segments were received (closes 42765).
191 2014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
193 * tests/util/grub-shell.in: Support --files also for netboot.
194 * tests/file_filter_test.in: New file with file filters tests.
195 * Makefile.util.def: Add file_filter_test.
196 * conf/Makefile.extra-dist: ... and here.
197 * tests/file_filter/file.gz: Test file for file_filter_test.
198 * tests/file_filter/file.gz.sig: Likewise.
199 * tests/file_filter/file.lzop: Likewise.
200 * tests/file_filter/file.lzop.sig: Likewise.
201 * tests/file_filter/file.xz: Likewise.
202 * tests/file_filter/file.xz.sig: Likewise.
203 * tests/file_filter/keys: Likewise.
204 * tests/file_filter/keys.pub: Likewise.
205 * tests/file_filter/test.cfg: Likewise.
206 * grub-core/commands/verify.c: Fix memory corruption doing
207 signature check for network files (closes 43601).
209 2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
211 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
212 memory leak (CID 73645, 73782).
213 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
216 2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
218 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
219 inline array (CID 73610).
221 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
223 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
224 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
225 (Coverity CID 73813, 73710)
226 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
227 and use after free (Coverity CID 73813, 73710, 73730)
228 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
230 * util/grub-install-common.c (grub_install_get_target): Check return
231 value of grub_util_fd_read (Coverity CID 73819).
232 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
233 to hd.magic (Coverity CID 73587, 73888, bug 43690).
235 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
237 * tests/util/grub-fs-tester.in: Consistently print output
238 of grub ls if test fails.
240 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
242 * grub-core/kern/efi/init.c: check value of *path before
245 2014-11-03 Michael Chang <mchang@suse.com>
247 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
248 of neighbor solicitation packet in grub_netbuff_pull.
250 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
252 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
253 avoid fatal warnings with older gcc (probably before 4.7).
254 * grub-core/loader/arm64/linux.c: Likewise.
255 * grub-core/loader/i386/linux.c: Likewise.
256 * grub-core/loader/i386/pc/linux.c: Likewise.
257 * grub-core/loader/ia64/efi/linux.c: Likewise.
258 * grub-core/loader/mips/linux.c: Likewise.
259 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
260 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
262 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
264 Fix in-tree --platform=none
266 * configure.ac: Only remove include/grub/cpu and
267 include/grub/machine in the --platform=none case, not all of
270 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
272 Add a new "none" platform that only builds utilities
274 * configure.ac: Add "none" platform. Default to it for unsupported
275 CPUs rather than stopping with a fatal error. Don't downgrade
276 x86_64-none to i386. Define COND_real_platform Automake conditional
277 if the platform is anything other than "none". Don't do any include
278 directory linking for "none".
279 * Makefile.am: Skip building grub-core and all bootcheck targets if
281 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
284 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
286 Use grub_cpu_to_XXX_compile_time for constants.
288 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
290 The AML parser implements only a small subset of possible AML
291 opcodes. On the Fujitsu Lifebook E744 this and another bug in
292 the parser (incorrect handling of TermArg data types) would lead
293 to the laptop not turning off (_S5 not found).
295 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
296 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
297 aren't always simply strings!); Add function to skip TermArgs
298 * include/grub/acpi.h: Add new opcodes
300 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
302 * grub-core/normal/main.c: Don't drop to rescue console in
303 case of password-protected prompt and no menu entries.
305 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
307 * grub-core/commands/keylayouts.c: Ignore unknown keys.
309 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
311 * grub-core/gmodule.pl.in: Accept newer binutils which output
312 empty column rather than 0x0.
314 2014-09-21 Michael Chang <mchang@suse.com>
316 * grub-core/osdep/unix/config.c: Remove extraneous comma.
318 2014-09-21 Peter Jones <pjones@redhat.com>
320 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
321 we don't free a random pointer from the stack.
322 * grub-core/loader/arm64/linux.c: Likewise.
323 * grub-core/loader/i386/linux.c: Likewise.
324 * grub-core/loader/i386/pc/linux.c: Likewise.
325 * grub-core/loader/ia64/efi/linux.c: Likewise.
326 * grub-core/loader/mips/linux.c: Likewise.
327 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
328 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
330 2014-09-15 Khem Raj <raj.khem@gmail.com>
332 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
333 _BSD_SOURCE to avoid warnings under glibc 2.20+.
335 2014-09-08 Michael Chang <mchang@suse.com>
337 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
338 check; comparing &data->extent against addresses in the region it
339 points to is unpredictable.
341 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
343 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
345 * configure.ac: Remove -m64 from checks for -mcmodel=large and
346 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
347 already in TARGET_CFLAGS at this point, and they produce incorrect
348 results when building for x32.
349 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
350 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
351 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
352 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
354 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
356 * configure.ac: Remove several unnecessary semicolons.
358 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
360 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
361 Initialise pend to pacify GCC.
363 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
365 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
368 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
370 * grub-core/term/at_keyboard.c: Retry probing keyboard if
371 scancode setup failed.
373 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
375 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
377 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
379 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
380 safety to avoid triggerring VirtualBox bug.
382 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
384 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
386 Fixes hang on virtualbox.
388 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
390 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
391 kernels whose paths contain regex metacharacters.
392 * util/grub.d/10_kfreebsd.in: Likewise.
393 * util/grub.d/10_linux.in: Likewise.
394 * util/grub.d/20_linux_xen.in: Likewise.
396 Reported by: Heimo Stranner.
398 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
400 * docs/grub-dev.texi (Finding your way around): The build system no
401 longer uses AutoGen directly.
403 2014-06-21 Роман Пехов <roman_pekhov>
405 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
407 2014-06-21 Glenn Washburn <development@efficientek.com>
409 * util/grub-install.c: Fix handling of --disk-module.
411 2014-06-21 Stephane Rochoy <sheda>
413 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
416 2014-06-21 Stephane Rochoy <sheda>
418 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
419 EFI system table physical address.
421 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
423 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
425 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
427 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
429 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
431 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
434 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
436 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
438 Reported by: Yves Blusseau <blusseau@zetam.org>.
440 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
442 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
443 GDT in conventional memory.
445 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
447 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
448 UUID. Other parts of grub-mkconfig tolerate these, they were
449 previously allowed here up to commit
450 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
451 practice when the system has active LVM snapshots.
452 Fixes Ubuntu bug #1287436.
454 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
456 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
457 "logical_volumes" block a little more accurately.
459 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
461 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
463 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
465 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
468 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
470 Replace few instances of memcmp/memcpy in the code that should be
471 grub_memcmp/grub_memcpy.
473 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
475 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
478 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
480 btrfs: fix get_root key comparison failures due to endianness
482 * grub-core/fs/btrfs.c (get_root): Convert
483 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
485 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
487 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
489 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
490 no longer to be forgiving of trailing spaces on grub-probe output
491 lines, which among other things means that util/grub.d/10_linux.in
492 no longer detects LVM. To fix this, make grub-probe's output
493 delimiting more consistent. As a bonus, this improves the coverage
496 Fixes Debian bug #735935.
498 * grub-core/disk/cryptodisk.c
499 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
500 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
502 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
504 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
505 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
506 probe_mods): Adjust for extra user-data arguments.
507 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
508 probe_abstraction): Use configured delimiter. Update callers.
510 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
512 * util/grub-probe,c (options): Make -0 work again (broken by
514 (main): Simplify logic.
516 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
518 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
520 2014-03-26 Fu Wei <fu.wei@linaro.org>
522 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
524 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
526 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
527 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
529 Suggested by: Markus Müller.
531 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
533 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
534 if E820 failed to return any regions.
536 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
538 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
539 tables for low memory calculations.
541 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
543 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
546 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
548 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
551 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
553 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
556 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
558 Add bootpath parser for open firmware.
560 It enables net boot even when there is no bootp/dhcp server.
562 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
563 and call it at grub_ieee1275_net_config_real.
564 * grub-core/kern/ieee1275/init.c: Add bootpath to
565 grub_ieee1275_net_config.
566 * include/grub/ieee1275/ieee1275.h: Likewise.
569 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
571 Add grub_env_set_net_property function.
573 * grub-core/net/bootp.c: Remove set_env_limn_ro.
574 * grub-core/net/net.c: Add grub_env_set_net_property.
575 * include/grub/net.h: Likewise.
577 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
579 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
581 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
583 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
585 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
587 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
588 7 seconds to recover if last poweroff was bad.
590 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
592 * grub-core/disk/ahci.c: Properly handle transactions with no
595 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
597 * grub-core/disk/ahci.c: Add safety cleanups.
599 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
601 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
602 slots to avoid pointing to uninited area.
604 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
606 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
607 enabling busmaster for the end.
609 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
611 * util/grub-mkfont.c: Downgrade warnings about unhandled features
614 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
616 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
618 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
620 * .gitignore: add missing files and .exe variants.
622 2014-01-26 Mike Gilbert <floppym@gentoo.org>
624 grub-install: support for partitioned partx loop devices.
626 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
627 /dev/loopX as being the parent of /dev/loopXpY.
629 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
631 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
632 Ensure that pointers are inited to NULL and that pointers are not
635 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
637 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
638 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
639 * include/grub/emu/misc.h: ... and here.
640 * include/grub/err.h: ... and here.
641 * util/import_gcry.py: ... and here (in files g10lib.h).
643 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
645 * util/grub-mkimage.c: Make prefix argument mandatory.
647 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
649 Fix several translatable strings.
651 Suggested by: D. Prévot.
653 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
655 * util/grub-install.c: List available targets.
657 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
659 * util/grub-install.c (write_to_disk): Add an info message.
661 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
663 * Makefile.am: Allow adding extra files to generated Windows ZIP
664 archive by setting GRUB_WINDOWS_EXTRA_DIST.
666 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
668 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
669 Show detected font path in summary.
671 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
673 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
675 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
676 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
677 * grub-core/net/tftp.c (tftp_open): Likewise.
678 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
680 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
682 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
685 In net/net.c there is a while (1) that only exits if there is a stop
686 condition and more then 10 packages or if there is no package received.
688 If GRUB is idle and enter in this loop, the only condition to leave is
689 if it doesn't have incoming packages. In a network with heavy traffic
692 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
694 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
695 EPERM when modifying kern.geom.debugflags. It is only a problem for
696 such things as installing GRUB to the MBR, in which case there'll be
697 an error later anyway, not for opening files during tests.
699 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
701 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
702 instead of MOD_FILES.
703 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
704 both with and without .exe.
705 * grub-core/genemuinitheader.sh: Same.
707 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
709 * util/grub-install.c: Fix a typo.
711 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
713 * grub-core/normal/main.c (read_config_file): Buffer config file.
716 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
718 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
719 symbolic link to directory. It fails in Msys shell on Windows 2003.
721 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
723 * Makefile.am (default_payload.elf): Add modules
724 multiboot cbmemc linux16 gzio echo help.
726 2014-01-18 Mike Gilbert <floppym@gentoo.org>
728 * Makefile.util.def: Link grub-ofpathname with zfs libs.
730 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
732 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
735 Reported by: Andrey Borzenkov.
737 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
739 * include/grub/misc.h: Move macros for compiler features to ...
740 * include/grub/compiler.h: ... new file.
741 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
742 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
743 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
744 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
745 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
746 * grub-core/video/capture.c: Include <grub/misc.h>.
747 * include/grub/command.h: Include <grub/misc.h>.
748 * include/grub/dl.h: Include <grub/misc.h>.
749 * include/grub/procfs.h: Include <grub/misc.h>.
751 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
753 * configure.ac: Add support for BUILD_EXEEXT and use it ...
754 * Makefile.am: ... here.
755 * Makefile.util.def: ... and here.
756 * grub-core/Makefile.am: ... and here.
758 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
760 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
761 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
763 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
765 * grub-core/term/terminfo.c: Recognize keys F1-F12.
767 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
769 * configure.ac: Add support for BUILD_LDFLAGS.
770 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
771 * grub-core/Makefile.am: ... and here.
772 * INSTALL: Mention BUILD_LDFLAGS.
774 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
776 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
778 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
780 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
783 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
785 * NEWS: Add few missing entries.
787 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
789 * util/grub.d/00_header.in (make_timeout): Use && rather than test
791 * util/grub.d/10_windows.in: Likewise.
792 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
794 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
797 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
799 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
800 redundant preprocessor conditional.
802 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
804 * Makefile.util.def (grub-macbless): Change mansection to 8.
806 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
808 * grub-core/loader/arm64/linux.c: correctly set device path end length.
810 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
812 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
813 arm64 to comply with EFI specification. Also use grubaa64.efi for
815 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
817 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
819 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
820 on MinGW-64 when compiling for 32 bits.
822 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
824 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
826 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
828 * NEWS: Add few missing entries. Correct existing ones.
830 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
832 Don't abort() on unavailable coreboot tables if not running on coreboot.
834 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
836 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
839 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
841 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
842 mention of it from 2.02.
844 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
846 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
848 As these functions are used on pre-ARMv6 CPUs as well we don't want
849 to make assembler assume that architecture is higher than default one.
851 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
853 * NEWS: First draft of 2.02 entry.
855 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
857 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
858 * docs/grub.texi (Getting the source code): Likewise.
860 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
862 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
865 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
867 * configure.ac: Set version to 2.02~beta2.
869 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
871 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
873 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
875 * util/grub-probe.c: Improve help message and simplify list handling.
877 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
879 Fix buffer overflow in grub_efi_print_device_path.
881 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
883 Show SATA device path.
885 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
887 Revert grub-file usage in grub-mkconfig.
889 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
891 Make newly-created files other than grub.cfg world-readable.
893 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
895 * util/grub.d/00_header.in: Improve compatibility with old config.
897 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
899 Make rijndael.c respect aliasing rules.
901 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
903 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
905 Make grub_util_device_is_mapped_stat available in grub-emu core.
907 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
909 Add -Qn to TARGET_CFLAGS if it's supported.
910 Fixes compilation on cygwin.
912 Reported by: Andrey Borzenkov.
913 Suggested by: Andrey Borzenkov.
915 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
917 Save TARGET_CC version in modinfo.sh.
919 Suggested by: Andrey Borzenkov.
921 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
923 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
924 follow the same algorithm to avoid method mismatch. Don't assume
925 DMRAID- UUID to mean full disk but instead check that mapping is linear.
927 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
929 Declare GRUB_EFI_VENDOR_APPLE_GUID.
931 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
933 Dump type and vendor specific data when printing device path.
935 2013-12-23 Colin Watson <cjwatson@debian.org>
937 Update some documentation to refer to Git rather than Bazaar.
939 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
941 * po/README: Likewise. Fix spelling mistake.
943 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
945 Don't distribute config.h.
947 * Makefile.am (platform_HEADERS): Move to ...
948 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
949 failure when building from a distributed tarball.
951 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
953 * configure.ac: Fix spelling.
954 * grub-core/commands/parttool.c: Fix grammar.
955 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
956 Embedding Partition".
958 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
960 ARM64 support for grub-mkrescue.
962 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
964 Install modinfo.sh to keep build information around.
966 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
968 * grub-core/modinfo.sh.in: Add build config information.
970 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
972 ARM64 grub-file and grub-mkconfig support.
974 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
976 Remove leftover options defines.
978 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
980 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
982 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
984 * grub-core/loader/arm64/linux.c: Add missing bracket.
986 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
988 Add arm64-efi recognition to grub-file.
990 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
992 Fix ia64-efi recognition in grub-file.
994 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
996 Recognize raspberry pi kernel in grub-file.
998 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
1000 Enable cache on ARM U-Boot port.
1002 Without it the port is reidiculously slow.
1004 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
1006 Fix ARM cache maintainance.
1008 More code was converted from ASM to C for easier handling.
1010 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1012 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
1015 Suggested by: Leif Lindholm.
1017 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
1019 * util/grub-mkconfig.in: Fix Xen platform conditions.
1021 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
1023 * util/grub-mkrescue.c: Split single help message string in several
1024 strings used in previous shell version.
1026 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
1028 Add arm64 Linux loader.
1030 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
1032 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
1034 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1036 Add module loading and parsing boot time checkpoints.
1038 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1040 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
1043 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
1045 * util/grub-mkconfig.in: Skip non-executable files.
1047 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1049 Workaround buggy timer in raspberry pie by using our own timer
1052 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1054 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
1055 Increase to 16 MiB to allow loading the whole memdisk.
1057 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1059 Fix ARM Linux Loader on non-FDT platforms.
1061 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1063 * configure.ac: Choose link format based on host_os on emu.
1065 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1067 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
1069 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1071 * grub-core/kern/emu/main.c: Build fix for emu.
1073 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1075 Build fixes for argp.h with older gcc.
1077 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1079 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
1082 Suggested by: David Prévot.
1084 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1086 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
1088 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1090 Enable -Wformat=2 if it's supported.
1092 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1094 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
1095 -Wmissing-declarations if supported.
1097 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1099 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
1100 u32 as both HFS and HFS+ have 32-bit inodes.
1102 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1104 * include/grub/misc.h (grub_strtol): Fix overflow.
1106 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1108 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
1109 as return type in both conditionals.
1111 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1113 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
1114 to use uint8_t for color.
1116 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1118 * util/misc.c (grub_util_get_image_size): Check for overflow.
1120 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1122 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
1125 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1127 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
1128 for pointer difference.
1130 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1132 * util/import_gcry.py: Skip sample keys.
1134 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1136 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
1138 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1140 * configure.ac: Remove duplicate warning arguments.
1142 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1144 Add missing static qualifiers.
1146 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1148 Add missing includes.
1150 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1152 Inline printf templates when possible to enable format checking.
1154 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1156 * include/grub/crypto.h: Don't discard const attribute.
1158 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1160 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
1163 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1165 * grub-core/lib/crypto.c: Don't discard const attribute.
1167 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1169 * grub-core/lib/disk.c: Fix potential overflow.
1171 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1173 * grub-core/lib/arg.c: Don't discard const attribute.
1175 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1177 * grub-core/kern/dl.c: Don't discard const attribute.
1179 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1181 * grub-core/kern/disk.c: Fix potential overflow.
1183 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1185 * conf/Makefile.common: Don't include non-existing directory
1186 grub-core/lib/libgcrypt-grub/include.
1188 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1190 Clarify several translatable messages.
1192 2013-12-21 David Prévot <david@tilapin.org>
1194 Correct some translatable strings.
1196 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1198 * util/grub-mkrescue.c: Rephrase mkrescue description.
1200 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1201 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1203 Clarify several translatable messages.
1205 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1207 Be more verbose about some configure failures.
1209 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1211 Fix various build problems on GNU/Hurd.
1213 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1215 (xgetcwd): Likewise.
1216 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1217 [__GNU__]: Add prototype.
1218 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1219 long int using %ld rather than %d.
1221 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1223 * util/grub-install.c: Inform user about install platform.
1225 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1227 * configure.ac: Set version to 2.02~beta1.
1229 2013-12-18 Allen Pais <allen.pais@oracle.com>
1230 2013-12-18 Bob Picco <bob.picco@oracle.com>
1232 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1234 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1236 Make grub_zlib_decompress handle incomplete chunks.
1240 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1242 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1245 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1247 * grub-core/disk/usbms.c: Retry on unknown errors.
1248 Reuse the same tag on retries.
1250 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1252 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1254 Avoid confusing them with already completed transfers.
1256 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1260 Due to XEN bug it prevents Linux boot. Remove it at least, until
1261 workaround is found.
1263 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1265 * po/exclude.pot: Add 2 missing excludes.
1267 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1269 Add missing license section in macbless.mod and macho.mod.
1271 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1273 Allow compilation without thumb-interwork as long as no thumb is
1274 involved or only thumb2 is used.
1276 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1278 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1280 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1282 Add __attribute__ ((sysv_abi)) only if it's really needed.
1284 Some compilers don't support it.
1286 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1288 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1290 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1292 Remove -Wold-style-definition.
1294 Not very useful and interaction of it with regexp depends on GCC
1297 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1299 Make grub_util_get_windows_path_real static.
1301 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1303 * grub-core/commands/fileXX.c: Silence cast-align.
1304 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1306 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1308 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1309 rather than LL suffix.
1311 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1313 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1315 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1317 * grub-core/loader/arm/linux.c: Use common initrd functions.
1319 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1321 Decrease number of strings to translate.
1323 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1325 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1327 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1329 Mark strings for translation and add remaining ones to exclude list.
1331 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1333 * util/grub-file.c (main): Fix sizeof usage.
1335 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1337 Silence spurious warning.
1339 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1341 Remove check_nt_hiberfil as it's been superseeded by file command.
1343 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1345 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1347 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1349 Implement syslinux parser.
1351 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1353 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1355 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1357 Support cpuid --pae.
1359 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1361 Use AT keyboard on Yeeloong 3A.
1363 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1365 Add Yeeloong 3A reboot and halt.
1367 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1369 Add Radeon Yeeloong 3A support.
1371 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1373 Add bonito 3A support.
1375 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1377 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1379 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1381 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1383 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1385 * grub-core/loader/macho.c: Fix compilation on non-i386.
1387 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1389 Add missing format_arg attribute to check that printf with translated
1390 messages has proper arguments.
1392 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1394 Use grub_xasprintf to format translated error messages containing
1397 2013-12-17 Jon McCune <jonmccune@google.com>
1399 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1401 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1403 Unify message for unsupported relocation.
1405 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1407 Mark miscompile error for translation.
1409 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1411 Use %I64 and not %ll when using OS printf if compiling for windows.
1413 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1415 Update Mac code to match new register_efi prototype.
1417 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1419 Implement better integration with Mac firmware.
1421 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1423 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1426 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1428 Include serial module in default_payload.elf.
1430 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1432 Add explicit thumb interwork bx in asm files.
1434 Shouldn't matter for armv >= 5 but let's be safe.
1436 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1438 Implement Truecrypt ISO loader.
1440 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1442 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1444 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1446 Implement grub_file tool and use it to implement generating of config
1449 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1451 Change to v1 xen grants.
1453 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1455 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1457 GRUB relied on %ebx being preserved across hypercall which isn't true.
1459 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1461 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1463 GRUB relied on %rdi being preserved across hypercall which isn't true.
1465 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1467 Implement XEN VFB support.
1469 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1471 Remove grub_bios_interrupt on coreboot.
1473 It's not used currently and cannot be used safely currently.
1475 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1477 Update exclude.pot and mark few strings for translation.
1479 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1481 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1483 Reported by: Jon McCune
1485 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1487 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1488 Add verbose information which firmware directories were tried.
1490 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1492 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1493 function to optionally redirect all three standard descriptors.
1494 Redefine grub_util_exec, grub_util_exec_redirect and
1495 grub_util_exec_redirect_null to use it.
1496 * include/grub/emu/exec.h: Define it.
1497 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1498 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1499 Use grub_util_exec_redirect_all to redirect error to NULL.
1501 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1503 * grub-core/tests/sleep_test.c: Silence spurious warning.
1505 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1507 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1508 linker trying to "fixup" the code.
1510 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1512 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1514 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1516 Add support for converting PE+ to Elf64.
1518 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1520 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1522 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1524 Remove practice of assigning random const pointers to device id.
1526 This is not required as cache code already checks driver id as well.
1528 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1530 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1533 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1535 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1536 mingw or cygwin as API already matches.
1538 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1540 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1542 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1544 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1547 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1549 Handle X86_64_PC64 relocation.
1551 Those are generated by some cygwin compilers.
1553 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1555 Determine the need for mingw-related stubs at compile time rather than
1556 using not very significant $target_os.
1558 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1560 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1561 may not work with ELF.
1563 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1565 Use unix functions for temporary files and special files on cygwin.
1567 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1569 Define functions explicitly rather than using --defsym in tests
1570 whenever possible. Respect locality in remaining cases.
1572 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1574 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1576 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1578 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1579 unlikely errors when getting EFI variables and make exhaustive search
1580 for all BootNNNN variables to find matching one.
1582 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1584 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1586 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1588 New functional test for sleep function.
1590 This test allows to check sleep without qemu. Keep qemu version as
1591 well as functional test won't notice if all clocks are going too fast
1594 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1596 Add explicit sysv_abi on amd64 asm routines.
1598 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1600 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1603 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1605 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1608 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1610 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1613 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1615 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1617 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1619 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1622 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1624 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1626 In case of quick removal of loopback and adding another one it may
1627 get same ID, confusing the cache system.
1629 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1631 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1634 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1636 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1637 than converting to long.
1639 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1641 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1643 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1645 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1646 than almost useless pointer.
1648 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1650 Add gcc_struct to all packed structures when compiling with mingw.
1652 Just "packed" doesn't always pack the way we expect.
1654 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1656 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1658 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1660 * util/grub-pe2elf.c: Fix handling of .bss.
1662 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1664 Implement windows flavour of EFI install routines.
1666 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1668 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1670 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1672 Change grub_install_register_efi interface to pass GRUB device.
1674 This allows grub_install_register_efi to request partition info
1677 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1679 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1681 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1683 Do not use TCHAR string functions as they are not available on cygwin.
1685 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1687 Workaround windows bug when querying EFI system partition parameters.
1689 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1691 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1694 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1696 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1698 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1700 Make i386-* other than i386-pc compileable under cygwin.
1702 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1704 Fix definition of grub_efi_hard_drive_device_path. Take care that
1705 existing code would work even if by some reason bogus definition is
1706 used by EFI implementations.
1708 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1710 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1712 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1714 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1717 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1719 * util/config.c: Remove trailing newline from distributor in simple
1722 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1724 * include/grub/efi/api.h: Rename protocol and interface to avoid
1727 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1729 * .gitignore: add .exe variants. add missing files. remove few outdated
1732 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1734 * grub-core/osdep/exec.c: Use unix version on cygwin.
1736 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1738 Implement multiboot2 EFI BS specification.
1740 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1742 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1743 Crash happened only in some cases like a string starting at the
1744 half of the screen of same length.
1746 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1748 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1749 with EFI counterpart.
1751 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1753 Propagate the EFI commits to x86-efi specific parts.
1755 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1757 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1759 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1761 Introduce grub_efi_packed_guid and use it where alignment is not
1764 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1766 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1767 unaligned u16 rather than u8[2].
1769 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1771 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1772 for relocation range.
1774 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1776 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1777 non-function pcrel21b relocation. It happens with .text.unlikely
1780 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1782 * make MAX_USABLE_ADDRESS platform-specific
1783 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1785 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1787 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1789 2013-12-09 Jon McCune <jonmccune@google.com>
1791 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1792 in grub-install and grub-bios-setup for x86 BIOS targets.
1794 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1796 Add missing compile and link options for sparc64-emu.
1798 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1800 Implement sparc64 trampolines (needed for sparc64-emu).
1802 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1804 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1805 range of R_SPARC_HI22.
1806 Implement R_SPARC_LM22.
1808 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1810 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1811 Do not explicitly check for symbol table as it's already checked in
1812 platform-independent layer.
1814 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1816 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1817 on ia64 as __clear_cache is a dummy on ia64.
1819 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1821 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1822 Do not explicitly check for symbol table as it's already checked in
1823 platform-independent layer.
1825 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1827 * util/grub-mkconfig.in: Add missing newline to output.
1829 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1831 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1832 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1834 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1836 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1837 compilation with GCC <= 4.2.
1838 * grub-core/kern/emu/argp_common.c: Likewise.
1840 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1842 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1843 right platform rather than leaking to sparc64-emu.
1845 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1847 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1848 But ensure that the variables in question are indeed unsigned.
1850 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1852 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1854 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1856 Remove grub_memalign on emu.
1858 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1860 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1861 truncate incomplete lines but instead flushes them.
1863 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1865 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1866 and implement windows variant.
1868 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1870 Fix mips-emu compilation.
1872 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1874 * configure.ac: Check for freetype library usability.
1876 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1880 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1882 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1884 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1886 * docs/grub.texi (Environment): Update color_normal and color_highlight
1887 defaults (light-gray instead of white).
1889 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1891 * grub-core/normal/main.c (INIT): Set default color to light-gray
1892 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1893 and apparently BIOS defaults.
1895 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1897 Transform -C option to grub-mkstandalone to --core-compress available
1898 in all grub-install flavours.
1900 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1902 Merge GRUBFS and GRUB_FS variables.
1904 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1906 Revert commit 69ca97c820, it caused failures when using OS device name
1907 in grub-install. Instead just strip off parenthesis in grub-install
1908 if (hdX) was passed.
1910 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1912 * util/grub-install.c (push_partmap_module): Add helper to convert
1913 partmap names to module names and use it in probe_mods(). Fixes
1914 failure to find partmap modules in diskfilter case.
1916 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1918 * configure.ac: Make unifont mandatory on coreboot.
1920 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1922 * configure.ac: Skip unifont 6.3 pcf and bdf.
1924 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1926 * Makefile.am: Remove partial font files if generation failed.
1928 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1930 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1932 * include/grub/util/misc.h: Define it ...
1933 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1935 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1937 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1940 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1942 Don't add -mlong-calls when compiling with clang.
1944 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1946 * configure.ac: Fix a typo.
1948 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1950 Revamp relocation handling.
1952 Move more code to common dl.c. Add missing veneers for arm and arm64.
1953 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1955 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1957 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1959 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1961 * INSTALL: Raise minimum python version to 2.6.
1962 * gentpl.py: Use python3-style print function.
1964 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1966 * util/grub-install.c: Mention Boot* variable.
1968 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1970 * grub-core/osdep/linux/hostdisk.c
1971 (grub_util_find_partition_start_os): Initialise start to avoid
1972 spurious compiler warning.
1974 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1976 On Linux, read partition start offsets from sysfs if possible, to
1977 cope with block device drivers that don't implement HDIO_GETGEO.
1978 Fixes Ubuntu bug #1237519.
1980 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1982 (sysfs_partition_start): Likewise.
1983 (grub_util_find_partition_start_os): Try sysfs_partition_start
1986 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1988 * grub-core/kern/fdt.c: Update struct size when adding node.
1990 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1992 Handle unaligned .bss on sparc64.
1994 Current code improperly assumes that both __bss_start and _end are
1995 aligned to 8-bytes. Eliminating this assumption and explicitly align
1998 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2000 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
2001 so it doesn't land in the middle of loaded image.
2003 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2005 * configure.ac: Move all warning options that may be absent in
2006 gcc >= 3.1 to optional.
2008 Note: while this allows to compile with older GCC, official requirements
2009 remain the same and no support for older GCC.
2011 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
2013 Copying the themes directory in grub-shell isn't
2014 parallel-test-friendly and breaks on the second test when the source
2015 directory is read-only (as in "make distcheck"). Instead, add a
2016 hidden --themes-directory option to grub-mkrescue et al, and use it
2019 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2021 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
2022 as it's no longer necessarry.
2024 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2026 * configure.ac: Allow compilation with older GCC for ARM.
2028 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2030 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
2031 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
2034 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2036 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
2038 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2040 Pass font config to config.h and not by TARGET_CFLAGS as adding
2041 arguments doesn't work if TARGET_CFLAGS is specified on command
2044 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2046 * configure.ac: Add -Wvla if compiler supports it.
2048 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2050 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
2051 Remove variable length arrays.
2052 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
2054 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2056 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
2058 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2060 * include/grub/types.h: Declare all byteswaps as inline functions
2061 except compile-time ones.
2063 Solves variable shadowing in constructions like
2064 cpu_to_le (le_to_cpu(x) + 1).
2066 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2068 * grub-core/kern/efi/efi.c: Remove variable length arrays.
2070 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2072 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
2075 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2077 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
2078 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
2080 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
2082 * grub-core/Makefile.core.def (setjmp): Distribute
2085 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
2087 Add a new timeout_style environment variable and a corresponding
2088 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
2089 controls hidden-timeout handling more simply than the previous
2090 arrangements, and pressing any hotkeys associated with menu entries
2091 during the hidden timeout will now boot the corresponding menu entry
2094 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
2095 generates a warning, and if it shows the menu it will do so as if
2096 the second timeout were not present. Other combinations are
2097 translated into reasonable equivalents.
2099 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
2101 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
2103 * util/config.c: Add missing pointer adjustment.
2104 Reported by: qwertial
2106 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
2108 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
2109 directly, not via `cpu' link, to fix libgrub.pp generation.
2111 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
2115 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
2117 * docs/grub.texi (sleep): Document exit codes.
2119 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2121 Ensure that -mno-unaligned-access or some equivalent option is used.
2123 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2125 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
2128 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2130 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
2132 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2134 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
2135 builds, since we don't have an EPS version of font_char_metrics.png.
2136 Add leading dot to image extension per the Texinfo documentation.
2138 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2140 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
2141 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
2142 * util/grub-gen-widthspec.c: Likewise.
2143 * util/grub-mkfont.c: Likewise.
2145 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
2147 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
2148 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
2149 failed to install on (hdX).
2150 * util/grub-setup.c (get_device_name): Remove, not needed after
2153 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2155 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
2157 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2159 * util/grub-fstest.c: Remove variable length arrays.
2161 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2163 * grub-core/osdep/linux/ofpath.c: Check return value of read.
2165 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2167 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2168 computing crc32 rather than handling with md fundtions directly.
2170 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2172 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2173 checking fwstart.img rather than md fundtions directly.
2175 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2177 * util/grub-mkrescue.c (main): Check that fread succeeded.
2179 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2181 * conf/Makefile.common: Remove -mexplicit-relocs and
2182 -DUSE_ASCII_FALLBACK on yeeloong.
2184 -DUSE_ASCII_FALLBACK is already added by font snippets.
2185 -mexplicit-relocs isn't needed is compiler/assemblera are
2186 configured properly.
2187 If they're not we shouldn't attempt to fix it by ourselves.
2188 Binary compare between before and after shows no difference.
2190 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2192 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2193 sources in dependencies directly.
2195 This was the only instance of "library" in core config. A bug was
2196 reported that -fno-stack-protector wasn't passed to it. Instead of
2197 figuring out why it failed just remove this construction used
2200 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2202 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2205 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2207 * docs/grub.texi (ls): Fix command description in case of a device name
2210 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2212 Eliminate variable length arrays in grub_vsnprintf_real.
2214 A bit tricky because this function has to continue to work without
2215 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2216 but make all stack references use 32-bit offset rather than 8-bit one.
2217 So split va_args preparsing to separate function and put the prealloc
2220 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2222 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2223 Fixes build for windows.
2225 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2227 * gentpl.py: Don't generate platform-dependent conditionals for
2228 platform-independent targets.
2230 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2232 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2233 references to mdadm from otherwise generic code.
2234 (grub_util_exec_pipe): Likewise.
2235 (grub_util_exec_pipe_stderr): Likewise.
2236 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2237 This function calls vgs, not mdadm; adjust variable names
2240 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2242 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2243 of Autogen. The Autogen definitions files remain intact as they
2244 offer a useful abstraction.
2246 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2248 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2249 into no-ops, and use it in programs that copy files but do not need
2250 to take special care to sync writes (grub-mknetdir, grub-rescue,
2253 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2255 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2256 than hardcoding /usr/local/bin/xorriso.
2258 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2260 Add PCI command activation to all PCI drivers as required for coreboot
2261 and maybe some other firmwares.
2263 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2265 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2266 and non-Apple variants of efiemu compile.
2268 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2270 * configure.ac: Add explicit check for linking format of
2271 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2272 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2273 hardcoding linking format.
2275 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2277 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2280 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2281 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2283 Add a --locale-directory option to grub-install and related tools.
2285 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2286 --locale-directory option.
2287 (enum grub_install_options): Add
2288 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2289 * util/grub-install-common.c (grub_install_help_filter): Handle
2290 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2291 (grub_install_parse): Likewise.
2292 (get_localedir): New function to check for a user-provided option
2293 before trying grub_util_get_localedir.
2294 (copy_locales): Use get_localedir rather than
2295 grub_util_get_localedir. Handle differing locale directory layouts.
2296 (grub_install_copy_files): Likewise.
2298 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2300 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2301 Don't rely on PATH_MAX.
2303 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2305 * grub-core/genmoddep.awk: Use more portable && rather than and.
2307 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2309 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2310 an object after data. While it doesn't seem right solution, it
2311 works well enough and OSX isn't main compilation platform.
2313 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2315 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2316 While it doesn't seem right solution, it works well enough and
2317 OSX isn't main compilation platform.
2319 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2321 * configure.ac: Add -static to LDFLAGS when using apple linker to
2322 prevent it from pulling in dynamic linker.
2324 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2326 Apple assembly doesn't handle symbol arithmetic well. So define an
2327 offset symbol in boot.S and use it.
2329 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2331 Apple assembly doesn't handle symbol arithmetic well. So instead
2332 of getting addres of kernel_sector + 4 define kernel_sector_high.
2333 It also makes code more readable.
2335 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2337 With Apple assembly in .macro environvemnt you have to use $$ instead
2338 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2339 to $$x on Apple and to $x on everything else.
2341 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2343 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2346 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2348 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2349 and non-Apple. This instruction is shorter and faster,
2350 so no reason not to use it on both.
2352 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2354 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2355 .text when compiling for Apple.
2357 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2359 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2361 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2363 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2364 %dx restore the probe worked on non-existant drive. Reorganize the
2365 code a little bit to free 2 bytes necessary for push/pop.
2367 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2369 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2370 Add missing cast to silence warning.
2372 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2374 * util/grub-install.c (update_nvram): Support --no-nvram flag
2377 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2379 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2381 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2383 * util/garbage-gen.c: Add missing include of sys/time.h.
2385 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2387 Don't add -mflush-func if it's not supported by compiler.
2389 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2391 Move common BIOS/coreboot memory map declarations to
2392 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2394 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2396 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2398 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2400 * INSTALL: Document why older clang versions aren't appropriate.
2402 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2404 * INSTALL: Document about clang for mips.
2406 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2408 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2411 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2413 Add *-xen to the list of grub-install-common platforms.
2415 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2417 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2420 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2422 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2424 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2426 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2427 with -mcmodel=large.
2429 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2431 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2432 range-checking for 32-bit quantities.
2434 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2436 * configure.ac: Compile with -fPIC when compiling with clang on
2439 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2441 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2442 when compiling with clang.
2444 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2446 clang emits calls to abort () under some unknown conditions.
2447 Export abort () when compiling with clang.
2449 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2451 * docs/grub-dev.texi: Document stack and heap sizes.
2453 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2455 * include/grub/i386/pc/memory.h: Decrease
2456 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2457 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2458 The binary doesn't change (checked). It's more to better reflect actual
2461 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2463 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2464 at compile time that enough of scratch size is available.
2466 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2468 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2469 Previously we misaligned stack by 8 in startup.S and compensated
2470 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2471 right behaviour is to align stack in startup.S and keep it aligned
2472 in callwrap.S. startup.S part was committed few commits before. This
2473 takes care of callwrap.S.
2474 Reported by: Gary Lin.
2476 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2478 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2479 .data and .bss. May happen if compiler and assembly use different
2482 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2484 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2487 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2489 Add support for a new magic symbol _gp_disp on mips to handle PIC
2492 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2494 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2496 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2498 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2499 when rest of GRUB is compiled for hisher stepping. Instead use
2500 .set mips3/.set mips1 around cache and sync opcodes.
2502 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2504 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2505 do essentially the same thing, do it in similar way.
2507 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2509 * util/grub-mkrescue.c (main): If a source directory is not
2510 specified, read platform-specific files from subdirectories of
2511 pkglibdir, not pkgdatadir.
2513 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2515 * grub-core/normal/progress.c: Remove unused file.
2517 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2519 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2522 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2524 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2527 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2529 * coreboot.cfg: Add missing file.
2531 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2533 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2535 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2537 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2538 selectively skipping systems.
2540 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2542 * Makefile.util.def (grub-mkimage): Add
2543 grub-core/osdep/aros/config.c to extra_dist.
2544 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2545 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2546 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2547 grub-core/gnulib-no-gets.diff.
2549 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2551 Add automated filesystem checking based on scripts I've used now for
2552 quite some time locally. Most of the test require root so they are
2553 skipped when run without necessarry privelegies.
2555 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2557 * util/grub-install.c (main): Adjust info messages to match
2558 installed paths of grub-bios-setup and grub-sparc64-setup.
2560 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2562 * util/grub-install-common.c (copy_locales): Consistently use
2563 grub_util_get_localedir () rather than LOCALEDIR.
2564 (grub_install_copy_files): Likewise.
2566 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2568 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2569 16-byte boundary, as required by the x86-64 ABI, before calling
2570 grub_main. In some cases, GCC emits code that assumes this
2571 alignment, which crashes if not aligned. The EFI firmware is also
2572 entitled to assume that stack alignment without checking.
2574 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2576 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2577 4k page boundaries as expected by firmware rather than 1k
2579 (grub_mmap_malign_and_register): Likewise.
2581 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2583 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2584 fragmentation 512M is enough.
2586 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2588 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2589 pointer to 32K. This is the size of cache element which is the most
2590 common allocation >1K. This way the pointer is always around blocks
2591 of 32K and so we keep performance while decreasing fragmentation.
2593 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2595 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2596 current memory when allocating large chunks. This significantly
2597 decreases memory fragmentation.
2599 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2601 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2603 * tests/lzocompress_test.in: Skip if lzop is not installed.
2604 * tests/xzcompress_test.in: Skip if xz is not installed.
2606 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2608 * util/grub-mkrescue.c (main): Fix typo.
2610 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2612 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2613 clock frequency to 200 MHz,
2615 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2617 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2619 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2621 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2622 Load config file from (cbfsdisk)/etc/grub.cfg.
2624 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2626 * util/grub-install-common.c (grub_install_copy_files): Fix module
2627 destination directory.
2629 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2631 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2632 files have not been built.
2634 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2636 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2637 Handle errors from mkstemp.
2638 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2640 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2642 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2643 on primary master on pseries.
2645 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2647 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2648 already loaded. This saves memory needed for tests,
2650 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2652 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2655 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2657 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2660 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2662 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2663 master since with some combinations of qemu and firmware only primary
2664 IDE channel is available.
2666 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2668 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2669 low-memory platforms where we don't have enough memory for them.
2670 * grub-core/tests/videotest_checksum.c: Likewise.
2672 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2674 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2675 already loaded. This saves memory needed for tests,
2677 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2679 Fix handling of install lists.
2681 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2683 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2685 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2687 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2688 the devices before accessing them.
2690 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2692 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2695 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2697 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2699 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2701 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2702 (grub_file_close): Free file->name.
2704 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2706 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2707 (grub_load_public_key): Likewise.
2708 (grub_verify_signature_real): Likewise.
2709 (grub_cmd_verify_signature): Likewise.
2711 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2713 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2716 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2718 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2719 (grub_longjmp): Restore r31.
2720 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2722 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2724 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2725 modules to be in line with make_image_abs.
2727 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2729 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2731 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2733 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2735 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2737 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2739 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2740 to leave some memory to firmware.
2742 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2744 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2745 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2746 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2749 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2751 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2752 now needs full arguments.
2754 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2756 * util/grub-mkrescue.c (main): Add trailing \n in
2757 .disk_label.contentDetails to be in line with previous shell script.
2759 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2761 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2763 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2765 * util/grub-install-common.c (grub_install_parse): Recognize
2766 --compress=none like shell script did.
2768 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2770 * include/grub/misc.h: Replace check for __sparc64__ with one for
2771 __sparc__ as __sparc64__ isn't actually defined.
2773 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2775 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2776 counterpart of fixing the naming of escc ports.
2778 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2780 * util/grub-install-common.c (platforms): Fix the order of entries and
2781 remove useless field val.
2783 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2785 * util/grub-install.c: Add new option --no-bootsector to skip
2786 installing of bootsector. Accept --grub-setup=/bin/true as
2787 backwards-compatible synonym.
2789 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2791 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2792 order of qsort arguments (number of elements vs. element size).
2794 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2796 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2797 the function of these files exceeds what can be sanely handled in shell
2798 in posix-comaptible way. Also writing it in C extends the functionality
2799 to non-UNIX-like OS and minimal environments.
2801 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2803 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2804 compiling to thumb2.
2805 * grub-core/kern/arm/cache_armv7.S: Likewise.
2806 * grub-core/lib/arm/setjmp.S: Likewise.
2808 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2810 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2811 in grub_uboot_syscall
2813 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2815 Decrease stack usage in lexer.
2817 We have only 92K of stack and using over 4K per frame is wasteful
2819 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2820 as macros so that compiler would remove useless structure on stack.
2821 Better solution would be to fix flex not to put this structure on
2822 the stack but flex is external program.
2824 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2826 Decrease stack usage in signature verification.
2828 We have only 92K of stack and using over 4K per frame is wasteful
2830 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2832 (grub_verify_signature_real): Likewise.
2834 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2836 Decrease stack usage in mdraid 0.9x.
2838 We have only 92K of stack and using over 4K per frame is wasteful
2840 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2843 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2845 Decrease stack usage in BtrFS.
2847 We have only 92K of stack and using over 4K per frame is wasteful
2849 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2852 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2854 Decrease stack usage in JFS.
2856 We have only 92K of stack and using over 4K per frame is wasteful
2858 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2859 stack. Note: this function is recursive.
2860 (grub_jfs_read_inode): Read only part we care about.
2862 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2864 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2867 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2869 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2871 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2873 * docs/grub.texi (Environment): Document cmdpath.
2875 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2877 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2878 Remove "unused" attribute from arguments, they are used.
2880 2013-11-15 Colin Watson <cjwatson@debian.org>
2882 * .gitignore: Only ignore grub-mk* at the top level.
2884 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2886 * util/grub-reboot.in (usage): Fix a typo.
2888 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2890 Replace libgcc version of ctz with our own.
2892 On upcoming arm64 port libgcc ctz* are not usable in standalone
2893 environment. Since we need ctz* for this case and implementation is
2894 in C we may as well use it on all concerned platforms.
2896 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2898 * configure.ac: Probe for linking format rather than guessing it based
2901 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2903 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2904 "1" prior to handoff.
2906 Reported by: M A Young.
2908 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2910 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2913 Reported by: M A Young.
2915 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2917 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2918 compilation on NetBSD.
2920 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2922 * acinclude.m4: Don't add -P on initial nm test.
2924 Note: even though this patch postdates Andrey's it bears 14 Nov as
2925 date due to timezone difference.
2927 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2929 * grub-core/Makefile.core.def (signature_test): Add missing
2932 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2934 * util/grub-install_header: Set localedir here, since this file is
2936 * util/grub-install.in: Remove setting of localedir.
2937 * util/grub-mkrescue.in: Likewise.
2939 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2941 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2943 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2945 * configure.ac: Move nm checks to the end.
2946 Call grub_PROG_NM_WORKS.
2947 * acinclude.m4: New check grub_PROG_NM_WORKS.
2948 Use $TARGET_CFLAGS -c when compiling test binary.
2950 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2952 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2955 2013-11-14 Matthew Garrett <mjg@redhat.com>
2957 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2958 cmdpath to firmware directory.
2960 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2962 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2963 at the start of second iteration.
2965 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2967 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2969 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2971 * Makefile.am (default_payload.elf): New target for easier coreboot
2974 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2976 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2977 clang (not necessarry with -no-integrated-as).
2978 * include/grub/symbol.h [__arm__]: Likewise.
2980 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2982 * configure.ac: Use -no-integrated-as on arm with clang.
2983 * INSTALL: Mention ARM compilation with clang.
2985 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2987 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2990 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2992 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2993 code for indirect block handling.
2995 Saves 185 bytes on compressed image.
2997 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3001 * Makefile.am: Remove build-grub-* in make clean.
3003 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3005 New files to gitignore.
3007 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
3008 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
3010 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
3012 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
3014 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
3016 * .gitignore: fix rules for .dep* and add *.a post git migration
3018 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3020 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
3023 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3025 * grub-core/kern/misc.c: Don't redirect divisions in the
3027 * include/grub/misc.h: Likewise.
3029 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3031 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
3032 systems that require checking the return value of write.
3034 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3036 * util/grub-install.in (efi_quiet): Fix inverted logic: make
3037 efibootmgr quiet when --debug is not used, rather than when it is.
3039 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3041 * gentpl.py (define_macro_for_platform_dependencies): Remove
3042 first (and thus unused) of two definitions for this function.
3043 (platform_dependencies): Likewise.
3045 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3047 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
3048 functions, we only need to check this for the target, not the host.
3049 * configure.ac (grub_apple_cc): Likewise.
3051 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3053 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
3054 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
3055 asm to stay in arm even if surrounding is thumb.
3057 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3059 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
3060 helper functions are needed for thumb.
3062 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3064 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
3065 level / 3 division explicitly unsigned. Saves few bytes.
3067 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3069 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
3071 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3073 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
3076 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3078 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
3079 grub_uboot_boot_data to asm part.
3081 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3083 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
3085 (grub_uboot_syscall): Save/restore r9 and align stack.
3087 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3089 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
3091 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3093 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
3094 occurencies with END.
3096 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3098 * util/grub-editenv.c (help_filter, argp): Document how to delete
3099 the whole environment block.
3100 Reported by Dan Jacobson. Fixes Debian bug #726265.
3102 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3104 * docs/grub.texi (Internationalisation, Supported kernels): Fix
3107 2013-11-13 Josh Triplett <josh@joshtriplett.org>
3109 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
3110 increment/decrement.
3112 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3114 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
3115 compiling with clang.
3117 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3119 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
3122 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3124 Redirect all divisions to grub_divmod64.
3126 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3128 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
3130 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3132 Add missing includes of loader.h.
3134 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3136 * configure.ac: Allow disabling themes.
3138 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
3140 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
3142 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3144 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
3145 until it becomes operational.
3147 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3149 * grub-core/Makefile.core.def (legacy_password_test): Disable
3150 on platforms where no legacycfg is compiled.
3151 * grub-core/tests/lib/functional_test.c: Tolerate failure to
3152 load legacy_password_test.
3154 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3156 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3158 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3160 * grub-core/efiemu/prepare.c: Remove variable length arrays.
3162 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3164 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
3165 strict-aliasing warning.
3166 (fsync): Silence cast warning.
3168 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3170 * grub-core/commands/verify.c: Remove variable length arrays.
3171 Load gcry_dsa/gcry_rsa automatically.
3173 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3175 * grub-core/tests/signature_test.c: New test.
3177 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3179 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
3182 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3184 * grub-core/tests/legacy_password_test.c (vectors): Make static.
3185 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
3187 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3189 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
3191 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3193 * grub-core/fs/proc.c: Allow \0 in proc files.
3195 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3197 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3199 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3201 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3203 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3205 * grub-core/fs/ext2.c: Remove variable length arrays.
3207 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3209 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3212 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3214 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3215 * grub-core/disk/cryptodisk.c: Likewise.
3216 * grub-core/disk/geli.c: Likewise.
3217 * grub-core/disk/luks.c: Likewise.
3219 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3221 * grub-core/tests/legacy_password_test.c: New test.
3222 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3224 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3226 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3228 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3230 * grub-core/tests/pbkdf2_test.c: New test.
3232 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3234 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3236 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3238 * grub-core/io/lzopio.c: Remove variable length arrays.
3240 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3242 * include/grub/crypto.h: Add maximums on hash size and cipher block
3245 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3247 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3249 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3251 * grub-core/tests/xnu_uuid_test.c: New test.
3253 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3255 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3258 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3260 * grub-core/commands/hashsum.c: Remove variable length arrays.
3262 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3264 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3266 * tests/grub_func_test.in: Increase memory allocation.
3268 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3270 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3271 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3274 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3276 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3277 (grub_util_get_fd_size_os): ...this.
3278 (grub_hostdisk_flush_initial_buffer): New empty function.
3280 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3282 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3283 without --defined-only.
3285 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3287 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3288 rip-relative addressing in prologue.
3290 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3292 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3293 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3295 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3297 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3298 Add missing semicolon.
3300 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3302 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3304 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3306 * configure.ac: Check for lzma.h for enabling liblzma and allow
3309 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3311 Add missing includes of loader.h.
3313 2013-11-11 Fam Zheng <famcool@gmail.com>
3315 * util/grub.d/30_os-prober.in: Add minix entry.
3317 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3319 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3320 right buffer for temporary load.
3322 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3324 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3326 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3328 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3331 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3333 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3335 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3337 (LzmaDec_InitDicAndState): Make static.
3339 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3341 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3343 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3345 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3347 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3349 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3351 * docs/grub-dev.texi: Replace bzr references with git ones.
3353 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3355 * docs/grub.texi (Simple configuration): Remove reference to
3356 grub-reboot from saved default entry description - grub-default
3357 does not use it anymore.
3359 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3361 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3364 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3366 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3368 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3370 Fix grub_machine_fini bitrot.
3372 Reported by: Glenn Washburn.
3374 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3376 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3378 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3380 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3382 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3385 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3387 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3388 Add -march=core2 when testing compile of efiemu64.
3390 Thanks Andrey Borzenkov for spotting this.
3392 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3394 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3395 XEN PV environment and load kernels.
3397 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3399 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3400 * grub-core/loader/multiboot_mbi2.c: Likewise.
3402 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3404 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3407 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3409 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3411 Tested by: Denis 'GNUtoo' Carikli.
3413 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3415 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3417 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3419 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3420 Use to get rounded angle rather than truncated.
3422 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3424 * grub-core/term/serial.c: Add option for enabling/disabling
3425 RTS/CTS flow control.
3427 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3429 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3432 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3434 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3435 Use grub_fatal rather than divide by zero.
3436 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3438 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3440 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3442 (grub_fixed_fsf_divide): Likewise.
3444 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3446 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3447 division by-zero and senseless negative divisions.
3449 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3451 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3452 division by-zero and senseless negative divisions.
3453 (circprog_set_property): Don't accept negative num_ticks.
3455 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3457 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3458 division by-zero and senseless negative divisions.
3460 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3462 * configure.ac: Use elf_*_fbsd on kfreebsd.
3464 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3466 * grub-core/tests/div_test.c: New test.
3468 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3470 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3471 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3472 * grub-core/gfxmenu/view.c: Likewise.
3473 * grub-core/video/fb/video_fb.c: Introduce new functions:
3474 grub_video_set_area_status, grub_video_get_area_status,
3475 grub_video_set_region, grub_video_get_region.
3476 * grub-core/video/bochs.c: Likewise.
3477 * grub-core/video/capture.c: Likewise.
3478 * grub-core/video/video.c: Likewise.
3479 * grub-core/video/cirrus.c: Likewise.
3480 * grub-core/video/efi_gop.c: Likewise.
3481 * grub-core/video/efi_uga.c: Likewise.
3482 * grub-core/video/emu/sdl.c: Likewise.
3483 * grub-core/video/radeon_fuloong2e.c: Likewise.
3484 * grub-core/video/sis315pro.c: Likewise.
3485 * grub-core/video/sm712.c: Likewise.
3486 * grub-core/video/i386/pc/vbe.c: Likewise.
3487 * grub-core/video/i386/pc/vga.c: Likewise.
3488 * grub-core/video/ieee1275.c: Likewise.
3489 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3490 * include/grub/video.h: Likewise.
3491 * include/grub/video_fb.h: Likewise.
3492 * include/grub/fbfill.h: Updated render_target structure.
3493 grub_video_rect_t viewport, region, area
3494 int area_offset_x, area_offset_y, area_enabled
3495 * include/grub/gui.h: New helper function
3496 grub_video_bounds_inside_region.
3497 * docs/grub-dev.texi: Added information about new functions.
3499 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3501 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3504 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3506 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3508 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3510 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3512 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3513 simple division on arm and ia64.
3515 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3517 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3520 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3522 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3524 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3526 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3527 prefix symbol, not @.
3529 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3531 * INSTALL: Add note about older gcc and clang.
3533 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3535 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3537 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3539 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3540 NULL pointer dereference.
3542 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3544 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3547 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3549 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3552 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3554 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3556 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3557 * grub-core/disk/geli.c (ascii2hex): Likewise.
3559 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3561 * configure.ac: Run linker tests without -Werror.
3562 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3563 Change all occurences of -static-libgcc resp -lgcc to
3564 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3566 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3568 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3570 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3572 Allow compiling with clang (not really supported though).
3574 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3576 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3577 Add -mrtd -mregparm=3 on i386 when not using clang.
3578 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3580 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3582 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3584 * grub-core/lib/reed_solomon.c: Likewise.
3585 * include/grub/i386/gdb.h: Likewise.
3586 * include/grub/i386/pc/int.h: Likewise.
3587 * include/grub/i386/pc/pxe.h: Likewise.
3588 * include/grub/ieee1275/ieee1275.h: Likewise.
3590 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3592 Import libgcrypt 1.5.3.
3594 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3596 * configure.ac: Don't add -Wcast-align on x86.
3598 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3600 * configure.ac: Add -freg-struct-return on all platforms that
3603 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3605 * acinclude.m4: Use -Werror on parameter tests.
3606 * configure.ac: Likewise.
3608 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3610 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3612 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3614 * configure.ac: Check that -malign-loops works rather than assuming that
3615 either -falign-loops or -malign-loops work.
3617 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3619 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3621 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3623 * configure.ac: Prevent cflags leaking to subsequent tests by always
3624 resetting cflags to target_cflags in target tests.
3626 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3628 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3631 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3633 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3635 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3637 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3639 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3641 * grub-core/normal/cmdline.c (grub_cmdline_get):
3642 Remove nested functions.
3644 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3646 * tests/test_sha512sum.in: Make it work on emu.
3648 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3650 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3652 (grub_bidi_line_logical_to_visual): Likewise.
3654 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3656 Remove vestiges of -Wunsafe-loop-optimisations.
3658 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3659 -Wno-unsafe-loop-optimisations.
3660 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3662 * grub-core/io/gzio.c: Likewise.
3663 * grub-core/script/parser.y: Likewise.
3664 * grub-core/script/yylex.l: Likewise.
3665 * util/grub-mkfont.c: Likewise.
3667 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3669 * util/grub-mkfont.c (process_cursive): Remove nested function.
3671 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3673 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3674 (grub_boot_time): Likewise.
3676 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3678 * include/grub/symbol.h (FUNCTION): Use @function rather than
3680 (VARIABLE): Likewise.
3682 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3684 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3686 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3688 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3689 (parse_dhcp_vendor): Likewise.
3691 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3693 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3695 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3697 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3698 Define after defining type and not before.
3700 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3702 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3704 (grub_gcm_decrypt): Likewise.
3705 (algo_decrypt): Likewise.
3706 (grub_zfs_decrypt_real): Transform error type.
3708 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3710 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3712 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3714 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3715 (grub_usbms_cbi_reset): Likewise.
3716 (grub_usbms_bo_reset): Likewise.
3717 (grub_usbms_reset): Likewise.
3718 (grub_usbms_attach): Likewise.
3719 (grub_usbms_transfer_cbi): Likewise.
3721 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3723 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3724 "checksum = checksum;".
3726 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3728 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3731 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3733 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3736 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3738 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3740 (grub_ehci_fini_hw): Likewise.
3741 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3743 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3745 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3746 return grub_usb_err_t for cosistency. All users updated.
3748 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3750 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3751 assigning to itself.
3753 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3754 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3756 Issue separate DNS queries for ipv4 and ipv6
3758 Adding multiple questions on a single DNS query is not supportted by
3759 most DNS servers. This patch issues two separate DNS queries
3760 sequentially for ipv4 and then for ipv6.
3762 Fixes: https://savannah.gnu.org/bugs/?39710
3764 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3765 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3766 * (grub_net_dns_lookup): Now using separated dns packages.
3767 * (grub_cmd_nslookup): Add error condition.
3768 * (grub_cmd_list_dns): Print DNS option.
3769 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3770 --prefer-ipv4, and --prefer-ipv6.
3771 * include/grub/net.h (grub_dns_option_t): New enum.
3772 * (grub_net_network_level_address): option added.
3774 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3776 * grub-core/video/fb/video_fb.c: Merge two blit functions
3779 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3781 * grub-core/term/terminfo.c: Add sequences for home and end.
3783 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3785 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3788 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3790 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3793 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3795 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3796 e-mail by Per Öberg.
3798 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3800 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3803 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3805 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3807 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3809 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3811 * docs/grub.texi: Document usage of menuentry id.
3813 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3815 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3817 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3819 * grub-core/commands/i386/nthibr.c: New command.
3821 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3823 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3825 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3827 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3830 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3832 Support GRUB_DISABLE_SUBMENU config.
3834 Inspired by patch from Prarit Bhargava.
3836 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3838 * docs/grub.texi: Mention RSA support.
3840 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3842 * grub-core/commands/verify.c: Add RSA support.
3844 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3846 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3847 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3848 device is known to be ATAPI.
3850 2013-11-03 Mike Frysinger <vapier>
3852 * configure.ac: Don't add target-prefix.
3854 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3856 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3859 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3861 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3862 if language is English.
3864 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3866 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3868 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3870 * configure.ac: Don't add -m32/-m64 on emu.
3874 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3875 broken linux headers.
3877 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3879 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3881 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3883 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3884 Reed-Solomon recovery if more than half of redundancy info is 0.
3886 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3888 * util/grub-mount.c: Handle symlinks to directories.
3890 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3892 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3893 find_file recursively for symlink.
3895 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3897 * tests/util/grub-shell.in: Copy themes.
3899 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3901 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3903 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3905 * configure.ac: Use 0x8000 for address instead of 8000.
3907 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3909 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3912 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3914 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3917 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3919 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3921 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3923 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3924 file_progress_read_hook.
3925 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3927 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3929 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3932 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3934 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3936 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3938 Rewrite blocklist functions in order to get progress when
3939 reading large extents and decrease amount of blocklist hook calls.
3941 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3943 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3946 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3948 Support --base-clock for serial command to handle weird cards with
3949 non-standard base clock.
3951 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3953 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3955 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3956 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3957 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3958 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3959 + strcpy rather than strncpy.
3961 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3963 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3964 (check_pool_label): Likewise. Fixes overflow.
3965 (nvlist_find_value): Fix comparison.
3967 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3969 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3970 more appropriate functions.
3972 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3974 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3977 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3979 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3981 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3983 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3986 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3988 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3990 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3992 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3993 (initialize_tables): reset tl and td to NULL after freeing.
3995 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3997 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3999 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4001 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
4004 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4006 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
4008 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4010 * grub-core/loader/multiboot.c: Add support for multiboot kernels
4013 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4015 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
4016 a page in protected space.
4018 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4020 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
4021 allocate space for zero-sized modules.
4023 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4025 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
4027 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
4029 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
4031 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4033 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
4034 safeguards. Fixes a crash with i386/pc/console.c.
4036 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4038 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
4039 and grub_hostfs_init.
4041 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4043 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
4044 windows method on other platforms without good stat as well.
4046 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4048 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
4050 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4052 Make / in btrfs refer to real root, not the default volume.
4053 Modify mkrelpath to work even if device is mounted with subvolid option.
4055 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
4057 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
4059 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
4062 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4064 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
4067 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
4069 * docs/autoiso.cfg: New file.
4071 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4073 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
4074 COND_GRUB_PE2ELF conditions.
4076 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4078 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
4079 "vnd", "rd" and "fd" disks.
4081 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4083 Move grub_disk_write out of kernel into disk.mod.
4085 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4087 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
4090 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4092 * grub-core/kern/misc.c (grub_abort): Make static
4094 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4096 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
4097 transform invalid unicode codepoints.
4099 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4101 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4104 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4106 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
4108 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4110 Consolidate cpuid code.
4112 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4114 Move cpuid code to cpuid.h and TSC code to tsc.c.
4116 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4118 * util/grub.d/00_header.in: Don't use LANG if it's not set.
4120 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4122 * util/grub-mkconfig.in: Replace $0 with $self.
4123 * util/grub-reboot.in: Likewise.
4124 * util/grub-set-default.in: Likewise.
4126 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4128 * docs/osdetect.cfg: New file.
4130 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4132 * tests/util/grub-shell.in: Add new --debug option.
4134 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4136 * tests/test_unset.in: New test.
4138 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4140 * tests/test_sha512sum.in: New test.
4142 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4144 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
4145 * include/grub/misc.h: Remove strncat.
4146 * grub-core/lib/posix_wrap/string.h: Likewise.
4148 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4150 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
4151 Try to handle more than 0xFFFF packets.
4152 Reported by: Bernhard Übelacker <bernhardu>.
4153 He also spotted few overflows in first version of this patch.
4155 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4157 * tests/date_unit_test.c: New test.
4159 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4161 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
4162 of first three years after start of validity of unixtime.
4164 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4166 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
4167 division as the one making more sense.
4168 (update_screen): Likewise.
4169 (complete): Likewise.
4171 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4173 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
4175 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4177 Make char and string width grub_size_t rather than grub_ssize_t.
4179 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4181 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
4183 (grub_history_replace): Likewise.
4185 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4187 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
4190 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4192 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4195 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4197 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4198 Use unsigned divisions rather than signed variants.
4200 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4202 * grub-core/video/readers/png.c (grub_png_convert_image): Use
4203 unsigned arithmetics.
4206 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4208 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4210 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4212 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4213 rather than signed one.
4214 (recovery): Likewise.
4216 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4218 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4220 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4222 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4225 2013-10-25 Jon McCune <jonmccune@google.com>
4227 * docs/grub.texi: Cleanup security documentation around signatures.
4229 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4231 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4233 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4235 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4238 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4240 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4241 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4242 functions when compiling for kernel.
4244 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4246 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4247 unsigned long long when using %llu.
4249 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4251 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4252 terminal after updating progress.
4254 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4256 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4257 argument. We don't disable Gate A20 in this code.
4259 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4261 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4262 Conceptually based on change in branch "vbe-on-coreboot".
4264 2013-10-24 Robert Millan <rmh@gnu.org>
4266 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4267 numeric constants with their symbolic equivalent.
4268 Taken from branch "vbe-on-coreboot".
4270 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4272 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4274 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4276 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4277 divmod64 for offset division.
4279 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4281 Rename .bzrignore to .gitignore. Add "*.o" rule.
4283 * .bzrignore: Renamed to...
4284 * .gitignore: ...this.
4286 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4288 Add new progress module that displays the load progress of files.
4290 * grub-core/lib/progress.c: New file.
4291 * grub-core/Makefile.core.def (progress): New module.
4292 * grub-core/kern/file.c (grub_file_open): File name added.
4293 * (grub_file_read): Progress hook added.
4294 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4295 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4296 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4297 * include/grub/file.h (struct grub_file): Add progress module members.
4298 * include/grub/term.h (struct grub_term_output): Likewise.
4299 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4300 Terminal velocity added.
4301 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4302 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4303 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4304 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4305 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4306 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4307 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4308 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4309 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4310 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4311 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4312 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4314 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4316 Verify signatures of signatures unless --skip-sig is specified.
4318 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4320 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4323 Saves 70 bytes on compressed image.
4325 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4327 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4330 Saves 10 bytes on compressed image.
4332 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4334 * grub-core/kern/misc.c (grub_isprint): Move to ...
4335 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4337 Saves 20 bytes on compressed image due to remving exporting.
4339 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4341 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4343 Saves 5 bytes on compressed image.
4345 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4347 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4350 Saves 379 bytes on compressed image.
4352 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4354 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4356 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4358 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4360 Saves 40 bytes on compressed image.
4362 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4364 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4365 mask rather than 64-bit type.
4367 Saves 20 bytes on compressed image.
4369 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4371 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4372 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4374 Saves 273 bytes on compressed image.
4376 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4378 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4379 variable length arrays.
4381 Saves 50 bytes on compressed image.
4383 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4385 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4387 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4389 * grub-core/fs/ufs.c: Remove variable length arrays.
4391 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4393 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4395 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4397 * grub-core/fs/zfs.c: Remove variable length arrays.
4398 Reduces zfs.mod by 160 bytes (208 compressed).
4400 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4402 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4404 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4406 * grub-core/net/arp.c: Remove variable length arrays.
4407 * grub-core/net/bootp.c: Likewise.
4408 * grub-core/net/dns.c: Likewise.
4409 * grub-core/net/icmp6.c: Likewise.
4410 * grub-core/net/net.c: Likewise.
4412 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4414 * grub-core/fs/ntfs.c: Remove variable length arrays.
4415 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4418 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4420 * grub-core/fs/hfs.c: Remove variable length arrays.
4421 Reduces hfs.mod by 8 bytes (52 compressed).
4423 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4425 * grub-core/fs/udf.c: Remove variable length arrays.
4426 Increases udf.mod by 128 bytes (but decreases by 13 when
4429 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4431 * grub-core/fs/iso9660.c: Remove variable length arrays.
4432 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4435 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4437 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4438 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4441 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4443 * grub-core/fs/xfs.c: Remove variable length arrays.
4444 Reduces xfs.mod by 40 bytes (43 compressed).
4446 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4448 * grub-core/fs/fshelp.c: Remove variable length arrays.
4449 Reduces fshelp.mod by 116 bytes (23 compressed).
4451 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4453 * grub-core/normal/completion.c: Remove variable length arrays.
4454 * grub-core/normal/menu_entry.c: Likewise.
4456 Reduces normal.mod by 496 bytes.
4458 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4460 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4461 by 356 bytes (158 compressed).
4463 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4465 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4466 by 364 bytes (169 compressed).
4468 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4470 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4471 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4472 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4474 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4476 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4477 bitmasks to small structures of size chosen to fit in registers.
4479 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4481 * conf/Makefile.common: Use -freg-struct-return on i386. This
4482 decreases code size and improves performance.
4484 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4486 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4488 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4490 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4492 Simplify expressions to save around 256 bytes in kernel.img.
4493 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4495 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4497 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4498 Use GRUB_UTIL_FD_O_* rather than O_*.
4500 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4502 Add haiku-specific functions.
4504 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4506 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4508 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4510 Move stat () and device mode checking into OS-dependent files as
4511 long as performance doesn't suffer.
4513 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4515 Split make_system_path_relative_to_its_root into separate file
4516 relpath.c from getroot.c as it's common between unix and haiku
4517 but otherwise haiku doesn't use any functions from unix getroot.c.
4519 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4521 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4523 (grub_util_is_special_file): Likewise.
4525 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4527 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4528 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4530 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4532 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4533 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4535 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4537 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4538 (load_image): Likewise.
4540 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4542 * util/grub-render-label.c: Move backend part to ...
4543 * util/render-label.c: ... here.
4545 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4547 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4548 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4550 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4552 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4554 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4556 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4557 CD-ROM in case when it's declared as having subpartitions.
4559 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4561 Don't add -lm on haiku.
4563 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4565 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4568 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4570 * configure.ac: Use -melf_*_haiku as target on haiku.
4572 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4574 * Makefile.util.def: Add util/setup.c to extra_dist.
4576 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4578 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4579 unknown types through.
4581 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4583 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4584 (grub_util_check_char_device): Likewise.
4585 * include/grub/emu/getroot.h: Likewise.
4587 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4589 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4590 memset rather than inline static function.
4592 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4594 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4595 not doing embedded decompressor.
4597 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4599 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4601 * grub-core/kern/disk.c: Likewise.
4602 * grub-core/kern/misc.c: Likewise.
4603 * include/grub/parser.h: Likewise.
4604 * include/grub/script_sh.h: Likewise.
4605 * include/grub/zfs/zfs.h: Likewise.
4607 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4609 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4611 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4613 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4614 defined before trying to use it.
4616 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4618 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4621 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4623 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4624 Use __unused__ rather than __used__ on gcc < 3.2.
4626 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4628 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4630 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4632 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4634 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4636 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4638 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4639 * include/grub/emu/misc.h: Likewise.
4641 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4643 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4646 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4648 * grub-core/tests/checksums.h: Regenerated due to progress bar
4649 get_minimal_size changes.
4651 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4653 Added `tr' command support.
4655 * grub-core/commands/tr.c: New file.
4656 * grub-core/Makefile.core.def: Build rules for new module.
4658 * tests/grub_cmd_tr.in: New test.
4659 * Makefile.util.def: Build rules for new test.
4661 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4663 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4665 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4667 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4668 * docs/gurb.texi: Likewise.
4670 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4672 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4673 Pixmap highlighted section with east and west slices was displayed
4674 incorrectly due to negative width of the central slice.
4676 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4678 * docs/grub.texi: Graphical options information update.
4679 Removed outdated. Updated current. Inserted missed.
4681 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4683 * docs/grub.texi: Mention few new platform-specific commands.
4685 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4687 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4688 currently used so this doesn't really have any effect.
4689 Reported by: Douglas Ray <dougray>
4691 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4693 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4694 compilation but prevents gcc from displaying messages in non-Latin
4696 * conf/Makefile.common: Likewise.
4698 2013-10-16 Hiroyuki YAMAMORI
4700 Handle Japanese special keys.
4701 Reported by: Hiroyuki YAMAMORI.
4702 Codes supplied by: Hiroyuki YAMAMORI.
4704 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4706 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4708 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4710 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4711 * docs/grub.texi: Likewise.
4713 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4715 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4716 value in case of incomplete read.
4717 (grub_util_fd_write): Likewise.
4719 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4721 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4723 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4725 * util/grub-editenv.c (create_envblk_file): More from here ...
4726 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4728 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4730 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4731 canonicalize file name before doing the rest.
4733 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4735 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4738 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4740 Define grub_util_is_directory/regular/special_file and
4741 use OS-dependent versions rather than to rely on stat().
4743 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4745 * util/grub-mkimage.c: Move backend part to ...
4746 * util/mkimage.c: ... here.
4748 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4750 Allow compilation with mingw64 albeit with warnings due to lack of
4753 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4754 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4755 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4756 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4758 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4760 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4762 Remove leftover references to some of the system headers.
4764 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4766 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4769 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4771 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4774 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4776 Split out blocklist retrieving from setup.c to
4777 grub-core/osdep/blocklist.c and add windows implementation since
4778 generic version doesn't work on NTFS on Windows due to aggressive
4781 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4783 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4786 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4788 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4789 Cut tailing newline. Remove arbitrary limitation. Always use
4790 grub_util_tchar_to_utf8.
4792 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4794 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4795 * tests/printf_unit_test.c (printf_test): Add %% tests.
4796 Reported by: Paulo Flabiano Smorigo.
4798 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4800 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4803 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4805 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4806 use nvlist_lookup_string and don't use nvlist_print.
4808 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4810 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4811 closedir to handle filename charset translation.
4813 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4815 * include/grub/emu/hostdisk.h: Move file operations to
4816 * include/grub/emu/hostfile.h: ... here.
4818 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4820 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4823 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4825 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4827 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4829 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4830 and remove export.h.
4832 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4834 * grub-core/kern/emu/error.c: Removed.
4835 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4836 explicitly as it's already in libgnu.a.
4838 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4840 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4841 config-util.h include.
4843 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4845 Split emunet into platform-dependent and GRUB-binding parts. Keep
4846 platform-dependent part in kernel for easy access to OS functions.
4848 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4850 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4853 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4855 * grub-core/osdep/windows/emuconsole.c: New file.
4857 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4859 * conf/Makefile.extra-dist: Add osdep/*/init.c
4861 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4863 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4865 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4867 * util/grub-probe.c (probe): Separate different drives in hint-str
4868 by spaces and not newlines.
4869 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4871 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4873 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4876 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4878 Pass-through unknown E820 types. It required reorganisation of mmap
4881 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4883 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4885 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4887 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4890 2013-10-14 qwertial <qwertial>
4892 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4894 2013-10-14 Jon McCune <jonmccune@google.com>
4896 * docs/grub.texi: Document new signatures possibility.
4898 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4900 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4902 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4904 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4906 (grub_util_tchar_to_utf8): Likewise.
4908 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4910 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4911 * grub-core/kern/emu/main.c: Add missing include.
4912 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4913 Don't call grub_util_init_nls.
4914 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4917 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4919 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4922 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4924 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4926 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4928 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4930 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4932 Add a wrapper for fopen. On unix-like systems just pass-through. On
4933 windows use unicode version.
4935 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4937 Move set_program_name and init_nls to host_init. On windows
4938 fix in this fuction console and argument charset as well.
4940 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4942 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4943 GRUB_ENABLE_CRYPTODISK.
4945 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4946 GRUB_ENABLE_CRYPTODISK.
4947 * util/grub-mkconfig_lib.in: Likewise.
4949 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4951 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4953 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4955 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4956 error when enabling debug.
4958 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4960 * configure.ac: Use -melf_*_obsd on openbsd.
4962 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4964 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4966 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4968 * include/grub/misc.h: Use gnu_printf rather than printf as format
4969 template since our functions are independent of libc.
4971 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4973 * util/grub-setup.c (setup): Move copying of partition table as
4974 futher up as possible to avoid possible overwrite by floppy routines.
4976 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4978 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4980 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4982 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4983 * docs/grub.texi: Likewise.
4985 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4987 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4988 it's mostly unused. Move vestiges to the callers.
4990 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4992 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4993 version of salt and hash. Use grub_snprintf rather than snprintf.
4995 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4997 * docs/grub.texi: Fix problem with braces.
4999 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
5001 * conf/Makefile.extra-dist: Fix extra-dist list.
5002 * grub-core/Makefile.core.def: Likewise.
5004 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
5006 * docs/grub.texi: Document disk names used on Windows and AROS.
5008 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
5010 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
5012 * grub-core/osdep/aros/hostdisk.c: Likewise.
5014 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
5016 Avoid including hostfile.h when not necessarry as it pulls
5017 in OS-specific headers which may redefine generic names
5020 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
5022 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
5023 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
5024 scrollbar_bottom_pad
5025 * docs/grub.texi: Likewise.
5027 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
5029 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
5031 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5033 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
5035 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5037 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
5039 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
5042 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5044 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
5047 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5049 Move OS-specific driver configuration to grub_util_fd_open. This
5050 moves OS-dependent parts from kern/emu/hostdisk.c to
5051 grub-core/osdep/*/hostdisk.c.
5053 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5055 * util/grub-mkimage.c (generate_image): Use size_t instead of
5057 * util/grub-mkimagexx.c (locate_sections): Likewise.
5058 (load_image): Likewise.
5060 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5062 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
5064 (grub_util_write_image): Likewise.
5066 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5068 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
5069 get random when no RNG is available.
5070 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
5072 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5074 * include/grub/util/lvm.h: Removed.
5076 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5078 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
5079 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
5081 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5083 * grub-core/osdep/windows/sleep.c: Add missing config.h.
5085 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5087 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
5089 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5091 * grub-core/net/drivers/emu/emunet.c: Move to ..
5092 * grub-core/osdep/linux/emunet.c: ..here.
5094 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5096 * util/ieee1275/ofpath.c: Move to ...
5097 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
5098 * grub-core/osdep/basic/ofpath.c: ..here.
5100 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5102 Move password-querying (util-version) routines to grub-core/osdep.
5104 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5106 Move sleep routines to grub-core/osdep.
5108 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5110 Move OS-dependent files to grub-core/osdep and document it.
5112 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5114 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
5115 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
5117 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5119 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
5121 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5123 * util/misc.c: Remove leftover inclusion of malloc.h.
5125 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5127 * include/grub/setjmp.h: Remove leftover GRUBOF.
5129 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5131 * util/raid.c: Fold into ...
5132 * util/getroot_linux.c: ... here. Make all functions static.
5134 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5136 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
5137 macros to GRUB ones.
5139 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5141 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
5142 occasional bug. If there are too many boot entries or too low
5143 scrollbar height then we need to use another formula to calculate
5144 the position and size of the scrollbar thumb.
5146 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5148 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
5150 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5152 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
5153 * docs/grub.texi: Likewise.
5155 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5157 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
5160 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5162 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
5163 minimal width calculations.
5165 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5167 * docs/grub.texi: Update note on colors on emu console.
5169 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5171 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
5172 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
5173 it's FS and not GRUB limitation.
5175 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5177 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
5179 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5181 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
5183 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5185 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
5186 kernels by version order.
5188 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5190 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5192 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5194 Add AROS hostdisk and getroot routines.
5196 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5198 Make cryptodisk and diskfilter probe data retrievable programmatically
5199 and not just printable.
5201 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5203 Split random retrieving code into separate files.
5205 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5207 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5210 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5212 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5214 * grub-core/tests/fake_input.c: Likewise.
5215 * grub-core/tests/cmdline_cat_test.c: Likewise.
5217 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5219 * grub-core/video/capture.c: Do not do finalization when .fini
5220 is called as there is explicit capture_end.
5222 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5224 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5225 changing windows to avoid crash.
5227 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5229 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5231 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5233 * po/exclude.pot: Add several strings to exclude.
5235 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5237 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5239 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5241 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5242 ./util/grub-gen-asciih.c to exclude list.
5244 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5246 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5247 and don't mark error strings for translation.
5249 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5251 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5252 properly in case of missing block size.
5254 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5256 * grub-core/lib/arm/setjmp.S: Add missing license section.
5258 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5260 * po/swiss.sed: Add replacement for key names and for term computer.
5262 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5264 * grub-core/gfxmenu/theme_loader.c: New global options for the
5265 theme background image handling. desktop-image-scale-method,
5266 desktop-image-h-align, desktop-image-v-align.
5267 * grub-core/gfxmenu/view.c: Likewise.
5268 * include/gfxmenu_view.h: Likewise.
5269 * include/bitmap_scale.h: Proportional scale functions introduced.
5270 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5271 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5272 cases of unexpected input variables for scale functions.
5273 * docs/grub.texi: Updated documentation for new options.
5275 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5277 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5279 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5281 * grub-core/tests/checksums.h: Corrected due to changes in
5282 bilinear interpolation function.
5284 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5286 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5287 to eliminate artefacts in bilinear interpolation.
5289 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5291 * grub-core/video/readers/tga.c: Support paletted tga.
5293 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5295 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5296 incorrect cbcr setting when in color mode.
5298 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5300 * grub-core/video/readers/png.c: Support paletted images and clean up
5303 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5305 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5306 usage of wrong table which resulted in mishandling of 4-byte
5309 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5311 * grub-core/term/terminfo.c: Add Home and End key sequences.
5313 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5315 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5316 Fix formula for computing total number of bytes.
5318 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5320 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5321 image processing, fix big-endian and support grayscale.
5323 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5325 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5326 Correctly will with maximum transparency when using index color.
5328 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5330 * grub-core/video/readers/png.c: Support grayscale
5332 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5334 * grub-core/video/readers/jpeg.c: Support grayscale.
5336 2013-09-26 Jon McCune <jonmccune@google.com>
5338 * grub-core/commands/loadenv.c: Support skipping signature check
5339 and variable names filtering.
5341 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5343 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5344 * grub-core/kern/emu/hostfs.c: Likewise.
5345 * util/getroot_unix.c: Likewise.
5347 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5349 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5350 Migrate all explicit defines to this new one.
5352 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5354 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5355 grub_util_fd_strerror when using grub_util_fd_*.
5356 (grub_util_fd_open_device): Likewise.
5357 (grub_util_biosdisk_read): Likewise.
5358 (grub_util_biosdisk_write): Likewise.
5359 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5360 (grub_util_fd_strerror): Likewise.
5361 (grub_util_fd_sync): Likewise.
5362 (grub_util_fd_close): Likewise.
5363 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5364 (grub_util_fd_close): Likewise.
5365 (grub_util_fd_strerror): Likewise.
5366 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5367 function proto rather than macro.
5368 (grub_util_fd_sync): Likewise.
5369 (grub_util_fd_open): Likewise.
5370 (grub_util_fd_strerror): New proto.
5372 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5374 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5375 platforms on which it doesn't work.
5377 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5379 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5380 stat immediately to where it's used.
5382 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5384 * util/getroot.c (grub_util_check_block_device): Move to ...
5385 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5386 * util/getroot.c (grub_util_check_char_device): Move to ...
5387 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5389 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5391 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5394 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5396 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5398 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5400 * docs/grub.texi (File name syntax): Document ZFS filenames
5401 (/volume@snapshot/...).
5403 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5405 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5406 Always return full path. Fixes a problem with mkrelpath.
5408 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5410 * util/grub-install.in: Add GPT PReP support.
5411 * util/grub-probe.c (probe): Support GPT partition type.
5412 (main): Support -t gpt_parttype.
5414 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5416 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5418 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5420 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5422 2013-09-23 Tim Hardeck <thardeck>
5424 * util/grub.d/10_hurd.in: Filter out character for the class.
5425 * util/grub.d/10_kfreebsd.in: Likewise.
5426 * util/grub.d/10_linux.in: Likewise.
5427 * util/grub.d/20_linux_xen.in: Likewise.
5429 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5431 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5434 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5436 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5439 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5441 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5442 doesn't use posix_wrap. Keep literal -fno-builtin however.
5444 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5446 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5448 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5451 * configure.ac: Do not enable -Wmissing-noreturn as its
5452 usefulness is limited and creates problems on some OS notably with
5453 code generated by bison.
5455 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5458 * configure.ac: Do not explicitly enable -Waddress as it's not
5459 supported by all gcc and when it is, it's already enabled by -Wall.
5461 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5463 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5464 desactivated use of EDID at all.
5466 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5469 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5470 video if no text is available.
5472 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5475 * configure.ac: Substitute TARGET_RANLIB.
5477 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5480 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5482 Based on patches from AROS.
5484 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5487 * grub-core/Makefile.am: Override STRIP and RANLIB.
5488 * configure.ac: compute TARGET_RANLIB.
5489 * INSTALL: Document TARGET_RANLIB
5491 Based on patches from AROS.
5493 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5495 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5496 that floppies are unpartitioned.
5498 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5500 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5501 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5503 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5505 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5506 less nice but more portable.
5507 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5509 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5511 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5513 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5515 (grub_cryptodisk_cheat_insert): Likewise.
5516 (grub_cryptodisk_close): Likewise.
5518 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5520 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5521 Use windows path for DEFAULT_DIRECTORY.
5523 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5525 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5526 difference was likely just gcc version, not anything mingw-related.
5528 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5530 Use Winapi on both cygwin and mingw32 to share more code between both.
5532 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5534 * util/grub-install.in: Add --grub-editenv option.
5535 * util/grub-install_header (grub_compress_file): Explicitly check for
5536 plain file to avoid cp error.
5538 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5540 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5541 names; fix LVM driver name (lvm, not lv).
5542 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5545 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5547 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5548 files rather than one file with loads of #if's.
5549 * util/getroot.c: Likewise.
5551 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5553 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5555 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5557 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5558 GNU/Hurd to the list of checked PRNG.
5560 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5562 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5564 2013-09-21 Ales Nesrsta <starous@volny.cz>
5566 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5568 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5570 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5571 * grub-core/disk/lvm.c: Add LVM UUIDs.
5572 * util/getroot.c: Use LVM UUIDs whenever possible.
5574 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5576 * docs/grub.texi (Networking commands): Add documentation for
5577 network related commands.
5579 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5581 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5582 to determine if device is handled by devmapper.
5583 (convert_system_partition_to_system_disk): Likewise.
5584 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5585 already done in grub_util_open_dm.
5587 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5589 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5590 Clean up stack manipulation (sync_caches_armv*)
5592 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5594 * util/lvm.c: Remove since unused. Remove remaining references.
5596 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5598 Handle the case of partitioned LVM properly.
5600 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5601 Stop on meeting LVM, mpath or DMRAID.
5602 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5603 (read_device_map): Likewise.
5604 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5605 device is full disk rather than erroring out on LVM and similar cases.
5607 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5609 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5611 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5613 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5615 Reported by: Leif Lindholm
5617 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5618 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5620 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5623 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5625 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5626 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5628 2013-09-18 Douglas Ray <dougray@cpan.org>
5630 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5633 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5635 * docs/grub.texi: Fix broken link.
5637 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5639 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5640 to break endless loop.
5642 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5644 * util/grub-fstest.c: Fix several printf formats.
5645 * util/grub-mkimage.c: Likewise.
5646 * util/grub-mkimagexx.c: Likewise.
5647 * util/grub-script-check.c: Likewise.
5649 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5651 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5654 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5656 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5658 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5660 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5661 removed in current versions cygwin_conv_*.
5663 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5665 * configure.ac: Disable efiemu runtime on cygwin.
5667 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5669 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5670 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5672 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5674 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5677 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5679 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5681 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5684 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5686 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5687 when on x86 and not cygwin.
5688 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5691 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5693 * configure.ac: Set CPP to build one when checkoing for freetype for
5696 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5698 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5699 [!GRUB_BUILD]: Remove has_argument.
5701 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5703 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5704 Replace with a dummy.
5706 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5708 * configure.ac: Don't change host_os from mingw to cygwin.
5710 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5712 * configure.ac: Change target_os from windows to cygwin.
5714 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5716 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5718 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5719 (build-grub-gen-asciih): Likewise.
5720 (build-grub-gen-widthspec): Likewise.
5721 * Makefile.util.def (grub-pe2elf): Remove.
5722 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5723 * configure.ac: Separate tests for build.
5724 Move ./build-grub-pe2elf to grub-core.
5726 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5727 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5729 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5731 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5732 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5733 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5735 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5737 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5738 mingw32 as well based on grub_util_get_disk_size.
5739 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5740 grub_util_get_fd_size.
5742 (fsync): Moved to ...
5743 * grub-core/kern/emu/misc.c (fsync): ... here.
5745 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5747 * include/grub/mm.h (grub_extend_alloc): Remove.
5748 * grub-core/loader/i386/pc/plan9.c: Use own version of
5749 grub_extend_alloc with appropriate types.
5751 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5753 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5755 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5757 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5759 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5761 Fix dependencies on cygwin.
5763 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5764 dependencies when used and defined.
5765 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5767 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5769 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5770 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5772 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5774 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5775 implementation available to cause compile-time rather than runtime
5778 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5780 * util/grub-fstest.c: Don't check for symlinks on windows.
5782 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5784 * INSTALL: Mention unavailability of man pages when cross-compiling.
5786 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5788 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5790 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5792 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5794 * INSTALL: Document cross-compilation.
5795 * acinclude.m4: Determine whether nm support -P and --defined-only.
5796 * configure.ac: Add TARGET_ to all variables pertaining to target
5797 that don't have it yet.
5798 * gentpl.py: Likewise.
5799 * grub-core/Makefile.am: Likewise.
5800 * grub-core/genmod.sh.in: Likewise.
5801 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5804 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5806 * configure.ac: Remove -Wempty-body. It's not essential and needs
5809 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5811 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5812 * util/getroot.c: Likewise.
5814 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5816 * grub-core/disk/ahci.c: Add needed explicit cast.
5817 * grub-core/lib/backtrace.c: Likewise.
5818 * grub-core/net/ip.c: Likewise.
5819 * grub-core/net/tcp.c: Likewise.
5820 * grub-core/net/udp.c: Likewise.
5822 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5824 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5826 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5828 * util/import_gcry.py: Add final newline in visibility.h.
5830 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5832 * conf/Makefile.common: Fix typo.
5834 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5836 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5838 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5840 * Makefile.am (widthspec.h): Fix typo.
5841 * util/grub-gen-widthspec.c: Likewise.
5843 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5845 Move ascii.h and widthspec.h generation to a separate build-time-only
5848 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5850 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5851 Always fill bootdisk info and improve check for NetBSD disklabel.
5853 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5855 * conf/Makefile.extra-dist: Add util/bin2h.c.
5856 Reported by: floppym.
5858 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5860 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5862 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5864 * configure.ac: Disable unifont and starfield if no freetype was found.
5866 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5868 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5869 on NetBSD and OpenBSD.
5871 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5873 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5875 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5877 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5878 reduced. Inheritant options are processed during the theme loading.
5880 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5882 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5884 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5886 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5888 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5890 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5893 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5895 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5896 remove-potcdate.sed.
5898 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5900 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5901 unused attribute from pull argument.
5903 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5905 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5908 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5910 * util/getroot.c (pull_lvm_by_command): add --separator option
5911 to vgs call to disable padding of output to 10 characters.
5913 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5915 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5917 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5920 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5922 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5925 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5927 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5928 full Canadian cross. Tested with build=x86_64, host=arm,
5929 target=ppc-ieee1275.
5931 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5933 * configure.ac: Error if no $BUILD_CC could be found.
5936 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5938 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5941 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5943 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5944 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5946 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5948 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5949 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5950 falling back to the partition device, otherwise a later call to this
5951 function may fail spuriously.
5952 Reported by Axel Beckert. Fixes Debian bug #708614.
5954 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5956 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5958 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5960 Prevent shadowing of stdlib's devname(3) on BSD.
5962 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5963 and devlast to diskname and disklast, respectively.
5965 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5967 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5969 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5971 * docs/grub.texi: Introduce terminal window position options:
5972 terminal-left: terminal window's left position
5973 terminal-top: terminal window's top position
5974 terminal-width: terminal window's width
5975 terminal-height: terminal window's height
5976 terminal-border: terminal window's border width
5977 * grub-core/gfxmenu/theme-loader.c: Likewise.
5978 * include/grub/gfxmenu_view.h: Likewise.
5979 * po/exlude.pot: Likewise.
5980 * grub-core/gfxmenu/view.c: Likewise.
5981 Also updated minimal window size.
5982 Also terminal_sanity_check function has been introduced.
5983 * grub-core/tests/checksums.h: Update (terminal window height
5984 is adjusted now for low resolution screen)
5986 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5988 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5991 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5993 * po/exclude.pot: Add few recent exceptions.
5995 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5997 * tests/grub_func_test.in: Add unicode.pf2.
5999 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
6001 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
6002 standard rather than noral color, in line with other terminals.
6004 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
6006 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
6009 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
6011 * grub-core/loader/arm/linux.c: Change printf to dprintf.
6013 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
6015 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
6016 inappropriate printf.
6018 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
6020 * .bzrignore: Remove grub-core/lib/dtc-grub,
6021 grub-core/Makefile.libfdt.def
6022 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
6024 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
6026 * include/grub/video.h (grub_video_register): Keep double-linked as
6027 well as single-linked invariants.
6028 Reported by: qwertial.
6030 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
6032 * grub-core/commands/nativedisk.c (get_uuid): Handle
6033 GRUB_DISK_DEVICE_UBOOTDISK_ID.
6035 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
6037 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
6038 maximum of NW, N, NE heights instead of N's height and maximum of
6039 NW, W, SW widths instead of W's width. (So the box will be always
6042 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
6044 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
6045 Fix misuse of variable count.
6047 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
6048 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
6049 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
6051 New ports to arm-uboot and arm-efi.
6052 Mostly by Leif Lindholm with some additions from
6053 Francesco Lavra and cleanup by Vladimir Serbinenko.
6055 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
6057 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
6059 Reported by: Leon Drugi.
6061 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
6063 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
6064 Reported by: Paulo Flabiano Smorigo.
6066 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
6068 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
6070 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
6072 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
6074 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6076 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
6078 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6080 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
6082 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
6084 * grub-core/net/bootp.c: Export net_* variables.
6085 * grub-core/net/net.c: Likewise.
6087 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6089 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
6091 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6093 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
6095 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6097 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
6099 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6101 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
6103 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6105 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
6108 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6110 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
6113 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6115 * grub-core/fs/zfs/zfs_lz4.c: New file.
6116 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
6118 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6120 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
6122 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6124 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
6125 (check_pool_label): Likewise.
6126 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
6128 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6130 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
6132 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6134 * docs/grub.texi (Commands): Document postition parameters
6135 for menuentry command.
6137 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6139 * util/grub-mknetdir.in: Remove stray line from help output.
6141 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6143 Remove early sm712 init as there is no reason for it (the "watchdog"
6144 effect was due to wrong GPIO map).
6146 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6148 * grub-core/commands/pcidump.c: Remove static variables.
6150 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6152 * grub-core/commands/sleep.c: Refresh screen before sleeping.
6154 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6156 * configure.ac: Move delimiter after the infos.
6158 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6160 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
6162 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6164 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
6165 not filling whole 8x16 space.
6167 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6169 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
6171 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6173 * configure.ac: Indicate which liblzma is used if any.
6175 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
6176 2013-06-21 Craig Sanders <savannah@taz.net.au>
6178 * util/grub-reboot.in: Document submenu usage.
6180 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6182 * .bzrignore: Update with a number of new test-related files.
6184 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6186 * util/grub-script-check.c: Fail on scripts containing no
6187 commands, to guard against corrupted grub-mkconfig setups that
6188 produce no useful output.
6189 * tests/grub_script_no_commands.in: New test.
6190 * Makefile.util.def (grub_script_no_commands): Add.
6191 Reported by Hans Putter. Fixes Debian bug #713886.
6193 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6195 * grub-core/disk/diskfilter.c: Forgot to remove comment
6196 from previous commit.
6198 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6200 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6201 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6203 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6205 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6207 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6209 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6210 rescan diskfilter devices until nothing new is found.
6212 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6214 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6216 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6218 Don't try to detect cbfs on *-emu.
6220 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6222 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6224 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6226 Add support for processed coreboot payload chainloading.
6228 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6230 Enable coreboot information commands even when not loaded as
6231 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6233 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6235 Support for cbfs. Also factor out the part which is common
6236 for all archives to a separate module. This splits tar from cpio
6237 as they are very different but keeps cpio, cpio_be, odc and newc
6238 together since they're very similar.
6240 2013-06-15 David Michael <fedora.dm0@gmail.com>
6242 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6243 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6245 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6247 * tests/grub_script_eval.in: Really add the eval test.
6249 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6251 Move flavour-specific parts out of common cpio.c file and
6252 rename remaining to cpio_common.c
6254 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6256 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6257 off new function grub_script_execute_new_scope. Change callers to use
6258 either of them as appropriate.
6259 * grub-core/commands/eval.c: New command eval.
6260 * docs/grub.texi (Commands): Document it.
6262 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6264 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6265 to fetch values when listing.
6267 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6269 Fix make dist on non-pc.
6271 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6273 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6274 without a device name.
6276 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6278 Remove enable_executable_check as it's not needed anymore.
6279 Reported by: dougray.
6281 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6283 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6284 ambigouos RAID before discovering RAIDs on top of it.
6287 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6289 Fix typo (failback vs fallback).
6291 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6293 * util/grub.d/30_os-prober.in: Add support for probing EFI
6294 System Partition (as of os-prober 1.58).
6296 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6298 * configure.ac: Add yet another path to unifont. For parabola.
6300 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6302 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6303 handling to copy the killed characters to the kill buffer as
6304 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6305 stored as char. Eliminates UCS4 truncation and corruption
6306 observed when killing characters with Ctrl-u and yanking them
6309 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6311 Detach optional parts of gfxterm and integrate in with coreboot init.
6313 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6315 Move blit and fill dispatcher to appropriate files to decrease export
6316 and relocation overhead.
6318 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6320 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6323 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6325 * grub-core/Makefile.am: Fix compilation problem with some
6328 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6330 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6332 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6334 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6337 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6339 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6342 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6344 * grub-core/partmap/dfly.c: New partition map.
6346 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6348 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6350 Reported by: Francesco Lavra.
6352 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6354 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6355 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6357 * conf/Makefile.common: define dist_grubconf_DATA
6359 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6361 Progressively skip menu elements on small terminals rather
6364 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6366 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6367 to avoid losing last column.
6369 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6371 * po/exclude.pot: Add missing string "%C".
6373 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6375 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6378 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6380 * util/grub-install.in: Gettextize "Not found" message.
6382 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6385 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6387 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6389 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6391 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6393 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6395 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6397 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6399 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6400 attribute since structure is not necessarily aligned.
6402 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6404 * docs/grub.texi (Device syntax): Clarify description of network
6407 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6409 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6410 for vasprintf presence.
6412 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6414 * util/grub-install.in: Handle efibootmgr presence check.
6415 Reported by: Leif Lindholm.
6417 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6419 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6420 new strings to translate.
6422 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6424 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6425 yet another string (pun intended) to translate.
6427 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6429 * po/POTFILES-shell.in: Autogenerate it.
6431 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6433 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6435 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6437 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6440 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6442 * docs/grub.texi (Network): Add description of net_default_interface,
6443 net_default_ip and net_default_mac. Rewrite variables description
6444 to emphasize that they are per-interface.
6446 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6448 New test: cmdline and cat.
6450 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6452 * grub-core/commands/cat.c: Show UTF-8 characters.
6454 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6456 * conf/Makefile.common: Poison float and double on non-emu.
6458 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6460 * configure.ac: Don't disable extended registers on emu.
6462 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6464 * configure.ac: Don't use extended registers on x86_64.
6465 Reported by: Peter Jones.
6467 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6469 * grub-core/term/efi/console.c: Fix compile error.
6471 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6473 Compressed HFS+ support.
6475 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6477 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6480 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6484 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6486 * grub-core/tests/setjmp_test.c: New test.
6488 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6490 New variables 'net_default_*' to determine MAC/IP of default interface.
6492 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6494 * tests/gettext_strings_test.in: A test to check for strings not
6495 marked for translation.
6497 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6499 * autogen.sh: Exclude unused libgcrypt files from translation.
6501 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6503 Simplify few strings.
6505 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6507 Mark few forgotten strings for translation.
6509 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6511 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6514 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6516 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6518 * grub-core/video/readers/tga.c: Likewise.
6520 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6522 * tests/priority_queue_unit_test.cc: New test.
6524 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6526 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6529 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6531 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6532 variable for one time boot menu entry.
6534 2013-05-05 Bean <bean123ch@gmail.com>
6536 * grub-core/commands/testspeed.c: New command testspeed.
6538 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6540 Factor-out human-size printing.
6542 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6544 Agglomerate more mallocs to speed-up gfxterm.
6546 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6548 Speed-up gfxterm by slightly agglomerating mallocs.
6550 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6554 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6556 Speed-up gfxterm by saving intermediate results in index+alpha
6559 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6561 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6564 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6566 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6567 line of timeout as it may contain the rest of long line.
6569 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6571 * grub-core/normal/main.c: Fix freed memory dereference.
6573 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6575 Fix several memory leaks.
6577 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6579 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6581 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6583 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6585 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6587 Fix test -a and -o precedence.
6588 Reported by: adrian15.
6590 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6592 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6594 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6596 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6597 and add it as source to functional_test module.
6599 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6601 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6603 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6605 New series of tests for gfxterm and gfxmenu.
6607 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6609 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6610 the theme path relative to $prefix/themes.
6612 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6614 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6616 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6618 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6620 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6623 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6625 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6626 grub_gfxmenu_timeout_notifications.
6627 (grub_gfxmenu_view_destroy): Likewise.
6629 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6631 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6633 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6635 Several fixes to ieee1275 and big-endian video.
6637 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6639 Add missing exports on mips.
6641 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6643 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6644 if no unifont is found.
6645 Restore original keyboard.
6647 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6649 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6650 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6652 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6654 First automated video test (running videotest and comparing results)
6656 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6658 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6659 instead of 2 to have full RGB/CMY test pattern.
6661 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6665 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6667 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6668 ARCS. All users updated.
6670 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6672 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6674 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6676 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6678 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6680 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6681 Reported by: qwertial.
6683 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6685 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6686 with syntax "XXX deg"/"XXX °".
6688 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6690 Make PCI init in i386-qemu port more robust.
6692 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6694 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6695 cached view is reused.
6696 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6699 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6701 Unify more code in grub-install_header.
6703 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6707 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6709 Enforce disabling of firmware disk drivers when native drivers kick in.
6711 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6713 * grub-core/commands/nativedisk.c: Customize the list of modules on
6714 platform. Don't try to search for disks already using native drivers.
6716 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6718 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6721 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6723 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6724 handling of variables containing backslash.
6726 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6728 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6730 Reported by: qwertial.
6732 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6734 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6736 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6738 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6740 Reported by: qwertial.
6742 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6744 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6746 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6748 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6750 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6752 New command `nativedisk'.
6754 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6756 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6757 * grub-core/loader/i386/bsd.c: Likewise.
6759 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6761 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6763 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6765 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6766 grub_get_unaligned16 rather than shifts.
6768 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6770 * grub-core/kern/file.c: Use const char * rather than casting to
6773 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6775 * grub-core/commands/probe.c: Add missing grub_device_close.
6777 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6779 * INSTALL: Document linguas.sh.
6781 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6783 Remove POTFILES.in and regenerate it in autogen.sh.
6785 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6787 Move --directory/--override-directorry to grub-install_header and unify.
6789 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6791 * grub-core/term/morse.c: Macroify dih and dah.
6793 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6795 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6797 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6799 * grub-core/term/ns8250.c: Systematically probe ports by writing
6800 to SR before using them.
6802 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6804 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6806 (check_sas): Get sas_adress info.
6808 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6810 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6813 2013-04-27 Leon Drugi <eyak>
6815 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6818 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6820 Core compression test.
6822 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6824 Implement grub_machine_get_bootlocation for ARC.
6826 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6828 Improve AHCI detection and command issuing.
6830 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6834 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6836 Make 'make check' work on emu.
6838 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6840 Replace libcurses with our own vt100 handling for the ease of testing
6841 and decreasing prerequisites.
6843 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6845 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6847 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6849 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6850 compile when not needed.
6852 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6854 * tests/pseries_test.in: New test.
6856 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6858 Add test to check that different boot mediums work.
6860 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6862 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6863 ofw limited ISO support.
6865 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6867 * configure.ac: Fix loongson conditional.
6869 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6873 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6875 Add serial on ARC platform.
6877 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6879 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6882 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6884 * tests/partmap_test.in: Add missing double semicolon.
6886 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6888 * util/grub-mkrescue.in: Fix loongson filename.
6890 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6892 * util/grub-mkrescue.in: Move all files that don't have a location
6893 set in stone under /boot/grub. Use ISO hard links rather than copies
6896 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6898 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6901 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6903 Make check work on mips-arc.
6905 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6907 * util/grub-mkrescue.in: Alias sashARCS as sash.
6909 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6911 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6914 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6916 * util/grub-install.in: Fix target fo qemu_mips.
6917 Fix extension on EFI.
6919 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6921 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6922 in front of chosen entry to mark it even if highlighting is lost.
6924 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6926 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6927 gfxpayload=keep if cbfb is active.
6929 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6931 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6933 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6935 Add missing video ids to coreboot and ieee1275 video.
6937 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6939 * util/grub-mkrescue.in: Add mips-arc support.
6941 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6943 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6945 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6947 Move mips-arc link address. Previous link address was chosen
6948 in belief that RAM on SGI platforms grows down while in fact it
6949 grows up from an unusual base.
6951 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6953 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6954 Fix a type which prevented CD-ROM and floppy boot.
6956 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6958 Support coreboot framebuffer.
6960 * grub-core/video/i386/coreboot/cbfb.c: New file.
6962 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6964 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6965 detecting too small regions.
6967 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6969 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6971 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6973 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6975 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6977 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6979 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6980 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6981 * grub-core/loader/powerpc/ieee1275/linux.c
6982 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6984 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6986 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6987 Look for /boot-rom as well as /rom/boot-rom.
6989 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6991 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6992 handling when creating text_layer failed.
6993 * grub-core/video/video.c (grub_video_create_render_target):
6994 Set result to 0 on error.
6995 (grub_video_delete_render_target): Do not dereference NULL.
6997 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6999 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
7000 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
7001 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
7002 (grub_linux_load64): Mask out 2 high bits.
7004 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
7006 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
7009 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7011 Add support for pseries and other bootinfo machines to grub-mkrescue.
7013 Tested by: Paulo Flabiano Smorigo.
7015 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7017 * util/grub-mkrescue.in: Add GPT for EFI boot.
7019 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7021 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
7022 It improves performance in qemu.
7024 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7026 * build-aux/snippet: Add missing gnulib files.
7028 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
7030 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
7032 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
7034 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
7036 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7037 2013-04-15 Peter Jones <pjones@redhat.com>
7039 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
7041 Based on patch by Peter Jones.
7043 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7045 Fix DMRAID partition handling.
7047 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7049 * tests/grub_cmd_date.in: Skip on sparc64.
7051 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7053 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
7054 firmware error messages.
7056 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7058 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
7059 source and destination differ.
7061 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7063 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
7066 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7068 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
7069 match config-util.h to avoid warnings and increase compatibility.
7071 2013-04-14 Szymon Janc <szymon@janc.net.pl>
7072 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7074 Add option to compress files on install/image creation.
7076 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7078 * docs/grub-dev.texi: Rearrange menu to match the section order.
7079 Reported by: Bryan Hundven.
7081 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7083 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
7085 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7087 Move GRUB out of system area when using xorriso 1.2.9 or later.
7089 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7091 * tests/grub_cmd_date.in: Add missing exit 1.
7093 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7095 * tests/partmap_test.in: Skip on sparc64.
7097 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7099 Support grub-shell on sparc64.
7101 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7103 Support mkrescue on sparc64.
7105 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7107 Allow IEEE1275 ports on path even if it wasn't detected automatically.
7108 Needed on OpenBIOS due to incomplete device tree.
7110 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7112 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
7113 would be otherwise excluded.
7115 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7117 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
7118 Inline name defines used only once.
7120 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7122 Fix memory leaks in ofnet.
7123 Reported by: Francesco Lavra.
7125 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7127 * docs/man/grub-glue-efi.h2m: Add missing file.
7129 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7131 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
7133 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7135 Better support Apple Intel Macs on CD.
7137 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7139 Replace stpcpy with grub_stpcpy in tools.
7141 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7143 Handle Japanese special keys.
7144 Reported by: Hiroyuki YAMAMORI.
7145 Codes supplied by: Hiroyuki YAMAMORI.
7147 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7149 * util/grub-mkimage.c: Document memdisk implying --prefix.
7151 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7153 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
7154 much we can do about it anyway.
7156 2013-04-12 Aleš Nesrsta <starous@volny.cz>
7158 Fix handling of split transfers.
7160 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7162 * grub-core/net/http.c: Fix bad free.
7164 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7166 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
7169 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7171 Disable partmap check on i386-ieee1275 due to openfirmware issues.
7173 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7175 * tests/util/grub-shell.in: Fix it on powerpc.
7177 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7179 Turn off QEMU ACPI-way since new releases don't have shutdown port
7182 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7184 * docs/grub.texi: Update coreboot status info.
7186 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7188 * tests/grub_cmd_date.in: New test for datetime.
7190 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7192 * tests/partmap_test.in: Fix missing qemudisk setting.
7194 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7196 Support i386-ieee1275 grub-mkrescue and make check on it.
7198 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7200 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7203 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7205 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7206 GRUB_CMDLINE_XEN_DEFAULT.
7207 Reported by: Marc Warne (GigaTux) <gigatux>
7209 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7213 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7215 Use ACPI shutdown intests as traditional port was removed.
7217 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7219 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7222 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7224 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7225 Fix few warining messages and leaks while on it.
7227 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7229 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7230 links under grub-core/lib/libgcrypt-grub/mpi.
7232 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7234 Fix ia64-efi image generation on big-endian machines. Deduplicate
7235 some code while on it.
7236 Reported by: Leif Lindholm.
7238 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7240 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7243 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7245 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7247 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7249 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7252 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7254 * grub-core/normal/term.c: Few more fixes for menu entry editor
7256 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7258 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7260 * grub-core/normal/term.c: Few more fixes for menu entry editor
7262 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7264 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7266 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7267 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7269 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7271 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7272 instead of hardcoding grub.mo.
7274 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7276 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7278 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7280 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7281 grub-core/disk/geli.c.
7283 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7285 * util/grub-mkfont.c: Prefer enum to #define.
7287 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7289 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7291 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7293 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7295 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7297 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7299 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7301 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7303 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7305 * include/grub/bsdlabel.h: Use enums.
7307 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7309 Move GRUB_CHAR_BIT to types.h.
7311 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7313 * docs/grub.texi: Document more user commands.
7315 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7317 * docs/grub.texi: Document menuentry --id option.
7319 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7321 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7323 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7325 Unify file copying setup across different install scripts. Add
7326 options for performing partial install.
7328 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7329 2013-04-04 Peter Jones <pjones@redhat.com>
7331 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7333 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7335 Use TSC as a possible time source on i386-ieee1275.
7337 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7339 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7342 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7344 * util/grub-setup.c (setup): Handle some corner cases.
7346 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7348 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7350 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7352 * grub-core/commands/verify.c: Save verified file to avoid it being
7353 tampered with after verification was done.
7355 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7357 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7358 reported width by one to compensate for curesor algorithm problem.
7360 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7362 Fix screen corruption in menu entry editor and simplify the code
7365 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7367 * util/grub-mount.c (fuse_init): Return error if fuse_main
7370 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7372 * include/grub/elf.h: Add missing ARM relocation codes and fix
7375 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7377 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7379 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7380 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7382 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7383 into account when calculating radius.
7385 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7387 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7389 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7391 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7393 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7395 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7396 missing closing bracket.
7398 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7400 * INSTALL: Mention xorriso requirement.
7402 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7404 * grub-core/commands/verify.c: Fix hash algorithms values for
7405 the first three hashes - they start with 1, not with 0.
7407 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7409 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7410 Try terminating EFI services several times due to quirks in some
7413 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7415 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7416 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7417 BankField extended opcodes.
7418 (get_sleep_type): Add minimal scope handling (just enough to
7419 handle setting the scope to the root path).
7420 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7421 * include/grub/acpi.h: Add enumeration values for Event, Device,
7422 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7424 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7426 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7429 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7431 * grub-core/disk/ahci.c: Give more time for AHCI request.
7433 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7435 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7438 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7440 Replace the region at 0 from coreboot tables to available in BSD
7443 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7445 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7448 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7450 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7453 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7455 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7456 handling of multi-device filesystems.
7458 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7460 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7463 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7465 Add new 'proc' filesystem framework and put luks_script into it.
7467 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7469 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7472 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7474 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7476 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7478 Add ability to generate newc additions on runtime.
7480 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7482 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7485 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7487 * po/POTFILES.in: Regenerate.
7489 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7491 * grub-core/commands/verify.c (hashes): Add several hashes
7494 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7496 Slight improve in USB-related boot-time checkpoints.
7498 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7500 * grub-core/commands/boottime.c: Fix copyright header.
7502 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7504 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7505 coreboot tables content. Support for cbmemc.
7507 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7509 Fix a conflict between ports structures with 2 controllers of
7512 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7514 * include/grub/boottime.h: Add missing file.
7516 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7518 Initialize USB ports in parallel to speed-up boot.
7520 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7522 Fix USB devices not being detected when requested
7523 due to delayed attach.
7525 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7527 Implement boot time analysis framework.
7529 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7531 Remove get_endpoint_descriptor and change all functions needing
7532 descriptor to just receive it as argument rather than endpoint
7535 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7537 Better estimate the maximum USB transfer size.
7539 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7541 Resend a packet if we got the wrong buffer in status.
7543 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7545 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7546 multiplication rather than division.
7548 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7550 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7553 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7555 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7556 operations to have intended shifts and not divisions.
7558 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7560 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7561 intended shifts rather than division.
7563 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7565 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7566 computation for some years before epoch. Avode confusing division
7569 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7571 * grub-core/video/i386/pc/vbe.c
7572 (grub_video_vbe_print_adapter_specific_info): Replace division by
7575 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7577 Adjust types in gdb module to have intended unsigned shifts rather than
7580 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7582 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7583 maximum size is 4G - 1 on hfs
7585 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7587 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7589 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7591 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7594 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7596 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7597 causing gcc error with gcc 4.7.1.
7599 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7601 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7602 dereference null pointer. While the code is technically correct, gcc
7603 may eliminate a null check if pointer is already dereferenced.
7605 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7607 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7609 * grub-core/normal/term.c (read_terminal_list): Likewise.
7611 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7613 Lift up core size limits on some platforms. Fix potential memory
7614 corruption with big core on small memory systems. Document remaining
7617 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7619 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7622 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7624 Remove all trampoline support. Add -Wtrampolines when
7625 present. Remove symbols used for trampolines to make
7626 link fail if trampolines are present.
7628 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7630 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7631 append out of its parent.
7633 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7635 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7638 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7640 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7641 all vars to a macro. All users updated.
7643 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7645 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7648 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7650 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7652 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7654 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7656 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7658 Move to more hookless approach in IEEE1275 devices handling.
7660 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7662 * grub-core/kern/term.c (grub_term_normal_color),
7663 (grub_term_highlight_color): Add back lost defaults.
7665 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7667 Make elfload not use hooks. Opt for flags and iterators instead.
7669 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7671 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7672 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7674 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7676 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7678 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7680 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7681 hook pass-through parameter. All users updated and unnested.
7683 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7685 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7688 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7690 * grub-core/fs/hfs.c: Remove nested functions.
7692 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7694 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7695 the context through.
7696 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7698 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7700 * util/grub-editenv.c (list_variables): Move print_var out of its
7703 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7705 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7708 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7710 * grub-core/gentrigtables.c: Make tables const.
7712 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7714 Remove nested functions from videoinfo iterators.
7716 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7718 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7719 for 64-bit platforms.
7721 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7723 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7724 a FOR_CHILDREN macro.
7726 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7728 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7729 platform from firmware path.
7731 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7733 Enable linux16 on non-BIOS systems for i.a. memtest.
7735 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7737 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7739 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7741 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7742 Fix end of table condition.
7744 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7746 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7749 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7751 * grub-core/fs/jfs.c: Remove nested functions.
7753 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7755 * grub-core/fs/minix.c: Remove nested functions.
7757 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7759 * grub-core/fs/iso9660.c: Remove nested functions.
7761 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7763 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7766 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7768 * util/grub-fstest.c: Remove nested functions.
7770 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7772 * grub-core/loader/machoXX.c: Remove nested functions.
7774 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7776 Remove nested functions from disk and file read hooks.
7778 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7779 (struct grub_disk): Add read_hook_data member.
7780 * include/grub/file.h (struct grub_file): Likewise.
7781 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7786 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7788 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7789 Fix off by one error in enumerating extended partitions.
7791 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7793 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7794 memory leak if device name is not found.
7796 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7798 * grub-core/normal/menu_entry.c (update_screen): remove
7799 unused variable `off' which caused scroll down arrow to be always shown.
7801 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7803 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7804 access to unallocated memory.
7806 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7808 * Makefile.util.def: Add partmap/msdos.c to common library.
7809 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7810 * grub-core/disk/ldm.c: Check for existence of
7811 GRUB_PC_PARTITION_TYPE_LDM.
7813 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7815 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7816 sizes and display sector size.
7818 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7820 Implement new command cmosdump.
7822 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7824 Support Openfirmware disks with non-512B sectors.
7826 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7828 * (grub_ofdisk_get_block_size): New function.
7829 * (grub_ofdisk_prepare): Use the correct block size.
7830 * (grub_ofdisk_read): Likewise.
7831 * (grub_ofdisk_write): Likewise.
7832 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7835 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7837 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7839 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7841 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7844 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7846 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7849 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7851 Implement USBDebug (full USB stack variant).
7853 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7855 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7856 unless they have unexpected values.
7858 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7860 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7863 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7865 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7866 zero-out of port structure.
7868 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7870 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7871 of extended attributes.
7873 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7875 * util/grub-install.in: change misleading comment about
7878 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7880 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7881 when menu highlight color isn't set.
7883 2013-01-27 C. Masloch <pushbx@38.de>
7885 Improve FreeDOS direct loading support compatibility.
7887 * include/grub/i386/relocator.h (grub_relocator16_state):
7889 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7891 (grub_relocator16_boot): Handle %ebp.
7892 * grub-core/lib/i386/relocator16.S: Likewise.
7893 * grub-core/loader/i386/pc/freedos.c:
7894 Load BPB to pass kernel which partition to load from.
7895 Check that kernel file is not too large.
7896 Set register dl to BIOS unit number as well.
7898 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7900 * util/grub-reboot.in (usage): Document the need for
7902 * util/grub-set-default.in (usage): Likewise.
7903 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7905 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7907 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7908 than defining WORDS_BIGENDIAN manually.
7910 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7912 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7915 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7917 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7919 (blit_comb: add_device_width): Likewise.
7921 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7923 Remove nested functions from USB iterators.
7925 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7926 (grub_usb_controller_iterate_hook_t): Likewise.
7927 (grub_usb_iterate): Add hook_data argument.
7928 (grub_usb_controller_iterate): Likewise.
7929 (struct grub_usb_controller_dev.iterate): Likewise.
7931 Update all implementations and callers.
7933 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7935 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7936 margin when not needed.
7938 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7940 Make color variables global instead of it being per-terminal.
7942 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7944 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7947 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7949 Fix powerpc and sparc64 build failures caused by un-nesting memory
7952 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7954 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7955 parameter declarations.
7957 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7959 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7961 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7963 Improve spkmomdem reliability by adding a separator between bytes.
7965 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7967 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7968 an Acer registration utility with several sightings in the wild.
7969 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7971 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7973 Remove nested functions from filesystem directory iterators.
7975 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7976 (struct grub_fs.dir): Add hook_data argument.
7978 Update all implementations and callers.
7980 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7982 * docs/grub.texi (Multi-boot manual config): Fix typo for
7985 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7987 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7988 until after its use in generate_image.
7990 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7992 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7993 initrd size to addr_min, since the initrd will be allocated after
7996 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7998 * conf/Makefile.common: Fix autogen rules to pass definition
7999 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
8001 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
8003 * include/grub/elf.h: Update ARM definitions based on binutils.
8005 2013-01-20 Aleš Nesrsta <starous@volny.cz>
8007 Split long USB transfers into short ones.
8009 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
8011 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
8012 is interrupted by ESC.
8014 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8016 * util/grub-script-check.c (main): Uniform the error message.
8018 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
8020 Remove nested functions from ELF iterators.
8022 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
8024 Remove nested functions from device iterators.
8026 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
8027 (grub_arc_iterate_devs): Add hook_data argument.
8028 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
8029 (struct grub_ata_dev.iterate): Add hook_data argument.
8030 * include/grub/device.h (grub_device_iterate_hook_t): New type.
8031 (grub_device_iterate): Add hook_data argument.
8032 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
8033 (struct grub_disk_dev.iterate): Add hook_data argument.
8034 (grub_disk_dev_iterate): Likewise.
8035 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
8037 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
8039 * include/grub/partition.h (grub_partition_iterate_hook_t): New
8041 (struct grub_partition_map.iterate): Add hook_data argument.
8042 (grub_partition_iterate): Likewise.
8043 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
8044 (struct grub_scsi_dev.iterate): Add hook_data argument.
8048 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
8050 Fix typos for "developer" and "development".
8052 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8054 Add license header to spkmodem-recv.c.
8056 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
8058 Rewrite spkmodem to use PIT for timing. Double the speed.
8060 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8062 Add new command pcidump.
8064 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8066 New terminal outputs using serial: morse and spkmodem.
8068 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8070 Improve bidi handling in entry editor.
8072 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8074 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
8075 argument to prevent name collision.
8077 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
8079 Remove nested functions from script reading and parsing.
8081 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
8082 getline_data argument, passed to getline.
8083 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
8084 getline_data argument, passed to grub_parser_split_cmdline.
8085 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
8086 lexerstate->getline_data to lexerstate->getline.
8087 (grub_script_lexer_init): Add getline_data argument, saved in
8088 lexerstate->getline_data.
8089 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
8090 argument, passed to grub_script_parse.
8091 * grub-core/script/script.c (grub_script_parse): Add getline_data
8092 argument, passed to grub_script_lexer_init.
8093 * include/grub/parser.h (grub_parser_split_cmdline): Update
8094 prototype. Update all callers to pass appropriate getline data.
8095 (struct grub_parser.parse_line): Likewise.
8096 (grub_rescue_parse_line): Likewise.
8097 * include/grub/reader.h (grub_reader_getline_t): Add void *
8099 * include/grub/script_sh.h (struct grub_lexer_param): Add
8100 getline_data member.
8101 (grub_script_parse): Update prototype. Update all callers to pass
8102 appropriate getline data.
8103 (grub_script_lexer_init): Likewise.
8104 (grub_normal_parse_line): Likewise.
8106 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
8108 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
8109 static instead of nested. Rename to ...
8110 (grub_parser_execute_getline): ... this.
8111 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
8113 * grub-core/normal/main.c (read_config_file: getline): Make static
8114 instead of nested. Rename to ...
8115 (read_config_file_getline): ... this.
8116 (grub_normal_read_line): Add unused data argument.
8117 * grub-core/script/execute.c (grub_script_execute_sourcecode:
8118 getline): Make static instead of nested. Rename to ...
8119 (grub_script_execute_sourcecode_getline): ... this.
8120 * util/grub-script-check.c (main: get_config_line): Make static
8123 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
8125 Remove nested functions from memory map iterators.
8127 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
8128 argument, passed to hook.
8129 * grub-core/kern/i386/coreboot/mmap.c
8130 (grub_linuxbios_table_iterate): Likewise.
8131 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
8133 (grub_machine_mmap_iterate): Add hook_data argument.
8134 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
8135 Add hook_data argument, passed to hook.
8136 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
8138 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
8140 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
8142 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
8144 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
8146 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
8148 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
8149 (grub_machine_mmap_iterate): Likewise.
8150 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
8151 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
8153 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
8154 Remove NESTED_FUNC_ATTR from here and from all users.
8155 (grub_mmap_iterate): Update prototype.
8156 (grub_efi_mmap_iterate): Update prototype. Update all callers to
8157 pass appropriate hook data.
8158 (grub_machine_mmap_iterate): Likewise.
8160 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
8161 static instead of nested.
8162 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
8164 (lsmmap_hook): ... this.
8165 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
8167 (grub_efiemu_mmap_fill: fill_hook): Likewise.
8168 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
8169 heap_init): Likewise.
8170 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
8172 (mmap_iterate_hook): ... this.
8173 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
8175 * grub-core/lib/ieee1275/relocator.c
8176 (grub_relocator_firmware_get_max_events: count): Likewise.
8177 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
8179 (grub_relocator_firmware_fill_events_iter): ... this.
8180 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
8181 hook): Likewise. Rename to ...
8182 (grub_relocator_alloc_chunk_align_iter): ... this.
8183 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
8185 (generate_e820_mmap_iter): ... this.
8186 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
8188 (count_hook): ... this.
8189 (grub_linux_boot: hook): Likewise. Rename to ...
8190 (grub_linux_boot_mmap_find): ... this.
8191 (grub_linux_boot: hook_fill): Likewise. Rename to ...
8192 (grub_linux_boot_mmap_fill): ... this.
8193 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8194 hook): Likewise. Rename to ...
8195 (grub_fill_multiboot_mmap_iter): ... this.
8196 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8197 hook): Likewise. Rename to ...
8198 (count_hook): ... this.
8199 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8200 hook): Likewise. Rename to ...
8201 (grub_fill_multiboot_mmap_iter): ... this.
8202 * grub-core/loader/powerpc/ieee1275/linux.c
8203 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8204 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8205 Likewise. Rename to ...
8206 (alloc_phys_choose): ... this.
8207 (determine_phys_base: get_physbase): Likewise.
8208 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8209 find_hook): Likewise.
8210 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8211 (malloc_hook: count_hook): Likewise.
8212 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8213 Likewise. Rename to ...
8214 (lower_hook): ... this.
8215 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8216 (upper_hook): ... this.
8217 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8218 (post64_hook): ... this.
8219 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8220 Likewise. Rename to ...
8221 (lower_hook): ... this.
8222 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8223 (upper_hook): ... this.
8224 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8225 (grub_mmap_iterate: fill_hook): Likewise.
8226 (fill_mask): Pass addr and mask within a single struct.
8227 (grub_cmd_badram: hook): Make static instead of nested. Rename
8229 (badram_iter): ... this.
8230 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8231 (cutmem_iter): ... this.
8233 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8235 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8236 delimit path in strings using quotes.
8237 * util/getroot.c (grub_guess_root_devices): Likewise.
8238 (grub_make_system_path_relative_to_its_root): Likewise.
8239 * util/grub-probe.c (probe): Likewise.
8240 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8241 (xrealpath): Likewise.
8243 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8245 Fix compilation with older compilers.
8247 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8248 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8250 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8251 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8252 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8254 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8255 * include/grub/crypto.h: Add type defines.
8256 * util/import_gcrypth.sed: Remove duplicate type defines.
8258 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8260 New command list_trusted.
8262 * grub-core/commands/verify.c (grub_cmd_list): New function.
8264 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8266 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8269 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8271 Remove nested functions from PCI iterators.
8273 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8274 passed to hook. Update all callers to pass appropriate hook data.
8275 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8276 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8277 Remove NESTED_FUNC_ATTR from here and from all users.
8278 (grub_pci_iterate): Update prototype.
8279 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8280 instead of nested. Rename to ...
8281 (grub_cs5536_find_iter): ... this.
8282 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8283 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8285 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8287 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8289 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8291 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8292 * grub-core/video/radeon_fuloong2e.c
8293 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8294 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8295 find_card): Likewise.
8296 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8299 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8301 * grub-core/commands/verify.c: Mark messages for translating.
8303 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8305 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8308 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8310 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8313 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8315 * autogen.sh: Do not try to delete nonexistant files.
8316 * util/import_gcrypth.sed: Add some missing header removals.
8318 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8320 Clean up dangling references to grub-setup.
8321 Fixes Ubuntu bug #1082045.
8323 * docs/grub.texi (Images): Refer generally to grub-install rather
8324 than directly to grub-setup.
8325 (Installing GRUB using grub-install): Remove direct reference to
8327 (Device map) Likewise.
8328 (Invoking grub-install): Likewise.
8329 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8330 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8331 * util/grub-install.in (usage): Likewise.
8333 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8334 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8336 * configure.ac: Remove grub_setup output variable.
8338 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8340 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8341 grub-setup to grub-sparc64-setup.
8343 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8345 Import gcrypt public-key cryptography and implement signature checking.
8347 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8349 * grub-core/fs/ntfs.c: Ue more appropriate types.
8350 * grub-core/fs/ntfscomp.c: Likewise.
8351 * include/grub/ntfs.h: Likewise.
8353 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8355 Support Apple FAT binaries on non-Apple platforms.
8357 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8358 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8360 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8363 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8365 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8368 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8370 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8371 explicitly zeroing elements.
8372 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8373 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8374 of elements in a structure already allocated using grub_zalloc.
8375 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8377 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8379 * docs/grub.texi (grub_cpu): New subsection.
8380 (grub_platform): Likewise.
8382 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8384 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8386 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8388 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8391 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8393 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8394 * grub-core/fs/ntfscomp.c: Likewise.
8395 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8396 (grub_ntfs_comp): Likewise.
8398 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8400 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8402 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8403 of groups_per_block. All users updated.
8405 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8407 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8408 grub_error properly.
8409 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8410 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8412 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8414 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8415 always in /boot/zfs.
8416 Reported by: Yuta Satoh.
8418 2013-01-03 Yuta Satoh <nigoro>
8420 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8423 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8425 * configure.ac: Extend -Wno-trampolines to host.
8427 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8429 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8432 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8434 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8435 (Invoking grub-script-check): Likewise.
8437 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8439 * docs/grub.texi (Invoking grub-mount): New section.
8440 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8442 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8444 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8445 test failures, so that a failing unit test correctly causes 'make
8448 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8450 Fix failing printf test.
8452 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8453 '$' in the correct order when collecting type information.
8455 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8457 * docs/grub.texi (configfile): Explain environment variable
8459 (source): New section.
8460 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8462 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8464 Remove several trivially-unnecessary uses of nested functions.
8466 * grub-core/commands/i386/pc/sendkey.c
8467 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8469 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8471 (legacy_file_getline): ... this.
8472 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8474 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8475 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8477 (probe_dummy_iter): ... this.
8478 * grub-core/kern/i386/coreboot/mmap.c
8479 (grub_linuxbios_table_iterate: check_signature): Likewise.
8480 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8481 check_varstate): Likewise. Mark inline.
8482 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8483 an additional parameter.
8484 (find_long: fnd_long): Likewise. Pass two additional parameters.
8485 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8486 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8487 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8488 Likewise. Rename to ...
8489 (grub_cmos_find_port_iter): ... this.
8490 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8492 (find_rtc_iter): ... this.
8494 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8495 function directly into the function body, since it is only called
8498 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8500 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8501 __attribute__ ((unused)).
8502 * grub-core/video/bochs.c (find_card): Likewise.
8503 * grub-core/video/cirrus.c (find_card): Likewise.
8504 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8505 * grub-core/video/sis315pro.c (find_card): Likewise.
8506 * grub-core/video/sm712.c (find_card): Likewise.
8508 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8510 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8511 Fixes Savannah bug #37821.
8513 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8515 Apply program name transformations at build-time rather than at
8516 run-time. Fixes Debian bug #696465.
8518 * acinclude.m4 (grub_TRANSFORM): New macro.
8519 * configure.ac: Create output variables with transformed names for
8521 * util/bash-completion.d/grub-completion.bash.in: Use
8522 pre-transformed variables for program names.
8523 * util/grub-install.in: Likewise.
8524 * util/grub-kbdcomp.in: Likewise.
8525 * util/grub-mkconfig.in: Likewise.
8526 * util/grub-mkconfig_lib.in: Likewise.
8527 * util/grub-mknetdir.in: Likewise.
8528 * util/grub-mkrescue.in: Likewise.
8529 * util/grub-mkstandalone.in: Likewise.
8530 * util/grub-reboot.in: Likewise.
8531 * util/grub-set-default.in: Likewise.
8532 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8533 * tests/util/grub-shell-tester.in: Remove unused assignment.
8534 * tests/util/grub-shell.in: Likewise.
8535 * util/grub.d/00_header.in: Likewise.
8537 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8539 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8541 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8543 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8545 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8547 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8548 Reported by: Eriks Latosheks <foresterlv>.
8550 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8552 * docs/grub.texi (Network): Update instructions on generating netboot
8555 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8557 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8558 around device name if necessarry.
8560 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8562 * util/grub-install.in: Follow the symbolic link parameter added
8563 to the file command.
8565 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8567 * util/grub-install.in: Remove stale TODO.
8569 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8571 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8572 dynamic allocation for the bootpath buffer.
8574 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8576 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8579 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8581 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8582 argument rather than font name. All users updated.
8583 (grub_gfxterm_set_window): Likewise.
8585 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8587 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8590 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8592 * util/getroot.c (convert_system_partition_to_system_disk): Support
8595 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8597 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8598 infinite loop on corrupted FS.
8600 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8602 Fix big-endian mtime.
8604 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8605 together sec and usec.
8606 (grub_ufs_dir): Use correct byteswapping for UFS time.
8608 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8610 Support big-endian UFS1.
8612 * Makefile.util.def (libgrubmods): Add ufs_be.c
8613 * grub-core/Makefile.core.def (ufs1_be): New module.
8614 * grub-core/fs/ufs_be.c: New file.
8615 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8618 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8620 * include/grub/types.h: Fix functionality unaffecting typo in
8621 GRUB_TARGET_WORDSIZE conditional macro.
8623 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8625 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8627 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8629 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8630 that /netbsd appears first (when it exists).
8632 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8634 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8635 Fixes Savannah bug #37558.
8637 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8639 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8640 description of extract_entries_configfile.
8642 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8644 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8646 (grub_cmd_linux): Likewise.
8647 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8648 preferred_lifetime. Update all users.
8650 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8652 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8653 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8655 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8657 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8658 errors from grub-probe to /dev/null, not stdout.
8660 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8662 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8665 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8667 * util/grub-install.in: Make the error message if $source_dir
8668 doesn't exist more useful.
8670 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8672 Fix grub-emu build on FreeBSD.
8674 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8675 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8677 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8678 implementation is currently Linux-specific.
8679 * util/getroot.c (exec_pipe): Define only on Linux or when either
8680 libzfs or libnvpair is unavailable.
8681 (find_root_devices_from_poolname): Remove unused path variable.
8683 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8685 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8686 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8687 should fit before end == 63.
8689 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8691 * util/grub-setup.c (write_rootdev): Remove unused core_img
8692 parameter. Update all callers.
8693 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8694 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8697 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8699 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8700 (grub_add_tab): New function.
8701 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8702 * util/grub.d/10_illumos.in: Likewise.
8703 * util/grub.d/10_kfreebsd.in: Likewise.
8704 * util/grub.d/10_linux.in: Likewise.
8705 * util/grub.d/10_netbsd.in: Likewise.
8706 * util/grub.d/10_windows.in: Likewise.
8707 * util/grub.d/10_xnu.in: Likewise.
8708 * util/grub.d/20_linux_xen.in: Likewise.
8709 * util/grub.d/30_os-prober.in: Likewise.
8711 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8713 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8714 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8715 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8716 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8717 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8719 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8720 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8722 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8724 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8726 Reported by: BURETTE, Bernard.
8728 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8730 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8733 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8735 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8736 IEEE1275 machines. Fixes powerpc-emu compilation.
8737 * include/grub/terminfo.h: Likewise.
8739 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8741 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8743 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8745 (efiemu_set_variable): Make vendor_guid a const pointer.
8747 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8749 Don't require grub-mkconfig_lib to generate manpages for programs.
8751 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8752 dependencies, don't add grub-mkconfig_lib.
8753 (program): Pass empty adddeps.
8754 (script): Pass grub-mkconfig_lib as adddeps.
8756 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8758 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8759 * util/getroot.c (grub_find_device): Likewise.
8760 (get_mdadm_uuid): Likewise.
8761 (grub_util_is_imsm): Likewise.
8762 (grub_util_pull_device): Likewise.
8763 * util/grub-probe.c (probe): Likewise.
8765 2012-09-10 Benoit Gschwind <gschwind>
8767 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8768 (devs): Add devpath_8.
8770 2012-09-08 Peter Jones <pjones@redhat.com>
8772 * grub-core/Makefile.core.def (efifwsetup): New module.
8773 * grub-core/commands/efi/efifwsetup.c: New file.
8774 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8775 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8777 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8779 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8781 * configure.ac: Add SuSe path.
8783 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8787 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8789 * util/import_gcry.py: Sort cipher_files, to make build system
8790 generation more deterministic.
8792 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8794 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8795 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8796 (grub_set_datetime): Likewise.
8798 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8800 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8803 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8805 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8807 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8809 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8811 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8813 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8814 required for checkouts from bzr, but it may be useful for users or
8815 distributors wishing to update translations against a tarball
8816 distribution, and it can be helpful for the tarball to be a superset
8819 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8821 * Makefile.am (EXTRA_DIST): Add
8822 grub-core/tests/boot/linux.init-mips.S,
8823 grub-core/tests/boot/linux.init-ppc.S, and
8824 grub-core/tests/boot/linux-ppc.cfg.
8826 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8828 * grub-core/mmap/mips/loongson: Remove empty directory.
8830 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8832 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8835 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8837 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8840 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8842 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8844 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8846 * po/POTFILES.in: Regenerated.
8848 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8850 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8851 (NetBSD): New subsection.
8853 2012-07-22 Ales Nesrsta <starous@volny.cz>
8855 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8856 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8858 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8860 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8861 * util/grub.d/10_hurd.in: Add missing quoting.
8862 * util/grub.d/10_illumos.in: Likewise.
8863 * util/grub.d/10_kfreebsd.in: Likewise.
8864 * util/grub.d/10_linux.in: Likewise.
8865 * util/grub.d/20_linux_xen.in: Likewise.
8867 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8869 New command `lsefi'.
8871 * grub-core/Makefile.core.def (lsefi): New module.
8872 * grub-core/commands/efi/lsefi.c: New file.
8873 * include/grub/efi/api.h: Add more GUIDs.
8875 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8877 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8878 (grub_bsd_elf32_hook): Likewise.
8879 (grub_bsd_elf64_size_hook): Likewise.
8880 (grub_bsd_elf64_hook): Likewise.
8881 (grub_bsd_load_elf): Likewise.
8883 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8885 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8886 if hash function is unavailable.
8887 (dec_stream_header): Likewise.
8889 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8891 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8894 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8896 Fix coreboot compilation.
8898 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8899 (grub_vga_text_init_real): ... this.
8900 (grub_vga_text_fini): Rename to ...
8901 (grub_vga_text_fini_real): ... this.
8903 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8905 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8907 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8909 * grub-core/lib/legacy_parse.c: Support clear and testload.
8911 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8913 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8915 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8917 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8919 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8921 * grub-core/net/tftp.c (ack): Fix endianness problem.
8922 (tftp_receive): Likewise.
8923 Reported by: Michael Davidsaver.
8925 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8927 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8929 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8931 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8932 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8933 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8935 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8937 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8939 Reported by: Stuart Hayes.
8941 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8943 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8945 * grub-core/Makefile.core.def (mda_text): New module.
8946 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8947 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8948 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8949 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8951 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8952 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8953 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8955 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8957 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8959 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8961 * grub-core/term/i386/vga_common.c: Removed.
8962 * include/grub/i386/vga_common.h: Likewise.
8963 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8964 (grub_vga_cr_bw_read): Likewise.
8965 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8966 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8967 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8968 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8969 grub_vga_cr_read/grub_vga_cr_write.
8970 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8972 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8974 * configure.ac: Bump version to 2.00.
8975 * grub-core/normal/main.c (features): Add feature_200_final.
8977 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8978 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8980 * NEWS: Fix unclarity and language mistakes.
8982 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8984 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8985 additional size to 3 pages.
8986 Reported by: Stuart Hayes.
8988 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8990 * NEWS: Add 2.00 entry.
8992 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8994 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8995 put explicit "/" for empty path.
8996 (wildcard_expand): Improve dprintf.
8998 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
9000 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
9001 it's equal to currnode. This can happen with "" symlink.
9003 2012-06-27 Yves Blusseau <blusseau@zetam.org>
9005 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
9006 echo shell command by printf command.
9008 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9010 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
9011 the value returned by firmware is the maximal position, not diumension.
9012 (grub_terminfo_output_state): Use a more sane fallback.
9014 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9016 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
9018 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9020 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
9021 frequency to 150 MHz.
9023 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9027 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
9029 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
9031 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
9033 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9035 Handle slash in HFS label.
9037 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
9038 (grub_hfs_dir): Tanslate slash.
9039 (grub_hfs_label): Don't translate slash.
9041 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9043 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
9044 network protocol listing since it introduces problematic dependency on
9047 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9049 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
9051 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9053 Init video early on yeeloong to avoid being rebooted by watchdog.
9055 * grub-core/Makefile.am (gensm712): New target.
9056 (sm712_start.S): Likewise.
9057 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
9058 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
9059 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
9061 * include/grub/vga.h: Move registry definitions to...
9062 * include/grub/vgaregs.h: ... here.
9064 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9066 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
9069 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9071 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
9072 platforms with firmware disk drivers in the core.
9074 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9076 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
9077 informative verbose message.
9078 (read_lv): Handle 64-bit segment size.
9080 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9082 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
9084 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9086 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
9087 character but still remove trainling spaces.
9088 (grub_fat_label): Ignore archive flag.
9090 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9092 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
9093 cast between linux_kernel_header and linux_kernel_params.
9095 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9097 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
9099 (grub_raid6_recover_func_t): Likewise.
9100 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
9101 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
9103 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9105 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
9107 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
9111 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
9112 [__NetBSD__]: Add explicit cast before bitshift.
9114 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9116 * configure.ac: Bump to 2.00~rc1.
9118 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9120 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
9123 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9124 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
9126 * docs/grub.texi: Fix search syntax.
9127 (Multi-boot manual config): Put msdos rather than GPT example.
9128 Grammar corrections.
9130 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9132 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
9134 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9136 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
9138 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9140 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
9141 message on double free. Put the value of magic in case of mismatch.
9143 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9145 Speed-up video on yeeloong.
9147 * grub-core/video/sm712.c (framebuffer): Remove render_target and
9149 (grub_video_sm712_video_fini): Unmap cached_ptr.
9150 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
9151 (grub_video_sm712_set_active_render_target): Removed.
9152 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9153 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
9156 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9158 Avoid flushing the same line multiple times on loongson.
9160 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
9161 Step in 32 bytes and not 1 byte.
9162 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
9165 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9167 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
9170 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9172 Implement flow control for http.
9174 * grub-core/net/http.c (parse_line): Handle response 206.
9175 (http_receive): Stall if too many packets are in the queue.
9176 (http_establish): Fix range header.
9177 (http_seek): Fix double free.
9178 (http_close): Likewise.
9179 (http_packets_pulled): New function.
9180 (grub_http_protocol): Set http_seek
9181 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
9182 (ack_real): Set window depending on i_stall.
9183 (grub_net_send_tcp_packet): Likewise.
9184 (grub_net_tcp_stall): New function.
9185 (grub_net_tcp_unstall): Likewise.
9186 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
9187 (grub_net_tcp_unstall): Likewise.
9189 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9191 * grub-core/net/tftp.c: Decrease stall to 50 packets.
9193 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9195 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9197 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9199 * tests/util/grub-shell.in: Fix a typo.
9201 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9203 Implement flow control for tftp.
9205 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9206 packets but stop only if stop condition is satisfied.
9207 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9208 `stall' instead of `eof' as stop condition.
9209 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9210 (http_err): Likewise.
9211 * grub-core/net/tftp.c (ack): Replace the first argument with data
9213 (tftp_receive): Stall if too many packets are in wait queue.
9214 (tftp_packets_pulled): New function.
9215 (grub_tftp_protocol): Set packets_pulled.
9216 * include/grub/net.h (grub_net_packets): New field count.
9217 (grub_net_put_packet): Increment count.
9218 (grub_net_remove_packet): Likewise.
9219 (grub_net_app_protocol): New field `packets_pulled'.
9220 (grub_net): New field `stall'.
9222 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9224 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9225 sync part to handle them.
9227 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9229 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9230 * grub-core/net/drivers/ieee1275/ofnet.c
9231 (grub_ieee1275_net_config_real): Likewise.
9233 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9235 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9236 the direct route for server/gateway.
9238 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9240 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9241 IP address to server name since we may not hame the DNS.
9243 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9245 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9246 freeing random buffer on failure.
9247 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9249 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9251 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9253 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9255 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9257 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9258 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9259 Handle malloc error correctly.
9261 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9263 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9266 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9268 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9271 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9273 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9274 none is explicitly specified.
9276 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9278 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9281 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9283 Respect netmask from bootp/dhcp.
9285 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9286 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9287 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9289 (grub_net_add_ipv4_local): ... this.
9290 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9291 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9292 (grub_net_add_ipv4_local): New proto.
9294 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9296 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9297 determining EFI memory map size.
9299 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9301 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9303 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9305 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9306 when looking for partition separator.
9308 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9310 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9313 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9315 Restructure FAT driver to avoid hook in label reading as it hits a
9318 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9319 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9320 (grub_fat_iterate_dir): Split into ...
9321 (grub_fat_iterate_init): ... this, ...
9322 (grub_fat_iterate_fini): ... this, ...
9323 (grub_fat_iterate_dir_next): ... and this. All users updated.
9325 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9327 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9328 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9329 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9330 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9331 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9332 New fields last_key and last_key_time.
9333 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9334 extended key-esc into extended key-extended key.
9336 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9338 Avoid unnecessary memcpy of whole video buffer.
9340 * grub-core/video/fb/video_fb.c (dirty): New struct.
9341 (framebuffer): Add members current_dirty and previous_dirty.
9342 (dirty): New function.
9343 (grub_video_fb_fill_rect): Update dirty.
9344 (common_blitter): Likewise.
9345 (grub_video_fb_scroll): Likewise.
9346 (doublebuf_blit_update_screen): Copy only dirty part.
9347 (doublebuf_pageflipping_update_screen): Likewise.
9348 (grub_video_fb_doublebuf_blit_init): Init dirty.
9349 (doublebuf_pageflipping_init): Likewise.
9350 (grub_video_fb_setup): Likewise.
9352 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9354 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9357 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9359 Fix wildcard regexp dot and other special characters handling.
9360 Reported by: Robert Mabee.
9362 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9363 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9364 (split_path): Trigger expansion on '?'.
9365 (unescape): New function.
9366 (wildcard_expand): Unescape parts copied without globbing.
9367 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9368 (grub_script_arglist_to_argv): Don't unescape expansions.
9370 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9372 * include/grub/net.h (grub_net_card): New member txbufsize.
9373 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9374 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9375 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9376 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9378 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9379 compatible property to check for macs. Set
9380 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9381 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9382 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9383 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9384 (send_card_buffer): Use txbuf.
9385 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9386 nested function out of the parent while on it.
9388 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9390 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9392 (grub_ieee1275_net_config_real): Fix config pointer.
9394 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9396 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9397 filename parsing to non-block devices.
9399 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9401 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9403 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9405 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9408 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9410 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9411 UUID search command even if hints probing failed.
9413 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9415 * po/POTFILES.in: Regenerated.
9417 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9419 Speed-up video on fuloong.
9421 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9423 (grub_pci_device_unmap_range): Handle non-cached address.
9424 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9426 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9427 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9428 (grub_video_sis315pro_set_active_render_target): Removed.
9429 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9430 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9431 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9433 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9436 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9438 * docs/grub.texi (Multi-boot manual config): New section.
9440 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9442 Avoid slow read-back from VRAM.
9444 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9446 * grub-core/video/fb/video_fb.c
9447 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9448 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9449 (front_target): Remove front_target. Add pages.
9450 (grub_video_fb_init): Skip setting front_pages.
9451 (grub_video_fb_fini): Likewise.
9452 (doublebuf_blit_update_screen): Use pages.
9453 (grub_video_fb_doublebuf_blit_init): Likewise.
9454 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9455 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9456 (grub_video_fb_setup): Prefer doublebuffing.
9458 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9460 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9463 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9467 * tests/util/grub-shell.in: Handle loongson.
9468 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9470 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9471 Reboot instead of shutdown if REBOOT is defined.
9473 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9475 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9476 sized ports since unlike on real hardware qemu supports only 32-bit
9479 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9481 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9482 * util/grub-mkrescue.in: Handle loongson.
9484 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9486 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9487 Set is_part appropriately.
9488 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9489 names. Canonicalize partition without full disk.
9491 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9493 Revert usb-quiesce since it's wrong.
9495 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9496 (grub_ofdisk_init): Don't do quiesce.
9498 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9500 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9501 PowerMac workaround to Xserves as well.
9502 Information supplied by: Benjamin Herrenschmidt.
9504 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9506 Don't assume that beginning address is also the entry point on ppc.
9508 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9509 (grub_linux_boot): Use linux_entry.
9510 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9511 (grub_linux_load64): Likewise.
9513 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9515 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9517 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9519 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9520 needlessly lose the console.
9522 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9524 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9527 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9529 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9530 than current grub_get_rtc() not implemented when booted with
9531 coreboot without TSC.
9533 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9534 Add machine/time.h to kernel headers on loongson.
9535 * grub-core/Makefile.core.def (kernel): Remove
9536 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9537 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9538 (grub_get_rtc): Likewise.
9539 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9540 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9541 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9542 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9543 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9544 rather than installing known non-working time source.
9545 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9546 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9547 * include/grub/time.h: Don't include machine/time.h.
9548 * include/grub/efi/time.h: Removed.
9549 * include/grub/i386/efi/time.h: Likewise.
9550 * include/grub/i386/ieee1275/time.h: Likewise.
9551 * include/grub/powerpc/ieee1275/time.h: Likewise.
9552 * include/grub/sparc64/ieee1275/time.h: Likewise.
9553 * include/grub/x86_64/efi/time.h: Likewise.
9555 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9557 Remove dot on i and j when combining with above diacritics.
9559 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9561 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9562 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9563 with dotless variants when any combining above is present.
9565 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9567 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9568 text and not binary.
9570 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9572 Stop polling as soon as we have the packet we were waiting for.
9574 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9576 * grub-core/net/arp.c (have_pending): New var.
9577 (pending_req): Likewise.
9578 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9580 (grub_net_arp_receive): Set have_pending.
9581 * grub-core/net/dns.c (recv_data): New field stop.
9582 (recv_hook): Set stop.
9583 (grub_net_dns_lookup): Init stop and use as stop condition.
9584 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9586 * grub-core/net/net.c (grub_net_poll_cards): New argument
9587 stop_condition. Stop when it goes true.
9588 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9590 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9592 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9594 Keep TX and RX buffers on EFI rather than always allocate new ones.
9596 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9597 card. All users updated.
9598 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9599 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9600 (get_card_packet): Likewise.
9601 (grub_efinet_findcards): Init new fields.
9603 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9605 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9606 compilation error on sparc64.
9608 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9610 Use ITC on IA64 rather than broken routine based on daytime.
9612 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9614 (grub_get_rtc) [__ia64__]: Likewise.
9615 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9616 (get_itc): New function.
9617 (grub_rtc_get_time_ms): Likewise.
9618 (grub_machine_init): Calibrate ITC.
9619 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9620 Keep only on non-ia64. Don't export since it's broken and used only
9621 if TSC is unavailable.
9623 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9625 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9627 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9628 Skip if parent is unused.
9630 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9632 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9634 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9636 Fix wildcard escaping.
9638 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9639 * grub-core/script/execute.c (wildcard_escape): .. to here.
9641 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9642 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9644 * grub-core/script/execute.c (gettext_append): Always escape.
9645 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9646 * grub-core/script/yylex.l: Don't cut away the escaping.
9647 * tests/grub_script_echo1.in: Add tests with wildcard.
9649 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9651 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9652 (ftdi_hw_configure): Likewise.
9653 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9655 (real_config): Handle 1.5 stop bits.
9656 (pl2303_hw_configure): Likewise.
9658 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9660 * Makefile.am: Add ppc linux bootcheck.
9661 * grub-core/tests/boot/linux-ppc.cfg: New file.
9662 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9664 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9666 * tests/grub_script_expansion.in: Skip network protocols.
9668 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9670 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9672 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9674 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9678 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9680 ESCC serial driver for conducting sautomated tests in qemu.
9681 Not tested on real hardware.
9683 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9684 * grub-core/term/ieee1275/escc.c: New file.
9685 * grub-core/Makefile.core.def (escc): New module.
9687 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9689 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9691 (serial_hw_fetch): Don't read invalid handle.
9692 (serial_hw_put): Don't write into invalid handle.
9694 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9696 Add a 1.5 stop bits value.
9698 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9699 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9700 GRUB_SERIAL_STOP_BITS_1_5.
9702 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9704 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9705 value rather than let it uninited.
9707 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9709 * grub-core/commands/wildcard.c (+check_file): New function.
9710 (wildcard_expand): Don't expand to non-existing files, expand with
9711 suffix and not attempt to expand if not needed.
9713 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9715 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9716 out of partitions containing other partitions.
9718 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9720 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9721 on some qemu versions with GRUB.
9723 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9725 (grub_openbsd_bootarg_pcibios): New struct.
9726 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9729 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9731 * tests/util/grub-shell.in: Trim firmware output on EFI.
9733 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9735 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9736 and coreboot since it's already in kernel.
9738 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9740 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9741 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9742 to here. New return value start. All users updated.
9743 Recursively scan linear mappings.
9744 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9746 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9747 Use grub_util_get_dm_node_linear_info.
9748 * util/getroot.c (convert_system_partition_to_system_disk): Use
9749 grub_util_info rather than grub_dprintf.
9750 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9752 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9754 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9756 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9757 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9759 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9761 * include/grub/types.h (grub_set_unaligned64): New function.
9762 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9765 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9767 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9768 (grub_ofdisk_fini): Quiesce USB devices.
9770 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9772 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9775 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9777 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9779 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9781 * grub-core/disk/pata.c (grub_pata_pio_read)
9782 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9783 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9785 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9787 Extend automated tests to qemu-mips.
9789 * Makefile.am: reorganise tests and enable qemu-mips.
9790 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9791 * grub-core/tests/boot/linux.init-mips.S: New file.
9792 * tests/partmap_test.in: Handle ata0 disks.
9793 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9796 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9798 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9800 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9803 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9805 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9806 (grub_halt): Likewise.
9807 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9809 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9811 * grub-core/term/serial.c (grub_serial_register)
9812 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9813 the behaviour in line with x86 platforms.
9815 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9817 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9818 (grub_ata_strncpy): Likewise.
9819 (grub_ata_identify): Add missing byteswaps.
9821 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9823 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9825 (screen_read_char): Likewise.
9826 (grub_vga_text_cls): Likewise.
9828 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9830 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9832 (make_file_path): Likewise.
9834 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9836 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9838 Tested by: Paulo Flabiano Smorigo.
9839 Crucial information about API supplied by: Coleen <Last name unknown>.
9840 Reviewed by: Coleen <Last name unknown>.
9842 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9844 * util/grub-mkimage.c: Disable -Wcast-align.
9846 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9848 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9851 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9853 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9855 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9857 * util/grub-probe.c (escape_of_path): Fix double free.
9859 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9861 * grub-core/commands/videoinfo.c (hook): Show pitch.
9863 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9865 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9867 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9869 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9870 (probe): Add ieee1275 to OFW devices.
9872 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9874 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9876 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9878 Handle IBM OFW path.
9880 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9882 (of_path_of_scsi): Handle vdevice.
9884 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9886 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9887 Allocate in multiples of 16 to avoid adding a few bytes free region the
9890 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9892 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9893 Allocate in multiples of 16 to avoid adding a few bytes free region the
9895 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9897 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9899 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9901 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9902 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9904 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9906 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9908 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9910 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9911 resulted in \\ at the end of the line.
9913 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9915 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9916 (grub_parser_cmdline_state): Likewise.
9917 (grub_parser_split_cmdline): Likewise.
9919 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9921 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9922 /dev/root and /dev/dm-*.
9924 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9926 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9927 fix partially stale display.
9929 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9931 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9934 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9936 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9937 Fix MBR remapping workaround.
9938 (grub_util_biosdisk_read) [__linux__]: Likewise.
9940 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9942 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9944 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9946 * configure.ac: Bump to beta6.
9948 2012-05-31 Christer Weinigel <christer@weinigel.se>
9950 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9952 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9954 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9955 (grub_cmd_linux): Likewise.
9957 2012-05-31 Christer Weinigel <christer@weinigel.se>
9961 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9962 (GRUB_EHCI_MULT_TWO): Likewise.
9963 (GRUB_EHCI_MULT_THREE): Likewise.
9964 (GRUB_EHCI_CMASK_MASK): New enum value.
9965 (GRUB_EHCI_SMASK_MASK): Likewise.
9966 (GRUB_EHCI_CMASK_OFF): Likewise.
9967 (GRUB_EHCI_SMASK_OFF): Likewise.
9968 (grub_ehci_pci_iter): Enable periodic schedule.
9969 (grub_ehci_parse_notrun): Likewise.
9970 (grub_ehci_restore_hw): Likewise.
9971 (grub_ehci_setup_qh): Set flags for low speed transfers.
9972 (grub_ehci_find_qh): Use periodic list for low speed.
9973 (grub_ehci_setup_transfer): Check periodic queue as well.
9974 (grub_ehci_check_transfer): Likewise.
9975 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9977 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9979 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9982 2012-05-31 Peter Jones <pjones@redhat.com>
9984 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9985 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9986 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9988 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9990 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9991 uninited variable. Allocate at least setup_sects.
9993 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9995 Fix handling of EFI with big memory maps.
9997 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9998 (real_mode_mem): Likewise.
9999 (real_mode_target): Likewise.
10000 (real_mode_pages): Likewise.
10001 (prot_mode_pages): Likewise.
10002 (linux_params): New var.
10003 (linux_cmdline): Likewise.
10004 (free_pages): Don't set real mode variables.
10005 (allocate_pages): Don't allocate real mode memory.
10006 (grub_e820_add_region): Remove the limit.
10007 (grub_linux_boot): Allocate and copy real mode memory.
10008 (grub_linux_unload): Free linux_cmdline.
10009 (grub_cmd_linux): Use temporary storage for parameters.
10010 (grub_cmd_initrd): Likewise.
10011 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
10012 (linux_kernel_params): Make it 1K big.
10014 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
10016 * Makefile.util.def: Remove -Wno-format.
10017 * grub-core/Makefile.core.def: Likewise.
10019 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
10021 * tests/cmp_unit_test.c: Add missing failure message.
10022 * tests/example_unit_test.c: Likewise.
10023 * tests/printf_unit_test.c: Likewise.
10025 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
10027 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
10028 relaxation of protective MBR requirements.
10030 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
10032 * configure.ac: Add condition for COND_HOST_XNU.
10033 * Makefile.util.def (10_xnu): New script.
10034 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
10036 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
10038 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
10041 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
10043 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
10044 Binary on other platforms stays identical.
10046 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10048 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
10051 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10053 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
10055 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10057 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
10058 rather than defining size_t ourselves to avoid conflict.
10060 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10062 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
10063 initialisation to avoid __bzero reference.
10065 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10067 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
10069 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
10070 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
10071 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
10072 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
10073 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
10075 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10077 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
10078 * grub-core/kern/misc.c: Likewise.
10079 * grub-core/loader/i386/xnu.c: Likewise.
10080 * include/grub/i386/tsc.h: Likewise.
10081 * include/grub/symbol.h: Likewise.
10083 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10085 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
10086 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
10089 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10091 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
10092 Implement Apple flavour.
10093 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
10095 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10097 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
10098 (memmove) [__APPLE__]: Likewise.
10099 (memcpy) [__APPLE__]: Likewise.
10100 (memset) [__APPLE__]: Likewise.
10101 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
10102 (memmove) [__APPLE__]: Likewise.
10103 (memcpy) [__APPLE__]: Likewise.
10104 (memset) [__APPLE__]: Likewise.
10106 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10108 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
10109 dependency discard.
10111 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10113 * grub-core/normal/main.c (read_config_file): Provide config_file and
10115 * util/grub.d/41_custom.in: Use config_directoy when available.
10117 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10119 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
10120 (grub_bfs_dir): Likewise.
10122 2012-05-27 Peter Jones <pjones@redhat.com>
10124 The old code gives arguments to a printf function which can't work
10125 correctly, and the compiler complains.
10127 * grub-core/tests/example_functional_test.c (example_test): Add
10129 * grub-core/tests/lib/test.c (add_failure): Rewrite.
10130 * include/grub/test.h (grub_test_assert_helper): New declaration.
10131 (grub_test_assert): Use grub_test_assert_helper.
10133 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10135 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
10136 (exfctest): ... this to avoid overlong filenames.
10139 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10141 Handle "." and ".." on squashfs.
10143 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
10144 Make inode numbers into stack.
10145 (grub_squash_read_symlink): Use stack.
10146 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
10147 (make_root_node): Fill stack.
10148 (grub_squash_open): Use stack.
10150 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10152 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
10155 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10157 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
10158 stderr on test calls.
10160 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10162 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
10164 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10166 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
10168 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10170 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
10173 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10175 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
10176 (grub_hfsplus_iterate_dir): Add "." and "..".
10178 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10180 * grub-core/fs/cpio.c (canonicalize): Handle "..".
10181 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
10183 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10185 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
10186 (find_path): Handle "." and "..".
10188 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10190 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
10191 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10192 (grub_affs_iterate_dir): Handle hardlinks.
10194 2012-05-26 Matthew Garrett <mjg@redhat.com>
10196 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10197 (grub_efi_console_fini): Likewise.
10198 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10199 (grub_video_gop_fill_mode_info): Rename to ...
10200 (grub_video_gop_fill_real_mode_info): ... this.
10201 (grub_video_gop_fill_mode_info): New function.
10202 (grub_video_gop_setup): Setup double framebuffer.
10203 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10205 (grub_video_gop_swap_buffers): Copy framebuffer.
10206 (grub_video_gop_fini): Free offscreen buffer.
10207 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10209 (grub_efi_gop_blt_pixel): New struct.
10211 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10213 * gentpl.py: Remove error disabling for objconv.
10215 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10217 * configure.ac: Remove -Wunitialized as it's not available on older
10220 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10222 Fix extent overflow comparator.
10224 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10225 (grub_hfsplus_read_block): Set type.
10226 (grub_hfsplus_cmp_extkey): Compare type.
10228 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10230 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10232 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10234 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10237 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10239 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10240 (dejavu_bold_14.pf2): New target.
10242 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10244 * configure.ac: Fix djvu font detection.
10246 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10248 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10249 ext* instead of ext2.
10251 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10253 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10256 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10258 * docs/grub-dev.texi: Remove dot from .png.
10260 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10262 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10263 protective entry in any slot.
10264 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10265 if protective entry is found in any slot.
10267 Protective entry in non-first slot make no sense but is a widespread
10270 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10272 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10274 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10276 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10278 (grub_reiserfs_open): Don't free root.
10280 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10282 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10283 after freeing for safety.
10285 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10287 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10288 Reported by: Jordan Uggla.
10290 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10292 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10293 actual implementation. Specifically, clarify that the grub menu will
10294 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10297 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10299 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10302 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10304 Remove unjustified hard dependency of normal.mod on gfxterm.
10306 * include/grub/term.h (grub_term_output): New member fullscreen.
10307 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10308 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10309 (grub_gfxterm): Set .fullscreen.
10310 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10311 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10313 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10315 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10316 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10317 Mention case-insensitive AFFS, SFS and JFS.
10319 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10321 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10323 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10325 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10328 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10330 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10331 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10333 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10335 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10336 (grub_jfs_mount): Fill caseins.
10337 (grub_jfs_find_file): Respect caseins.
10339 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10341 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10344 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10346 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10347 New argument origpath. All users updated.
10349 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10351 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10352 (read_attr): Ensure that we read start of possibly compressed block.
10354 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10356 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10357 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10360 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10362 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10363 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10364 (dejavu.pf2): Replace with ...
10365 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10368 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10370 * util/grub.d/20_linux_xen.in: Add missing line.
10372 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10374 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10375 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10376 (grub_utf16_to_utf8): Likewise.
10378 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10380 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10381 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10382 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10383 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10384 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10385 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10387 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10389 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10392 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10394 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10395 (grub_udf_read_symlink): Handle read_string failure.
10397 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10399 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10402 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10404 Fix handling of UDF symlinks.
10406 * grub-core/fs/udf.c (read_string): New argument outbuf.
10408 (grub_ufs_read_symlink): Rename to ...
10409 (grub_udf_read_symlink): ... this. All users updated.
10410 Handle symlinks with more than one component.
10412 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10414 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10415 symlinks. Replace leading colon with a slash.
10417 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10419 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10422 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10424 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10425 match in inner node.
10427 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10429 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10430 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10431 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10432 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10433 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10434 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10435 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10436 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10437 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10439 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10441 Use grub-probe and not cmp to check that disk is empty.
10443 * util/grub-install.in: Use grub-probe for zero-check.
10444 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10445 (probe): Handle PRINT_ZERO_CHECK.
10446 (argp_parser): Handle -t zero_check.
10448 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10450 Flush block cache on adding disk to device map.
10452 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10453 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10455 (read_device_map): Likewise.
10456 (open_device): Flush on opening.
10458 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10460 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10461 (handle_symlink): Fix off-by-one error.
10462 Canonicalize the target.
10463 (grub_cpio_dir): Canonicalize the name.
10466 (grub_cpio_open): Canonicalize the name.
10468 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10470 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10473 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10475 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10476 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10478 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10480 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10481 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10484 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10486 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10489 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10491 Fix UFS1 big file support.
10493 * grub-core/fs/ufs.c (INODE): Removed.
10494 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10496 (INODE_MODE): Simplify.
10497 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10498 (grub_ufs_lookup_symlink): Don't use INODE.
10500 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10502 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10504 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10505 (grub_minix_data): Replace log_block_size with block_size.
10506 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10507 (grub_minix_mount): Fill block_size.
10509 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10511 * configure.ac: Bump to beta5.
10513 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10515 Fix wrapped HFS+ handling.
10517 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10518 blocks_start. All users updated.
10519 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10521 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10523 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10525 Fix long symlinks on reiserfs.
10527 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10528 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10529 (grub_reiserfs_iterate_dir): Save size for non-directories.
10530 (grub_reiserfs_open): Don't reread stat block as we already know the
10532 (grub_reiserfs_read): Split into...
10533 (grub_reiserfs_read_real): ... and ...
10534 (grub_reiserfs_read): ...this.
10536 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10538 Fix non-indexed JFS.
10540 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10541 (grub_jfs_data): New field namecomponentlen.
10542 (grub_jfs_mount): Fill namecomponentlen.
10543 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10545 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10547 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10548 * tests/grub_script_echo1.in: Add tests.
10550 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10552 * util/grub-install.in: Ignore empty devicetree directory.
10554 2012-05-08 Bean <bean123ch@gmail.com>
10556 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10558 (free_rsm): Free header as well.
10559 (free_old_fragments): Fix memory leak.
10560 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10561 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10562 (destroy_pq): Likewise.
10563 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10565 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10567 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10568 resulting hash as a precaution.
10570 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10572 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10573 '_' in variable names.
10574 * grub-core/net/net.c (grub_net_network_level_interface_register):
10577 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10579 Fix AFFS with non-512B blocks.
10581 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10582 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10583 (grub_affs_data): Replace blocksize with log_blocksize.
10584 (grub_affs_read_block): Fix non-512B blocks.
10585 (grub_affs_read_symlink): Likewise.
10586 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10587 (grub_affs_read): Fix non-512B blocks.
10588 (grub_affs_label): Likewise.
10589 (grub_affs_mtime): Likewise.
10590 (grub_affs_mount): Fix block detection routine.
10592 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10594 Add filesystem mtime to AFFS.
10596 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10597 (aftime2ctime): New function.
10598 (grub_affs_dir): Use aftime2ctime.
10599 (grub_affs_label): Fix return value.
10600 (grub_affs_mtime): New function.
10601 (grub_affs_fs): Add mtime.
10603 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10605 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10608 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10610 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10613 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10615 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10617 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10619 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10621 (FLAGS_CASE_SENSITIVE): New enum value.
10622 (cache_entry): New struct.
10623 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10624 cache_size and cache.
10625 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10626 Add log_blocksize and fshelp_flags.
10627 (grub_sfs_read_extent): Handle non-512 blocks.
10628 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10629 (grub_sfs_read_file): Handle non-512 blocks.
10630 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10632 (grub_sfs_read_symlink): Handle non-512 blocks.
10633 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10634 (grub_sfs_dir): Free cache.
10635 (grub_sfs_close): Likewise.
10637 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10639 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10642 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10644 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10646 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10648 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10650 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10652 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10653 (grub_sfs_read_extent): Likewise.
10654 (grub_sfs_read_block): Likewise.
10655 (grub_sfs_mount): Likewise.
10656 (grub_sfs_iterate_dir): Likewise.
10657 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10658 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10660 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10662 Fix errors on compressed NTFS with 512B clusters.
10664 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10666 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10668 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10669 Relax check for inline extents.
10670 (ntfscomp): Return correct -1 on error and not 0.
10672 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10674 * util/grub-install.in: Fix handling of prefix containing spaces.
10676 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10678 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10679 (grub_squash_read_data): Fix offset byte-swapping.
10681 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10683 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10684 per common usage and preffered in several parts of code.
10685 (grub_memcmp): Likewise.
10686 (grub_strncmp): Likewise.
10687 * include/grub/misc.h (grub_strcasecmp): Likewise.
10688 (grub_strncasecmp): Likewise.
10689 * Makefile.util.def (cmp_test): New test.
10690 (grub_script_strcmp): Likewise.
10691 * tests/cmp_unit_test.c: New file.
10692 * tests/grub_script_strcmp.in: Likewise.
10693 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10695 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10697 * include/grub/pci.h: Move enums into no-asm part.
10699 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10701 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10703 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10705 * util/getroot.c (find_hurd_root_device): Try to make error message
10706 and comments to translators clearer.
10708 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10710 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10712 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10714 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10717 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10719 * docs/grub.cfg: Update.
10721 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10723 * docs/grub.texi (PXE): Remove not present variables.
10725 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10727 * grub-core/net/net.c (defserver_set_env): New function.
10728 (defserver_get_env): Likewise.
10729 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10731 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10733 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10736 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10738 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10739 * grub-core/kern/emu/hostdisk.c: Likewise.
10741 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10743 Handle hurd userspace partitions.
10745 * util/getroot.c (find_hurd_root_device): New function.
10746 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10748 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10750 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10752 Reported by: Bastian Blank.
10754 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10756 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10757 crossing page boundary.
10759 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10761 Fix B-tree search in BFS, especially in presence of non-ASCII
10764 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10765 (find_in_b_tree): Use standard bsearch + btree algorithm.
10767 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10769 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10772 2012-05-03 Matthew Garrett <mjg@redhat.com>
10773 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10775 Suspend broadcom cards in order to stop their DMA.
10777 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10778 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10779 (pci): Don't build on x86 EFI.
10780 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10781 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10783 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10784 stop_broadcom if running on EFI.
10785 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10786 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10787 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10788 (grub_pci_find_capability): New proto.
10790 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10792 * docs/grub.texi: Remove dot from the extension as it apparently
10793 doesn't work with some makeinfo versions.
10795 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10797 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10798 with GRUB expectance.
10800 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10802 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10804 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10806 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10807 zero after directory block since last entry may be not 0-terminated if
10808 it ends on block boundary. Use continue instead of if spanning whole
10811 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10813 Support 4K sectors UDF inline files.
10815 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10816 (grub_udf_extended_file_entry): Likewise.
10817 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10819 (get_fshelp_size): New function.
10820 (grub_udf_read_icb): Read whole block.
10821 (grub_udf_iterate_dir): Likewise.
10822 (grub_udf_dir): Likewise.
10823 (grub_udf_open): Likewise.
10825 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10827 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10829 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10831 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10832 inline symlinks in addition to workaround.
10834 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10836 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10838 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10840 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10842 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10844 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10846 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10848 Fix reiserfs big seek times.
10850 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10851 exact. All users updated.
10852 (grub_reiserfs_read): Use nearest btree search for seeking.
10853 Fix return value on error.
10855 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10857 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10859 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10860 * docs/grub.texi: Update menuentry description.
10862 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10864 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10865 crash when embedding onto filesystem.
10867 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10869 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10872 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10874 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10876 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10878 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10881 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10882 2012-05-01 Bean <bean123ch@gmail.com>
10884 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10886 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10888 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10889 Special behaviour for len = 0 to read whole file isn't used anywhere and
10890 can cause buffer ovewrflows in several places.
10892 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10894 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10896 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10898 Handle RAIDZ on non-512B sectors.
10900 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10901 max_children_ashift.
10902 (fill_vdev_info_real): Fill max_children_ashift.
10903 (read_device): Use max_children_ashift.
10905 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10907 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10909 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10911 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10913 * docs/grub.texi: Update device.map parts.
10915 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10917 Don't scan into non-diskfilter devices having diskfilter names.
10919 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10920 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10922 (scan_disk_hook): New function.
10924 2012-04-29 Bean <bean123ch@gmail.com>
10926 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10929 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10931 * configure.ac: Detect starfield theme font path
10932 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10934 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10936 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10937 geometry on serial consoles.
10939 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10941 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10942 because of network consoles.
10944 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10946 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10949 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10951 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10952 falls on Q syndrom.
10954 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10956 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10957 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10959 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10961 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10962 Allocate at lest 8192 for temporary buffer as required for lzo.
10964 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10966 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10967 to cluster_bits, since it's already added in.
10968 (grub_fat_read_data): Likewise.
10970 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10972 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10973 as long as cluster size is multiple of 512 bytes.
10975 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10977 * util/grub-mkrescue.in: Fix locale directory.
10979 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10981 * grub-core/kern/emu/hostdisk.c (map): Make static.
10983 2012-04-23 Bean <bean123ch@gmail.com>
10985 * util/grub-fstest.c (fstest): Add missing break.
10987 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10991 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10992 not define nr variable.
10993 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10994 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10995 grub_find_device): Do not define.
10997 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10999 Fix kfreebsd compile and behaviour.
11001 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
11003 * util/getroot.c: Fix wait.h include.
11004 (grub_guess_root_devices): Error if grub_find_device fails.
11005 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
11006 (grub_util_get_dev_abstraction): Likewise.
11007 (grub_util_pull_device): Likewise.
11008 (grub_util_get_grub_dev): Likewise.
11009 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
11011 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
11013 Fix and unify wholedisk detection.
11015 * util/getroot.c (convert_system_partition_to_system_disk): New argument
11016 is_part. All users updated.
11017 (device_is_wholedisk): Removed.
11018 (grub_util_biosdisk_get_grub_dev): Use is_part.
11020 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11022 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
11025 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11027 * configure.ac: Bump to beta4.
11029 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11031 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
11032 --fs-uuid --set UUID syntax.
11034 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11036 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
11039 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11041 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
11043 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
11045 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
11047 2012-04-18 Mike Gilbert <floppym@gentoo.org>
11049 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
11051 2012-04-18 Bean <bean123ch@gmail.com>
11053 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
11056 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11058 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
11060 (grub_util_biosdisk_read): Handle Linux partitions not exactly
11061 corresponding to GRUB partitions.
11062 (grub_util_biosdisk_write): Likewise.
11064 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11066 Scan mdraid before LVM.
11068 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
11069 (grub_diskfilter_register_front): ... this.
11070 (grub_diskfilter_register_back): New function.
11071 All users of grub_diskfilter_register updated.
11073 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11075 * util/grub-install.in: Fix an automatic target detection bug.
11077 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11079 * util/grub-install.in: New option --efi-directory.
11081 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
11083 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
11084 boot services if we have no other choice.
11086 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
11088 * util/grub-mknetdir.in: Rename --override-directory to --directory and
11090 * tests/util/grub-shell.in: Update to --directory.
11092 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11094 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
11096 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11098 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
11099 (grub_minix_read_file): Likewise.
11100 (grub_minix_read_inode): Likewise.
11101 (grub_minix_find_file): Likewise.
11102 (grub_minix_dir): Likewise.
11104 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11106 * util/grub-setup.c (setup): Fix partition handling and blocklist
11109 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11111 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
11112 redundant buggy overlap check.
11114 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11116 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
11119 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11121 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
11122 kh.loadflags on pre-2.00 kernels.
11124 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11126 Terminate UNDI and PXE before launching the payload to avoid problems
11129 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
11130 (grub_loader_flags): ... this. All users updated.
11131 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
11132 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
11133 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
11134 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
11136 (grub_pxe_restore): Likewise.
11137 (fini_hnd): New var.
11138 (GRUB_MOD_INIT): Register shutdown hook.
11139 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
11140 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
11141 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
11142 (grub_loader_set): Rename second argument to flags.
11144 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11146 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
11148 (grub_get_num_of_utf8_bytes): New function.
11149 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
11150 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
11152 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
11153 (grub_ucs4_to_utf8): Change return type.
11155 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11157 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
11159 * grub-core/fs/bfs.c (hop_level): Likewise.
11160 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
11162 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11164 * grub-core/lib/adler32.c: Recode due to license unclearness.
11166 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11168 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
11169 (test_header): Likewise.
11171 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11173 Fix --help formatting.
11175 * util/grub-mkconfig_lib.in (print_option_help): New function.
11176 (grub_fmt): Likewise.
11177 * util/grub-install.in: Use print_option_help and grub_fmt.
11178 * util/grub-kbdcomp.in: Likewise.
11179 * util/grub-mkconfig.in: Likewise.
11180 * util/grub-mknetdir.in: Likewise.
11181 * util/grub-mkrescue.in: Likewise.
11182 * util/grub-mkstandalone.in: Likewise.
11183 * util/grub-reboot.in: Likewise.
11184 * util/grub-set-default.in: Likewise.
11185 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11187 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11189 * linguas.sh: Remove autogenerated *.po.
11191 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11193 * po/README: Move language fetcing to ...
11194 * linguas.sh: ... here.
11195 * po/README: Point to linguas.sh.
11197 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11199 * po/README: Exclude ko.po due to disclaimer problems.
11201 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11203 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11205 (grub_gettext_translate_real): Handle 0th string.
11206 (grub_gettext_translate): Ensure that "" isn't translated.
11208 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11210 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11211 TRANSLATORS comment.
11212 (grub_diskfilter_print_partmap): Propagate changing of error into
11215 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11217 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11218 to uint64_t to prevent overflow.
11219 (grub_diskfilter_lv): Increase start_extent and extent_count
11220 to uint64_t to prevent overflow.
11222 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11224 * configure.ac: Increase version.
11226 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11228 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11230 * po/Rules-translit: New file.
11231 * po/arabic.sed: Likewise.
11232 * po/cyrillic.sed: Likewise.
11233 * po/greek.sed: Likewise.
11234 * po/hebrew.sed: Likewise.
11235 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11236 * po/Makefile.in.in: Add extra_dist4.
11238 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11240 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11242 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11243 modify names. Introduce MODE_BIGENDIAN.
11244 * grub-core/fs/minix_be.c: New file.
11245 * grub-core/fs/minix2_be.c: Likewise
11246 * grub-core/fs/minix3_be.c: Likewise.
11247 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11249 * grub-core/Makefile.core.def (minix_be): New module.
11250 (minix2_be): Likewise.
11251 (minix3_be): Likewise.
11253 2012-04-01 Felix <email@hamburg.de>
11255 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11256 (devs): Add MBP 2011.
11258 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11260 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11262 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11264 * grub-core/normal/cmdline.c (print_completion): New field
11266 (grub_cmdline_get): Handle width properly.
11268 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11270 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11272 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11274 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11275 after 29th of February.
11277 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11279 Fix exfat endianness handling.
11281 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11282 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11283 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11284 Byte-swap utf16 when necessary.
11285 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11287 2012-03-31 Anton Blanchard <anton@samba.org>
11288 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11290 Fix btrfs endianness handling.
11292 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11293 (lower_bound): Make root uint64_t. Use root in le.
11294 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11295 (find_path): Fix template key init.
11296 (grub_btrfs_dir): Fix mtime byteswap.
11297 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11299 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11301 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11302 recursion_depth. Break infinite resursions. All users updated.
11304 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11306 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11308 Reported by: Peter Jones.
11310 2012-03-31 Anton Blanchard <anton@samba.org>
11312 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11315 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11317 * util/grub-install.in: Fix nvram call for PreP.
11319 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11321 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11322 the error when some elements are missing into a warning.
11324 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11326 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11328 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11330 * docs/grub.texi (Invoking grub-probe): New section.
11331 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11333 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11335 Fix tab and wide character handling in editor and menu.
11337 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11338 agglomerate control characters with combining marks.
11339 (bidi_line_wrap): Allow break on tab.
11340 (grub_unicode_get_comb_start): New function.
11341 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11343 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11345 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11346 fixed_tab_size. All users updated.
11347 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11348 (grub_term_getcharwidth): Handle \t.
11349 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11352 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11354 Handle big-endian mdraid.
11356 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11357 * grub-core/Makefile.core.def (mdraid09_be): New module.
11358 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11359 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11360 * grub-core/disk/mdraid_linux_be.c: New file.
11362 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11364 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11366 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11368 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11369 missing quotes which caused confusion among translators.
11371 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11373 * util/grub-mkconfig_lib.in: Fix typo.
11375 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11377 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11379 * tests/grub_script_leading_whitespace.in: New file.
11380 * Makefile.util.def (grub_script_leading_whitespace): New test.
11382 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11384 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11387 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11389 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11390 starts with control character.
11392 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11394 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11396 (grub_gdb_outbuf): Likewise.
11398 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11400 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11401 zero terminator. Fixes a crash.
11403 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11405 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11407 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11408 images independently of preffered adderss field.
11410 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11412 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11413 * grub-core/commands/regexp.c: Likewise.
11414 * grub-core/loader/i386/linux.c: Likewise.
11415 * grub-core/partmap/msdos.c: Likewise.
11416 * grub-core/script/execute.c: Likewise.
11417 * grub-core/term/gfxterm.c: Likewise.
11419 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11421 Add variable parsing in $"..." and fix several mismatches with bash.
11423 * Makefile.util.def (grub_script_gettext): New test.
11424 * grub-core/script/execute.c (parse_string): New function.
11425 (gettext_append): Likewise.
11426 (grub_script_arglist_to_argv): Use gettext_append.
11427 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11428 * tests/grub_script_gettext.in: New file.
11430 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11432 Fix handling of leading spaces in scripts.
11434 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11436 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11437 other than skipping \r. All users updated.
11438 * tests/grub_script_echo1.in: Add space-related tests.
11439 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11441 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11443 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11445 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11447 * configure.ac: Bump up the version to beta2.
11449 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11451 Fix gettext reload bugs (e.g. inability to disable gettext
11454 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11455 main_context and secondary_context. All functions updated.
11456 (grub_gettext_translate): Rename to ...
11457 (grub_gettext_translate_real): ... this. Return NULL on failed
11459 (grub_gettext_translate): Handle secondary context.
11460 (grub_gettext_delete_list): Close file and zero-out the context.
11461 (grub_mofile_open): Don't call grub_gettext_delete_list.
11463 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11464 if locale="" to avoid pointless error message.
11465 (grub_gettext_env_write_lang): Update lang even if load fails.
11466 Handle secondary context.
11467 (grub_gettext_reread_prefix): New function.
11468 (read_main): Likewise.
11469 (read_secondary): Likewise.
11470 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11471 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11472 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11473 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11475 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11477 * configure.ac: Decrease warning level to avoid spurious warnings and
11478 to be able to compile with GCC 4.2.
11479 * Makefile.util.def: Remove -Wno-error=logical-op.
11481 2012-03-10 William Bittner <william.bittner@gmail.com>
11483 * util/import_unicode.py: Add missing brackets around string for
11486 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11488 Fix efi chainloader on network root.
11490 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11492 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11495 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11497 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11498 unused show_text member.
11499 * docs/grub.texi: Document "text" property.
11501 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11503 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11506 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11508 Fix IMSM handling on Fedora.
11510 * util/getroot.c (grub_util_is_imsm): New function.
11511 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11513 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11515 * Makefile.am: Strip gold section.
11516 * conf/Makefile.common: Likewise.
11517 * gentpl.py: Likewise.
11518 * grub-core/Makefile.core.def: Likewise.
11519 * grub-core/genmod.sh.in: Likewise.
11521 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11523 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11524 * util/grub.d/20_linux_xen.in: Likewise.
11525 Based on Debian patch.
11527 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11529 * util/grub.d/10_linux.in: Fix syntax error resulting in
11530 Richard Laager's patch.
11531 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11533 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11535 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11538 2012-03-10 Richard Laager <rlaager@wiktel.com>
11540 * util/grub.d/10_linux.in: Fix ZFS root passing.
11542 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11544 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11545 * grub-core/commands/xnu_uuid.c: Likewise.
11546 * grub-core/loader/efi/appleloader.c: Likewise.
11547 * grub-core/script/execute.c: Likewise.
11548 * grub-core/script/main.c: Likewise.
11549 * util/grub-mkfont.c: Likewise.
11551 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11553 * util/grub-mkfont.c (options): Use more appropriate "select" that
11554 "set" for face index.
11556 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11558 * util/grub-editenv.c (options): Gettextize command summaries.
11560 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11562 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11563 "out of memory" error messagge.
11565 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11567 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11568 of diskfilter for diskfilter on diskfilter support.
11570 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11572 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11574 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11576 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11579 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11581 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11583 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11585 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11587 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11589 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11592 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11594 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11596 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11598 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11600 * util/grub-install.in: Fix and gettextize error message.
11602 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11604 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11606 * util/grub-mount.c (options): Likewise.
11608 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11610 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11612 * grub-core/commands/search_wrap.c (options): Likewise.
11614 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11616 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11618 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11620 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11622 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11625 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11627 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11628 "temporary" since it's used in identifier and is limited in space.
11630 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11632 * po/POTFILES.in: Regenerate. Include *.h since they contain
11633 translatable strings as well.
11635 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11637 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11638 byte-swap on big-endian.
11639 Reported by: Lennart Sorensen
11641 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11643 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11644 (allocate_pages): Improve dprintf.
11645 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11646 code32_start. Fill code32_start and kernel_alignment in params.
11647 (grub_cmd_initrd): Use prot_init_space.
11649 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11651 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11653 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11655 * util/grub-install.in: Add missing dot at the end of sentence.
11657 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11659 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11660 * grub-core/commands/videotest.c: Likewise.
11661 * grub-core/loader/i386/linux.c: Likewise.
11663 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11665 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11667 Reported by: Milo Casagrande.
11669 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11671 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11672 * grub-core/commands/gptsync.c: Likewise.
11673 * grub-core/commands/hashsum.c: Likewise.
11674 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11675 * grub-core/commands/legacycfg.c: Likewise.
11676 * grub-core/io/gzio.c: Likewise.
11677 * grub-core/net/net.c: Likewise.
11678 * grub-core/term/gfxterm.c: Likewise.
11679 * grub-core/term/terminfo.c: Likewise.
11680 * grub-core/tests/test_blockarg.c: Likewise.
11681 * grub-core/video/video.c: Likewise.
11682 * util/grub-install.in: Likewise.
11683 * util/grub-mkfont.c: Likewise.
11685 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11687 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11689 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11691 * grub-core/commands/search_wrap.c (options): Fix a typo.
11692 Reported by: David Prévot.
11694 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11696 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11699 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11701 * util/grub-script-check.c (main): Fix a syntax error message which was
11704 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11706 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11708 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11710 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11713 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11715 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11717 * util/grub-mount.c (options): Likewise.
11719 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11721 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11723 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11725 * grub-core/net/http.c: Add TRANSLATORS comments.
11726 * grub-core/normal/cmdline.c: Likewise.
11727 * grub-core/normal/misc.c: Likewise.
11728 * grub-core/partmap/msdos.c: Likewise.
11729 * grub-core/parttool/msdospart.c: Likewise.
11730 * grub-core/script/execute.c: Likewise.
11731 * grub-core/script/main.c: Likewise.
11732 * grub-core/term/terminfo.c: Likewise.
11733 * grub-core/video/bitmap.c: Likewise.
11734 * util/grub-install.in: Likewise.
11735 * util/grub-mkimage.c: Likewise.
11736 * util/grub-mklayout.c: Likewise.
11737 * util/grub-setup.c: Likewise.
11739 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11741 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11742 with similar messages in grub-fstest.
11744 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11746 * util/grub-install.in: Unify "option requires an argument" message
11747 with similar messages in other files.
11748 * util/grub-mkconfig.in: Likewise.
11750 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11752 * util/grub-set-default.in: Replace printf with gettext_printf (the
11753 string in in question is already translated from grub-reboot)
11755 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11757 * configure.ac: Bump up the version to beta1.
11759 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11761 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11762 case when min_align = 0.
11764 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11766 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11767 and fix a case when line_start overflows.
11769 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11771 * util/grub-reboot.in (usage): Mention id posibility.
11772 * util/grub-set-default.in (usage): Likewise.
11774 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11776 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11777 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11778 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11779 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11780 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11781 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11782 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11784 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11786 * grub-core/commands/menuentry.c (options): Remove
11787 GRUB_ARG_OPTION_REPEATABLE.
11788 Reported by: Andreas Vogel
11790 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11792 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11794 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11796 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11799 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11801 Use sort -V by the idea of Georgi Georgiev.
11803 * util/grub-mkconfig_lib.in (version_sort): New function.
11804 (version_test_numeric): Use version_sort.
11806 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11808 Use submenus in grub-mkconfig.
11810 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11811 * util/grub-mkconfig_lib.in (grub_quote): New function.
11812 (gettext_printf): Use gettext and not gettext_quoted to fix several
11814 * util/grub.d/10_hurd.in: Use submenus.
11815 * util/grub.d/10_kfreebsd.in: Likewise.
11816 * util/grub.d/10_linux.in: Likewise.
11817 * util/grub.d/10_netbsd.in: Likewise.
11818 * util/grub.d/20_linux_xen.in: Likewise.
11819 * util/grub.d/30_os-prober.in: Likewise.
11820 * util/grub.d/10_illumos.in: Add missing quoting.
11821 * util/grub.d/10_windows.in: Likewise.
11823 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11825 Fix menu title instability bug.
11827 * grub-core/commands/menuentry.c (options): New option --id.
11828 (grub_normal_add_menu_entry): New argument id. All users updated.
11829 (grub_cmd_menuentry): Handle --id.
11830 (grub_menu_init): Accept unknown arguments.
11831 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11832 feature_menuentry_options.
11833 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11835 (get_entry_number): Match with id as well.
11836 * include/grub/menu.h (grub_menu_entry): New member id.
11837 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11838 * util/grub.d/00_header.in: Define menuentry_id_option.
11839 * util/grub.d/10_hurd.in: Define id.
11840 * util/grub.d/10_illumos.in: Likewise.
11841 * util/grub.d/10_kfreebsd.in: Likewise.
11842 * util/grub.d/10_linux.in: Likewise.
11843 * util/grub.d/10_netbsd.in: Likewise.
11844 * util/grub.d/10_windows.in: Likewise.
11845 * util/grub.d/20_linux_xen.in: Likewise.
11846 * util/grub.d/30_os-prober.in: Likewise.
11848 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11850 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11851 "scope" with "body".
11853 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11855 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11856 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11857 prot_size and prot_file_size.
11859 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11861 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11862 All users updated. If easily=1 require raid-5/-6 to be full.
11863 (is_node_readable): Likewise.
11864 (scan_devices): Scan incomplete but readable LVs at the end.
11865 (grub_diskfilter_memberlist): Pull missing devices.
11866 (insert_array): Skip scanning until device is complete or scan is
11868 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11870 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11871 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11873 2012-03-03 Matthew Garrett <mjg@redhat.com>
11874 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11876 Avoid EFI boot services when loading Linux.
11878 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11879 avoid_efi_bootservices. All users updated.
11880 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11881 argument avoid_efi_bootservices. All users updated.
11882 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11883 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11884 align, min_align, relocatable, prefered_address. All users updated.
11885 Allocate avoiding boot services if kernel is relocatable.
11886 (grub_cmd_linux): Check if kernel is relocatable.
11887 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11888 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11889 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11890 avoid_efi_boot_services.
11891 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11892 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11893 (linux_kernel_params): Likewise.
11895 2012-03-03 Matthew Garrett <mjg@redhat.com>
11896 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11900 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11902 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11903 modes. Set gop_handle.
11904 (grub_video_gop_get_edid): New function.
11905 (grub_gop_get_preferred_mode): Likewise.
11906 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11907 (grub_video_efi_gop_adapter): Set .get_edid.
11908 * include/grub/efi/edid.h: New file.
11909 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11911 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11913 * util/grub-install.in: Load efivars unconditionally.
11915 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11917 * po/Rules-piglatin: Change suffix from .po-update-en to
11918 .po-update-en-piglatin.
11920 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11924 * po/piglatin.sed: New file.
11925 * po/en@piglatin.header: Likewise.
11926 * po/Rules-piglatin: Likewise.
11927 * po/README: Add en@piglatin to autogenerated languages.
11929 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11931 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11933 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11934 "Check" since we don't check anything.
11935 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11937 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11938 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11939 (grub_md_sha512_real): Likewise.
11941 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11943 * grub-core/commands/gptsync.c: Fix typographic quoting.
11944 * grub-core/commands/ieee1275/suspend.c: Likewise.
11945 * grub-core/commands/parttool.c: Likewise.
11946 * grub-core/commands/search_wrap.c: Likewise.
11947 * grub-core/commands/videoinfo.c: Likewise.
11948 * grub-core/gfxmenu/gui_label.c: Likewise.
11949 * grub-core/hello/hello.c: Likewise.
11950 * grub-core/kern/emu/main.c: Likewise.
11951 * grub-core/net/net.c: Likewise.
11952 * grub-core/normal/menu.c: Likewise.
11953 * grub-core/normal/menu_text.c: Likewise.
11954 * grub-core/normal/misc.c: Likewise.
11955 * util/grub-editenv.c: Likewise.
11956 * util/grub-install.in: Likewise.
11957 * util/grub-kbdcomp.in: Likewise.
11958 * util/grub-mkconfig.in: Likewise.
11959 * util/grub-mknetdir.in: Likewise.
11960 * util/grub-mkrescue.in: Likewise.
11961 * util/grub-mkstandalone.in: Likewise.
11962 * util/grub-reboot.in: Likewise.
11963 * util/grub-set-default.in: Likewise.
11964 * util/grub-setup.c: Likewise.
11965 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11967 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11969 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11970 * grub-core/commands/keystatus.c: Likewise.
11971 * grub-core/commands/loadenv.c: Likewise.
11972 * grub-core/commands/probe.c: Likewise.
11973 * grub-core/commands/regexp.c: Likewise.
11974 * grub-core/commands/true.c: Likewise.
11975 * grub-core/commands/videoinfo.c: Likewise.
11976 * grub-core/disk/cryptodisk.c: Likewise.
11977 * grub-core/disk/ldm.c: Likewise.
11978 * grub-core/disk/loopback.c: Likewise.
11979 * grub-core/disk/luks.c: Likewise.
11980 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11981 * grub-core/kern/disk.c: Likewise.
11982 * grub-core/kern/emu/hostdisk.c: Likewise.
11984 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11986 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11987 * util/grub-install.in: Add missing quote in the comment.
11989 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11991 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11992 * grub-core/commands/lsmmap.c: Likewise.
11993 * grub-core/commands/minicmd.c: Likewise.
11994 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11995 * grub-core/commands/regexp.c: Likewise.
11996 * grub-core/gdb/gdb.c: Likewise.
11997 * grub-core/term/gfxterm.c: Likewise.
11998 * util/grub-mkconfig.in: Likewise.
11999 * util/grub-mkfont.c: Likewise.
12000 * util/grub-mklayout.c: Likewise.
12001 * util/grub-mknetdir.in: Likewise.
12002 * util/grub-mkrescue.in: Likewise.
12003 * util/grub.d/30_os-prober.in: Likewise.
12005 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12007 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
12008 with "Direct color" and "Packed" with "Packed pixel".
12009 (grub_cmd_videoinfo): Simplify legend.
12011 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12013 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
12014 absolutely unclear error message.
12016 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12018 * util/grub-mkstandalone.in: Remove confusing leftover print.
12020 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12022 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
12024 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
12025 (GRUB_MOD_INIT): Likewise.
12026 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
12028 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
12030 * util/grub-install.in (usage): Likewise.
12031 Spell ID in whole letters.
12032 Add missing ending dot.
12034 * util/grub-reboot.in: Fix capitalisation.
12035 * util/grub-set-default.in: Likewise.
12037 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12039 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
12040 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
12041 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
12042 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
12043 Disable -Werror for -Wdeprecated-declarations.
12044 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
12045 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
12046 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
12047 (grub_util_get_grub_dev): Make luks handling dependent on
12048 HAVE_DEVICE_MAPPER and not __linux__.
12049 (get_win32_path): Fix format security.
12050 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
12051 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
12052 Don't try grub_find_zpool_from_dir.
12053 (grub_make_system_path_relative_to_its_root) [!__linux__]:
12054 #ifdef-out paresdir.
12056 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12058 * util/grub-pe2elf.c (usage): Add missing noreturn.
12059 (write_section_data): Rename name to shname to avoid shadowing.
12060 (write_symbol_table): Rename name to symname to avoid shadowing.
12061 Fix write_reloc_section call.
12063 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12065 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
12066 to ensure that it's after the last byte of .text.
12068 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12070 * util/ieee1275/ofpath.c (my_isdigit): New function.
12071 (trailing_digits): Use my_isdigit.
12072 (strip_trailing_digits): Likewise.
12074 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12076 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
12077 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
12079 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12081 * grub-core/kern/i386/pc/startup.S: Define __start.
12083 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12085 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
12086 strip already transforms he format.
12088 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12090 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
12092 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12094 * util/grub-install.in: Add missing gettext init.
12095 * util/grub-kbdcomp.in: Likewise.
12096 * util/grub-mkconfig.in: Likewise.
12097 * util/grub-mknetdir.in: Likewise.
12098 * util/grub-mkrescue.in: Likewise.
12099 * util/grub-mkstandalone.in: Likewise.
12100 * util/grub-reboot.in: Likewise.
12101 * util/grub-set-default.in: Likewise.
12102 * util/grub.d/00_header.in: Likewise.
12103 * util/grub.d/10_hurd.in: Likewise.
12104 * util/grub.d/10_windows.in: Likewise.
12105 * util/grub.d/30_os-prober.in: Likewise.
12106 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12108 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12110 * po/Rules-swiss: Fix header comment.
12112 2012-02-29 Andreas Vogel <anvoit>
12114 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
12115 resulted in leak of arguments.
12117 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12119 * grub-core/boot/i386/pc/startup_raw.S: Use separate
12120 reed_solomon_size const definition instead of computing it since
12121 Apple assembler doesn't support the later.
12123 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12125 * gentpl.py (kernel): Rewrite Apple part.
12127 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12129 * include/grub/kernel.h (FOR_MODULES): Check module magic.
12131 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12133 * util/grub-mkimagexx.c (locate_sections): Support non-standard
12135 (load_image): Likewise.
12137 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12139 * configure.ac: Fix a typo in previous commit.
12141 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12143 Don't add -Wl,-N on Apple platform.
12145 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
12146 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
12148 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12150 * grub-core/Makefile.core.def (lzma_decompress): Use
12151 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
12153 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12155 * grub-core/genmod.sh.in: Rewrite the Apple part.
12157 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12159 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
12162 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12164 * acinclude.m4 (grub_CHECK_PIC): New test.
12165 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
12167 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12169 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
12170 to avoid the warning.
12172 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12174 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
12175 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
12176 after. All users updated.
12178 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12180 Use the common size routine in hostfs so we can read disks as well.
12182 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
12183 (grub_util_get_fd_size): ... this. Return size in bytes.
12185 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
12186 grub_util_get_fd_size.
12188 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12190 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
12191 Add blocksize retrieval.
12193 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12195 * configure.ac: Restore CFLAGS after efiemu check.
12197 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12199 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12202 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12204 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12206 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12208 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12209 (grub_cmd_halt): Likewise.
12211 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12213 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12214 for local arithmetics.
12215 Break %sp init into 2 instructions.
12216 Add 0 byte at the end.
12218 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12220 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12223 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12225 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12228 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12230 * grub-core/disk/ldm.c (make_vg): Init part.name.
12231 (grub_ldm_detect): Silence spurious warning.
12232 (grub_util_is_ldm): Likewise.
12234 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12236 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12237 sane value to avoid a spurious warning.
12239 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12241 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12242 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12244 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12246 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12247 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12249 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12251 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12252 hardcoding the relevant info.
12254 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12256 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12257 missing const qualifiers.
12258 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12260 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12262 * util/getroot.c [__APPLE__]: Add missing includes.
12263 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12265 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12267 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12269 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12271 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12274 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12276 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12278 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12280 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12281 and grub_file_close call.
12283 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12285 Add LZSS Mach-O support (needed for new xnu kernelcache).
12287 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12288 * grub-core/loader/lzss.c: New file.
12289 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12290 on Mach-O open failure.
12291 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12292 Don't free cmdsXX in uncompressedXX is set.
12293 (grub_macho_file): Init new fields.
12294 New argument is_64bit. All users updated.
12295 Handle compressed. Error out if no suitable architecture is found.
12297 (grub_macho_open): New argument is_64bit. All users updated.
12298 * grub-core/loader/macho32.c: Add defines for new fields.
12299 * grub-core/loader/macho64.c: Likewise.
12300 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12301 (grub_macho_parse): Handle compressed.
12302 Defer actual processing if compressed.
12303 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12304 "filename". All users updated.
12305 (grub_macho_size): New argument "filename". All users updated.
12306 (grub_macho_get_entry_point): Likewise.
12307 (grub_macho_load): Handle compressed.
12308 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12309 (GRUB_MACHO_LZSS_OFFSET): New define.
12310 (grub_decompress_lzss): New proto.
12311 * include/grub/machoload.h (grub_macho_file): New fields to handle
12313 (grub_macho_contains_macho64): Remove proto.
12314 (grub_macho_contains_macho32): Likewise.
12315 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12317 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12319 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12321 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12325 * Makefile.am (starfield_theme_files): New var.
12326 (starfield_DATA): Use starfield_theme_files.
12327 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12328 Add bootcheck-related files.
12329 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12330 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12331 and font_char_metrics.txt.
12332 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12333 (setjmp): Add lib/ia64/longjmp.S.
12334 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12335 * po/POTFILES.in: Regenerate.
12336 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12337 DISTFILES.common.extra1.
12338 * util/devicemap.c: Removed.
12339 * grub-core/lib/i386/relocator_backward.S: Likewise.
12340 * util/import_gcry.py: Remove unused files. Add extra_dist for
12343 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12345 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12346 grub_gettext_delete_list before changing grub_gettext_max to avoid
12347 running out of array bounds.
12349 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12351 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12352 grub_vga_text_init/grub_vga_text_fini.
12354 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12356 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12358 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12360 * configure.ac: Bump to 2.00~beta0.
12362 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12364 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12365 missing initialisation.
12367 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12369 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12371 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12373 Support v2 xnu boot arguments.
12375 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12376 New argument fsbfreq_out.
12377 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12378 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12380 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12382 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12383 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12384 (grub_xnu_boot_params): Rename to ...
12385 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12386 (grub_xnu_boot_params_v2): New struct.
12388 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12390 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12391 zeroing of CRC field before computing CRC.
12393 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12395 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12396 Change order of allocations to decrease fragmentation.
12398 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12400 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12402 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12404 Use write-combining MTRR to speed up video with buggy BIOSes.
12406 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12407 (cpuid): New define.
12410 (mtrr_base): Likewise.
12411 (mtrr_mask): Likewise.
12412 (grub_vbe_enable_mtrr_entry): New function.
12413 (grub_vbe_enable_mtrr): Likewise.
12414 (grub_vbe_disable_mtrr): Likewise.
12415 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12416 control off to BIOS.
12417 (grub_video_vbe_init): Fill mtrr.
12418 (grub_video_vbe_fini): Disable mtrr.
12419 (grub_video_vbe_get_info_and_fini): Likewise.
12420 (grub_video_vbe_setup): Enable mtrr.
12422 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12424 * include/grub/partition.h (grub_partition_map): Change prototype of
12425 embed to take a maximum value for nsectors.
12426 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12427 * include/grub/fs.h (grub_fs): Likewise.
12428 * grub-core/partmap/msdos.c (embed_signatures): New array.
12429 (pc_partition_map_embed): Check for and avoid sectors matching any
12430 of the signatures in embed_signatures, up to max_nsectors.
12431 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12432 returned sector map to max_nsectors.
12433 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12434 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12435 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12436 * util/grub-setup.c (setup): Allow for the embedding area being
12437 split into multiple blocklists. Tell dest_partmap->embed the
12438 maximum number of sectors we care about.
12440 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12442 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12443 Specify blocklist_install and reserver_first_sector for all fs.
12444 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12447 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12449 * util/grub-install.in: Clarify strings.
12450 Fix source dir check.
12452 2012-02-27 Richard Laager <rlaager@wiktel.com>
12454 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12455 "zfs" and "fuse.zfs" as synonyms.
12457 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12459 * configure.ac: Put platform and target_cpu substitutions back since
12460 they are used for directories.
12462 2012-02-27 Richard Laager <rlaager@wiktel.com>
12463 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12465 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12466 * util/grub.d/20_linux_xen.in: Likewise.
12468 2012-02-27 Richard Laager <rlaager@wiktel.com>
12470 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12473 2012-02-27 Richard Laager <rlaager@wiktel.com>
12475 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12478 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12480 Don't use insecure popen in getroot.
12482 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12483 (exec_pipe): ... here.
12484 (find_root_devices_from_poolname): Use exec_pipe.
12486 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12488 Remove platform and target_cpu replacement.
12490 * configure.ac: Remove platform and target_cpu substitutions.
12491 * tests/util/grub-shell.in: Use modinfo.
12492 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12495 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12497 Autodetect platform in grub-install but allow override.
12499 * util/grub-install.in: Autodetect platform. Support --target and
12500 --directory. Read platform from modinfo.sh.
12502 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12504 Support btrfs multi-volume probe.
12506 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12507 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12508 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12509 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12510 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12511 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12512 grub_find_root_devices_from_btrfs if on btrfs.
12514 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12516 Remove any awareness of *.c util files about target.
12518 * Makefile.util.def (grub-setup): Split to ...
12519 (grub-bios-setup): ... and this.
12520 (grub-sparc64-setup): ... and this.
12521 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12522 * docs/man/grub-setup.h2m: Split into ...
12523 * docs/man/grub-sparc64-setup.h2m: ... this.
12524 * docs/man/grub-bios-setup.h2m: ... and this.
12525 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12526 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12527 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12528 (grub_target_addr_t): Remove.
12529 (grub_target_size_t): Remove.
12530 (grub_target_ssize_t): Remove.
12531 * util/grub-install.in: Use new grub-*-setup.
12532 * util/grub-mkimagexx.c (Elf_Word): New define.
12533 (Elf_Half): Likewise.
12534 (Elf_Section): Likewise.
12535 (ELF_ST_TYPE): Likewise.
12536 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12537 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12539 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12541 Replace grub_target_addr with more appropriate types.
12543 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12544 grub_target_addr with grub_addr.
12545 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12546 grub_target_addr with grub_port.
12547 (grub_cmd_write): Likewise.
12548 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12549 grub_target_addr with grub_addr.
12550 (grub_cmd_write): Likewise.
12551 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12553 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12555 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12556 const qualifier for vendor_guid.
12558 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12560 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12562 (efiemu_memequal): Likewise.
12563 (find_variable): Likewise.
12565 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12567 Fix missing console prototype on qemu-mips.
12569 * include/grub/mips/qemu_mips/console.h: New file.
12571 2012-02-27 Matthew Garrett <mjg@redhat.com>
12572 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12574 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12575 * include/grub/efi/efi.h: Likewise.
12576 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12577 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12578 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12579 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12580 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12581 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12583 2012-02-27 Matthew Garrett <mjg@redhat.com>
12585 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12587 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12589 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12592 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12594 * configure.ac: Remove inappropriate use of program_transform_name
12595 on grubdir and bootdir but allow explicit specification of those
12598 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12600 * util/grub-mknetdir.in (grub_prefix): Removed.
12601 (subdir): Use @bootdirname@ and @grubdirname@.
12603 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12605 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12607 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12609 * po/POTFILES.in: Regenerated.
12611 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12613 Remove improper use of program_transform_name on pkglibrootdir.
12615 * configure.ac (pkglibrootdir): Removed.
12616 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12617 * util/grub-mkimage.c: Likewise.
12619 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12621 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12624 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12626 * util/grub-install.in: Use file identifier if no UUID is available
12627 or user explicitly prompted for it.
12629 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12631 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12632 (freebsd_get_zfs): New function.
12633 (grub_freebsd_boot): Pass zfs UUID.
12634 (grub_cmd_freebsd): Set zfs UUID.
12636 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12638 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12641 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12643 Add configure flag to control libzfs integration.
12645 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12647 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12649 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12651 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12654 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12656 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12657 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12658 be used on non-modules.
12660 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12661 Rename to grub_boot_init.
12662 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12663 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12664 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12665 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12666 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12667 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12668 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12669 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12671 (grub_machine_init): Remove empty inits.
12672 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12674 (grub_machine_init): Remove empty inits.
12675 * grub-core/term/arc/console.c: Remove explicit proto.
12676 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12677 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12678 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12679 grub_at_keyboard_fini.
12680 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12681 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12682 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12684 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12685 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12686 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12688 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12689 * grub-core/term/serial.c (GRUB_MOD_INIT)
12690 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12691 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12693 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12694 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12695 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12696 grub_terminfo_fini.
12697 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12698 (GRUB_MOD_FINI): Likewise.
12699 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12700 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12701 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12702 grub_video_radeon_fuloong2e_fini.
12703 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12704 [LOONGSON]: Rename to grub_video_sis315pro_init.
12705 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12706 grub_video_sis315pro_fini.
12707 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12708 [LOONGSON]: Rename to grub_video_sm712_init.
12709 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12710 grub_video_sm712_fini.
12711 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12712 (grub_at_keyboard_fini): Likewise.
12713 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12714 Don't declare grub_{modname}_init.
12715 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12716 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12718 (grub_keylayouts_fini) [!EMU]: Likewise.
12719 * include/grub/serial.h (grub_serial_init) [!EMU]:
12721 (grub_serial_fini) [!EMU]: Likewise.
12722 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12724 (grub_terminfo_fini) [!EMU]: Likewise.
12725 * include/grub/video.h (grub_font_init) [!EMU]:
12727 (grub_font_fini) [!EMU]: Likewise.
12728 (grub_gfxterm_init) [!EMU]: Likewise.
12729 (grub_gfxterm_fini) [!EMU]: Likewise.
12730 (grub_video_sm712_init) [!EMU]: Likewise.
12731 (grub_video_sm712_fini) [!EMU]: Likewise.
12732 (grub_video_sis315pro_init) [!EMU]: Likewise.
12733 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12734 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12735 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12737 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12739 Make nand a prefix for nand devices.
12741 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12743 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12745 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12746 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12748 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12750 * include/grub/env.h (grub_env_find): Remove prototype.
12751 * grub-core/kern/env.c (grub_env_find): Make static.
12752 (grub_env_set): Remove useless set.
12754 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12756 * grub-core/kern/i386/realmode.S: Remove useless align.
12758 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12760 * include/grub/dl.h (grub_dl_load_file): Don't export.
12762 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12764 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12767 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12769 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12771 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12772 not reloading whole superblock but only the part which is really needed.
12773 Remove useless grub_errors.
12774 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12777 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12779 Don't export grub_get_rtc.
12781 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12782 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12784 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12786 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12788 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12790 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12791 argument since it can be deduced from diskfilter. All users updated.
12793 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12797 * include/grub/list.h (grub_prio_list): Removed.
12798 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12799 GRUB_COMMAND_PRIO_MASK.
12800 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12801 GRUB_COMMAND_FLAG_ACTIVE.
12802 (grub_prio_list_insert): Removed.
12803 (grub_prio_list_remove): Likewise.
12804 (GRUB_AS_PRIO_LIST): Likewise.
12805 (GRUB_AS_PRIO_LIST_P): Likewise.
12806 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12807 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12808 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12809 * grub-core/kern/command.c (grub_register_command_prio): Inline
12810 the prio_list code.
12811 (grub_unregister_command): Likewise.
12813 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12815 Fix interrupt mixup from previous commit.
12817 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12818 (grub_realidt): New var.
12819 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12821 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12823 (grub_relocator16_boot): Set grub_relocator16_idt.
12824 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12825 (LOCAL(realidt)): ... this.
12826 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12827 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12828 (grub_realidt): New variable.
12830 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12832 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12833 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12834 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12835 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12837 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12838 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12839 * po/POTFILES.in: Regenerate.
12841 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12843 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12846 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12848 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12850 (add_length): Likewise.
12852 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12853 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12855 GDB serial and backtrace support.
12857 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12858 (prot_to_real): Likewise.
12859 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12860 * grub-core/Makefile.core.def (backtrace): New module.
12862 * grub-core/gdb/cstub.c: New file.
12863 * grub-core/gdb/gdb.c: Likewise.
12864 * grub-core/gdb/i386/idt.c: Likewise.
12865 * grub-core/gdb/i386/machdep.S: Likewise.
12866 * grub-core/gdb/i386/signal.c: Likewise.
12867 * grub-core/lib/i386/backtrace.c: Likewise.
12868 * grub-core/lib/backtrace.c: Likewise.
12869 * include/grub/backtrace.h: Likewise.
12870 * include/grub/gdb.h: Likewise.
12871 * include/grub/i386/gdb.h: Likewise.
12873 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12875 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12877 (add_length): Likewise.
12878 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12879 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12881 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12882 __argp_get_display_len.
12884 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12886 $"..." support in scripts.
12888 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12889 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12890 * grub-core/script/yylex.l: Likewise.
12891 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12894 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12896 * gentpl.py: Remove obsolete pkglib_DATA handling.
12898 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12900 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12903 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12904 * util/grub-kbdcomp.in: Likewise.
12905 * util/grub-mkconfig.in: Likewise.
12906 * util/grub-mkconfig_lib.in: Likewise.
12907 * util/grub-mknetdir.in: Likewise.
12908 * util/grub-mkrescue.in: Likewise.
12909 * util/grub-mkstandalone.in: Likewise.
12910 * util/grub-reboot.in: Likewise.
12911 * util/grub-set-default.in: Likewise.
12912 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12914 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12916 Remove GRUB_PREFIX.
12918 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12919 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12920 used for backward compatibility.
12922 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12924 Add new all_video module.
12926 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12927 * grub-core/Makefile.core.def (all_video): New module.
12928 * grub-core/genmoddep.awk: Generate dependency of all_video from
12930 * grub-core/lib/fake_module.c: New file.
12931 * grub-core/normal/main.c (features): Add feature_all_video_module.
12932 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12933 don't do explicit search again.
12934 insmod all_video in load_video if available.
12936 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12938 Another round of string clarification and adding TRANSLATORS comments.
12940 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12942 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12944 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12946 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12948 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12949 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12951 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12953 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12954 trailing newline implicitly. All users updated.
12956 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12958 Implement serial on IEEE1275 and EFI.
12960 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12961 on emu. Mention arc and emu as the only platforms without serial
12963 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12964 ieee1275 platforms.
12965 * grub-core/term/efi/serial.c: New file.
12966 * grub-core/term/ieee1275/serial.c: Likewise.
12967 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12968 specification if no ns8250 driver is available.
12969 (grub_cmd_serial): Likewise.
12970 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12971 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12972 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12973 (grub_efi_parity_type_t): New type.
12974 (grub_efi_stop_bits_t): Likewise.
12975 (grub_efi_serial_io_interface): New struct.
12976 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12977 available for all interfaces.
12978 Add EFI and IEEE1275 fields.
12979 (grub_ofserial_init): New proto.
12980 (grub_efiserial_init): Likeiwse.
12981 * util/grub.d/00_header.in: Don't check for the presence of serial
12984 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12986 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12987 name as if it was an alias.
12989 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12991 * grub-core/commands/lsacpi.c (options): Fix typo.
12993 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12995 Convert grub-emu to argp.
12997 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12999 * util/argp_common.c: Rename to ...
13000 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
13001 Add missing includes.
13002 * grub-core/kern/emu/main.c: Convert to argp.
13003 * po/POTFILES.in: Regenerate.
13004 * util/grub-install.in (usage): Make first letter lowcase in messages
13006 * util/grub-setup.c (options): Likewise.
13008 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13010 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
13011 Put back accidently commented-out code.
13013 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13015 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
13016 loop check using Brent algorithm.
13017 (grub_hfsplus_btree_search): Likewise.
13019 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13021 * util/grub-install.in: Fix usage of wrong device for PreP install.
13023 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13025 * conf/Makefile.common (CFLAGS_GNULIB): Add
13026 -Wno-unsafe-loop-optimizations.
13027 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
13029 * grub-core/commands/legacycfg.c: Add pragma to skip
13030 -Wunsafe-loop-optimizations.
13031 (check_password_md5_real): Fix loop counter type.
13032 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
13034 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
13035 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
13037 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
13038 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
13039 * grub-core/net/net.c (grub_net_route_address): Add safety loop
13041 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
13042 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
13043 avoid possible infinite loops.
13044 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
13045 and -Wunsafe-loop-optimizations.
13046 * grub-core/script/yylex.l: Likewise.
13047 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
13048 (print_glyphs): Avoid infinite loops.
13049 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
13051 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
13053 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
13054 to avoid infinite loop.
13055 (disp_acpi_rsdt_table): Likewise.
13057 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13059 * grub-core/font/font.c (grub_font_load): Add support for default
13060 path for fonts ($prefix/fonts).
13061 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
13062 for checking if string is a path.
13063 * grub-core/normal/main.c (features): Add feature_default_font_path.
13064 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
13065 * util/grub.d/00_header.in: Use default directory if possible.
13066 * util/grub-install.in: Install unicode.pf2.
13068 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13070 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
13071 * po/Rules-swiss: New file.
13072 * po/swiss.sed: Likewise.
13074 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
13076 * grub-core/fs/btrfs.c (find_device): Fix typos.
13077 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
13078 * util/grub-mkrelpath.c (argp_parser): Likewise.
13079 Reported by: Yuri Chornoivan.
13081 2012-02-23 Dalet Omega <daletomega@gmail.com>
13083 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
13084 for usual informative messages.
13086 2012-02-23 Dalet Omega <daletomega@gmail.com>
13090 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
13091 * conf/Makefile.common: Define starfielddir.
13092 * configure.ac: Configure starfield.
13093 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
13094 * themes/starfield/README: Likewise.
13095 * themes/starfield/blob_w.png: Likewise.
13096 * themes/starfield/boot_menu_c.png: Likewise.
13097 * themes/starfield/boot_menu_e.png: Likewise.
13098 * themes/starfield/boot_menu_n.png: Likewise.
13099 * themes/starfield/boot_menu_ne.png: Likewise.
13100 * themes/starfield/boot_menu_nw.png: Likewise.
13101 * themes/starfield/boot_menu_s.png: Likewise.
13102 * themes/starfield/boot_menu_se.png: Likewise.
13103 * themes/starfield/boot_menu_sw.png: Likewise.
13104 * themes/starfield/boot_menu_w.png: Likewise.
13105 * themes/starfield/slider_c.png: Likewise.
13106 * themes/starfield/slider_n.png: Likewise.
13107 * themes/starfield/slider_s.png: Likewise.
13108 * themes/starfield/src/blob_nw.xcf: Likewise.
13109 * themes/starfield/src/bootmenu/: Likewise.
13110 * themes/starfield/src/bootmenu/center.xcf: Likewise.
13111 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
13112 * themes/starfield/src/bootmenu/side.xcf: Likewise.
13113 * themes/starfield/src/slider_c.xcf: Likewise.
13114 * themes/starfield/src/slider_n.xcf: Likewise.
13115 * themes/starfield/src/slider_s.xcf: Likewise.
13116 * themes/starfield/src/terminalbox/: Likewise.
13117 * themes/starfield/src/terminalbox/center.xcf: Likewise.
13118 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
13119 * themes/starfield/src/terminalbox/side.xcf: Likewise.
13120 * themes/starfield/starfield.png: Likewise.
13121 * themes/starfield/terminal_box_c.png: Likewise.
13122 * themes/starfield/terminal_box_e.png: Likewise.
13123 * themes/starfield/terminal_box_n.png: Likewise.
13124 * themes/starfield/terminal_box_ne.png: Likewise.
13125 * themes/starfield/terminal_box_nw.png: Likewise.
13126 * themes/starfield/terminal_box_s.png: Likewise.
13127 * themes/starfield/terminal_box_se.png: Likewise.
13128 * themes/starfield/terminal_box_sw.png: Likewise.
13129 * themes/starfield/terminal_box_w.png: Likewise.
13130 * themes/starfield/theme.txt: Likewise.
13132 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
13134 * util/grub.d/00_header.in: Add missing export theme.
13136 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13138 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
13140 Reported by: Eren D.
13142 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13144 * conf/Makefile.common (grubdatadir): Removed.
13145 (Makefile.am): Move eveything grubdata to pkgdata.
13147 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13149 * grub-core/commands/acpihalt.c (get_sleep_type):
13150 Remove unused variable.
13152 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13154 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
13155 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
13156 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
13157 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
13158 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
13159 i18n with gettext no-op.
13160 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
13161 GRUB_ACPI_OPCODE_STRING_CONST.
13162 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
13163 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
13165 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13167 * po/POTFILES.in: Regenerate.
13169 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13171 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
13172 -Wno-error=missing-noreturn.
13174 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13176 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
13177 condition to avoid possibly infinite loops.
13178 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
13179 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
13181 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13183 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
13184 condition to avoid possibly infinite loops.
13186 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13188 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
13191 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13193 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13195 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13197 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13199 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13201 * util/bin2h.c (usage): Add missing attribute noreturn.
13203 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13205 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13206 if the size isn't divisible by 512.
13208 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13210 Make list_push and list_remove functions rather than inline functions
13211 to decrease size and avoid aliasing violations.
13213 * include/grub/list.h (grub_list_push): Move to ...
13214 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13215 * include/grub/list.h (grub_list_remove): Move to ...
13216 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13218 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13220 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13221 and -Wunused-result.
13223 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13225 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13226 Reported by: Seth Goldberg
13228 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13230 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13232 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13234 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13235 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13237 * docs/grub.texi (Simple configuration): Document
13238 GRUB_CMDLINE_GNUMACH.
13240 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13242 * conf/Makefile.common (platform_SCRIPTS): New variable.
13243 (platform_PROGRAMS): Likewise.
13244 * gentpl.py: Mark *,module and *.image for install.
13245 * grub-core/gdb_grub.in: Add a notice of expected environment.
13246 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13247 (gmodule.pl): Likewise.
13249 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13251 Replace grub_checkkey with grub_getkey_noblock.
13253 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13254 (grub_getkey_noblock): ... this. All users updated.
13256 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13258 * grub-core/kern/emu/console.c: Move to ...
13259 * grub-core/term/emu/console.c: ...here.
13260 (grub_ncurses_getkey): Fix return value if no key is detected.
13262 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13264 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13265 (grub_unit_test_fini): Likewise.
13266 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13268 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13270 * include/grub/test.h (GRUB_UNIT_TEST)
13272 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13274 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13275 Better error handling.
13276 (grub_script_return): Likewise.
13277 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13279 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13281 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13282 rimplicit redifinition.
13284 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13286 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13289 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13291 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13292 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13295 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13297 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13298 as GRUB_ERR_BUG. Don't malloc if no device is available.
13300 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13302 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13303 Mark calling with invalid term as GRUB_ERR_BUG.
13305 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13307 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13308 packets rather than raising an error.
13310 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13312 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13315 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13317 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13318 diagnostic to dprintf.
13319 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13321 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13323 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13326 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13328 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13329 (grub_ntfs_iterate_dir): Likewise.
13331 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13333 Efiemu stylistic fixes and gettext.
13335 * grub-core/efiemu/i386/loadcore32.c
13336 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13337 * grub-core/efiemu/i386/loadcore64.c
13338 (grub_arch_efiemu_relocate_symbols64): Likewise.
13339 * grub-core/efiemu/i386/pc/cfgtables.c
13340 (grub_machine_efiemu_init_tables): Likewise.
13341 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13342 (grub_efiemu_loadcore_initXX): Add a filename argument.
13344 Improved error message.
13345 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13346 Add a filename argument.
13348 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13349 Reclassify double relocation as GRUB_ERR_BUG.
13351 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13353 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13356 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13358 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13361 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13363 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13365 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13367 Improve string. Gettextize.
13369 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13371 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13373 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13375 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13377 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13378 [GRUB_UTIL]: New function.
13379 (insert_array) [GRUB_UTIL]: Store partmaps.
13380 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13382 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13383 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13384 (probe_abstraction): Print diskfilter and not raid.
13385 Reported by: Lennart Sorensen
13387 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13389 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13390 * util/grub-mkimagexx.c (MASK3): New define.
13391 (add_value_to_slot_20b): Use MASK3.
13392 (add_value_to_slot_21): Likewise.
13393 (relocate_addresses): Fix format specification.
13394 (load_image): Explicitly init symtab_section.
13396 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13398 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13399 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13401 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13403 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13405 Reported by: Lennart Sorensen
13407 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13409 * gentpl.py: Add missing license header.
13410 * docs/grub.texi: Update copyright year.
13412 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13414 Source grub-mkconfig_lib from the build directory at build time.
13415 Suggested by: Vladimir Serbinenko.
13417 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13418 * util/grub-install.in: Define pkgdatadir if not already set, and source
13419 grub-mkconfig_lib from there.
13420 * util/grub-kbdcomp.in: Likewise.
13421 * util/grub-mkconfig.in: Likewise.
13422 * util/grub-mknetdir.in: Likewise.
13423 * util/grub-mkrescue.in: Likewise.
13424 * util/grub-mkstandalone.in: Likewise.
13425 * util/grub-reboot.in: Likewise.
13426 * util/grub-set-default.in: Likewise.
13427 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13429 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13431 Increase warning level.
13433 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13434 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13435 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13436 (TARGET_CFLAGS): Likewise.
13437 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13438 * grub-core/Makefile.core.def (decompressor_xz): Add
13439 -Wno-unreachable-code.
13440 (normal): Add -Wno-redundant-decls.
13441 (xzio): Add -Wno-unreachable-code.
13442 (lzopio): Add -Wno-redundant-decls -Wno-error.
13443 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13444 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13445 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13446 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13447 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13448 * grub-core/kern/i386/coreboot/init.c: Add exception to
13449 -Wsuggest-attribute=noreturn.
13450 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13451 * grub-core/kern/ia64/dl_helper.c: Likewise.
13452 * grub-core/kern/mips/dl.c: Likewise.
13453 * grub-core/kern/sparc64/dl.c: Likewise.
13454 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13455 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13456 (memcmp): Likewise.
13457 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13458 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13459 * grub-core/loader/mips/linux.c: Likewise.
13460 * grub-core/loader/multiboot_elfxx.c: Likewise.
13461 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13462 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13463 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13464 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13466 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13467 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13470 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13472 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13475 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13477 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13478 Avoid improper use of strings.
13479 (grub_cmd_legacy_initrdnounzip): Likewise.
13481 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13483 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13485 (grub_util_info): Likewise.
13486 (grub_util_error): Likewise.
13488 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13490 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13491 * util/grub-fstest.c (fstest): Likewise.
13493 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13495 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13496 (grub_md_sha512_real): Likewise.
13497 (grub_util_get_geli_uuid): Likewise.
13498 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13499 (grub_util_biosdisk_open): Fix format specification.
13500 Respect format security.
13501 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13502 (xrealloc): Likewise.
13503 (xasprintf): Likewise.
13505 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13507 * util/import_gcry.py: Include grub/crypto.h in init.c.
13509 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13511 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13512 (generate_image): Make prefix a const char *.
13513 Fix format specifications. Respect format security.
13514 Avoid void * arithmetics.
13516 (argp_parser): Remove unused variable. Respect format security.
13517 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13518 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13519 (count_funcs): Remove unused variable.
13520 (relocate_addresses): Fix format specification.
13521 Disable x86-64 with elf32. Remove unused variables.
13522 (add_fixup_entry): Avoid shadowing.
13523 (make_reloc_section): Fix format specification.
13525 (locate_sections): Fix format specifications.
13526 (load_image): Avoid shadowing.
13528 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13530 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13531 Fix format specifications. Respect format security.
13532 Don't translate already translated grub_errmsg.
13533 (argp_parser): Remove unused variable
13535 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13537 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13539 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13541 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13542 (main): Likewise. Use xmalloc. Respect format security.
13544 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13546 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13548 (argp_parser): Remove unused variable.
13550 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13552 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13553 (add_pixel): Make static.
13554 (add_font): Likewise.
13555 (write_string_section): Make name and str a const char *.
13556 (write_be16_section): Make name a const char *.
13557 (print_glyphs): Make static.
13558 (write_font_ascii_bitmap): Likewise.
13559 (write_font_width_spec): Likewise.
13560 (write_font_pf2): Likewise.
13561 (argp_parser): Remove unused variable.
13562 Respect format security.
13563 (main): Avoid shadowing. Respect format security.
13565 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13567 * util/grub-editenv.c (argp_parser): Make static.
13568 (create_envblk_file): Use xmalloc.
13569 (open_envblk_file): Likewise.
13570 Resepect format security.
13571 (set_variables): Respect format security.
13573 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13575 * util/getroot.c (grub_find_device): Respect format security.
13576 (get_mdadm_uuid): Remove unused variable.
13577 (grub_util_pull_device): Dont call gettext on already translated
13579 (find_system_device): Remove unused variable.
13580 (grub_util_get_grub_dev): Likewise.
13581 (grub_make_system_path_relative_to_its_root): Respect format security.
13583 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13585 * util/grub-fstest.c (execute_command): Make first argument
13587 (read_file): Avoid shadowing.
13588 Reuse underlying error message if device open fails.
13589 (cmd_cmp): Respect format security.
13590 (root): Make const char *.
13591 (fstest): Remove args argument and use global copy.
13592 Respect format security.
13593 (argp_parser): Make static.
13594 (main): Make default_root const char *.
13596 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13598 * util/grub-mount.c (root): Make const char *.
13599 (execute_command): Make first argument a const char *.
13600 (fuse_init): Respect format security.
13601 (argp_parser): Make static. Remove unused variable.
13602 (main): Make default_root a const char *.
13603 Respect format security.
13605 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13607 * util/grub-probe.c (probe): Don't call gettext on already translated
13609 Remove unused variables.
13610 (argp_parser): Remove unused variable.
13612 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13614 * util/grub-script-check.c (argp_parser): Remove unused variable.
13615 (main): Rename read to curread to avoid shadowing.
13617 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13619 * util/misc.c (grub_util_write_image_at): Fix format specification.
13620 (grub_util_write_image): Likewise.
13621 (grub_script_execute_argument_to_string): Removed (unused).
13622 (grub_script_execute_menuentry): Likewise.
13623 (grub_putchar): Likewise.
13625 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13627 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13628 (FUNCTION) [GRUB_UTIL]: Likewise.
13629 (VARIABLE) [GRUB_UTIL]: Likewise.
13631 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13633 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13634 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13636 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13638 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13641 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13643 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13644 (LzmaEnc_SaveState): Removed (unused).
13645 (LzmaEnc_RestoreState): Likewise.
13646 (LzmaEnc_InitPriceTables): Made static.
13647 (LzmaEnc_Construct): Likewise.
13648 (LzmaEnc_FreeLits): Likewise.
13649 (LzmaEnc_Destruct): Likewise.
13650 (LzmaEnc_Init): Likewise.
13651 (LzmaEnc_InitPrices): Likewise.
13652 (LzmaEnc_Finish): Likewise.
13653 (LzmaEnc_PrepareForLzma2): Removed (unused).
13654 (LzmaEnc_MemPrepare): Likewise.
13655 (LzmaEnc_GetNumAvailableBytes): Likewise.
13656 (LzmaEnc_GetCurBuf): Likewise.
13657 (LzmaEnc_CodeOneMemBlock): Likewise.
13659 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13661 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13662 (grub_util_ldm_embed): Likewise.
13664 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13666 * util/grub-editenv.c (print_var): Rename name to varname to
13668 (main): Rename index to curindex to avoid shadowing.
13669 Make filename a const char *.
13671 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13673 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13674 to arg_getline to avoid shadowing.
13676 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13678 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13679 disk_ to avoid shadowing.
13681 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13683 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13684 curindex to avoid shadowing.
13686 (MatchFinder_GetNumAvailableBytes): Make static.
13688 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13690 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13693 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13695 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13696 argument from encrypt to do_encrypt to avoid shadowing.
13698 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13700 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13701 incorrect nesting of #if's.
13703 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13705 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13706 checks which are always false on some platforms.
13707 (grub_cmd_lsacpi): Likewise.
13708 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13709 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13712 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13714 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13715 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13717 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13719 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13720 re_dfa_t to avoid breaking alignment invariants.
13721 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13722 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13724 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13726 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13727 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13729 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13731 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13734 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13736 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13737 conserve alignment invariants.
13738 (grub_ehci_ehcc_read16): Likewise.
13739 (grub_ehci_oper_read32): Likewise.
13740 (grub_ehci_oper_write32): Likewise.
13741 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13742 Conserve alignment invariants.
13744 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13746 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13747 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13750 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13752 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13753 Remove unused variable.
13755 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13757 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13760 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13762 * include/grub/net.h: Remove double declarations.
13764 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13766 Remove "payload" command in ia64 Linux loader since I couldn't
13767 find any evidence of it being used for anything.
13768 Replace "relocate" command with an environment variable
13770 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13772 (ia64_boot_payload): Removed.
13773 (last_payload): Likewise.
13774 (RELOCATE_OFF): Likewise.
13775 (RELOCATE_ON): Likewise.
13776 (RELOCATE_FORCE): Likewise.
13777 (relocate): Likewise.
13778 (free_pages): Don't free payloads.
13779 (grub_load_elf64): Use common error messages.
13780 Use "linux_relocate" variable.
13781 Increase the space after boot_params.
13782 (grub_cmd_payload): Removed.
13783 (grub_cmd_relocate): Likewise.
13784 (grub_cmd_fpswa): Improve messages.
13785 (cmd_payload): Removed.
13786 (cmd_relocate): Likewise.
13787 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13788 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13790 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13792 Convert UHCI to DMA framework.
13794 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13795 (grub_uhci_pci_iter): Fill new members
13796 (grub_alloc_td): Use P2V and V2P functions.
13797 (grub_free_queue): Likewise.
13798 (grub_alloc_qh): Likewise.
13799 (grub_uhci_setup_transfer): Likewise.
13800 (grub_uhci_check_transfer): Likewise.
13802 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13804 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13805 Remove assignment in if while on it.
13807 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13809 * util/grub-mkstandalone.in: Fix modules directory.
13811 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13813 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13815 (argp_parser): Accept "auto" as compression specification.
13817 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13819 Fix `help' with unloaded modules.
13821 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13822 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13823 (grub_dyncmd_dispatcher): Small stylistic fix.
13824 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13825 explicit help is requested.
13827 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13829 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13830 Explicitly init restart while on it.
13832 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13834 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13837 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13839 * util/grub-mknetdir.in: Use . rather than source for POSIX
13842 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13844 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13846 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13848 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13851 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13853 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13856 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13858 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13860 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13862 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13863 iteration of partitions.
13865 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13867 Improve gettext support. Stylistic fixes and error handling fixes while
13870 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13872 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13873 part. Instead setup the correct stack in RM.
13874 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13876 * include/grub/i386/relocator_private.h: New file.
13878 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13880 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13882 * util/grub-fstest.c (options): Add missing DEVICE part.
13884 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13886 Clarify and unify messages.
13888 * grub-core/commands/hashsum.c (options): Unify messages.
13889 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13890 literal-only message as translatable.
13891 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13892 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13893 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13895 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13896 key, not the key used to unlock. Clarify what it's used for.
13897 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13898 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13899 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13900 * util/grub-editenv.c (options): Unify "verbose" message.
13901 * util/grub-fstest.c (read_file): Unify error message.
13902 (fstest): Add quotes around commands.
13903 (options): Unify "verbose" message.
13904 * util/grub-install.in: Add quotes around variable name.
13905 * util/grub-kbdcomp.in: Unify error message.
13906 * util/grub-mkfont.c (main): Likewise.
13907 * util/grub-mkrescue.in: Likewise.
13908 * util/grub-mklayout.c (options): Unify "verbose" message.
13909 * util/grub-mkstandalone.in: Unify help and verbose messages.
13910 * util/grub-mount.c (options): Unify "verbose" message.
13911 * util/grub-probe.c (options): Likewise.
13912 * util/grub-script-check.c (options): Likewise.
13913 * util/grub-setup.c (setup): Unify no-terminator message.
13914 (options): Use DEVICE and not DEV.
13915 Unify "verbose" message.
13916 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13918 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13920 Improve and unify messages.
13922 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13923 name. All users updated.
13924 Print filename in error.
13925 (read_device_map): Print filename in error.
13926 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13927 (grub_util_get_os_disk): Likewise.
13928 (grub_util_biosdisk_get_grub_dev): Likewise.
13929 (grub_util_check_block_device): Likewise.
13930 (grub_util_check_char_device): Likewise.
13931 (grub_make_system_path_relative_to_its_root): Likewise.
13932 * util/grub-editenv.c (create_envblk_file): Likewise.
13933 (open_envblk_file): Likewise.
13934 (write_envblk): Likewise.
13935 * util/grub-fstest.c (cmd_cp): Likewise.
13936 (cmd_cat): Likewise.
13937 (cmd_cmp): Likewise.
13938 * util/grub-menulst2cfg.c (main): Likewise.
13939 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13940 (write_font_width_spec): Likewise.
13941 (write_font_pf2): Likewise.
13942 * util/grub-mkimage.c (generate_image): New argument outname.
13944 Remove unreacheable message.
13945 (options): Unify messages.
13946 (help_filter): Likewise.
13947 * util/grub-mklayout.c (usage): Removed (unused).
13948 (main): Print filename in error.
13949 * util/grub-mkrescue.in: Fix wrong quoting.
13950 * util/grub-setup.c (setup): Print filename in error.
13951 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13952 (check_sas): Likewise.
13953 * util/misc.c (grub_util_get_fp_size): Removed.
13954 (grub_util_get_image_size): Print filename in error.
13955 (grub_util_read_at): Removed.
13956 (grub_util_read_image): Print filename in error.
13957 (grub_util_load_image): Likewise.
13958 (grub_util_write_image_at): New argument filename. All users updated.
13959 Print filename in error.
13960 (grub_util_write_image): New argument filename. All users updated.
13961 Print filename in error.
13962 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13963 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13965 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13967 * grub-core/Makefile.core.def (pxechain): New module.
13968 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13969 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13971 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13972 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13974 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13976 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13977 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13978 * include/grub/err.h (grub_error_saved): New struct.
13979 (grub_errmsg): Make array size explicit.
13980 * include/grub/misc.h (grub_error_save): New function.
13981 (grub_error_load): Likewise.
13982 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13983 (grub_error_push): Update `errno' member name.
13984 (grub_error_pop): Likewise
13985 * grub-core/net/tftp.c (tftp_data): New member save_err.
13986 (tftp_receive): Save error.
13987 (tftp_open): Restore error.
13989 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13991 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13992 to real mode down to execute A20-related code in protected mode as
13995 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13997 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13998 NULL when the argument `level' has an unexpected value.
14000 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
14002 Move platform-dependent files from $prefix to $prefix/$platform.
14004 * config.h.in (GRUB_TARGET_CPU): New definition.
14005 (GRUB_PLATFORM): Likewise.
14006 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
14007 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
14008 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
14009 * grub-core/kern/dl.c (grub_dl_load): Likewise.
14010 * grub-core/normal/autofs.c (read_fs_list): Likewise.
14011 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
14012 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
14013 * grub-core/normal/term.c (read_terminal_list): Likewise.
14014 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
14016 (grub_gettext_init_ext): Likewise.
14017 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
14019 * util/grub-install.in: Update directories.
14020 * util/grub-mknetdir.in: Likewise.
14021 * util/grub-mkrescue.in: Likewise.
14023 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
14025 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
14026 grub_error framework. All users updated.
14028 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
14030 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
14031 lists (by always binsearching), improve caching (cache strings
14032 used for binsearch, not only results), improve
14033 maintainability (by using more structured binary search) and correct
14036 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
14038 * grub-core/script/execute.c (grub_script_return): Fix warning.
14040 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
14042 * grub-core/script/execute.c (grub_script_return): Fix potential
14044 Reported by: Jim Meyering.
14046 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14048 * po/POTFILES.in: Regenerate.
14049 * util/grub-install.in: Gettextize the strings missed in first pass.
14051 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14053 * Makefile.util.def (grub-mkdevicemap): Removed.
14054 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
14055 * include/grub/util/deviceiter.h: Removed.
14056 * util/deviceiter.c: Likewise.
14057 * util/getroot.c (grub_util_get_os_disk): New function.
14058 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
14059 replacement for EFI.
14060 * util/grub-mkdevicemap.c: Removed.
14061 * util/grub-probe.c (probe): Handle PRINT_DISK.
14062 (argp_parser): Handle -t disk.
14064 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14066 * util/grub-mkfont.c: Migrate to argp.
14067 * util/grub-mklayout.c: Likewise.
14068 * util/grub-mkpasswd-pbkdf2.c: Likewise.
14069 * util/grub-mkrelpath.c: Likewise.
14070 * util/grub-probe.c: Likewise.
14071 * util/grub-script-check.c: Likewise.
14073 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14075 * util/grub-reboot.in: Add missing datarootdir.
14076 Add missing newline.
14077 * util/grub-set-default.in: Add missing datarootdir.
14078 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
14079 * util/grub-mkrescue.in: Likewise.
14081 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14083 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
14085 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14087 * util/grub-kbdcomp.in: Add decent help and gettextize.
14088 * docs/man/grub-kbdcomp.h2m: New file.
14090 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14092 Migrate grub-mkimage.c to argp.
14094 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
14095 (grub-setup): Likewise.
14096 * util/grub-setup.c (print_version): Move to ...
14097 * util/argp_common.c (print_version): ... here.
14098 * util/grub-setup.c (argp_program_version_hook): Move to ...
14099 * util/argp_common.c (argp_program_version_hook): ... here.
14100 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
14102 * util/grub-mkimage.c (main): Migrate to argp.
14104 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14106 * util/grub-mkrescue.in: Use same message as
14107 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
14108 for better translations.
14110 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14112 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
14113 options with generic grub-mkrescue.in with the goal of future
14116 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14118 * grub-core/kern/mm.c: Add missing include of i18n.h
14119 * grub-core/lib/relocator.c: Likewise.
14121 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14123 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
14125 (allocate_pages): Check return value.
14126 Replace fatal with error.
14127 (grub_linux_boot): Replace printf with dprintf.
14128 Check find_mmap_size return value.
14129 Replace fatal with error.
14130 Don't call grub_machine_fini.
14131 (grub_load_elf64): Replace printf with dprintf.
14132 (grub_cmd_linux): Likewise.
14133 (grub_cmd_initrd): Likewise.
14134 (grub_cmd_payload): Likewise.
14136 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14138 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
14140 * grub-core/video/radeon_fuloong2e.c
14141 (grub_video_radeon_fuloong2e_setup): Likewise.
14142 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
14143 * grub-core/video/video.c (grub_video_set_mode): Don't override
14144 standard out of memory message.
14146 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14148 NetBSD disk wedge support.
14150 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
14151 [__NetBSD__]: Handle NetBSD disk wedges.
14152 * util/getroot.c (convert_system_partition_to_system_disk)
14153 [__NetBSD__]: Likewise.
14155 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
14157 * util/grub-mkconfig.in: Use umask rather than chmod to create
14158 grub.cfg.new to avoid insecure grub.cfg.
14160 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14162 * grub-core/commands/ls.c: Gettextize.
14163 * grub-core/commands/setpci.c: Likewise.
14164 * grub-core/commands/videotest.c: Likewise.
14165 * grub-core/disk/geli.c: Likewise.
14166 * grub-core/kern/mm.c: Likewise.
14167 * grub-core/lib/relocator.c: Likewise.
14168 * grub-core/loader/efi/appleloader.c: Likewise.
14169 * grub-core/loader/i386/xnu.c: Likewise.
14170 * grub-core/loader/ia64/efi/linux.c: Likewise.
14171 * grub-core/loader/xnu.c: Likewise.
14172 * grub-core/net/dns.c: Likewise.
14173 * grub-core/net/net.c: Likewise.
14174 * grub-core/script/lexer.c: Likewise.
14175 * grub-core/script/parser.y: Likewise.
14176 * grub-core/script/yylex.l: Likewise.
14177 * util/getroot.c: Likewise.
14178 * util/grub-setup.c: Likewise.
14180 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14182 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
14185 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14187 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
14189 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14191 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14193 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14194 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14196 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14198 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14199 * util/grub-install.in: Gettextize.
14200 * util/grub-mkconfig.in: Likewise.
14201 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14203 (grub_warn): Gettextize.
14204 * util/grub-mknetdir.in: Gettextize.
14205 * util/grub-mkrescue.in: Likewise.
14206 * util/grub-mkstandalone.in: Likewise.
14207 * util/grub-reboot.in: Likewise.
14208 * util/grub-set-default.in: Likewise.
14209 * util/grub.d/00_header.in: Likewise.
14210 * util/grub.d/10_hurd.in: Likewise.
14211 * util/grub.d/10_kfreebsd.in: Likewise.
14212 * util/grub.d/10_linux.in: Likewise.
14213 * util/grub.d/10_netbsd.in: Likewise.
14214 * util/grub.d/10_windows.in: Likewise.
14215 * util/grub.d/20_linux_xen.in: Likewise.
14216 * util/grub.d/30_os-prober.in: Likewise.
14217 * po/POTFILES-shell.in: Regenerate.
14219 2012-02-03 Richard Laager <rlaager@wiktel.com>
14221 * util/grub-mkimage.c (main): Fix format-security warning.
14222 * util/grub-mkrelpath.c (main): Likewise.
14223 * util/grub-probe.c (main): Likewise.
14225 2012-02-03 Richard Laager <rlaager@wiktel.com>
14227 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14229 Put back lost PRINT_DRIVE.
14231 2012-02-03 Richard Laager <rlaager@wiktel.com>
14233 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14234 (grub_guess_root_devices): Replace strlen with sizeof.
14236 (find_root_devices_from_poolname): Remove unused variable.
14239 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14241 Support install on multi-device filesystems.
14243 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14244 (grub_guess_root_devices): ...this. Return char **. All users updated.
14245 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14247 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14248 (find_root_devices_from_poolname): ... here.
14249 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14251 (grub_guess_root_device): Rename to ...
14252 (grub_guess_root_devices): ... this. Return char **. All users updated.
14253 * util/grub-install.in: Handle multi-device filesystems.
14254 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14255 argument. All users updated.
14256 Handle multi-device filesystems.
14257 Use 'delim' as separator.
14258 Remove device check to allow filesystems on file.
14259 (main): Support -0 argument. Handle multi-device.
14260 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14261 Fix a cross-device check while on it.
14262 (arguments): Remove root_dev.
14263 (argp_parser): Remove -r.
14264 (main): Remove root_dev.
14266 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14268 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14270 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14272 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14274 Reported by: NODA, Kai <nodakai>.
14276 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14280 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14282 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14283 (grub_ehci_setup_qh): Likewise.
14284 (grub_ehci_find_qh): Likewise.
14285 (grub_ehci_transaction): Likewise.
14286 (grub_ehci_setup_transfer): Likewise.
14287 (grub_ehci_check_transfer): Likewise.
14288 (grub_ehci_portstatus): Likewise.
14289 (grub_ehci_detect_dev): Likewise.
14290 (grub_ehci_transfer_controller_data): New field td_last_phys.
14291 (grub_ehci_setup_transfer): Fill td_last_phys.
14292 (grub_ehci_check_transfer): Use td_last_phys.
14294 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14296 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14297 if no submenu is present.
14299 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14303 * include/grub/usb.h (grub_usbms_protocol_t): New values
14304 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14305 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14306 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14307 (grub_usbms_dev): Add subclass, protocol and intrpt.
14308 Remove in_maxsz and out_maxsz.
14309 (grub_usbms_reset): Rename to ...
14310 (grub_usbms_bo_reset): .. this.
14311 (grub_usbms_cbi_cmd): New function.
14312 (grub_usbms_cbi_reset): Likewise.
14313 (grub_usbms_reset): Likewise.
14314 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14315 (grub_usbms_transfer): Rename to ...
14316 (grub_usbms_transfer_bo): ... this.
14317 (grub_usbms_transfer_cbi): Likewise.
14318 (grub_usbms_transfer): Likewise.
14320 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14321 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14323 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14324 the support for the CS5536 modification thereos and few bugfixes.
14326 * grub-core/Makefile.core.def (ehci): New module.
14327 * grub-core/bus/usb/ehci.c: New file.
14328 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14329 port and hubaddr. All users updated.
14330 Save port and hubaddr into dev structure.
14331 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14333 * include/grub/pci.h (grub_dma_phys2virt): New function.
14334 (grub_dma_virt2phys): Likewise.
14335 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14337 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14339 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14340 check as some mkfs implementations omit it.
14342 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14344 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14346 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14348 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14349 Add new member volname2.
14350 (grub_jfs_label): Use volname2 if available.
14352 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14354 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14355 over last_mounted as seen in image generated by mkfs.nilfs2.
14356 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14358 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14360 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14361 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14362 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14364 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14366 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14369 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14371 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14372 subvolume name (by removing a bogus and useless check).
14374 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14376 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14377 sizeof while on it.
14379 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14381 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14382 (grub_scsi_read_capacity10): ... this.
14383 (grub_scsi_read_capacity16): New function.
14384 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14386 Fix off-by-one error.
14387 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14389 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14390 (grub_scsi_read_capacity10): ... this.
14391 (grub_scsi_read_capacity_data): Rename to ...
14392 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14393 (grub_scsi_read_capacity16): New struct.
14394 (grub_scsi_read_capacity16_data): Likewise.
14395 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14396 grub_scsi_cmd_read_capacity10.
14397 New command grub_scsi_cmd_read_capacity16.
14399 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14401 SCSI >2TiB support.
14403 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14404 (grub_scsi_write16): Likewise.
14405 (grub_scsi_read): Use read16 when necessary.
14406 (grub_scsi_write): Likewise.
14407 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14408 (grub_scsi_write16): Likewise.
14409 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14411 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14413 SCSI write support (for usbms mainly).
14415 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14417 (grub_scsi_write): Implement.
14418 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14420 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14422 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14425 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14427 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14429 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14431 * po/POTFILES.in: Regenerate.
14433 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14435 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14436 with grub_printf to avoid unnecessary fatal failure.
14438 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14440 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14441 (INT_MAX): Likewise.
14442 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14443 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14444 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14445 (strcpy): Likewise.
14446 (strstr): Likewise.
14447 (strchr): Likewise.
14448 (strncpy): Likewise.
14449 (strcat): Likewise.
14450 (strncat): Likewise.
14451 (strcoll): Likewise.
14452 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14453 (GRUB_INT_MAX): Likewise.
14455 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14457 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14459 (optimize_utf8): Likewise.
14460 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14462 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14464 * grub-core/boot/i386/pc/lnxboot.S: Use
14465 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14466 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14468 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14470 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14472 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14474 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14475 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14476 now to avoid double free.
14477 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14479 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14480 * util/grub-probe.c (escape_of_path): Always return a new copy.
14481 (print_full_name): Escape path.
14482 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14483 Fix hints on abstractions.
14485 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14487 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14488 Don't add "root" line if no compatibility hont is available.
14489 Suggested by: Seth Goldberg.
14491 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14493 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14494 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14495 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14496 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14498 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14500 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14502 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14504 * util/grub-pe2elf.c (ehdr): Make static.
14506 (num_sections): Likewise.
14507 (offset): Likewise.
14509 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14511 Eliminate ofpath limits and possible overflows.
14513 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14514 (OF_PATH_MAX): Removed.
14515 (MAX_DISK_CAT): New const.
14516 (find_obppath): Use allocated rather than preallocated buffer.
14517 Return result. Argument of_path removed. All users updated.
14518 Add missing fdstat.
14519 (xrealpath): New function.
14520 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14521 Allocate rather than use preallocated buffer. All users updated.
14522 (__of_path_common): Use allocated rather than preallocatecd buffer.
14523 Return result. Argument of_path removed. All users updated.
14524 (vendor_is_ATA): Read only needed part form the file.
14525 (check_sas): Allocate depending on contents rather than fixed.
14526 (main) [STANDALONE]: Handle NULL result.
14528 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14530 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14532 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14534 Cryptodisk write support.
14536 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14537 (grub_cryptodisk_decrypt): Moved logic to ...
14538 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14539 (grub_cryptodisk_write): Implement.
14540 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14541 (grub_util_fd_write): ... this. Make global.
14542 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14544 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14546 * include/grub/list.h (grub_list_remove): Don't crash if element is
14549 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14551 Rename ofconsole to console.
14553 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14554 as sysnonym to console.
14555 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14556 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14557 Rename grub_ofconsole_ to grub_console_. All users updated
14558 (grub_console_term_output): Rename "ofconsole" to "console".
14559 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14562 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14564 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14566 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14567 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14568 GRUB_DISK_DEVICE_FILE_ID.
14570 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14572 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14573 and improve performance.
14575 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14577 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14578 missing ieee1275/ prefix on whole disk.
14580 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14582 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14583 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14585 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14587 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14589 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14591 Merge common RAID and LVM logic to an abstract diskfilter.
14592 Add LDM support using the same framework.
14594 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14595 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14596 (libgrubmods): Remove grub-core/disk/raid.c and
14597 grub-core/partmap/gpt.c.
14598 * grub-core/Makefile.core.def (ldm): New module.
14599 (raid): Renamed to diskfilter. All users updated.
14600 * grub-core/disk/raid.c: Moved to ...
14601 * grub-core/disk/diskfilter.c: ... here.
14602 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14604 (find_array): Renamed to ...
14605 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14606 (grub_is_array_readable): Renamed to ...
14607 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14608 (insert_array): New argument id.
14609 (is_node_readable): New function.
14610 (scan_device): Rename to ...
14611 (scan_disk): .. this. Restrict to one disk.
14612 (scan_devices): New function.
14613 (grub_diskfilter_iterate): Support multi-LV.
14614 Skip invisible and nameless LVs.
14615 (grub_diskfilter_memberlist): Support multi-LV.
14616 (grub_diskfilter_read_node): New function.
14617 (grub_raid_read): Most of logic moved to ...
14618 (read_segment): ... here
14619 (read_lv): New function.
14620 (grub_diskfilter_get_vg_by_uuid): New function.
14621 (grub_diskfilter_make_raid): Likewise.
14622 * grub-core/disk/ldm.c: New file.
14623 * grub-core/disk/lvm.c (vg_list): Removed.
14624 (lv_count): Likewise.
14625 (scan_depth): Likewise.
14626 (is_lv_readable): Likewise.
14627 (grub_lvm_getvalue): Advance pointer past the number.
14628 (find_lv): Removed.
14629 (do_lvm_scan): Refactored into ...
14630 (grub_lvm_detect): ... this. Support raid.
14631 (grub_lvm_iterate): Removed.
14632 (grub_lvm_memberlist): Likewise.
14633 (grub_lvm_open): Likewise.
14634 (grub_lvm_close): Likewise.
14635 (read_lv): Likewise.
14636 (read_node): Likewise.
14637 (is_node_readable): Likewise.
14638 (is_lv_readable): Likewise.
14639 (grub_lvm_read): Likewise.
14640 (grub_lvm_write): Likewise.
14641 (grub_lvm_dev): Use diskfilter
14642 (GRUB_MOD_INIT): Likewise.
14643 (GRUB_MOD_FINI): Likewise.
14644 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14646 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14647 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14648 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14649 grub_diskfilter_read_node.
14650 Fix a bug with xor.
14651 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14652 grub_diskfilter_read_node.
14653 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14654 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14655 (grub_disk_dev_iterate): Move from here...
14656 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14657 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14659 (grub_hostdisk_find_partition_start): Likewise.
14660 (grub_hostdisk_os_dev_to_grub_drive): New function.
14661 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14662 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14663 * util/getroot.c (make_device_name): ... here.
14664 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14666 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14667 * grub-core/kern/emu/hostdisk.c
14668 (convert_system_partition_to_system_disk): Move to ...
14669 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14670 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14671 * util/getroot.c (device_is_wholedisk): ... here.
14672 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14673 * util/getroot.c (find_system_device): ... here.
14674 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14676 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14677 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14679 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14681 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14683 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14684 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14685 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14687 * include/grub/raid.h: Renamed to ...
14688 * include/grub/diskfilter.h: ... this.
14689 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14690 (GRUB_RAID_LAYOUT_*): Make into array.
14691 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14692 (grub_diskfilter_vg): New struct.
14693 (grub_diskfilter_pv_id): Likewise.
14694 (grub_raid_member): Removed.
14695 (grub_raid_array): Likewise.
14696 (grub_diskfilter_pv): New struct.
14697 (grub_diskfilter_lv): Likewise.
14698 (grub_diskfilter_segment): Likewise.
14699 (grub_diskfilter_node): Likewise.
14700 (grub_diskfilter_get_vg_by_uuid): New proto.
14701 (grub_raid_register): Inline.
14702 (grub_diskfilter_unregister): Likewise.
14703 (grub_diskfilter_make_raid): New proto.
14704 (grub_diskfilter_vg_register): Likewise.
14705 (grub_diskfilter_read_node): Likewise.
14706 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14707 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14708 (grub_util_is_ldm): Likewise.
14709 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14710 (grub_hostdisk_find_partition_start): Likewise.
14711 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14712 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14714 (grub_gpt_partition_map_iterate): New proto.
14715 * include/grub/lvm.h (grub_lvm_vg): Removed.
14716 (grub_lvm_pv): Likewise.
14717 (grub_lvm_lv): Likewise.
14718 (grub_lvm_segment): Likewise.
14719 (grub_lvm_node): Likewise.
14720 * util/getroot.c [...]
14721 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14722 (probe_abstraction): Likewise.
14723 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14724 (main): Remove dead logic.
14726 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14728 Simplify root device discover and don't fail when trying to open
14731 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14733 (get_diskname_from_path): Likewise.
14734 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14737 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14739 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14741 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14743 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14746 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14748 * util/grub-install.in: Add missing \.
14749 Reported by: gentoofan
14751 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14753 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14754 (direct_read): Use correct compressed size.
14755 (grub_squash_read_data): Likewise.
14757 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14759 * docs/grub.texi (Platform limitations): New section.
14760 (Platform-specific operations): Likewise.
14761 * docs/grub-dev.texi (Porting): Likewise.
14763 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14765 IEEE1275 disk write support.
14767 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14769 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14770 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14771 and seek loginc to ...
14772 (grub_ofdisk_prepare): ... here.
14773 (grub_ofdisk_write): Implement.
14775 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14777 ARC disk write support.
14779 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14780 (reopen): New argument writable. All users updated.
14781 Handle required access mode.
14782 (grub_arcdisk_write): Implement.
14783 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14784 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14786 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14788 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14789 (read_sblock): Don't attempt to read superblocks outside the disk size.
14791 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14793 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14794 first superblock to find the second one when possible.
14796 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14798 * util/grub-install.in: Fix an ARC bug.
14799 Print a warning if no platform-specific setup is available.
14801 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14803 Use static allocation rather than scratch pointer in reed_solomon.
14804 It decreases its size significantly and avoids a variable in .text.
14806 * grub-core/lib/reed_solomon.c (scratch): Removed.
14807 (chosenstat): New const or static array.
14809 (errpot): Likewise.
14810 (errpos): Likewise.
14813 (errvals): Likewise.
14814 (eqstat): Likewise.
14815 (pol_evaluate): Replace x with log_x argument. All users updated.
14816 (syndroms): Removed.
14817 (gauss_solve): Use statically allocated arrays.
14818 (rs_recover): Likewise.
14819 Calculate syndroms directly.
14820 (decode_block): Use statically allocated arrays.
14821 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14822 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14824 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14826 Eliminate fixed limit on reed solomon decoder length.
14828 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14829 rather than hardcoding the address.
14830 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14831 no_reed_solomon_length.
14832 Move gate_a20 to no-reed-solomon part.
14833 Don't force a particular size of no reed-solomon part.
14834 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14836 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14837 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14839 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14841 * grub-core/commands/wildcard.c (match_files): Handle filenames
14842 without explicit device.
14843 (wildcard_expand): Don't add explicit device if not already present.
14844 * tests/grub_script_echo1.in: Add a new expansion test.
14846 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14848 Replace single-linked with double-linked lists. It results in more
14849 compact and more efficient code.
14851 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14852 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14853 (grub_list_remove): Moved from here ...
14854 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14855 (grub_prio_list_insert): Set prev.
14856 * include/grub/list.h (grub_list): Add prev. All users updated.
14858 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14860 Handle newer autotools. Add some missing quotes while on it.
14862 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14863 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14864 (pkgdata_DATA): ... here.
14865 * Makefile.util.def (update-grub_lib): Removed.
14866 * conf/Makefile.common (pkglib_DATA): Removed.
14867 (pkglib_SCRIPTS): Likewise.
14868 (pkgdata_DATA): New variable.
14869 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14871 Add missing quotes.
14872 Remove unused variable while on it.
14873 * tests/util/grub-shell.in: Likewise.
14874 * util/grub-install.in: Likewise.
14875 * util/grub-mkconfig.in: Likewise.
14876 * util/grub-mknetdir.in: Likewise.
14877 * util/grub-mkrescue.in: Likewise.
14878 * util/grub-mkstandalone.in: Likewise.
14879 * util/grub.d/00_header.in: Likewise.
14880 * util/grub.d/10_hurd.in: Likewise.
14881 * util/grub.d/10_illumos.in: Likewise.
14882 * util/grub.d/10_kfreebsd.in: Likewise.
14883 * util/grub.d/10_linux.in: Likewise.
14884 * util/grub.d/10_netbsd.in: Likewise.
14885 * util/grub.d/10_windows.in: Likewise.
14886 * util/grub.d/20_linux_xen.in: Likewise.
14887 * util/grub.d/30_os-prober.in: Likewise.
14888 * util/update-grub_lib.in: Removed.
14890 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14892 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14893 a workaround for intel problem.
14895 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14896 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14897 2012-01-23 pfsmorigo
14899 * util/grub-install.in: Support dd'in into PreP partition.
14900 * util/grub-probe.c (probe): Support discovering partition type.
14901 (main): Support -t msdos_parttype.
14903 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14905 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14906 infinite recursion using counter.
14907 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14908 init to skip it if the magic check fails.
14909 (dec_stream_header): Init s->crc32.
14911 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14912 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14913 2012-01-22 Richard Laager <rlaager@wiktel.com>
14915 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14917 (find_bestub): Determine correct size.
14918 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14919 (scan_disk): Align the size down.
14920 Call check pool before find_bestub to have ashift.
14922 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14924 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14925 dprintf in no-malloc zone.
14927 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14929 * configure.ac: Add back in test for limits.h.
14931 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14933 Support 4K-sector NTFS.
14935 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14936 (grub_ntfs_data): Remove blocksize.
14937 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14938 Remove data argument. All users updated.
14940 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14942 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14943 being in .text to avoid dprel references.
14944 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14945 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14946 (grub_arch_highmemsize): Likewise.
14947 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14948 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14949 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14951 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14953 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14955 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14956 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14958 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14960 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14962 (grub_set_datetime_cmos): Likewise.
14964 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14966 Make XZ compression parameters dependent on target and not host CPU.
14968 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14969 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14971 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14973 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14974 set but not used variable.
14976 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14978 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14979 created when no uuid support is compiled into mkfs.reiser.
14981 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14983 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14984 (utf8_to_macroman): Do the opposite.
14985 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14987 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14989 * configure.ac: Refise build qemu_mips w/o unifont.
14991 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14993 Eliminate grub_min/grub_max prone to overflow usage.
14995 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14996 (poll_nonroot_hub): Likewise.
14997 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14998 (grub_affs_label): Likewise.
14999 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
15000 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
15001 (grub_hfs_label): Likewise.
15002 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
15003 * grub-core/fs/zfs/zfs.c (MIN): Remove.
15004 (zap_leaf_array_equal): Use grub_size. Remove MIN.
15005 (zap_leaf_array_get): Likewise.
15006 (dnode_get_path): Likewise.
15007 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
15008 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
15009 * grub-core/script/execute.c (grub_script_break): Likewise.
15010 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
15012 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
15013 * include/grub/misc.h (grub_min): Removed.
15014 (grub_max): Likewise.
15016 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15018 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
15021 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15023 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
15025 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15027 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
15029 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15031 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
15032 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
15034 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15036 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
15037 rather than a hack for grub_strncasemap.
15039 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15041 Support multiple initrds
15042 Note: part of this was accidently committed in r3739.
15044 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
15046 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
15047 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
15048 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15049 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15050 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15052 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15054 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
15055 disks with unknown size.
15056 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
15058 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15060 Remove defines pertaining to arbitrary limits not affecting GRUB
15063 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
15064 (EXT2_MAX_SYMLINKCNT): Likewise.
15065 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
15066 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
15067 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
15068 (GRUB_PXE_MAX_BLKSIZE): Likewise.
15069 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
15070 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
15071 (DN_MAX_OBJECT_SHIFT): Likewise.
15072 (DN_MAX_OFFSET_SHIFT): Likewise.
15073 (DN_MAX_OBJECT): Likewise.
15074 (DNODES_PER_LEVEL_SHIFT): Likewise.
15075 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
15076 (SPA_MAXBLOCKSIZE): Likewise.
15077 (SPA_BLOCKSIZES): Likewise.
15078 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
15079 (MZAP_MAX_BLKSZ): Likewise.
15081 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15083 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
15084 handle NULL appropriately.
15087 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15091 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
15093 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
15094 * configure.ac: Fix efiemu check.
15096 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15098 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
15100 Reported by: adamwill
15102 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
15104 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
15106 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15108 Fix handling of wide characters in gfxterm.
15110 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
15111 (clear_char): Likewise.
15112 (paint_char): Skip code == NULL chars.
15113 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
15115 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15117 * grub-core/normal/charset.c: Move comment to right place.
15119 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15121 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
15122 (GRUB_AFFS_FLAG_FFS): Put back where it was.
15123 (grub_affs_mount): Revert the correct version checking.
15125 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15127 * docs/grub.texi (Unicode): Mention several other unsupported features.
15129 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15131 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
15132 case statements as compile-time one.
15133 (direct_read): Prevent spurious warnings.
15134 (grub_squash_read_data): Likewise.
15136 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15138 Various squash4 fixes and LZO and XZ support.
15140 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
15141 Add xzembed source files.
15142 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
15143 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
15144 (grub_squash_inode): New subtype long_dir.
15145 (SQUASH_TYPE_LONG_DIR): New inode type.
15146 (COMPRESSION): New enum.
15147 (XZBUFSIZ): New const.
15148 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
15149 (read_chunk): Use data->decompress.
15150 (zlib_decompress): New function.
15151 (lzo_decompress): Likewise.
15152 (xz_decompress): Likewise.
15153 (squash_mount): Set new data fields.
15154 (grub_squash_iterate_dir): Handle long dir.
15155 (squash_unmount): Free xzdec and xzbuf.
15156 (grub_squash_open): Check ino type.
15157 (direct_read): Stylistic fixes. Use data->decompress.
15158 (grub_squash_read_data): Likewise.
15159 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
15160 (get_byte): Likewise.
15161 (grub_zlib_disk_read): Removed.
15162 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
15163 (GRUB_POSIX_BOOL_DEFINED): New define.
15164 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
15165 * grub-core/lib/xzembed/xz.h: Addmissing includes.
15166 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
15167 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
15169 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15171 Don't override more informative errors.
15173 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
15174 * grub-core/font/font.c (open_section): Likewise.
15175 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
15176 filename. Don't override errors.
15177 (grub_cmd_openbsd_ramdisk): Don't override errors.
15178 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
15179 (grub_cmd_initrd): Likewise.
15180 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15181 (grub_cmd_initrd): Likewise.
15182 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
15183 (grub_cmd_linux): Likewise.
15184 (grub_cmd_initrd): Likewise.
15185 (grub_cmd_payload): Likewise.
15186 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15187 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
15188 (grub_cmd_module): Likewise.
15189 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15190 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15191 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15192 (grub_cmd_xnu_mkext): Likewise.
15193 (grub_cmd_xnu_ramdisk): Likewise.
15194 (grub_xnu_check_os_bundle_required): Likewise.
15195 (grub_xnu_load_kext_from_dir): Likewise.
15196 (grub_cmd_xnu_kextdir): Likewise.
15197 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15199 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15201 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15202 as 1024 in block size field. Found on one of my test images.
15203 Small optimisation while on it.
15205 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15207 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15208 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15209 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15210 performance fixes while on it.
15211 (grub_sfs_close): Fix memory leak while on it.
15212 (grub_sfs_label): Convert Latin1 to UTF-8.
15214 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15216 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15217 space to avoid overflows.
15218 (grub_hfs_label): Convert from macroman to UTF-8.
15220 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15222 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15224 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15226 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15228 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15230 * unicode: Import Unicode 6.0 data.
15232 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15234 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15237 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15239 Avoid cutting in the middle of UTF-8 character.
15241 * include/grub/charset.h (grub_getend): New function.
15242 * grub-core/script/function.c (grub_script_function_find): Use
15244 * grub-core/normal/completion.c (add_completion): Likewise.
15246 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15248 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15249 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15250 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15251 (GRUB_UNICODE_TAG_END): Likewise.
15252 (GRUB_UNICODE_LAST_VALID): Likewise.
15254 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15256 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15257 len and make it smaller. All users updated.
15258 * util/import_unicode.py: Put length and not end character.
15261 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15263 Make better Unicode-compliant and unify some UTF-8 code pathes.
15265 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15267 (grub_is_valid_utf8): Use grub_utf8_process.
15268 Check resulting code range.
15269 (grub_utf8_to_ucs4): Use grub_utf8_process.
15270 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15273 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15275 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15277 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15279 * docs/grub.texi (Filesystems): Mention AFS.
15281 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15283 * docs/grub.texi (Filesystems): Clarify restrictions.
15284 (Regexp): Mention non-Unicode regexp behaviour.
15285 (Other): Mention non-Unicode matching behaviour.
15287 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15289 Make HFS implementation use MacRoman.
15291 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15292 (macroman): New const array.
15293 (macroman_to_utf8): New function.
15294 (utf8_to_macroman): Likewise.
15295 (grub_hfs_find_dir): Use utf8_to_macroman.
15296 (grub_hfs_dir): Use macroman_to_utf8.
15297 Set case_insensitive.
15299 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15301 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15303 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15305 Integrate hints into autogeneration scripts.
15307 * docs/grub.texi (Filesystems): Add a hostdisk example.
15308 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15309 (grub-probe): Add ofpath.
15310 * gentpl.py: Remove group nosparc64.
15311 * grub-core/commands/search.c (cache_entry): New struct.
15313 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15314 * grub-core/commands/search_wrap.c (options): Add platform-specific
15316 (grub_cmd_search): Handle platform-specific hints.
15317 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15318 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15319 (grub_util_biosdisk_data): Likewise.
15320 (grub_util_biosdisk_open): Set device_map.
15321 (read_device_map): Handle "" as indication of no map.
15323 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15324 (grub_util_biosdisk_get_compatibility_hint): New function.
15325 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15326 * include/grub/emu/hostdisk.h
15327 (grub_util_biosdisk_get_compatibility_hint): New proto.
15328 * util/grub-install.in: Don't call grub-mkdevicemap.
15329 Add platform-specific hint to load.cfg.
15330 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15331 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15332 hints. Set root preliminary to compatibility hint, not to OS name.
15333 * util/grub-probe.c (PRINT_*): Add hints.
15334 (print): Make static.
15335 (escape_of_path): New function.
15336 (guess_bios_drive): Likewise.
15337 (guess_efi_drive): Likewise.
15338 (guess_baremetal_drive): Likewise.
15339 (print_full_name): Likewise.
15340 (probe): Handle hints.
15342 * util/ieee1275/devicemap.c: Removed.
15343 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15345 (grub_util_devname_to_ofpath): Return NULL on failure.
15347 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15349 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15351 * po/POTFILES.in: Regenerated.
15353 Allow purely long options
15355 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15356 (SHORT_ARG_USAGE): Likewise.
15357 (grub_arg_show_help): Compare opt with help_options.
15358 (parse_option): Receive opt as argument. If makes big simplificatons.
15361 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15363 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15364 Restructure to avoid warning.
15366 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15368 * util/grub-install.in: Account for possible escaped comma in device
15371 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15373 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15376 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15378 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15379 allocation and zero-setting.
15380 (grub_ieee1275_get_devname): Check that alias is complete.
15382 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15384 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15385 unaligned segments.
15387 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15389 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15391 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15392 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15393 Add ieee1275 prefix.
15395 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15397 * docs/grub.texi (Filesystems): Update.
15399 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15401 Support odc, newc and bigendian cpio formats.
15403 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15404 * grub-core/Makefile.core.def (newc): New module.
15406 (cpio_be): Likewise.
15407 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15409 (MAGIC2): Likewise.
15410 (head) [MODE_ODC]: Adapt for the format.
15411 (head) [MODE_NEWC]: Likewise.
15412 (head) [!MODE_*]: Write fields of interest as arrays.
15413 (MAGIC_USTAR): Removed.
15414 (read_number) [MODE_NEWC]: Change to hex.
15415 (read_number) [!MODE_*]: Parse binary arrays.
15416 (grub_cpio_find_file): Factor out the code for better structure and
15417 always use read_number.
15418 (grub_cpio_mount): Use MAGIC and MAGIC2.
15419 (grub_cpio_dir): Exit on first hook non-0 return.
15420 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15421 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15422 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15423 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15424 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15425 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15426 * grub-core/fs/newc.c: New file.
15427 * grub-core/fs/odc.c: Likewise.
15428 * grub-core/fs/cpio_be.c: Likewise.
15430 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15432 Fix handling of tar numbers occupying the whole field.
15434 * grub-core/fs/cpio.c (read_number): New function.
15435 (grub_cpio_find_file): Use read_number instead of strtoull.
15437 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15439 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15440 occupying the whole field size.
15442 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15444 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15446 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15448 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15450 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15452 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15453 TARGET_IMG_LDFLAGS.
15455 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15457 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15458 (mountinfo_entry): Increase the field size to take escaping into
15460 (find_root_device_from_libzfs): Add one byte to size of strings for
15463 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15465 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15467 * util/grub-setup.c (setup): Likewise.
15469 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15471 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15474 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15476 * docs/grub.texi (Internationalisation): New section.
15478 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15480 * docs/grub.texi (Loopback booting): New section.
15482 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15484 * util/grub-mkstandalone.in: Fix minor typo errors.
15486 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15488 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15490 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15491 net/icmp.c and net/icmp6.c.
15492 (http): New module.
15493 (priority_queue): Likewise.
15494 * grub-core/io/bufio.c: Rewritten.
15495 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15496 TYPE_WITH_CONFIGFILE_OPTION.
15497 (legacy_commands): Add bootp and dhcp.
15498 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15499 (grub_legacy_parse): Likewise.
15500 * grub-core/lib/priority_queue.c: New file.
15501 * grub-core/net/arp.c: Add missing license header.
15502 (arp_find_entry): Removed.
15503 (arp_find_entry): Likewise.
15504 (grub_net_arp_resolve): Rename to ...
15505 (grub_net_arp_send_request): ...this.
15506 (grub_net_arp_receive): New card argument.
15507 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15508 Set router and DNS server.
15509 (grub_net_configure_by_dhcp_ack): Handle routing information.
15510 (grub_cmd_bootp): Set checksum.
15511 (grub_bootp_init): Remove net_dhcp.
15512 * grub-core/net/dns.c: New file.
15513 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15515 (get_card_packet): Handle allocation.
15516 (grub_efinet_findcards): Set mtu.
15517 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15518 (get_card_packet): Handle allocation.
15519 (emucard): Set mtu.
15520 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15521 (GRUB_MOD_INIT): Set mtu.
15522 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15524 (get_card_packet): Handle allocation.
15525 (grub_ofnet_findcards): Set mtu.
15526 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15528 (grub_net_recv_ethernet_packet): Handle IPv6.
15529 * grub-core/net/http.c: New file.
15530 * grub-core/net/icmp.c: Likewise.
15531 * grub-core/net/icmp6.c: Likewise.
15532 * grub-core/net/ip.c (ip6addr): New type.
15533 (ip6hdr): Likewise.
15534 (reassemble): Likewise.
15535 (cmp): New function.
15536 (reassembles): New variable.
15537 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15538 (id): New variable.
15539 (send_fragmented): New function.
15540 (grub_net_send_ip_packet): Rename to ...
15541 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15543 (grub_net_recv_ip_packets): Rename to ...
15544 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15545 (free_rsm): New function.
15546 (free_old_fragments): Likewise.
15547 (grub_net_recv_ip4_packets): New function.
15548 (grub_net_send_ip6_packet): Likewise.
15549 (grub_net_send_ip_packet): Likewise.
15550 (grub_net_recv_ip6_packets): Likewise.
15551 (grub_net_recv_ip_packets): Likewise.
15552 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15553 (LINK_LAYER_CACHE_SIZE): New const.
15554 (link_layer_find_entry): New function.
15555 (grub_net_link_layer_add_address): Likewise.
15556 (grub_net_link_layer_resolve_check): Likewise.
15557 (grub_net_link_layer_resolve): Likewise.
15558 (grub_net_ipv6_get_slaac): Likewise.
15559 (grub_net_ipv6_get_link_local): Likewise.
15560 (grub_cmd_ipv6_autoconf): Likewise.
15561 (parse_ip): Handle one number representation.
15562 (parse_ip6): New functoion.
15563 (match_net): Handle IPv6.
15564 (grub_net_resolve_address): Handle IPv6 and DNS.
15565 (grub_net_resolve_net_address): Handle IPv6.
15566 (route_cmp): New function.
15567 (grub_net_route_address): Find best route.
15568 (grub_net_addr_to_str): Handle IPv6.
15569 (grub_net_addr_cmp): New function.
15570 (grub_net_add_addr): Register local route.
15571 (print_net_address): Handle net address.
15572 (grub_net_poll_cards): Retransmit TCP.
15573 (grub_net_poll_cards_idle_real): Likewise.
15574 (have_ahead): New function.
15575 (grub_net_seek_real): Use underlying seek.
15576 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15577 * grub-core/net/tcp.c: New file.
15578 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15579 (cmp): New function.
15581 (tftp_receive): Handle unordered input.
15582 (destroy_pq): New function.
15583 (tftp_close): Close pq.
15584 * grub-core/net/udp.c: Put missing license header.
15585 (grub_net_udp_socket): New function.
15586 (udp_socket_register): Likewise.
15587 (grub_net_udp_close): Likewise.
15588 (grub_net_recv_udp_packet): Check checksum.
15589 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15590 * include/grub/misc.h (grub_memchr): New function.
15591 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15592 (grub_net_card_driver): Return buf in recv.
15593 (grub_net_slaac_mac_list): New struct.
15594 (grub_network_level_protocol_id): Add ipv6.
15595 (grub_net_network_level_addr): Likewise.
15596 (grub_net_network_level_net_addr): Likewise.
15597 (grub_net_app_protocol): Add seek.
15598 (grub_net_socket): Removed.
15599 (grub_net_sockets): Likewise.
15600 (grub_net_socket_register): Likewise.
15601 (grub_net_socket_unregister): Likewise.
15602 (FOR_NET_SOCKETS): Likewise.
15603 (grub_net_add_addr): Add const.
15604 (GRUB_NET_BOOTP_*): New enum.
15605 (grub_net_addr_cmp): New proto.
15606 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15607 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15608 (grub_net_hwaddr_to_str): NEw proto.
15609 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15610 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15611 (grub_dns_init): New proto.
15612 (grub_dns_fini): Likewise.
15613 (grub_net_tcp_retransmit): Likewise.
15614 (grub_net_link_layer_add_address): Likewise.
15615 (grub_net_link_layer_resolve_check): Likewise.
15616 (grub_net_link_layer_resolve): Likewise.
15617 (grub_net_dns_lookup): Likewise.
15618 (grub_net_add_dns_server): Likewise.
15619 (grub_net_remove_dns_server): Likewise.
15620 (GRUB_NET_TRIES): New const.
15621 (GRUB_NET_INTERVAL): Likewise.
15622 * include/grub/net/arp.h: Mostly rewritten.
15623 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15624 * include/grub/net/ip.h: Mostly rewritten.
15625 * include/grub/net/netbuff.h: Indent.
15626 * include/grub/net/tcp.h: New file.
15627 * include/grub/net/udp.h: Mostly rewritten.
15628 * include/grub/priority_queue.h: New file.
15629 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15630 (grub_swap_bytes64_compile_time): Likewise.
15631 (grub_cpu_to_be16_compile_time): Likewise.
15632 (grub_cpu_to_be32_compile_time): Likewise.
15633 (grub_cpu_to_be64_compile_time): Likewise.
15634 (grub_be_to_cpu64_compile_time): Likewise.
15636 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15638 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15639 UINT_TO_PTR with cast.
15641 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15643 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15646 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15648 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15651 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15653 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15656 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15658 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15659 Add missing const attribute.
15660 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15662 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15665 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15667 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15669 (serpent_setkey): Likewise.
15670 (serpent_encrypt_internal): Likewise.
15671 (serpent_decrypt_internal): Likewise.
15672 (serpent_encrypt): Don't put an alignment-increasing cast.
15673 (serpent_decrypt): Likewise.
15674 (serpent_test): Likewise.
15676 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15678 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15680 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15682 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15684 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15686 (PTR_TO_UINT64): Likewise.
15687 (PTR_TO_UINT32): Likewise.
15689 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15691 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15693 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15696 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15698 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15699 text_width > available width a bit more gracefully.
15701 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15703 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15704 current address calculation.
15706 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15708 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15710 (encode_block): Likewise.
15712 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15714 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15717 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15719 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15720 non-RS part to avoid RS messing with GDT.
15721 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15722 Increase to suit in realmode routines.
15724 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15726 * grub-core/kern/i386/realmode.S: Increase alignment.
15727 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15729 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15731 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15733 (syndroms): Compute 0 syndrom.
15734 (rs_recover): Use 0 syndrom.
15736 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15738 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15740 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15742 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15745 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15747 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15749 (get_top_pad): Likewise.
15750 (get_right_pad): Likewise.
15751 (get_bottom_pad): Likewise.
15753 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15755 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15757 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15759 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15760 attribute as the structure isn't guaranteed to be properly aligned.
15761 (grub_efi_pci_device_path): Likewise.
15762 (grub_efi_pccard_device_path): Likewise.
15763 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15764 specify the size of `memory_type'.
15765 (grub_efi_vendor_device_path): Likewise.
15766 (grub_efi_controller_device_path): Likewise.
15767 (grub_efi_acpi_device_path): Likewise.
15768 (grub_efi_expanded_acpi_device_path): Likewise.
15769 (grub_efi_atapi_device_path): Likewise.
15770 (grub_efi_scsi_device_path): Likewise.
15771 (grub_efi_fibre_channel_device_path): Likewise.
15772 (grub_efi_1394_device_path): Likewise.
15773 (grub_efi_usb_device_path): Likewise.
15774 (grub_efi_usb_class_device_path): Likewise.
15775 (grub_efi_i2o_device_path): Likewise.
15776 (grub_efi_mac_address_device_path): Likewise.
15777 (grub_efi_ipv4_device_path): Likewise.
15778 (grub_efi_ipv6_device_path): Likewise.
15779 (grub_efi_infiniband_device_path): Likewise.
15780 (grub_efi_uart_device_path): Likewise.
15781 (grub_efi_vendor_messaging_device_path): Likewise.
15782 (grub_efi_hard_drive_device_path): Likewise.
15783 (grub_efi_cdrom_device_path): Likewise.
15784 (grub_efi_vendor_media_device_path): Likewise.
15785 (grub_efi_file_path_device_path): Likewise.
15786 (grub_efi_protocol_device_path): Likewise.
15787 (grub_efi_piwg_device_path): Likewise.
15788 (grub_efi_bios_device_path): Likewise.
15790 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15792 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15793 (grub_ucs4_to_utf8_alloc): Likewise.
15794 (grub_ucs4_to_utf8): Likewise.
15795 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15796 (grub_ucs4_to_utf8_alloc): Likewise.
15798 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15800 AFFS never uses unicode.
15802 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15803 (grub_latin1_to_utf8): New inline function.
15804 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15806 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15808 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15811 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15813 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15814 (grub_squash_dirent_header): Likewise.
15815 (read_chunk): Don't double swap.
15816 (grub_squash_iterate_dir): Fix swap sizes.
15818 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15820 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15822 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15824 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15825 (grub_hfs_iterate_dir): Likewise.
15827 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15829 Fix video on platforms where unaligned access is forbidden.
15830 Make several optimisations while on it.
15832 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15833 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15834 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15835 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15837 (grub_video_fbblit_replace_16bit_1bit):
15838 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15839 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15840 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15841 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15842 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15843 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15844 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15845 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15846 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15847 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15848 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15849 (grub_video_fbblit_replace_index_RGB888): Likewise.
15850 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15851 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15852 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15853 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15854 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15855 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15856 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15858 (grub_video_fbblit_blend_XXX565_1bit):
15859 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15860 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15861 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15863 * grub-core/video/fb/video_fb.c (common_blitter)
15864 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15865 (grub_video_fb_create_render_target_from_pointer)
15866 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15867 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15868 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15870 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15872 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15874 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15875 HH22 and HM10 relocations.
15877 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15879 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15881 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15883 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15884 allocation succeeded.
15886 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15888 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15889 argument a u8 pointer. All users updated.
15890 Handle unaligned buffers.
15892 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15894 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15895 add_part to workaround compiler bug.
15897 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15899 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15901 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15903 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15904 Reserve alignment invariants.
15905 (grub_multiboot_load): Likewise.
15906 (retrieve_video_parameters): Likewise.
15907 (grub_multiboot_make_mbi): Likewise.
15909 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15911 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15914 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15916 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15917 (grub_pata_pio_write): Likewise.
15919 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15921 Add noreturn attributes and remove unreachable code.
15923 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15925 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15926 code. Mark as noreturn.
15927 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15928 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15929 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15931 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15932 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15933 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15934 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15935 * include/grub/kernel.h (grub_main): Mark as noreturn.
15936 * include/grub/reader.h (grub_rescue_run): Likewise.
15938 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15940 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15941 redundant declaration.
15943 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15945 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15946 redundant declaration.
15947 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15949 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15951 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15952 to ensure alignment.
15953 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15954 alignment. Ensure tmp alignment.
15955 (grub_cmd_hdparm): Ensure buf alignment.
15956 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15957 to ensure alignment.
15958 (grub_ata_dumpinfo): Ensure text alignment.
15959 (grub_atapi_identify): Preserve alignment invariant.
15960 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15962 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15964 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15965 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15966 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15967 * include/grub/misc.h (grub_reboot)
15968 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15969 (grub_halt) [__mips__]: Likewise.
15971 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15973 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15974 Remove redundant declaration.
15975 (grub_mmap_get_post64): Likewise.
15976 (grub_mmap_get_upper): Likewise.
15977 (grub_mmap_get_lower): Likewise.
15979 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15981 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15982 uint32_t * to ensure alignment.
15983 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15985 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15987 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15988 uint16_t * to ensure alignment.
15989 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15992 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15994 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15995 to ensure alignment.
15996 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15998 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16000 * grub-core/fs/ntfs.c (u16at): Make into inline function.
16001 Handle unaligned pointers.
16004 (fixup): Use byte access instead of v16at.
16005 (find_attr): Fix imporper usage of v32at.
16006 (read_data): Likewise.
16007 (list_file): Handle byte-swapping and unaligned strings.
16008 (grub_ntfs_label): Likewise.
16010 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16012 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
16013 as it's not necessarily aligned.
16015 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16017 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
16018 redundant declaration.
16019 (grub_serial_init): Likewise.
16020 (grub_terminfo_init): Likewise.
16022 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16024 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
16026 (ZAP_HASH_IDX): Likewise.
16027 (ZAP_LEAF_HASH_SHIFT): Likewise.
16028 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
16029 (LEAF_HASH): Likewise.
16030 (ZAP_LEAF_NUMCHUNKS): Likewise.
16031 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
16032 alignment invariants. Return pointer. All users updated.
16033 (ZAP_LEAF_ENTRY): Make into inline function.
16036 (xor_out): Use grub_crypto_xor.
16037 (dnode_get_path): Use grub_get_unaligned.
16038 (nvlist_find_value): Likewise.
16039 (grub_zfs_nvlist_lookup_uint64): Likewise.
16040 (grub_zfs_nvlist_lookup_string): Likewise.
16041 (get_nvlist_size): Likewise.
16042 (grub_zfs_open): Likewise.
16043 (fill_fs_info): Likewise.
16044 (grub_zfs_dir): Likewise.
16045 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
16046 alignment invariants.
16047 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
16048 necessarily aligned.
16050 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16052 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
16054 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16056 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
16057 arithmetic to conserve alignment invariants.
16059 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16061 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
16062 redundant declaration.
16063 (grub_efiemu_mm_obtain_request): Likewise.
16064 (grub_efiemu_prepare): Likewise.
16066 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16068 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
16071 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16073 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
16074 case of aunaligned recptr.
16075 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
16077 (grub_hfsplus_btree_search): Handle unaligned index.
16079 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16081 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
16082 to get freetag and skip.
16084 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16086 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
16088 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
16089 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
16091 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16093 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
16094 name for checksum and fix allocation algorithm.
16096 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16098 * include/grub/types.h (grub_properly_aligned_t): New type.
16099 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
16100 (grub_get_unaligned16): Add explicit casts.
16101 (grub_get_unaligned32): Likewise.
16102 (grub_get_unaligned64): Likewise.
16103 (grub_set_unaligned16): New function.
16104 (grub_set_unaligned32): Likewise.
16106 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16108 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16110 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16112 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
16113 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
16114 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
16116 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16118 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
16121 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16123 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
16124 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
16126 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16128 Unify and improve RAID and crypto xor.
16130 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
16131 changed to grub_crypto_xor
16132 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
16133 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
16134 Use bigger types when possible.
16136 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16138 * grub-core/disk/raid.c (scan_devices): Fix condition.
16140 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16142 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
16143 Make name a const ptr.
16145 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16147 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
16148 first argument a const pointer.
16149 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
16150 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
16152 (grub_children_iterate): Likewise.
16153 (grub_machine_mmap_iterate): Remove redundant declaration.
16155 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16157 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
16158 (grub_cmd_acpi) [!x86]: Disable EBDA.
16160 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16162 Enable UTF8 in gnulib regexp.
16164 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
16165 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
16166 (isupper): Use grub_isupper.
16167 (isascii): New inline function.
16168 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
16169 * grub-core/lib/posix_wrap/wctype.h: Likewise.
16170 * grub-core/normal/charset.c (grub_utf8_process): New function.
16171 (grub_utf8_to_utf16): Use grub_utf8_process.
16172 (grub_encode_utf8_character): New function.
16173 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
16174 * include/grub/charset.h (grub_utf8_process): New declaration.
16175 (grub_encode_utf8_character): Likewise.
16176 * include/grub/misc.h (grub_islower): New inline function.
16177 (grub_isupper): Likewise.
16178 (grub_strchrsub): Moved down to fix the definitions.
16180 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16182 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
16185 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16187 * include/grub/loader.h (grub_loader_register_preboot_hook):
16188 Use struct preboot * and not void * for handle. All users updated.
16189 (grub_loader_unregister_preboot_hook): Likewise.
16191 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16193 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16194 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16195 UTF-16-BE. All users updated.
16196 (grub_hfsplus_cmp_catkey): Fix unicode handling.
16197 (grub_hfsplus_iterate_dir): Likewise.
16198 (grub_hfsplus_label): Likewise.
16200 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16202 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16204 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16206 Add missing const qualifiers.
16208 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16209 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16210 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16211 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16212 (grub_lvm_check_flag): Likewise.
16213 * grub-core/efiemu/i386/coredetect.c
16214 (grub_efiemu_get_default_core_name): Likewise
16215 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16216 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16217 * grub-core/fs/ntfs.c (fixup): Likewise.
16218 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16219 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16220 (fzap_lookup): Likewise.
16221 (zap_lookup): Likewise.
16222 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16223 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16224 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16225 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16226 (grub_freebsd_add_meta_module): Likewise.
16227 (grub_cmd_freebsd_module): Likewise.
16228 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16229 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16230 (grub_xnu_writetree_get_size): Likewise.
16231 (grub_xnu_writetree_toheap_real): Likewise.
16232 (grub_xnu_find_key): Likewise.
16233 (grub_xnu_create_key): Likewise.
16234 (grub_xnu_create_value): Likewise.
16235 (grub_xnu_register_memory): Likewise.
16236 (grub_xnu_check_os_bundle_required): Likewise.
16237 (grub_xnu_scan_dir_for_kexts): Likewise.
16238 (grub_xnu_load_kext_from_dir): Likewise.
16239 * grub-core/normal/color.c (color_list): Likewise.
16240 * grub-core/normal/completion.c (current_word): Likewise.
16241 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16242 * grub-core/term/serial.c (grub_serial_find): Likewise.
16243 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16244 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16246 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16247 (grub_freebsd_add_meta_module): Likewise.
16248 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16249 * include/grub/net.h (grub_net_card_driver): Likewise.
16250 (grub_net_card): Likewise.
16251 (grub_net_app_protocol): Likewise.
16252 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16253 * include/grub/serial.h (grub_serial_find): Likewise.
16254 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16255 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16256 (grub_xnu_create_value): Likewise.
16257 (grub_xnu_find_key): Likewise.
16258 (grub_xnu_scan_dir_for_kexts): Likewise.
16259 (grub_xnu_load_kext_from_dir): Likewise.
16261 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16262 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16263 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16264 Moved from here ...
16265 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16267 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16269 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16271 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16273 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16274 (read_device): Fix size calculation.
16276 2011-11-25 Robert Millan <rmh@gnu.org>
16278 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16279 (find_root_device_from_libzfs): Add zpool output parser to be used
16280 as fallback when libzfs isn't available.
16282 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16284 * po/Makefile.in.in: Add missing escape-continuation.
16286 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16288 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16290 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16292 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16294 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16296 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16298 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16300 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16302 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16304 * grub-core/lib/adler32.c: Add missing license specification.
16305 * grub-core/lib/crc64.c: Likewise.
16306 * grub-core/loader/i386/pc/plan9.c: Likewise.
16307 * grub-core/partmap/plan.c: Likewise.
16309 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16311 Add facility to debug GRUB with gdb under qemu.
16313 * grub-core/gdb_grub.in: New file.
16314 * grub-core/gmodule.pl.in: Likewise.
16315 * grub-core/Makefile.core.def (gmodule.pl): New script.
16316 (gdb_grub): Likewise.
16318 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16320 * util/grub-mount.c (argp_parser): Accept relative pathes.
16321 * util/grub-fstest.c (argp_parser): Likewise.
16323 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16327 * Makefile.util.def (libgrubmods): Add
16328 grub-core/partmap/plan.c.
16329 * docs/grub.texi: Notice Plan9 support.
16330 * grub-core/Makefile.core.def (plan9): New module.
16331 (part_plan): Likewise.
16332 * grub-core/loader/i386/pc/plan9.c: New file.
16333 * grub-core/partmap/plan.c: Likewise.
16334 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16336 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16337 * include/grub/mm.h (grub_extend_alloc): New inline function.
16339 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16341 Make Reed-Solomon faster by using power of generator representation of
16344 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16345 (gf_double_t): Likewise.
16346 (gf_invert): Removed.
16347 (gf_powx): New array.
16348 (gf_powx_inv): Likewise.
16349 (scratch): Move higher.
16350 (gf_reduce): Removed.
16351 (gf_mul): Use powx.
16352 (gf_invert): Likewise.
16353 (init_inverts): Replaced with ...
16354 (init_powx): ...this. All users updated.
16355 (pol_evaluate): Replace multiplications with additions.
16356 (rs_encode): Likewise.
16357 (gauss_eliminate): Call gf_invert.
16358 (grub_reed_solomon_add_redundancy): Call init_powx.
16359 (grub_reed_solomon_recover): Call init_powx unconditionally.
16361 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16363 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16365 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16367 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16368 disk->partiton for safety.
16370 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16372 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16374 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16376 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16378 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16380 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16382 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16384 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16386 Fix spaces handling in proc/self/mountinfo.
16388 * util/getroot.c (unescape): New function.
16389 (grub_find_root_device_from_mountinfo): Use unescape.
16391 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16393 Support ZFS embedding.
16395 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16396 (grub_zfs_fs): Register grub_zfs_embed.
16398 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16400 Fix MIPS compilation.
16402 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16403 * include/grub/offsets.h: Rename decompressor fields from
16404 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16405 * util/grub-mkimage.c (image_targets): Use new names.
16407 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16409 Defer multiboot device parsing until we're in compressed part.
16411 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16412 bsd_part. setdevice has fallen into disuse.
16413 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16414 (bsd_part): Likewise.
16415 (boot_dev): New variable.
16416 (multiboot_trampoline): Don't parse multiboot device.
16417 Pass multiboot device in %edx.
16418 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16420 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16422 * grub-core/kern/i386/pc/startup.S: Save edx.
16423 (grub_boot_drive): Removed.
16424 (grub_install_dos_part): Likewise.
16425 (grub_install_bsd_part): Likewise.
16426 (grub_boot_device): New variable.
16427 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16428 (grub_install_bsd_part): Likewise.
16429 (grub_boot_drive): Likewise.
16430 (grub_boot_device): New variable.
16431 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16433 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16434 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16435 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16436 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16437 * util/grub-install.in: Remove redundant condition.
16439 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16441 Fix bug introduced by previous commit.
16443 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16445 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16447 Use decompressors framework on i386-pc. It increases core size
16448 by 46 bytes but improves compatibility and maintainability.
16450 * grub-core/Makefile.core.def (lzma_decompress): New image.
16451 (kernel): Add i386_pc_ldflags.
16452 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16453 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16454 to real_to_prot, prot_to_real and device info.
16455 * include/grub/offsets.h: Renamed decompressor offsets.
16456 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16457 (image_target_desc): Remove raw_size and rename decompressor fields.
16458 (compress_kernel): Handle lzma.
16459 (generate_image): Handle decompressors on i386-pc.
16461 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16463 * configure.ac: Add -fno-asynchronous-unwind-tables.
16465 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16467 Move assembly code to C by using intwrap. It increases core size
16468 by 88 bytes but improves compatibility and maintainability.
16470 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16471 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16472 ... here. Translated to C.
16473 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16474 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16475 ... here. Translated to C.
16476 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16477 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16478 ... here. Translated to C.
16479 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16480 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16481 ... here. Translated to C.
16482 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16483 * grub-core/term/i386/pc/console.c (grub_console_cls):
16484 ... here. Translated to C.
16485 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16486 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16487 ... here. Translated to C.
16488 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16489 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16491 * grub-core/term/i386/pc/console.c (int10_9): New function.
16492 (grub_console_putchar): Likewise.
16493 * include/grub/i386/pc/console.h: Removed the not anymore shared
16496 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16498 Move grub_chainloader_real_boot out of the kernel.
16500 * grub-core/Makefile.am: Remove machine/loader.h.
16501 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16503 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16505 (grub_relocator16_keep_a20_enabled): Likewise.
16506 (grub_relocator16_boot): Fill new variables.
16507 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16508 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16510 (grub_chainloader_unload): Likewise.
16511 (grub_chainloader_cmd): Likewise.
16512 * include/grub/i386/pc/loader.h: Removed.
16513 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16514 and esi. All initialisers updated.
16516 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16517 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16519 * Makefile.util.def (grub-mount): New util.
16520 * .bzrignore: Add grub-mount.
16521 * configure.ac: Check for fuse and enable grub-mount if available.
16522 * docs/man/grub-mount.h2m: New file.
16523 * util/grub-mount.c: Likewise.
16525 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16527 * grub-core/commands/efi/fixvideo.c: Gettextize.
16528 * grub-core/commands/hashsum.c: Likewise.
16529 * grub-core/commands/i386/cmostest.c: Likewise.
16530 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16531 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16532 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16533 * grub-core/commands/lsmmap.c: Likewise.
16534 * grub-core/commands/menuentry.c: Likewise.
16535 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16536 * grub-core/commands/setpci.c: Likewise.
16537 * grub-core/loader/i386/bsd.c: Likewise.
16538 * grub-core/loader/i386/linux.c: Likewise.
16539 * util/getroot.c: Likewise.
16540 * util/grub-editenv.c: Likewise.
16541 * util/grub-fstest.c: Likewise.
16542 * util/grub-mkfont.c: Likewise.
16543 * util/grub-mkimage.c: Likewise.
16544 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16545 * util/grub-pe2elf.c: Likewise.
16546 * util/grub-probe.c: Likewise.
16547 * util/grub-setup.c: Likewise.
16548 * util/ieee1275/ofpath.c: Likewise.
16549 * util/misc.c: Likewise.
16550 * util/raid.c: Likewise.
16552 2011-11-11 Robert Millan <rmh@gnu.org>
16554 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16555 __attribute__((unused)) from `os_dev', which *is* being used.
16557 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16559 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16561 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16562 GRUB_IA64_DL_GOT_ALIGN.
16563 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16564 GRUB_IA64_DL_TRAMP_ALIGN.
16566 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16568 Replace grub_fatal with normal errors in i386 linux loader.
16570 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16571 (allocate_pages): Check find_efi_mmap_size return value.
16572 (grub_e820_add_region): Return error.
16573 (grub_linux_boot): Check mmap return value.
16575 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16577 * grub-core/commands/acpihalt.c: Gettextized.
16578 * grub-core/commands/cacheinfo.c: Likewise.
16579 * grub-core/commands/cmp.c: Likewise.
16580 * grub-core/commands/efi/loadbios.c: Likewise.
16581 * grub-core/commands/gptsync.c: Likewise.
16582 * grub-core/commands/ieee1275/suspend.c: Likewise.
16583 * grub-core/commands/legacycfg.c: Likewise.
16584 * grub-core/commands/memrw.c: Likewise.
16585 * grub-core/commands/minicmd.c: Likewise.
16586 * grub-core/commands/parttool.c: Likewise.
16587 * grub-core/commands/time.c: Likewise.
16588 * grub-core/commands/videoinfo.c: Likewise.
16589 * grub-core/disk/geli.c: Likewise.
16590 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16591 * grub-core/disk/luks.c: Likewise.
16592 * grub-core/disk/lvm.c: Likewise.
16593 * grub-core/font/font_cmd.c: Likewise.
16594 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16595 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16596 * grub-core/gfxmenu/view.c: Likewise.
16597 * grub-core/kern/emu/hostdisk.c: Likewise.
16598 * grub-core/kern/emu/main.c: Likewise.
16599 * grub-core/kern/emu/misc.c: Likewise.
16600 * grub-core/kern/emu/mm.c: Likewise.
16601 * grub-core/kern/mips/arc/init.c: Likewise.
16602 * grub-core/kern/mips/loongson/init.c: Likewise.
16603 * grub-core/kern/partition.c: Likewise.
16604 * grub-core/lib/i386/halt.c: Likewise.
16605 * grub-core/lib/mips/arc/reboot.c: Likewise.
16606 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16607 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16608 * grub-core/loader/i386/xnu.c: Likewise.
16609 * grub-core/loader/multiboot.c: Likewise.
16610 * grub-core/net/bootp.c: Likewise.
16611 * grub-core/net/net.c: Likewise.
16612 * grub-core/normal/term.c: Likewise.
16613 * grub-core/partmap/bsdlabel.c: Likewise.
16614 * grub-core/parttool/msdospart.c: Likewise.
16615 * grub-core/term/gfxterm.c: Likewise.
16616 * grub-core/term/terminfo.c: Likewise.
16617 * grub-core/video/i386/pc/vbe.c: Likewise.
16618 * util/grub-menulst2cfg.c: Likewise.
16619 * util/grub-mkdevicemap.c: Likewise.
16620 * util/grub-mklayout.c: Likewise.
16621 * util/grub-mkrelpath.c: Likewise.
16622 * util/grub-script-check.c: Likewise.
16623 * util/ieee1275/grub-ofpathname.c: Likewise.
16624 * util/resolve.c: Likewise.
16626 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16628 Support %1$d syntax.
16630 * tests/printf_unit_test.c: New file.
16631 * Makefile.util.def (printf_test): New test.
16632 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16634 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16636 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16639 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16641 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16643 * grub-core/font/font.c (grub_font_load): Likewise.
16645 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16647 * util/grub-macho2img.c: Add comment concerning gettext.
16648 * grub-core/lib/legacy_parse.c: Likewise.
16650 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16652 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16653 (grub_xvasprintf): Likewise.
16655 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16657 Add const keyword to grub_env_get and gettextize week days.
16659 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16660 (grub_read_hook_datetime): Return const char *.
16661 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16663 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16665 (grub_get_weekday_name): Return const char *. Call gettext.
16666 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16667 char * and len as the argument. All users updated.
16668 (grub_script_argv_split_append): Receive const char *.
16669 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16670 * include/grub/env.h (grub_env_get): Likewise.
16671 (grub_env_read_hook_t): Return const char *.
16672 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16673 (grub_script_argv_split_append): Likewise.
16675 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16677 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16679 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16681 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16682 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16684 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16686 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16689 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16691 Fix mips compilation.
16693 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16695 (hashes): Use in embed decoder as well (for sizes).
16696 (dec_stream_header): Fix embed decompressor logic.
16697 (dec_stream_footer): Likewise.
16699 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16701 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16702 an error and not a fatal on unrecognised relocation types.
16704 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16706 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16707 Issue error rather than printf on unknown arguments.
16709 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16711 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16714 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16716 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16719 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16721 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16722 leftover debug printf.
16724 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16726 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16728 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16730 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16733 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16735 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16737 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16739 Allow all modules to perform serial IO
16741 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16742 * include/grub/serial.h (grub_serial_port_configure): New inline
16744 (grub_serial_port_fetch): Likewise.
16745 (grub_serial_port_put): Likewise.
16746 (grub_serial_port_fini): Likewise.
16747 (grub_serial_find): New proto.
16749 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16751 Put symlink at the end of the node and fix a potential
16754 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16755 Make symlink into an array.
16756 (set_rockridge): Set have_symlink and alloc_dirents.
16757 (grub_iso9660_read_symlink): Use new layout.
16758 (grub_iso9660_iterate_dir): Fix memory corruption.
16760 (grub_iso9660_dir): Set have_symlink.
16761 (grub_iso9660_open): Likewise.
16763 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16765 Remove local keyword.
16767 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16768 (version_test_gt): Likewise.
16769 (version_find_latest): Likewise.
16770 (gettext_printf): Likewise.
16771 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16773 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16775 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16777 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16779 Fix ZFS memory and resource leaks.
16781 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16784 (fill_vdev_info): New parameter inserted. All users updated.
16785 (check_pool_label): Likewise.
16786 (scan_disk): Likewise.
16787 (scan_devices): Close non-inserted disks.
16788 (fzap_iterate): Free l.
16789 (unmount_device): Free children descripto memory.
16791 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16793 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16794 argument (access out of bounds).
16796 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16798 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16801 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16803 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16806 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16808 Fix several memory leaks.
16810 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16811 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16812 (grub_cpio_dir): Likewise.
16813 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16814 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16815 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16816 (grub_romfs_label): Likewise.
16817 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16818 (squash_unmount): New function.
16819 (grub_squash_dir): Fix memory leak.
16820 (grub_squash_open): Likewise.
16821 (grub_squash_read): Likewise.
16822 (grub_squash_mtime): Likewise.
16823 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16824 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16825 * util/grub-fstest.c (fstest): Likewise.
16827 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16829 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16830 avoid accessing beyond the array.
16832 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16834 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16836 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16838 Several AFFS fixes.
16840 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16841 (GRUB_AFFS_FLAG_FFS): Removed.
16842 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16843 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16844 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16845 (grub_fshelp_node): Make block 32-bit.
16846 Add block_cache and last_block_cache.
16847 (grub_affs_read_block): Fill and use block cache.
16848 (grub_affs_read_file): Removed.
16849 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16851 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16853 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16855 (grub_affs_close): Free block cache.
16856 (grub_affs_read): Use grub_fshelp_read_file directly.
16858 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16860 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16863 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16865 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16867 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16870 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16872 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16874 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16875 byteswap when needed.
16877 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16879 Fix FreeBSD compilation.
16881 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16882 to avoid circular dependency.
16883 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16884 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16885 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16887 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16889 Fix ZFS crypto error types.
16891 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16892 (grub_gcm_decrypt): Likewise.
16893 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16896 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16900 * Makefile.util.def (10_illumos): New script.
16901 * configure.ac: Set COND_HOST_ILLUMOS.
16902 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16903 Support Illumos calls.
16904 (find_partition_start) [__sun__]: Likewise.
16905 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16906 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16907 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16908 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16910 * util/grub-probe.c (probe) [__sun__]: Do character check.
16911 * util/grub.d/10_illumos.in: New file.
16913 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16915 Support escaped commas in hostdisk.
16917 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16918 (find_grub_drive): Use unescape_cmp.
16919 (make_device_name): Escape commas.
16921 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16923 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16925 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16927 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16930 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16932 Support trampoline jumps on powerpc.
16934 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16936 (grub_dl_load_segments): Set mod->sz.
16937 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16939 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16941 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16943 (trampoline): New struct.
16944 (trampoline_template): New const.
16945 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16946 * include/grub/dl.h (grub_dl): Add sz element.
16947 [__powerpc__]: Follow __ia64__.
16948 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16949 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16950 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16951 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16953 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16955 ZFS crypto support.
16957 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16958 * grub-core/Makefile.core.def (zfscrypt): New module.
16959 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16960 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16961 it. All users updated.
16962 (grub_zfs_decrypt): New var.
16963 (grub_zfs_load_key): Likewise.
16964 (zio_checksum_functions): Add SHA256+MAC.
16965 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16966 (zio_read): Handle encrypted blocks.
16967 (zap_verify): Remove incorrect check.
16968 (fzap_iterate): Handle non-standard fzap.
16969 (zap_iterate): Likewise.
16970 (zap_iterate_u64): New function.
16971 (dnode_get_fullpath): Load keys.
16972 * grub-core/fs/zfs/zfscrypt.c: New file.
16973 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16974 (grub_crypto_ecb_encrypt): Make input const.
16975 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16976 (grub_crypto_ecb_encrypt): Make input const.
16977 (GRUB_CIPHER_AES): New macro.
16978 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16979 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16980 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16981 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16982 prefix. All users updated.
16983 (grub_zfs_add_key): New proto.
16984 (grub_zfs_decrypt): Likewise.
16985 (grub_zfs_load_key): Likewise.
16986 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16987 * util/grub-fstest.c (options): Add -K option.
16988 (argp_parser): Likewise.
16990 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16992 Support zle compression on ZFS.
16994 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16995 (decomp_table): Add zle.
16996 * include/grub/zfs/zio.h (zio_compress): Add zle.
16998 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
17000 Support BtrFS embedding.
17002 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
17003 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
17004 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
17005 * util/grub-setup.c (setup): Use fs embedding if available.
17006 Add additional sanity check.
17008 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
17010 * util/grub-install.in: Fix condition for config_opt.
17012 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17014 Support third redundancy strip on raidz3.
17016 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
17017 Return error on singularity. All users updated.
17018 (read_device): Don't stop on 3rd failure on raidz3.
17020 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17022 Support case-insensitive ZFS subvolumes.
17024 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
17026 (zap_hash): Likewise.
17027 (name_cmp): New function.
17028 (zap_leaf_array_equal): New parameter case_insensitive.
17030 (zap_leaf_lookup): Likewise.
17031 (fzap_lookup): Likewise.
17032 (zap_lookup): Likewise.
17033 (dnode_get_path): New parameter case_insensitive. Retrieve case
17034 sensitiviness of a volume. All users updated.
17035 (dnode_get_fullpath): New parameter case_insensitive.
17037 (grub_zfs_dir): Set info.case_insensitiveness.
17039 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17041 Support second redundancy strip on raidz(2,3).
17043 * grub-core/fs/zfs/zfs.c (powx): New array.
17044 (powx_inv): Likewise.
17046 (xor_out): New function.
17047 (gf_mul): Likewise.
17048 (recovery): Likewise.
17049 (read_device): Use second redundancy strip.
17051 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17053 Use a power of generator representation of GF(256) multiplication group
17054 to save space time and complexity.
17056 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
17057 (raid6_table2): Likewise.
17059 (powx_inv): Likewise.
17061 (grub_raid_block_mul): Replace with ...
17062 (grub_raid_block_mulx): ...this.
17063 (grub_raid6_init_table): Rewritten.
17064 (grub_raid6_recover): Use power of generator representation.
17066 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17068 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
17069 for the right device.
17071 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17073 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
17074 expected by grub-mkimage and it's more clear since there is no implicit
17077 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17079 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
17081 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17083 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
17085 * util/grub-mkrescue.in: Fix handling xorriso option.
17087 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17089 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
17092 2011-11-03 crocket <crockabiscuit@gmail.com>
17094 * util/grub.d/10_linux.in: Add Slackware initrd naming.
17096 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17098 XZ CRC64 and SHA256 support.
17100 * Makefile.util.def (libgrubmods): Add crc64.c.
17101 * grub-core/Makefile.core.def (crc64): New module.
17102 * grub-core/lib/crc64.c: New file.
17103 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
17104 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
17106 (MAX_HASH_SIZE): New define.
17107 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
17108 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
17109 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17110 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17111 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
17112 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
17113 Handle non-crc32 hashes.
17114 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
17115 (dec_stream_header): Handle non-crc32 hashes.
17116 (dec_stream_footer): Likewise.
17117 (dec_block_header): Likewise.
17118 (dec_main): Likewise.
17119 (xz_dec_init): Likewise.
17120 (xz_dec_reset): Likewise.
17121 (xz_dec_end): Likewise.
17122 * util/import_gcry.py: Add CRC64 line.
17124 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17126 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
17129 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17131 Make reiserfs label retrieval similar to other *_label functions.
17133 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
17134 (REISERFS_MAX_LABEL_LENGTH): Removed.
17135 (REISERFS_LABEL_OFFSET): Likewise.
17136 (grub_reiserfs_label): Rewritten.
17138 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17140 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
17143 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17145 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
17147 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17149 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
17150 drive failure on both raidz and raidz2.
17152 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17154 Fix RAIDZ(2) for >= 5 devices.
17156 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
17157 asize argument. All users updated.
17159 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17163 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
17164 (fill_vdev_info_real): Set ashift.
17165 (read_device): Rewrite RAIDZ part based on reverse engineering.
17167 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17169 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
17170 don't report potentially unavialiable fields in debug output.
17171 (find_path): Fix double-free and memory leak.
17173 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17175 Read label on UFS1.
17177 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
17178 (grub_ufs_fs): Always set .label.
17180 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17184 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
17185 (grub_ufs_data): New field log2_blksz.
17186 (grub_ufs_read_file): Use shifts.
17187 (grub_ufs_mount): Check block size and logarithm it.
17189 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17191 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17194 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17196 Handle symlinks and long names on tar and cpio.
17198 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17199 (ATTR_FILE): Likewise.
17200 (ATTR_DIR): Likewise.
17201 (ATTR_LNK): Likewise.
17202 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17203 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17205 (grub_cpio_mount): Zero-fill data.
17206 (handle_symlink): New function.
17207 (grub_cpio_dir): Handle symlinks.
17208 (grub_cpio_open): Likewise.
17209 (grub_cpio_close) [MODE_USTAR]: Free linkname.
17211 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17213 Fix iso9660 filename limitations and fix memory leaks.
17215 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17216 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17218 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17220 Fix JFS file name length limitations.
17222 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17223 (grub_jfs_diropen): Fix maximum filename length.
17224 (grub_jfs_getent): Fix filename length.
17225 (grub_jfs_lookup_symlink): Fix size checks.
17227 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17229 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17232 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17234 Leverage BFS implementation to read AFS.
17236 * Makefile.util.def (libgrubmods): Add afs.c.
17237 * grub-core/Makefile.core.def (afs): New module
17238 * grub-core/fs/afs.c: New file.
17239 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17241 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17243 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17245 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17247 * grub-core/fs/bfs.c: Run indent.
17249 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17251 BFS implementation based on the specification.
17253 * grub-core/fs/bfs.c: New file.
17254 * Makefile.util.def (libgrubmods): Add bfs.c.
17255 * grub-core/Makefile.core.def (bfs): New module.
17257 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17259 * util/grub-fstest.c (cmd_cp): Clarify error message.
17260 (cmd_cmp): Likewise.
17262 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17264 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17267 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17269 Remove afs and befs because of copyright problem.
17271 * grub-core/fs/afs.c: Removed.
17272 * grub-core/fs/afs_be.c: Removed.
17273 * grub-core/fs/befs.c: Removed.
17274 * grub-core/fs/befs_be.c: Removed.
17275 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17276 * grub-core/Makefile.core.def (afs): Removed.
17277 (afs_be): Likewise.
17279 (befs_be): Likewise.
17281 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17283 Prefer rockridge over Joliet.
17285 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17287 (set_rockridge): ... here.
17288 (grub_iso9660_mount): Check rockridge on the primary label when
17289 discovering. Ignore Joliet if Rockridge is present.
17291 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17293 Use shifts in nilfs2.
17295 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17296 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17297 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17298 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17299 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17300 (grub_nilfs2_entries_per_block): Replaced with ...
17301 (grub_nilfs2_log_entries_per_block_log): ... this.
17302 (grub_nilfs2_blocks_per_group): Replaced with ...
17303 (grub_nilfs2_blocks_per_group_log): ... this.
17304 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17305 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17306 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17307 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17308 (grub_nilfs2_palloc_entry_offset): Replaced ...
17309 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17310 (grub_nilfs2_dat_translate): Use shifts.
17311 (grub_nilfs2_read_inode): Likewise.
17312 (GRUB_MOD_INIT): Ensure that logs are correct.
17314 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17316 Use shifts in minix filesystem.
17318 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17319 (GRUB_MINIX_ZONE2SECT): Likewise.
17320 (grub_minix_data): Replace block_size with log_block_size.
17321 (grub_minix_read_file): Use shifts.
17322 (grub_minix_mount): Check block size and take a logarithm.
17324 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17326 Use shifts in squash4.
17328 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17329 (squash_mount): Check block size and take logarithm.
17330 (direct_read): Use shifts.
17332 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17334 Correct befs block counting logic.
17336 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17337 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17338 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17339 (grub_afs_read_inode): Use block_shift.
17340 (RANGE_SHIFT): New definition.
17341 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17342 unexpected conditions, use shifts and appropriate types.
17343 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17345 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17347 * grub-core/disk/raid.c (scan_devices): Check partition.
17348 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17350 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17352 Support BFS (befs) UUID.
17354 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17355 (grub_afs_small_data_element_header): New struct.
17356 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17357 (grub_afs_read_attribute) [MODE_BFS]: New function.
17358 (grub_afs_iterate_dir): Allocate for complete inode.
17359 (grub_afs_mount): Likewise.
17360 (grub_afs_uuid) [MODE_BFS]: New function.
17361 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17363 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17365 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17366 (zfs_unmount): Fix memory leak.
17368 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17370 Support NTFS reparse points.
17372 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17373 (symlink_descriptor): New struct.
17374 (grub_ntfs_read_symlink): New function.
17375 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17376 (grub_ntfs_open): Likewise.
17378 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17380 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17382 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17384 fstest xnu_uuid subcommand.
17386 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17387 grub-core/commands/xnu_uuid.c.
17388 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17389 (fstest): Handle xnu_uuid.
17390 (options): Document xnu_uuid.
17391 (argp_parser): Parse xnu_uuid.
17393 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17395 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17396 -l argument. Add newline at the end if printing.
17397 (GRUB_MOD_INIT): Document -l.
17399 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17401 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17403 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17405 ZFS multi-device and version 33 support.
17407 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17408 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17409 (grub_zfs_data): Add multidev-ice-related fields.
17410 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17411 (dva_get_offset): Make dva const.
17412 (zfs_fetch_nvlist): New function.
17413 (fill_vdev_info_real): Likewise.
17414 (fill_vdev_info): Likewise.
17415 (check_pool_label): Likewise.
17416 (scan_disk): Likewise.
17417 (scan_devices): Likewise.
17418 (read_device): Likewise.
17419 (read_dva): Likewise.
17420 (zio_read_gang): Use read_dva.
17421 (zio_read_data): Likewise.
17422 (zap_leaf_lookup): Add missing endian conversion.
17423 (zap_verify): Add missing endian conversion. All users updated.
17424 (fzap_lookup): Likewise.
17425 (fzap_iterate): Likewise.
17426 (dnode_get_path): Handle SA bonus.
17427 (nvlist_find_value): Make input const. All users updated.
17428 (unmount_device): New function.
17429 (zfs_unmount): Use unmount_device.
17430 (zfs_mount): Use scan_disk.
17431 (zfs_mtime): New function.
17432 (grub_zfs_open): Handle system attributes.
17433 (fill_fs_info): Likewise.
17434 (grub_zfs_dir): Likewise.
17435 (grub_zfs_fs): Add mtime.
17436 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17437 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17438 (SA_MTIME_OFFSET): Likewise.
17439 (SA_SYMLINK_OFFSET): Likewise.
17440 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17441 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17442 (fstest): Support zfsinfo.
17443 (argp_parser): Likewise.
17445 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17447 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17450 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17454 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17455 sharing the same block. Iterate over correct number of indices.
17456 (dnode_get_path): Handle symlinks correctly.
17458 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17460 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17462 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17464 Read label on HFS+.
17466 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17467 (grub_hfsplus_btree_search): Fix types.
17468 (grub_hfsplus_label): Implement.
17470 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17472 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17474 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17476 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17478 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17480 Fix symlink handling on iso9660.
17482 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17484 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17485 (grub_iso9660_read_symlink): Moved most of code ...
17486 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17488 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17490 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17491 Use union to avoid breaking strict-aliasing rules.
17493 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17495 Support multi-extent iso files.
17497 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17499 (grub_fshelp_node): Revamp. All users updated.
17500 (FLAG_*): New enum.
17501 (read_node): New function.
17502 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17504 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17505 (get_node_size): New function.
17506 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17508 Fix memory leak on . and ..
17509 (grub_iso9660_read): Use read_node.
17510 (grub_iso9660_close): Free node.
17512 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17514 Fix tar 4G limit and handle paths containing dot.
17516 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17517 (canonicalize): New function.
17518 (grub_cpio_find_file): Use canonicalize. Store offs in
17520 (grub_cpio_dir): Use grub_disk_addr_t.
17521 (grub_cpio_open): Likewise.
17523 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17525 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17527 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17529 (grub_squash_inode): Add long_file and block_size.
17530 (grub_squash_cache_inode): New struct.
17531 (grub_squash_dirent): Make types into enum.
17532 (SQUASH_TYPE_LONG_REGULAR): New type.
17533 (grub_squash_frag_desc): Add field size.
17534 (SQUASH_BLOCK_FLAGS): New enum.
17535 (grub_squash_data): Use grub_squash_cache_inode.
17536 (grub_fshelp_node): Make ino_chunk 64-bit.
17537 (read_chunk): Minor argument change. All users updated.
17538 (squash_mount): Use correct le_to_cpu.
17539 (grub_squash_open): Handle LONG_REGULAR.
17540 (direct_read): New function.
17541 (grub_squash_read_data): Handle blocks correctly.
17543 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17545 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17547 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17549 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17551 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17553 Fix 2G limit on ZFS.
17555 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17557 (uberblock_verify): Likewise.
17558 (dmu_read): Likewise.
17559 (grub_zfs_read): Likewise. Remove invalid cast.
17561 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17563 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17564 (grub_jfs_blkno): Fix incorrect shift.
17565 (grub_jfs_read_file): Use more appropriate types.
17567 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17569 Support triple indirect on minix2 and minix3.
17571 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17572 Declare triple_indir_zone.
17573 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17576 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17580 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17581 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17582 Rename ctime to mtime. All users updated.
17583 (grub_minix_get_file_block): Fix types and double indirect computations.
17585 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17587 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17588 if no label is found.
17589 (grub_fat_iterate_dir): Fix file size type.
17590 (grub_fat_iterate_dir): Likewise.
17592 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17594 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17596 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17597 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17599 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17601 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17603 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17605 * util/import_gcry.py: Accept space between # and include.
17607 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17609 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17611 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17613 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17615 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17616 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17618 * grub-core/script/yylex.l: Add fine-grained #pragma.
17620 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17622 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17623 New inline function.
17624 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17626 (memset) [GRUB_UTIL]: Likewise.
17627 (memcmp) [GRUB_UTIL]: Likewise.
17629 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17631 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17632 inline function rather than a define.
17634 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17636 * util/grub-setup.c: Add missing include.
17638 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17640 * util/ieee1275/grub-ofpathname.c: Add missing include.
17642 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17644 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17645 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17648 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17650 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17653 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17655 * util/grub-install.in: Add datarootdir as per automake manual
17657 * util/grub-mknetdir.in: Likewise.
17659 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17661 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17663 * util/grub.d/10_kfreebsd.in: Likewise.
17664 * util/grub.d/10_linux.in: Likewise.
17665 * util/grub.d/10_netbsd.in: Likewise.
17666 * util/grub.d/10_windows.in: Likewise.
17667 * util/grub.d/20_linux_xen.in: Likewise.
17669 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17671 Remove redundant grub_kernel_image_size.
17673 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17675 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17676 the small code. It moves it only by few bytes but simplifies the code.
17677 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17679 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17680 (grub_kernel_image_size): Removed.
17681 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17682 (grub_kernel_image_size): Removed.
17683 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17684 compiled with Apple toolchain.
17685 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17686 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17687 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17688 (grub_total_module_size): Likewise.
17689 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17691 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17692 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17693 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17694 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17695 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17696 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17697 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17698 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17700 (grub_total_module_size): Removed.
17701 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17702 (image_targets): Likewise.
17703 Set .compressed_size to no field on sparc.
17704 (generate_image): Remove kernel_image_size handling.
17706 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17708 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17709 NULL pointer dereference.
17711 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17713 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17714 done with a dedicated section.
17716 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17717 Ensure the correct position of boot_path.
17718 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17719 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17721 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17722 * include/grub/boot.h: Removed. All references removed.
17723 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17725 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17727 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17729 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17732 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17734 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17736 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17738 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17739 Don't add the bogus brackets.
17741 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17745 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17746 * grub-core/Makefile.core.def (exfat): New module.
17747 * grub-core/fs/exfat.c: New file.
17748 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17749 (GRUB_FAT_ATTR_*): Make into an enum.
17750 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17751 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17752 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17753 (GRUB_FAT_MAXFILE): Removed.
17754 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17755 (grub_current_fat_bpb_t): New type.
17756 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17757 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17758 (grub_fat_dir_node_t): New type.
17759 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17760 (fat_log2) [MODE_EXFAT]: Removed.
17761 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17762 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17763 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17764 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17765 (grub_fat_label) [MODE_EXFAT]: New function.
17766 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17767 reserved_first_sector to 0.
17769 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17771 Move grub_reboot out of the kernel.
17773 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17774 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17775 * grub-core/lib/efi/reboot.c: ... here.
17776 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17777 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17778 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17779 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17780 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17781 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17782 * grub-core/lib/ieee1275/reboot.c: ... here.
17783 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17784 * grub-core/lib/mips/arc/reboot.c: ... here.
17785 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17786 * grub-core/lib/mips/loongson/reboot.c: ...here.
17787 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17788 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17789 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17790 * include/grub/i386/reboot.h: New file.
17791 * include/grub/mips/loongson/ec.h: Fix includes.
17792 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17793 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17794 * grub-core/lib/i386/reboot.c: New file.
17796 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17798 Make grub_prefix into module to fix the arbitrary limit and save
17801 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17802 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17803 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17804 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17805 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17806 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17807 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17808 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17809 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17810 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17811 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17812 * include/grub/ia64/efi/kernel.h: Removed.
17813 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17814 (grub_prefix): Removed.
17815 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17816 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17817 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17818 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17819 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17820 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17821 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17822 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17823 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17824 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17825 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17826 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17827 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17828 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17829 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17830 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17831 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17832 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17833 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17834 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17835 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17836 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17837 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17838 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17839 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17840 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17841 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17842 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17843 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17845 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17847 (image_targets): Likewise.
17848 (generate_image): Put prefix as a module.
17850 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17852 Replace grub_module_iterate with FOR_MODULES.
17854 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17855 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17856 (grub_efi_modules_addr): ...this.
17857 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17858 (grub_efi_init): Set grub_modbase.
17859 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17860 (grub_modbase): New variable.
17861 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17862 (grub_modbase): New variable.
17863 (grub_machine_init): Set grub_modbase.
17864 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17865 (grub_modbase): New variable.
17866 (grub_machine_init): Set grub_modbase.
17867 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17868 (grub_modbase): New variable.
17869 (grub_machine_init): Set grub_modbase.
17870 * grub-core/kern/main.c (grub_module_iterate): Remove.
17871 (grub_modules_get_end): Use grub_modbase.
17872 (grub_load_modules): Use FOR_MODULES.
17873 (grub_load_config): Likewise.
17874 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17875 (grub_modbase): New variable.
17876 (grub_machine_init): Set grub_modbase.
17877 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17878 (grub_modbase): New variable.
17879 (grub_machine_init): Set grub_modbase.
17880 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17882 (grub_modbase): New variable.
17883 (grub_machine_init): Set grub_modbase.
17884 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17885 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17886 (grub_module_iterate): Likewise.
17887 (grub_modbase): New variable declaration.
17888 (FOR_MODULES): New macro.
17890 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17892 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17893 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17895 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17897 Fix few obvious type discrepancies.
17899 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17900 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17901 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17903 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17904 and connected types.
17905 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17907 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17908 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17909 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17910 and connected types.
17912 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17914 Fix python 3.x incompatibilities.
17916 * gentpl.py: Put brackets around print strings.
17917 * util/import_gcry.py: Open explicitly as utf-8.
17918 Use in instead of has_key.
17920 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17922 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17923 (GRUB_XFS_INO_AGBITS): Make into inline function.
17924 (GRUB_XFS_INO_INOINAG): Likewise.
17925 (GRUB_XFS_INO_AG): Likewise.
17926 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17927 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17928 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17929 (GRUB_XFS_EXTENT_SIZE): Likewise.
17930 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17931 (GRUB_XFS_NEXT_DIRENT): Likewise.
17932 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17933 (grub_xfs_read_file): Fix offset type.
17935 2011-10-15 Robert Millan <rmh@gnu.org>
17937 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17939 2011-10-15 Robert Millan <rmh@gnu.org>
17941 Fix build problem on FreeBSD and GNU/kFreeBSD.
17943 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17945 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17947 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17949 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17951 (grub_hfsplus_btree_recoffset): Likewise.
17952 (grub_hfsplus_btree_recptr): Likewise.
17953 (grub_hfsplus_find_block): Likewise.
17954 (grub_hfsplus_btree_search): Likewise.
17955 (grub_hfsplus_read_block): Likewise.
17956 (grub_hfsplus_read_file): Likewise.
17957 (grub_hfsplus_mount): Likewise.
17958 (grub_hfsplus_btree_iterate_node): Likewise.
17959 (grub_hfsplus_btree_search): Likewise.
17960 (grub_hfsplus_iterate_dir): Likewise.
17961 (grub_hfsplus_read): A small code simplification.
17963 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17965 * grub-core/kern/emu/hostdisk.c
17966 (convert_system_partition_to_system_disk): Don't assume that children
17967 of mapper nodes are mapper nodes.
17969 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17971 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17972 * include/grub/misc.h (grub_isxdigit): New function.
17973 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17974 switched to grub_isxdigit.
17975 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17976 number starting with a letter.
17978 2011-10-09 Robert Millan <rmh@gnu.org>
17980 LVM support for FreeBSD and GNU/kFreeBSD.
17982 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17984 (LVM_DEV_MAPPER_STRING): Move from here ...
17985 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17986 * util/getroot.c: Include `<grub/util/lvm.h>'.
17987 (grub_util_get_dev_abstraction): Enable
17988 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17989 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17990 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17991 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17993 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17995 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17996 when LVM abstraction is required for ${GRUB_DEVICE}.
17998 2011-10-06 Szymon Janc <szymon@janc.net.pl>
18000 Add support for LZO compression in GRUB:
18001 - import of minilzo library,
18002 - LZO decompression for btrfs,
18003 - lzop files decompression.
18005 * grub-core/io/lzopio.c: New file.
18006 * grub-core/lib/adler32.c: Likewise.
18007 * grub-core/lib/minilzo/lzoconf.h: Likewise.
18008 * grub-core/lib/minilzo/lzodefs.h: Likewise.
18009 * grub-core/lib/minilzo/minilzo.c: Likewise.
18010 * grub-core/lib/minilzo/minilzo.h: Likewise.
18011 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
18012 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
18013 grub-core/lib/minilzo/minilzo.c to common.
18014 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
18015 cflags in cppflags.
18016 * grub-core/Makefile.core.def (btrfs): Likewise.
18017 * grub-core/Makefile.core.def (lzopio): New module.
18018 (adler32): Likewise.
18019 * grub-core/fs/btrfs.c: Include minilzo.h.
18020 (GRUB_BTRFS_COMPRESSION_LZO): New define.
18021 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
18022 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
18023 (grub_btrfs_lzo_decompress): New function.
18024 (grub_btrfs_extent_read): Add support for LZO compression type.
18025 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
18026 (GRUB_USHRT_MAX): Likewise.
18027 (GRUB_UINT_MAX): Likewise.
18028 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
18029 (UINT_MAX): Likewise.
18030 (CHAR_BIT): Likewise.
18031 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
18032 grub-core/lib/posix_wrap/limits.h
18033 (UCHAR_MAX): Likewise.
18034 * include/grub/file.h (grub_file_filter_id): New compression filter
18035 GRUB_FILE_FILTER_LZOPIO.
18036 * include/grub/file.h (grub_file_filter_id): Set
18037 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
18038 * include/grub/types.h (grub_get_unaligned16): New function.
18039 (grub_get_unaligned32): Likewise.
18040 (grub_get_unaligned64): Likewise.
18041 * util/import_gcry.py (cryptolist): Add adler32.
18043 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
18045 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
18046 in perspective decreases the complexity of build system and fixes
18047 compilation right now.
18049 2011-10-01 Ales Nesrsta <starous@volny.cz>
18051 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
18052 (fixed problem related to using UHCI with coreboot).
18054 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18056 * gentpl.py: Use Autogen macros so that the output template file
18057 (Makefile.tpl) size is reduced.
18059 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
18061 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
18064 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18066 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
18067 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
18069 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18071 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
18074 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18076 Remove extra declaration of sleep for mingw32.
18078 * util/misc.c (sleep) [__MINGW32__]: Removed.
18079 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
18081 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
18083 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
18085 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
18087 (NETBSD_BTINFO_BOOTWEDGE): New definition.
18088 (grub_netbsd_btinfo_bootwedge): New struct.
18089 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
18091 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
18093 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
18095 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
18098 2011-09-28 Andreas Born <futur.andy@googlemail.com>
18100 Fix incorrect identifiers in bash-completion.
18102 * util/bash-completion.d/grub-completion.bash.in
18103 (_grub_mkpasswd-pbkdf2): Rename to ...
18104 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
18105 (_grub_script-check): Rename to ...
18106 (_grub_script_check): ... this. All users updated.
18108 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
18110 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
18111 Return 0 if disk isn't biosdisk.
18113 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18115 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
18117 * Makefile.util.def (grub-fstest): Likewise.
18119 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18121 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
18122 Get sector size from disk label.
18124 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
18126 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
18127 */README* as well as README*.
18128 Reported by: Axel Beckert.
18130 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18132 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
18133 case of less than 256 MiB of RAM.
18135 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18137 * grub-core/commands/wildcard.c (make_regex): Handle @.
18139 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18141 * util/grub-install.in: Move cryptodisk logic to appropriate place.
18143 2011-08-21 Szymon Janc <szymon@janc.net.pl>
18145 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
18146 AC_LANG_CONFTEST macros.
18148 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18150 Add grub-fstest option to uncompress data for commands.
18152 * util/grub-fstest.c (uncompress): New var.
18153 (options): New option -u.
18155 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18157 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
18158 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
18160 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18162 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
18163 file type was not recognized correctly (not gzip or corrupted).
18165 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18167 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
18168 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
18170 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18172 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
18174 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18175 video_radeon_fuloong2e.
18176 * grub-core/video/radeon_fuloong2e.c: New file.
18177 * include/grub/video.h (grub_video_id_t): Add new ID
18178 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
18180 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18182 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
18184 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
18185 that PRID matches the detected subplatform and reset the subplatform
18188 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18190 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18192 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18194 Fix PCI iterating on functions >= 4.
18196 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18197 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18199 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18200 (grub_pci_read): Fix bitmask.
18201 (grub_pci_read_word): Likewise.
18202 (grub_pci_read_byte): Likewise.
18203 (grub_pci_write): Likewise.
18204 (grub_pci_write_word): Likewise.
18205 (grub_pci_write_byte): Likewise.
18207 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18209 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18210 can still be specified in TARGET_CFLAGS)
18212 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18214 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18216 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18217 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18218 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18219 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18220 (FULOONG): Rename to ...
18221 (FULOONG2F): ... this. All users updated.
18222 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18223 (machtype_fuloong2f_str): ... this.
18224 (machtype_fuloong2e_str): New string.
18225 Check for machtype_fuloong2e_str.
18226 * grub-core/loader/mips/linux.c (loongson_machtypes)
18227 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18228 * grub-core/term/serial.c (loongson_defserial)
18229 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18230 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18231 loongson_defserial.
18232 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18234 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18235 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18236 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18237 to IMAGE_FULOONG2F_FLASH. All users updated.
18238 (image_targets): Rename images.
18239 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18241 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18243 Make enable of disk cache statistics code configurable.
18245 * configure.ac: --enable-cache-stats added.
18246 * config.h.in (DISK_CACHE_STATS): New define.
18247 * grub-core/Makefile.core.def (cacheinfo): New command.
18248 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18249 * grub-core/commands/cacheinfo.c: New file.
18250 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18251 moved to cacheinfo.c.
18252 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18254 * include/grub/disk.h: Likewise.
18256 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18258 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18259 * grub-core/Makefile.am: Likewise.
18261 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18263 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18266 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18268 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18270 (grub_jfs_lookup_symlink): Use correct starting inode.
18272 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18274 * util/grub-setup.c (main): Add missing gcry initialisation.
18276 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18278 Don't accept text modes on EFI when booting Linux.
18280 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18281 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18283 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18284 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18286 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18287 use of "/path/.." as in grub-install for EFI as well as handling
18288 symlinks correctly.
18289 Fixes Debian bug #637768.
18291 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18293 * util/grub-probe.c: Remove duplicate #include.
18295 2011-08-10 Robert Millan <rmh@gnu.org>
18297 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18299 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18301 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18302 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18304 2011-08-03 Robert Millan <rmh@gnu.org>
18306 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18307 la_array as packed.
18308 Reported by: Zachary Bedell
18310 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18312 * configure.ac: The Loongson port requires grub-mkfont due to its
18313 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18316 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18318 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18319 processing arguments (otherwise help2man fails when GRUB has not yet
18322 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18324 New script grub-mkstandalone.
18326 * Makefile.util.def (grub-mkstandalone): New script.
18327 * docs/man/grub-mkstandalone.h2m: New file.
18328 * util/grub-mkstandalone.in: Likewise.
18330 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18332 Support ATA disks with 4K sectors.
18334 * include/grub/ata.h (grub_ata): New member log_sector_size.
18335 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18336 (grub_ata_identify): Read sector size.
18337 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18339 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18341 * util/grub-install.in: Don't use uhci outside of x86.
18343 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18345 * util/grub-mkrescue.in: Add missing quotes.
18347 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18349 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18352 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18354 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18356 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18358 * include/grub/video.h: add missing EXPORT_FUND on
18359 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18361 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18363 * include/grub/mips/kernel.h: Fix define conflict.
18365 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18367 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18370 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18372 Preferred resolution detection for VBE.
18374 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18375 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18376 the Flat Panel extension, in line with the X.org VESA driver.
18377 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18379 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18380 (grub_vbe_bios_read_edid): Likewise.
18381 (grub_vbe_get_preferred_mode): Likewise.
18382 (grub_video_vbe_setup): When the mode is "auto", try to get the
18383 preferred mode from VBE, and use the largest mode that is no larger
18384 than the preferred mode (some BIOSes expose a preferred mode that is
18385 not in their mode list!). If this fails, fall back to 640x480 as a
18386 safe conservative choice.
18387 (grub_video_vbe_get_edid): New function.
18388 (grub_video_vbe_adapter): Add get_edid.
18389 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18390 (struct grub_video_adapter): Add get_edid.
18391 (grub_video_edid_checksum): Add prototype.
18392 (grub_video_edid_preferred_mode): Likewise.
18393 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18396 * grub-core/commands/videoinfo.c (print_edid): New function.
18397 (grub_cmd_videoinfo): Print EDID if available.
18399 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18400 is more appropriate on a wider range of platforms than 640x480.
18401 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18404 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18406 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18408 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18410 * po/POTFILES.in: Regenerate.
18412 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18414 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18415 incorrect memory usage.
18417 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18419 * util/grub-install.in: Source grub-mkconfig_lib.
18421 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18423 Remove getroot.c from core on emu platform.
18425 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18427 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18429 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18430 * util/getroot.c (get_win32_path): ... here.
18431 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18432 * util/getroot.c (fini_libzfs): ... here.
18433 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18434 * util/getroot.c (grub_get_libzfs_handle): ... here.
18435 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18437 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18438 * grub-core/kern/emu/misc.c
18439 (grub_make_system_path_relative_to_its_root): Moved from here...
18440 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18441 * grub-core/kern/emu/getroot.c: Moved from here ...
18442 * util/getroot.c: ... here. All users updated.
18443 * grub-core/kern/emu/raid.c: Moved from here ...
18444 * util/raid.c: ... here. All users updated.
18446 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18448 * po/POTFILES.in: Regenerate.
18450 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18452 Fix compilation on GNU/Linux.
18454 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18456 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18457 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18458 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18460 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18461 2011-07-07 Michael Gorven <michael@gorven.za.net>
18462 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18464 LUKS and GELI support.
18466 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18467 grub-core/disk/luks.c, grub-core/disk/geli.c,
18468 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18469 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18470 grub-core/lib/arg.c.
18471 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18472 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18473 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18474 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18475 (grub-bin2h): Add libgcry.a.
18476 (grub-mkimage): Likewise.
18477 (grub-mkrelpath): Likewise.
18478 (grub-script-check): Likewise.
18479 (grub-editenv): Likewise.
18480 (grub-mkpasswd-pbkdf2): Likewise.
18481 (grub-pe2elf): Likewise.
18482 (grub-fstest): Likewise.
18483 (grub-mkfont): Likewise.
18484 (grub-mkdevicemap): Likewise.
18485 (grub-probe): Likewise.
18486 (grub-ofpath): Likewise.
18487 (grub-mklayout): Likewise.
18488 (example_unit_test): Likewise.
18489 (grub-menulst2cfg): Likewise.
18490 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18491 * grub-core/Makefile.core.def (cryptodisk): New module.
18494 * grub-core/disk/AFSplitter.c: New file.
18495 * grub-core/disk/cryptodisk.c: Likewise.
18496 * grub-core/disk/geli.c: Likewise.
18497 * grub-core/disk/luks.c: Likewise.
18498 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18500 (grub_util_get_dm_abstraction): New function.
18501 (grub_util_follow_gpart_up): Likewise.
18502 (grub_util_get_geom_abstraction): Likewise.
18503 (grub_util_get_dev_abstraction): Use new functions.
18504 (grub_util_pull_device): Pull GELI and LUKS.
18505 (grub_util_get_grub_dev): Handle LUKS and GELI.
18506 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18507 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18508 (follow_geom_up): Removed.
18509 (grub_util_fd_seek): New function.
18510 (open_device): Use grub_util_fd_seek.
18511 (nread): Rename to ..
18512 (grub_util_fd_read): ... this. All users updated.
18513 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18514 (grub_crypto_cbc_decrypt): Likewise.
18515 (grub_crypto_hmac_write): Likewise.
18516 (grub_crypto_hmac_buffer): Likewise.
18517 (grub_password_get): Extend to util.
18518 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18519 New member modname.
18520 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18521 * include/grub/cryptodisk.h: New file.
18522 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18523 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18525 (grub_util_follow_gpart_up): New proto.
18526 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18527 (grub_util_fd_read): Likewise.
18528 (grub_cryptodisk_cheat_mount): Likewise.
18529 (grub_util_cryptodisk_print_uuid): Likewise.
18530 (grub_util_get_fd_sectors): Likewise.
18531 * util/grub-fstest.c (mount_crypt): New var.
18532 (fstest): Mount crypto if requested.
18533 (options): New option -C.
18534 (argp_parser): Parse -C.
18535 (main): Init and fini gcry.
18536 * util/grub-install.in: Support cryptodisk install.
18537 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18538 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18540 (prepare_grub_to_access_device): Likewise.
18541 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18542 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18543 (probe_cryptodisk_uuid): New function.
18544 (probe_abstraction): Likewise.
18545 (probe): Use new functions.
18546 * util/import_gcry.py: Create Makefile.utilgcry.def.
18547 Add modname member.
18549 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18551 Lazy device scanning.
18553 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18554 (grub-setup): Remove util/raid.c.
18555 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18556 * grub-core/disk/lvm.c (scan_depth): New variable.
18557 (grub_lvm_iterate): Rescan if necessary.
18558 (find_lv): New function based on grub_lvm_open.
18559 (grub_lvm_open): Use find_lv. Rescan on error.
18560 (is_node_readable): New function.
18561 (is_lv_readable): Likewise.
18562 (grub_lvm_scan_device): Skip already found disks.
18563 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18564 Stop if searched device is found and readable.
18565 * grub-core/disk/raid.c (inscnt): New variable.
18566 (scan_depth): Likewise.
18567 (scan_devices): New function based on grub_raid_register. Abort if
18568 looked for device is found.
18569 (grub_raid_iterate): Rescan if needed.
18570 (find_array): NEw function based on -grub_raid_open.
18571 (grub_raid_open): Use find_array and rescan.
18572 (insert_array): Set became_readable_at.
18573 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18574 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18576 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18577 (grub_util_pull_device): New function.
18578 (grub_util_get_grub_dev): Call grub_util_pull_device.
18579 * util/raid.c: Moved to ..
18580 * grub-core/kern/emu/raid.c: ... here.
18581 (grub_util_raid_getmembers): New parameter "bootable".
18582 All users updated. Support 1.x.
18583 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18585 * include/grub/disk.h (grub_disk_pull_t): New enum.
18586 (grub_disk_dev): Change iterate prototype.
18588 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18590 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18591 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18592 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18593 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18595 * include/grub/util/raid.h: Removed.
18597 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18599 * po/POTFILES.in: Regenerate.
18601 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18603 Unify sparc init with other ieee1275.
18605 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18606 instead of kern/sparc64/ieee1275/init.c.
18607 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18608 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18609 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18610 grub/machine/kernel.h.
18611 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18612 (grub_claim_heap) [__sparc__]: Use sparc version.
18613 (grub_machine_init): Moved args parsing to
18614 (grub_parse_cmdline): ...this.
18615 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18616 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18618 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18620 Move BOOTP to separate file.
18622 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18623 * grub-core/net/net.c: Move all BOOTP functions to
18624 * grub-core/net/bootp.c: ... here.
18626 Use frame interface on PXE.
18628 * grub-core/Makefile.core.def (pxecmd): Removed.
18629 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18630 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18631 * grub-core/i386/pc/pxe.c: Moved from here ...
18632 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18633 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18634 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18636 EFI network support.
18638 * grub-core/Makefile.core.def (efinet): New module.
18639 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18641 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18643 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18644 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18645 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18646 * grub-core/net/drivers/efi/efinet.c: New file.
18647 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18648 (grub_efi_net_config): New extern var.
18650 Various cleanups and bugfixes.
18652 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18654 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18655 disk declared as partition.
18656 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18658 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18659 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18660 (grub_debug_zalloc): Likewise.
18661 (grub_debug_realloc): Likewise.
18662 (grub_debug_memalign): Likewise.
18663 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18664 Check that target is IPv4.
18665 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18666 local-mac-address as fallback.
18667 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18669 * grub-core/net/ip.c (ipchksum): Rename to ...
18670 (grub_net_ip_chksum): ... this. All users updated.
18671 (grub_net_recv_ip_packets): Special handling for DHCP.
18672 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18674 Unify prefix handling
18676 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18677 (grub_machine_get_bootlocation): ... this.
18678 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18679 (grub_machine_get_bootlocation): ... this.
18680 (grub_prefix): New variable.
18682 (root_dev): New variable.
18684 (main): Use new variables.
18685 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18687 (grub_machine_get_bootlocation): ... this.
18688 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18689 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18690 (grub_machine_get_bootlocation): ... this.
18691 (grub_machine_set_prefix): Removed.
18692 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18693 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18695 (grub_machine_get_bootlocation): ... this.
18696 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18697 (grub_set_prefix_and_root): ... this. All users updated.
18698 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18700 (grub_machine_get_bootlocation): ... this.
18701 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18702 (grub_machine_get_bootlocation): New proto.
18703 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18705 Less intrusive and more reliable seek on network implementation.
18707 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18708 (grub_file_seek): Don't call grub_file_net_seek.
18709 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18710 (grub_net_fs_read_real): .. this.
18711 (grub_net_seek_real): Use net->offset.
18712 (grub_net_fs_read): Seek if necessary.
18714 Unify IEEE1275 netwotk config with the other platforms.
18716 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18718 (grub_machine_get_bootlocation): Support network.
18719 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18720 Support type and device parsing.
18721 (grub_ieee1275_get_device_type): New function.
18722 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18724 (grub_ieee1275_net_config_real): ... this.
18725 (grub_ofnet_probecards): Removed.
18726 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18727 * include/grub/ieee1275/ofnet.h: Removed.
18728 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18730 (grub_ieee1275_get_device_type): New function.
18732 Unify network device closing across platforms and make more robust.
18734 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18736 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18738 * grub-core/net/net.c (grub_net_network_level_interface_register):
18740 (grub_net_card_unregister): Close all interfaces.
18741 (receive_packets): Don't poll if no iterfaces are registered.
18743 (grub_net_fini_hw): New function.
18744 (grub_net_restore_hw): Likewise.
18745 (fini_hnd): New variable.
18746 (GRUB_MOD_INIT): Register preboot hook.
18747 (GRUB_MOD_FINI): Run and unregister preboot hook.
18749 Poll network cards when idle.
18751 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18752 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18753 * grub-core/net/net.c (receive_packets): Save last poll time.
18754 (grub_net_poll_cards_idle_real): New function.
18755 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18756 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18757 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18759 Rename ofnet interfaces.
18761 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18762 (grub_ofnet_findcards): Use ofnet_%s names.
18764 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18766 Cleanup socket opening.
18768 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18769 (grub_net_fs_close): Likewise.
18770 (grub_net_fs_read_real): Use eof member.
18771 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18772 (+grub_net_udp_close): New inline function.
18774 * include/grub/net/tftp.h: Moved to the top of ...
18775 * grub-core/net/tftp.c: ... here.
18776 * include/grub/net/ip.h: Moved mostly to the top of ...
18777 * grub-core/net/ip.c: ... here.
18778 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18779 * grub-core/net/ethernet.c: ... here.
18781 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18783 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18786 * include/grub/net/ip.h (ipv4_ini): Removed.
18787 (ipv4_fini): Likewise.
18789 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18790 (grub_net_send_ip_packets): Likewise.
18792 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18794 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18795 grub_read_cmos prototype.
18797 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18799 VGA text support in qemu-mips
18801 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18802 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18803 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18805 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18806 * grub-core/kern/vga_init.c: ... this.
18807 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18808 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18809 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18811 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18812 GRUB_MACHINE_PCI_IO_BASE.
18814 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18816 MIPS qemu flash support.
18818 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18820 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18821 (grub_machine_init): Probe memory if its size isn't known.
18822 * util/grub-mkimage.c (image_targets): Add flash targets.
18823 (generate_image): Handle flash targets.
18825 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18827 MIPS qemu at_keyboard support.
18829 * gentpl.py (videoinkernel): Add qemu-mips.
18830 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18831 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18832 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18834 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18835 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18836 * grub-core/term/serial.c (grub_serial_register)
18837 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18839 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18841 CMOS support on sparc.
18843 * gentpl.py (cmos): Add powerpc and sparc.
18844 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18846 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18847 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18848 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18849 grub_set_datetime_cmos.
18850 * grub-core/lib/ieee1275/cmos.c: New file.
18851 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18852 (find_rtc): Set no_ieee1275_rtc on error.
18853 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18854 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18855 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18856 fail. Move value to argument. All users updated
18857 (grub_cmos_write): Likewise.
18858 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18859 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18860 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18861 grub_get_datetime_cmos and grub_set_datetime_cmos.
18863 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18865 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18866 sourcing grub-mkconfig_lib.
18867 * util/update-grub_lib.in: Likewise.
18868 * util/grub.d/00_header.in: Likewise.
18869 * util/grub.d/10_hurd.in: Likewise.
18870 * util/grub.d/10_kfreebsd.in: Likewise.
18871 * util/grub.d/10_linux.in: Likewise.
18872 * util/grub.d/10_netbsd.in: Likewise.
18873 * util/grub.d/10_windows.in: Likewise.
18874 * util/grub.d/20_linux_xen.in: Likewise.
18875 * util/grub.d/30_os-prober.in: Likewise.
18877 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18879 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18880 default_bg_color rather than black.
18881 (grub_gfxterm_fullscreen): Likewise.
18882 (grub_gfxterm_background_color_cmd): Save new background color in
18885 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18887 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18889 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18891 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18894 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18896 Chainloading on coreboot support.
18898 * grub-core/Makefile.core.def (chain): Add coreboot.
18899 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18901 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18903 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18906 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18908 Implement time command.
18910 * grub-core/Makefile.core.def (time): New module.
18911 * grub-core/commands/time.c: New file.
18912 * grub-core/script/parser.y: Remove "time" keyword.
18913 * grub-core/script/yylex.l: Likewise.
18915 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18917 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18919 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18921 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18922 when handling leftovers.
18924 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18926 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18927 so that help2man doesn't fail.
18929 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18931 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18932 type in pointers on sparc64.
18933 (get_card_packet): Likewise.
18935 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18937 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18939 (grub_cmd_videoinfo): Fetch current video mode.
18941 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18943 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18944 because of underlying system restrictions.
18946 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18948 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18951 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18953 Coreboot video support.
18955 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18957 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18958 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18960 * grub-core/kern/i386/int.S: ... here.
18961 * grub-core/video/i386/pc/vbe.c: Updated includes.
18962 * grub-core/video/i386/pc/vga.c: Likewise.
18963 * include/grub/i386/coreboot/memory.h
18964 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18965 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18966 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18967 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18968 Disable interrupts.
18969 * include/grub/i386/pc/vga.h: Removed. All users updated.
18971 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18973 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18974 definitions for dprintf.
18975 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18977 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18979 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18981 (get_card_packet): Likewise.
18983 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18985 Display the path of the file when file is not found
18987 * grub-core/fs/fat.c: Display the filename when file is not found.
18988 * grub-core/fs/fshelp.c: Likewise.
18989 * grub-core/fs/hfs.c: Likewise.
18990 * grub-core/fs/jfs.c: Likewise.
18991 * grub-core/fs/minix.c: Likewise.
18992 * grub-core/fs/ufs.c: Likewise.
18993 * grub-core/fs/btrfs.c: Likewise.
18994 * grub-core/commands/i386/pc/play.c: Likewise.
18996 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18998 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18999 pointer checks before calling grub_free().
19000 * grub-core/commands/wildcard.c (match_devices): Likewise.
19001 * grub-core/commands/wildcard.c (match_files): Likewise.
19002 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
19003 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
19004 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
19005 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
19006 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
19007 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
19008 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
19009 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
19010 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
19012 2011-06-25 Patrick <p55@mailinator.com>
19014 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
19016 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
19018 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
19019 (grub_pxe_send): Likewise.
19020 (GRUB_MOD_INIT): Fix types.
19022 2011-06-24 Szymon Janc <szymon@janc.net.pl>
19024 * grub-core/io/xzio.c: Fix code style issues
19026 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19027 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
19029 Network infrastructure.
19030 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
19032 * include/grub/net/arp.h: New file.
19033 * include/grub/net/device.h: Likewise.
19034 * include/grub/net/ethernet.h: Likewise.
19035 * include/grub/net/ip.h: Likewise.
19036 * include/grub/net/netbuff.h: Likewise.
19037 * include/grub/net/tftp.h: Likewise.
19038 * include/grub/net/udp.h: Likewise.
19039 * include/grub/ieee1275/ofnet.h: Likewise.
19040 * include/grub/emu/export.h: Likewise.
19041 * include/grub/net.h: Likewise.
19042 * grub-core/net/arp.c: Likewise.
19043 * grub-core/net/ethernet.c: Likewise.
19044 * grub-core/net/ip.c: Likewise.
19045 * grub-core/net/udp.c: Likewise.
19046 * grub-core/net/tftp.c: Likewise.
19047 * grub-core/net/netbuff.c: Likewise.
19048 * grub-core/net/net.c: Likewise.
19049 * grub-core/net/drivers/emu/emunet.c: Likewise.
19050 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
19051 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
19053 * grub-core/Makefile.core.def (net): New module.
19056 (emunet): Likewise.
19057 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
19059 * grub-core/kern/device.c (grub_net_open) : New variable.
19060 (grub_device_open): Handle network device.
19061 (grub_device_close): Likewise.
19062 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
19063 (grub_grubnet_fini): Likewise.
19064 (grub_file_seek): Seek in network device.
19065 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
19066 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
19068 (grub_machine_fini): Call grub_grubnet_fini.
19069 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
19071 (grub_ieee1275_get_aliasdevname): New function.
19072 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
19073 Add unofficial Solaris network info.
19074 (grub_multiboot_make_mbi): Likewise.
19075 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
19076 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
19077 * include/grub/device.h (grub_fs): Removed.
19078 * include/grub/err.h (grub_err_t): Add network-related values.
19079 * include/grub/i386/pc/pxe.h: Removed bootp parts.
19080 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
19081 (grub_ieee1275_get_aliasdevname): New proto.
19082 * include/grub/net.h: Rewritten.
19084 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19086 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
19089 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19091 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
19092 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
19093 it truncates the output.
19094 Reported by: Ximin Luo.
19096 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19098 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
19100 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19102 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
19103 partmap before abstraction.
19105 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
19107 * util/grub-mkconfig_lib.in: Add missing quotes.
19109 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19111 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
19112 old method if mountinfo would return /dev/root and /dev/root doesn't
19115 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19119 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
19120 (decomp_table): Add zlib entries.
19121 (zio_read): USe 8 bits for compression function rather than 3.
19122 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
19124 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19126 * grub-core/disk/ahci.c: Add missing license statements.
19127 * grub-core/fs/romfs.c: Likewise.
19128 * grub-core/lib/ia64/setjmp.S: Likewise.
19129 * grub-core/loader/i386/pc/freedos.c: Likewise.
19130 * grub-core/loader/ia64/efi/linux.c: Likewise.
19131 * grub-core/video/colors.c: Likewise.
19132 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
19134 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19138 * grub-core/Makefile.core.def (ata_pthru): Removed.
19139 (ahci): New module.
19141 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
19143 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
19145 (grub_hdparm_do_check_powermode_cmd): Likewise.
19146 (grub_hdparm_do_smart_cmd): Likewise.
19147 (grub_hdparm_set_val_cmd): Likewise.
19148 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
19149 * grub-core/disk/ahci.c: New file.
19150 * grub-core/disk/ata.c: Factor out the low-level part into ...
19151 * grub-core/disk/pata.c: ... here.
19152 * grub-core/disk/ata_pthru.c: Contents moved to ...
19153 * grub-core/disk/pata.c: ... here.
19154 * grub-core/disk/scsi.c (grub_scsi_names): New array.
19155 (grub_scsi_iterate): Use grub_scsi_names.
19156 (grub_scsi_open): Likewise.
19157 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
19158 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
19159 (grub_ata_regs_t): New struct.
19160 (grub_disk_ata_pass_through_parms): Likewise.
19161 (grub_ata_device): Renamed to ...
19162 (grub_ata): ... this.
19163 (grub_ata_dev): New struct.
19164 Removed all low-level inline functions.
19165 * include/grub/scsi.h: Add PATA and AHCI subsystems.
19166 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
19167 iterate hooks and open. All users updated.
19168 * util/grub-install.in: Handle AHCI disk module.
19170 2011-06-23 Szymon Janc <szymon@janc.net.pl>
19172 Add support for DRI and RSTn markers in JPEG files.
19174 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
19175 (JPEG_MARKER_RST0): Likewise.
19176 (JPEG_MARKER_RST1): Likewise.
19177 (JPEG_MARKER_RST2): Likewise.
19178 (JPEG_MARKER_RST3): Likewise.
19179 (JPEG_MARKER_RST4): Likewise.
19180 (JPEG_MARKER_RST5): Likewise.
19181 (JPEG_MARKER_RST6): Likewise.
19182 (JPEG_MARKER_RST7): Likewise.
19183 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
19184 (grub_jpeg_decode_dri): New function.
19185 (grub_jpeg_decode_sos): Move image data related part into
19186 grub_jpeg_decode_data function.
19187 (grub_jpeg_decode_data): New function.
19188 (grub_jpeg_reset): New function.
19189 (grub_jpeg_decode_jpeg): Handle new markers.
19191 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19193 * util/ieee1275/ofpath.c (check_sas): Close fd.
19194 (main): Free of_path.
19195 Reported by: David Volgyes <dvolgyes>.
19197 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19199 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19200 Reported by: David Volgyes <dvolgyes>.
19202 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19204 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19206 Reported by: David Volgyes <dvolgyes>.
19208 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19210 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19212 Reported by: David Volgyes <dvolgyes>.
19214 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19216 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19217 Prevent memory leak.
19219 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19221 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19222 (main): Close file.
19223 Reported by: David Volgyes <dvolgyes>.
19225 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19227 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19228 to continue if allocation is failed.
19230 Reported by: David Volgyes <dvolgyes>.
19232 2011-06-23 David Volgyes <dvolgyes>
19234 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19237 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19239 Fix spurious warning.
19241 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19242 (acorn_partition_map_find): Use .bin member.
19244 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19246 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19247 /dev/root as a valid device.
19249 2011-06-23 Jim Meyering <meyering@redhat.com>
19251 Avoid NULL deref in grub_device_open.
19253 * grub-core/kern/device.c (grub_device_open): Don't dereference
19254 a NULL pointer upon failed grub_env_get.
19256 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19258 Support non-512B sectors and agglomerate reads.
19260 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19261 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19262 (disk_io_guid): Removed.
19263 (make_devices): Locate solely by BlockIO.
19264 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19265 (grub_efidisk_read): Use read_blocks.
19266 (grub_efidisk_write): Use write_blocks.
19267 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19269 (get_safe_sectors): Handle non-512B sectors.
19270 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19272 (grub_biosdisk_write): Handle non-512B sectors.
19273 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19274 (grub_scsi_read): Remove special non-512B block handling (now handled
19276 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19277 and do sanity checks.
19278 (grub_disk_adjust_range): Handle non-512B sectors.
19279 (transform_sector): New function.
19280 (grub_disk_read_small): Likewise.
19281 (grub_disk_read): Rewritten.
19282 (grub_disk_write): Handle non-512B sectors.
19283 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19285 (open_device): Use log_sector_size.
19286 (grub_util_biosdisk_read): Likewise.
19287 (grub_util_biosdisk_write): Likewise.
19288 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19290 (pc_partition_map_embed): Likewise.
19291 * include/grub/disk.h (grub_disk): New field log_sector_size.
19292 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19293 (GRUB_DISK_CACHE_BITS): Increased to 6.
19294 * util/grub-fstest.c (fstest): New command testload.
19295 (argp_parser): Likewise.
19297 2011-06-16 Robert Millan <rmh@gnu.org>
19299 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19300 `ata' driver on kernel of FreeBSD 9.
19302 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19303 (get_ataraid_disk_name): New functions.
19304 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19305 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19306 get_ataraid_disk_name() and get_ada_disk_name().
19308 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19310 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19313 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19315 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19316 `ftp.gnu.org' for `alpha.gnu.org'.
19318 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19320 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19321 partitions under /dev/disk/by-id/.
19323 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19325 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19326 after ten consecutive open failures. Scanning all the way up to
19327 10000 is excessive and can cause serious performance problems in
19328 some configurations.
19329 Fixes Ubuntu bug #787461.
19331 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19333 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19336 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19337 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19339 Don't stat devices unless we have to.
19341 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19342 dir == /dev/mapper.
19343 (grub_guess_root_device): Use already known os_dev if possible.
19344 * grub-core/kern/emu/hostdisk.c
19345 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19346 if device is known to be a dm one.
19348 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19350 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19351 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19352 Reported by: Pawel Tecza.
19354 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19356 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19357 (lsefisystab): Likewise.
19359 (lsefimmap): Likewise.
19360 (hdparm): Enable on qemu-mips.
19361 (setjmp): Add ia64 nodist.
19362 (serial): Simplify tags.
19364 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19366 * Makefile.util.def (grub-ofpathname): Install manual page.
19368 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19370 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19372 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19374 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19376 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19378 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19381 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19383 Use full 64-bit division.
19385 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19386 (grub_divmod64): ... this.
19387 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19390 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19392 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19395 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19397 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19398 to avoid accidents when debugging with 'sh -x'.
19399 * grub-core/gensyminfo.sh.in: Likewise.
19400 * tests/example_scripted_test.in: Likewise.
19401 * tests/grub_cmd_regexp.in: Likewise.
19402 * tests/grub_script_blanklines.in: Likewise.
19403 * tests/grub_script_dollar.in: Likewise.
19404 * tests/grub_script_expansion.in: Likewise.
19405 * tests/grub_script_final_semicolon.in: Likewise.
19406 * tests/partmap_test.in: Likewise.
19407 * tests/util/grub-shell-tester.in: Likewise.
19408 * tests/util/grub-shell.in: Likewise.
19410 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19412 Move gfxmenu color handling to video, so that gfxterm can use it
19415 * grub-core/gfxmenu/named_colors.c: Move to ...
19416 * grub-core/video/colors.c: ... here. Rename
19417 grub_gui_get_named_color to grub_video_get_named_color.
19418 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19419 * grub-core/video/colors.c (my_isxdigit): ... here.
19420 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19422 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19423 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19425 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19427 * include/grub/gui.h (grub_gui_color_t): Move to ...
19428 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19429 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19430 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19431 * include/grub/gui.h (grub_gui_map_color): Move to ...
19432 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19433 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19435 * include/grub/video.h (grub_video_get_named_color): ... here.
19436 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19437 * include/grub/video.h (grub_video_parse_color): ... here.
19439 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19441 (gfxmenu): Remove gfxmenu/named_colors.c.
19442 (video) [videomodules]: Add video/colors.c.
19444 Add a background_color command.
19446 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19448 (GRUB_MOD_INIT): Register background_color command.
19449 (GRUB_MOD_FINI): Unregister background_color command.
19450 (redraw_screen_rect): Allow blend/replace of text layer to be
19451 controlled independently from whether there is a background bitmap.
19452 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19455 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19457 Patch BPB in ntldr and chainloader --bpb.
19459 * grub-core/fs/fat.c: Include grub/fat.h.
19460 (grub_fat_bpb): Moved to ...
19461 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19462 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19464 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19466 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19468 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19470 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19471 (GRUB_MOD_INIT): Show --bpb.
19472 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19473 * grub-core/normal/main.c (features): New variable.
19474 (GRUB_MOD_INIT): Set feature_* variables.
19475 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19477 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19479 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19481 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19484 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19486 FreeDOS direct loading support.
19488 * docs/grub.texi (Supported OS): Add FreeDOS.
19489 * grub-core/Makefile.core.def (freedos): New module.
19490 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19492 (grub_relocator16_boot): Handle %ebx.
19493 * grub-core/lib/i386/relocator16.S: Likewise.
19494 * grub-core/loader/i386/pc/freedos.c: New file.
19496 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19498 Long Linux command line support.
19500 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19501 (maximal_cmdline_size): New variable.
19502 (allocate_pages): Use maximal_cmdline_size.
19503 (grub_cmd_linux): Set and use maximal_cmdline_size.
19504 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19505 (allocate_pages): Use maximal_cmdline_size.
19506 (grub_cmd_linux): Set and use maximal_cmdline_size.
19507 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19508 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19511 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19512 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19514 Improve devmapper support
19516 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19517 (grub_util_is_lvm): New function.
19518 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19519 than lvm if not dmraid.
19520 Handle mapped md nodes.
19521 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19522 (grub_util_device_is_mapped): ... this. Make always available. All users
19524 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19525 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19527 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19529 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19531 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19533 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19534 * grub-core/modinfo.sh.in: New file.
19535 * grub-core/Makefile.core.def (modinfo.sh): New script.
19536 * util/grub-mknetdir.in: Use modinfo.sh.
19537 * util/grub-mkrescue.in: Likewise.
19539 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19541 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19542 Fix potential usage of Elf32 instead of Elf64 when compiling on
19543 32-bit architecture. Add endianness macros while on it.
19545 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19547 Use mipsel- rather than mips- in directories involving mipsel ports to
19548 allow both endiannesses coexist.
19550 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19551 mips. All conditions adjusted.
19552 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19554 * util/grub-install.in: Adjust conditions to take renaming into account.
19555 * util/grub-mkimage.c (image_targets): Likewise. New target
19556 mips-qemu_mips-elf for bigendian mips.
19558 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19560 Avoid unnecessary copying on MIPS.
19562 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19563 early if src == dest.
19564 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19565 compression is none.
19567 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19569 Reduce memory footprint on SGI by putting modules before the kernel
19570 as opposed to after.
19572 * grub-core/Makefile.core.def (kernel): Increase linking address.
19573 (none_decompress): Likewise.
19574 (xz_decompress): Likewise.
19575 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19577 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19579 (grub_arch_modules_addr): New function.
19580 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19581 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19582 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19584 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19585 (grub_total_modules_size): ... this. Make global.
19586 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19587 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19589 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19590 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19591 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19592 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19593 * util/grub-mkimage.c (image_target_desc): New flag
19594 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19595 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19596 (generate_image): Handle images with modules before kernel.
19598 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19600 Prevent potential loss of memory map by overwrite on qemu-mips.
19602 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19603 Save ram size in $s4.
19604 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19605 All users changed to grub_arch_memsize.
19606 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19608 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19609 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19610 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19613 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19615 * .bzrignore: Remove grub-dumpbios.
19617 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19619 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19620 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19621 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19622 existing options which append).
19623 * docs/grub.texi (Simple configuration): Document new options.
19624 Reported by: Ian Jackson. Fixes Debian bug #617538.
19626 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19628 * util/grub-fstest.c (cmd_cat): New function.
19629 (fstest): Handle CMD_CAT.
19630 (options): Add cat.
19631 (argp_parser): Handle cat.
19633 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19635 * Makefile.util.def (grub-bin2h): Don't install.
19636 * docs/man/grub-bin2h.h2m: Remove.
19638 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19640 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19643 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19645 Reenable qemu-mips port.
19647 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19648 Fix small arc bug while on it.
19649 * gentpl.py: Handle qemu_mips.
19650 * grub-core/Makefile.am: Likewise.
19651 * grub-core/Makefile.core.def: Likewise.
19652 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19653 inappropriate includes.
19654 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19655 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19656 * grub-core/kern/main.c (grub_modules_get_end)
19657 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19658 * grub-core/kern/mips/qemu-mips: Moved to ..
19659 * grub-core/kern/mips/qemu_mips: ... this.
19660 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19661 (grub_machine_init): Call terminfo_init and serial_init.
19662 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19663 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19665 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19667 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19668 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19669 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19670 * include/grub/mips/qemu_mips/cmos.h: New file.
19671 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19672 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19674 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19675 Use correct mips-style address.
19676 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19677 (GRUB_TICKS_PER_SECOND): Removed.
19678 (grub_get_rtc): Likewise.
19679 (grub_cpu_idle): Likewise.
19680 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19682 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19683 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19684 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19685 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19686 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19687 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19688 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19689 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19691 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19695 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19696 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19698 * configure.ac: New target mips-arc.
19699 * gentpl.py: Likewise.
19700 * grub-core/Makefile.am: Likewise.
19701 * grub-core/Makefile.core.def: Likewise.
19702 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19703 (none_decompress): Likewise.
19704 (lsdev): New module.
19705 (datetime): Use lib/arc/datetime.c on ARC.
19706 (part_dvh): New module.
19707 * grub-core/commands/arc/lsdev.c: New file.
19708 * grub-core/disk/arc/arcdisk.c: Likewise.
19709 * grub-core/kern/mips/arc/init.c: Likewise.
19710 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19712 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19714 (grub_arch_dl_relocate_symbols): Likewise.
19715 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19716 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19717 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19719 * grub-core/lib/arc/datetime.c: New file.
19720 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19721 pci.h on non-loongson.
19722 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19723 (grub_linux_boot): Set unused registers to 0.
19724 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19725 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19726 * grub-core/mmap/mips/uppermem.c: ...here.
19727 * grub-core/partmap/dvh.c: New file.
19728 * grub-core/term/arc/console.c: Likewise.
19729 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19730 (grub_terminfo_set_current): Add terminal "arc".
19731 (grub_terminfo_readkey): Support ARC sequences.
19732 * include/grub/arc/arc.h: New file.
19733 * include/grub/arc/console.h: Likewise.
19734 * include/grub/disk.h (grub_disk_dev_id): Add
19735 GRUB_DISK_DEVICE_ARCDISK_ID.
19736 * include/grub/mips/arc/kernel.h: New file.
19737 * include/grub/mips/arc/memory.h: Likewise.
19738 * include/grub/mips/arc/time.h: Likewise.
19739 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19740 * include/grub/mips/kernel.h (grub_halt): ... here.
19741 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19743 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19744 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19745 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19746 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19748 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19750 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19751 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19752 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19753 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19754 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19755 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19756 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19757 (grub_phys_addr_t): Moved from here ...
19758 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19759 (grub_vtop): Moved from here ...
19760 * include/grub/mips/memory.h (grub_vtop): ... here.
19761 (grub_map_memory): Moved from here ...
19762 * include/grub/mips/memory.h (grub_map_memory): ... here.
19763 (grub_unmap_memory): Moved from here ...
19764 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19765 (grub_machine_mmap_iterate): Moved from here ...
19766 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19767 (grub_mmap_get_lower): Moved from here ...
19768 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19769 (grub_mmap_get_upper): Moved from here ...
19770 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19771 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19773 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19774 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19776 * include/grub/mips/time.h (grub_get_rtc): ... here.
19777 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19779 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19780 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19782 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19783 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19785 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19786 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19787 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19788 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19789 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19790 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19791 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19792 (GRUB_MACHINE_LINK_ADDR): Likewise.
19793 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19795 * util/grub-install.in: Run dvhtool on ARC.
19796 * util/grub-mkimage.c (image_targets): Add mips-arc.
19797 (generate_image): Handle ECOFF output for mips-arc.
19799 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19801 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19804 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19806 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19807 after enabling port.
19809 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19811 Skip incorrect USB devices.
19813 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19815 * include/grub/usb.h (grub_usb_err_t): New enum value
19816 GRUB_USB_ERR_BADDEVICE.
19818 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19820 Fuloong video init support.
19822 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19824 (grub_vga_read_arx): New function.
19825 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19827 (framebuffer): New members io, mmioptr and mmiobase.
19828 (read_sis_cmd): New function.
19829 (write_sis_cmd): Likewise.
19830 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19831 rather than 640x400.
19832 * grub-core/video/sis315_init.c: New file.
19834 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19836 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19838 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19839 to grub_dl_register_symbol.
19841 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19843 Fix compilation errors.
19845 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19846 potentially unused.
19847 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19848 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19849 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19850 to loongson machines.
19852 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19854 Several FS mtime support.
19856 * grub-core/fs/affs.c (grub_affs_time): New struct.
19857 (grub_affs_file): New field mtime.
19858 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19859 type. Removed 'size'. New field 'di'. All users updated.
19860 (grub_affs_mount): Simplify checsum checking.
19861 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19862 (grub_affs_dir): Handle mtime.
19863 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19864 (grub_cpio_dir): Likewise.
19865 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19866 (grub_hfs_filerec): New field mtime.
19867 (grub_hfs_dir): Handle mtime.
19868 (grub_hfs_mtime): New function.
19869 (grub_hfs_fs): Register grub_hfs_mtime.
19870 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19871 (grub_iso9660_dir): New field mtime.
19872 (grub_fshelp_node): New field dirent.
19873 (iso9660_to_unixtime): New function.
19874 (iso9660_to_unixtime2): Likewise.
19875 (grub_iso9660_read_symlink): Use node->dirent.
19876 (grub_iso9660_iterate_dir): Likewise.
19877 (grub_iso9660_dir): Set mtime.
19878 (grub_iso9660_mtime): New function.
19879 (grub_iso9660_fs): Register grub_iso9660_mtime.
19880 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19881 (grub_jfs_inode): New fields atime, ctime and mtime.
19882 (grub_jfs_dir): Set mtime.
19883 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19884 * grub-core/fs/ntfs.c (list_file): Set mtime.
19885 (grub_ntfs_dir): Likewise.
19886 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19887 (grub_reiserfs_iterate_dir): Set mtime.
19888 (grub_reiserfs_dir): Likewise.
19889 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19890 (grub_fshelp_node): Likewise.
19891 (grub_sfs_iterate_dir): Set mtime.
19892 (grub_sfs_dir): Likewise.
19893 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19894 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19895 (grub_xfs_inode): New fields atime, mtime, ctime.
19896 (grub_xfs_dir): Set mtime.
19897 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19898 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19899 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19901 Support UDF symlinks.
19903 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19904 (grub_ufs_read_symlink): New function. All users updated.
19906 Check amiga partmap checksum.
19908 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19909 (grub_amiga_partition): Likewise.
19910 (amiga_partition_map_checksum): New function.
19911 (amiga_partition_map_iterate): Check checksum.
19913 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19917 * Makefile.util.def (libgrubmods.a): Add romfs.
19918 * grub-core/Makefile.core.def (romfs): New module.
19919 * grub-core/fs/romfs.c: New file.
19921 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19923 Squashfs v4 support.
19925 * Makefile.util.def (libgrubmods.a): Add squash4.
19926 * grub-core/Makefile.core.def (squash4): New module.
19927 * grub-core/fs/squash4.c: New file.
19928 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19929 disk_input_start, disk_input.
19930 (get_byte): Handle disk_input.
19931 (grub_zlib_disk_read): New function.
19932 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19934 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19935 2011-05-15 Feiran Zheng <famcool@gmail.com>
19937 * Makefile.util.def (libgrubmods.a): Add minix3.
19938 * grub-core/Makefile.core.def (minix3): New module.
19939 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19940 (GRUB_MINIX_BSIZE): Removed.
19941 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19942 (grub_minix_ino_t): New type.
19943 (grub_minix_le_to_cpu_ino): New macro.
19944 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19945 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19946 (grub_minix_data): New field block_size.
19947 (grub_minix_read_file): Handle 64-bit correctly.
19948 * grub-core/fs/minix3.c: New file.
19950 2011-05-15 Tristan Gingold <gingold@free.fr>
19951 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19952 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19956 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19957 * configure.ac: Add ia64-efi target.
19958 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19959 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19960 * gentpl.py: Add ia64_efi platform.
19961 Rename x86_efi to efi and Add ia64-efi. All users updated.
19962 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19963 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19964 Remove kern/generic/rtc_get_time_ms.c on EFI.
19965 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19966 kern/ia64/dl_helper.c on ia64-efi.
19967 Add kern/emu/cache.c on emu.
19968 (linux): Use on loader/ia64/efi/linux.c on ia64.
19969 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19970 whether symbol is a function.
19971 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19972 (grub_symbol): New field 'isfunc'.
19973 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19974 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19975 (grub_dl_load_segments): Place all sections into the same region.
19976 [__ia64__]: Create trampolines and got.
19977 [GRUB_MACHINE_EMU]: Call mprotect.
19978 (grub_dl_resolve_symbols): Resolve symbol type as well.
19979 [__ia64__]: Create function descriptors.
19980 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19981 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19982 (grub_get_rtc): New function.
19983 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19984 * grub-core/kern/emu/cache.S: Renamed to ...
19985 * grub-core/kern/emu/cache_s.S: ... this.
19986 [__ia64__]: Add a nop.
19987 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19988 [__ia64__]: New function.
19989 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19990 * grub-core/kern/ia64/dl.c: New file.
19991 * grub-core/kern/ia64/dl_helper.c: Likewise.
19992 * grub-core/kern/ia64/efi/init.c: New file.
19993 * grub-core/kern/ia64/efi/startup.S: Likewise.
19994 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19995 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19996 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19997 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19998 * grub-core/loader/ia64/efi/linux.c: New file.
19999 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
20000 (GRUB_MOD_DEP): Likewise.
20001 (grub_dl) [__ia64__]: New fields got and tramp.
20002 (grub_dl): New field 'base'.
20003 (grub_dl_register_symbol): New argument isfunc. All users updated.
20004 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
20005 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
20006 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
20007 (grub_ia64_dl_get_tramp_got_size): New proto.
20008 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
20009 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
20010 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
20011 * include/grub/efi/api.h: Skip call wrappers on ia64.
20012 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
20013 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
20014 * include/grub/elf.h (ELF_ST_INFO): New definition.
20015 * include/grub/ia64/efi/kernel.h: New file.
20016 * include/grub/ia64/efi/memory.h: Likewise.
20017 * include/grub/ia64/efi/time.h: Likewise.
20018 * include/grub/ia64/kernel.h: Likewise.
20019 * include/grub/ia64/setjmp.h: Likewise (from glibc).
20020 * include/grub/ia64/time.h: New file.
20021 * include/grub/ia64/types.h: Likewise.
20022 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
20023 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
20025 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
20026 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
20027 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
20028 * util/grub-mkimage.c (image_target_desc): New field pe_target.
20030 (EFI64_HEADER_SIZE): New definition. All users updated.
20031 (image_targets): Add ia64-efi.
20032 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
20033 jumpers_addr. All users updated.
20034 Create function descriptors.
20035 (count_funcs): New function.
20036 (unaligned_uint32): New struct.
20037 (MASK20): New definition.
20038 (MASK19): Likewise.
20039 (MASKF21): Likewise.
20040 (add_value_to_slot_20b): New function.
20041 (add_value_to_slot_21_real): Likewise.
20042 (add_value_to_slot_21): Likewise.
20043 (ia64_kernel_trampoline): New struct.
20044 (nopm): New variable.
20046 (make_trampoline): New function.
20047 (relocate_addresses): Handle ia64.
20048 (make_reloc_section): Likewise.
20049 (load_image): Likewise.
20051 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
20053 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
20054 warning. Move variables before code while on it.
20056 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
20060 * configure.ac: Rename yeeloong platform to loongson. All users updated.
20061 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
20062 * grub-core/boot/mips/loongson/fuloong.S: New file.
20063 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
20064 Explicitly init CS5536.
20065 [FULOONG]: Don't use serial until CS5536 is available.
20066 Set GPIO based on dumps.
20067 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
20068 [FULOONG]: Handle GPIO and memory controller differences.
20069 Parse machine type in $a2.
20070 * grub-core/boot/mips/startup_raw.S: Determine and save the
20072 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
20073 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
20074 init on architecture type.
20075 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
20076 SIS315E. Don't init at_keyboard on fuloong.
20077 (grub_halt): Support Fuloong.
20078 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
20079 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
20080 (loongson_machtypes): New array.
20081 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
20083 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
20084 config. All users updated. Handle CS5536 serial.
20085 * grub-core/term/serial.c (grub_serial_register): Conditionalise
20086 default port on machine type. Register serial as inactive.
20087 * grub-core/video/sis315pro.c: New file.
20088 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
20090 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
20091 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
20092 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
20093 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
20094 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
20095 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
20097 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
20098 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
20100 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
20101 (grub_arch_machine): New extern var.
20102 * include/grub/mips/loongson/serial.h
20103 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
20104 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
20105 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
20106 (GRUB_MACHINE_SERIAL_PORT0): ... this.
20107 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
20108 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
20109 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
20110 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
20111 * include/grub/term.h (grub_term_register_input_inactive): New inline
20113 (grub_term_register_output_inactive): Likewise.
20114 * include/grub/video.h (grub_video_driver_id): New value
20115 GRUB_VIDEO_DRIVER_SIS315PRO.
20116 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
20117 New field "names". All users updated.
20118 New field value IMAGE_FULOONG_FLASH.
20119 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
20121 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
20123 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
20124 and add some clarification.
20126 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20128 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
20129 platforms if kernel is compressed.
20131 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20133 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
20134 unused modules since currently referrence counter isn't reliable and
20135 there isn't much memory to recover there anyway.
20137 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20139 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
20140 rather than resetting it to allow modules to reference themselves
20143 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20145 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
20146 counter on dependencies since grub_dl_unref already handles this.
20148 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20150 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
20151 on error if not already done.
20153 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20155 Fix few potential memory misusage.
20157 * grub-core/font/font.c (load_font_index): Don't free char_index to
20159 (grub_font_load): Zero-fill font at alloc for safety.
20160 Close file on error.
20161 (free_font): Free bmp_idx.
20163 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20165 * docs/grub.texi (Installation): Fix several outdated claims.
20167 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20169 Handle module_license on windows.
20171 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
20173 (insert_string): Make argument const char * instead of char *.
20174 (write_section_data): Handle long section names.
20175 Handle module_license.
20177 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20179 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
20180 handle class-free menuentries.
20181 (grub_normal_add_menu_entry): Add a check to be sure.
20183 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20185 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
20188 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20190 * configure.ac: Bump version to 1.99.
20192 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20194 Give ATA device a bit more time on first try in order to allow disks
20197 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20198 if dev->present is 1. Reset dev->present on failure.
20199 (grub_ata_device_initialize): Set dev->present to 1.
20200 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20201 (grub_ata_device): New member 'present'.
20203 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20205 * util/grub-mkimage.c (generate_image): Update hash.
20207 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20209 Flush caches on DMA memory.
20211 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20212 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20213 (grub_dma_free): Likewise.
20214 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20216 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20218 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20219 to avoid asm treating ld and sd as macros.
20221 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20223 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20226 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20228 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20229 grub_decompress_core since later would fail if grub_decompress_core
20232 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20234 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20235 R_MIPS_JALR since it's used by newer compiler.
20237 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20239 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20241 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20243 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20244 file_path to 0 for surety.
20245 (grub_chainloader_boot): Set exit_data to NULL.
20246 Unset the loader once done.
20247 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20249 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20251 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20252 unknown key into a dprintf.
20254 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20256 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20257 on first non-existant partition.
20259 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20261 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20263 Reported by: Mark Korenberg.
20265 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20267 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20270 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20272 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20273 before closing to ensure that it will be readable by grub-setup.
20275 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20277 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20278 (devpath_1): Use MAKE_PIWG_PATH.
20279 (devpath_2): Likewise.
20280 (devpath_3): Likewise.
20281 (devpath_4): Likewise.
20282 (devpath_5): Likewise.
20283 (devpath_6): Likewise.
20285 The appleldr.mod was checked that to be binary identical to previous
20288 2011-05-05 Zach <mikezackles>
20290 Support 2010 Macbooks.
20292 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20293 (devs): Add devpath_6.
20295 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20297 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20298 /dev/random. /dev/urandom is good enough for our purposes (salting).
20300 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20302 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20304 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20306 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20309 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20311 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20312 and not 0 on failure.
20314 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20316 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20317 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20318 disk; otherwise grub_fs_probe will not fall back to the next
20320 (grub_pxefs_open): Likewise, for consistency.
20321 Reported and tested by: Ezekiel Grave.
20323 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20325 * tests/partmap_test.in: Don't hardcode path to parted.
20326 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20328 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20330 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20331 of `ls' to find out which devices are available.
20333 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20335 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20336 than source address for efi mmap buffer.
20338 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20340 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20341 wrong action on non-detecting the magic.
20343 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20345 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20346 already supplied by another part of the module (fixes compilation on
20349 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20351 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20352 match the one used by mdadm.
20354 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20356 * po/README: Add instructions for creating po/LINGUAS.
20358 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20360 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20363 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20364 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20365 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20366 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20367 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20368 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20369 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20370 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20371 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20372 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20373 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20374 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20375 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20376 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20377 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20378 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20379 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20380 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20381 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20382 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20383 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20384 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20386 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20388 * grub-core/kern/emu/getroot.c
20389 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20390 test that was incorrectly reintroduced in r3214.
20391 Reported by: Ian Dall. Fixes Savannah bug #33133.
20393 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20395 Fix stack pointer handling in 16-bit relocator.
20397 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20398 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20399 Fixes Ubuntu bug #683904.
20401 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20403 * configure.ac: Bump version to 1.99~rc2.
20405 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20407 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20408 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20409 * grub-core/lib/x86_64/setjmp.S: Likewise.
20410 * grub-core/lib/mips/setjmp.S: Likewise.
20411 * grub-core/lib/powerpc/setjmp.S: Likewise.
20412 * grub-core/lib/sparc64/setjmp.S: Likewise.
20414 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20416 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20417 * grub-core/lib/efi/datetime.c: Likewise.
20419 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20421 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20423 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20424 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20425 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20427 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20429 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20431 (grub_gfxterm_term_init): Likewise.
20433 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20435 Take into account the decorations the computing menu entry width.
20437 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20438 (grub_gfxmenu_create_box): Register get_border_width.
20439 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20441 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20444 2011-04-18 Endres Puschner <code@e7p.de>
20446 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20447 Don't skip first class.
20449 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20451 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20453 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20455 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20457 Complete 64-bit division support.
20459 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20460 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20461 * include/grub/misc.h (grub_divmod64): Rename to ...
20462 (grub_divmod64_full): ... this.
20463 (grub_divmod64): New inline function.
20465 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20467 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20469 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20471 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20472 performing the necessary test.
20474 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20476 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20477 (kfreebsd.elf): Likewise.
20478 (pc-chainloader.elf): Likewise.
20479 (ntldr.elf): Likewise.
20481 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20483 Identify RAID by its UUID rather than (guessed) name.
20485 * grub-core/disk/raid.c (ascii2hex): New function.
20486 (grub_raid_open): Accept mduuid/%s specification.
20487 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20488 (get_mdadm_uuid): ... this.
20489 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20491 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20493 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20496 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20498 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20500 * util/grub.d/20_linux_xen.in: Likewise.
20502 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20504 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20505 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20507 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20508 Build a list of relevant visible mounts using the mnt_id and
20509 parent_mnt_id fields, and then scan that list at the end.
20511 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20513 * docs/grub.texi (normal): New section.
20514 (normal_exit): New section.
20515 (Embedded configuration): Add reference to normal.
20516 (GRUB only offers a rescue shell): Likewise.
20517 * docs/grub-dev.texi (Error Handling): Fix typo.
20519 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20521 * NEWS: Drop obsolete entry about probe-only btrfs support.
20523 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20525 * util/import_gcry.py: Fix typo.
20527 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20529 * NEWS: Add btrfs support.
20531 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20532 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20534 BtrFS support. Written by me (Vladimir) with important bugfixes and
20535 even more important testing by Colin.
20537 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20538 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20539 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20540 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20541 mem_input_off and mem_input. All users updated to accept in-RAM input.
20542 (gzio_seek): New function.
20543 (test_zlib_header): Likewise.
20544 (grub_gzio_read): Likewise.
20545 (grub_zlib_decompress): Likewise.
20546 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20547 Accept partial and non-virtual mounts.
20548 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20549 avoid receiving /dev/dm-X as device.
20550 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20551 Handle bind and partial mounts.
20552 * grub-core/lib/crc.c: New file.
20553 * include/grub/deflate.h: Likewise.
20554 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20556 * include/grub/lib/crc.h: New file.
20558 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20560 Implement automatic module license checking according to new GNU
20563 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20564 (grub_dl_load_core): Use grub_dl_check_license.
20565 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20566 (GRUB_MOD_LICENSE): Likewise.
20567 (GRUB_MOD_DUAL_LICENSE): Likewise.
20568 All modules updated.
20570 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20572 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20573 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20575 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20577 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20579 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20581 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20583 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20586 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20588 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20589 parenthesis in the middle of the filename.
20591 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20593 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20594 rather than trying to put initrd way too high.
20595 Reported by: Ryan Lortie <desrt@desrt.ca>
20597 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20599 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20600 improperly removed string.
20602 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20604 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20606 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20607 (open_device) Likewise.
20608 (grub_util_biosdisk_close): Likewise.
20609 Reported by: Mark Korenberg.
20611 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20613 * util/grub-mkconfig_lib.in: Add missing quotes.
20615 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20617 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20620 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20622 Dynamically count the number of lines for the lower banner.
20624 * grub-core/normal/menu_entry.c (per_term_screen): New member
20626 (print_down): Use num_entries.
20627 (update_screen): Likewise.
20628 (grub_menu_entry_run): Set num_entries.
20629 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20631 (grub_print_message_indented): Move real part to ...
20632 (grub_print_message_indented_real): ... here. Additional argument
20634 (draw_border): Additional argument num_entries.
20635 (print_message): Additional argument dry_run.
20636 (print_entries): Receive menu viewer data.
20637 (grub_menu_init_page): New argment num_entries.
20638 (menu_text_set_chosen_entry): Use num_entries.
20639 (grub_menu_try_text): Likewise.
20640 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20642 (grub_ucs4_count_lines): New function.
20643 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20644 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20645 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20646 (grub_term_border_height): Likewise.
20647 (grub_term_num_entries): Likewise.
20649 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20651 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20652 Remove now unused string.
20654 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20656 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20658 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20660 (Comment): Fix typo.
20661 (Getting started): General copy-editing.
20662 (Typical Development Experience): Likewise.
20663 (Error Handling): Likewise.
20664 (Video API): Likewise.
20666 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20668 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20671 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20673 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20676 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20678 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20679 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20682 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20684 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20685 grub_strcpy since the lines aren't necessarily 0-terminated.
20687 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20689 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20692 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20694 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20695 (GRUB_MOD_INIT): DEVICE isn't optional.
20697 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20699 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20700 word on new line if it's too long anyway. Fixes a hang.
20702 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20704 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20706 * util/grub-setup.c (main): Reuse md device name if available.
20707 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20708 not GRUB name as argument.
20709 Based on patch by: Florian Wagner <fwagner>.
20711 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20713 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20714 Place mbi on low memory for better compatibility.
20716 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20718 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20720 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20721 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20723 * autogen.sh: Ensure that collate and ctype locale is C.
20724 * conf/Makefile.common: Likewise.
20726 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20728 * grub-core/normal/menu.c: Add missing include.
20730 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20732 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20734 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20736 * util/grub-mkconfig.in: Ignore emacsen backup.
20738 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20740 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20742 (grub_util_biosdisk_close): Likewise.
20744 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20746 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20747 const attribute and use grub_isdigit.
20749 2011-04-06 Andrey <dev_null@ukr.net>
20751 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20754 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20756 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20757 useful grub_dprintf's.
20759 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20761 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20763 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20765 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20767 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20769 Output errors if theme loading failed.
20771 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20772 grub_gfxterm_fullscreen on error paths to ...
20773 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20774 theme loading error.
20776 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20778 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20779 space for older compilers.
20780 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20782 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20784 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20785 and report them as not RAID members since they are useless for GRUB.
20786 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20788 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20790 Increase LVM implementation robustness in order not to crash on
20791 configurations like pvmove. Previously code assumed that in some places
20792 only lvs or only pvs are used whereas it seems that they are used
20795 * grub-core/disk/lvm.c (read_node): New function.
20796 (read_lv): Use read_node.
20797 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20798 Match volumes only at the end when all lvs are found. Take both
20799 pvs (first) and lvs (second) into account.
20800 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20801 mirror_* into node_*. All users updated.
20802 (grub_lvm_stripe): Merge this ...
20803 (grub_lvm_mirror): ... and this ...
20804 (grub_lvm_node): ... into this. All users updated.
20806 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20808 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20809 of function to allow further scanning for LVMs.
20811 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20813 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20814 on failed seek as it breaks open fd reusage.
20816 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20818 * util/grub-install.in: Add a recommendation to use --recheck before
20821 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20823 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20826 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20828 GRUB developper manual based on existing Internals section and
20829 contributions by the various authors with active copyright assignment.
20831 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20832 * docs/font_char_metrics.png: New file.
20833 * docs/font_char_metrics.txt: Likewise.
20834 * docs/grub-dev.texi: Likewise.
20835 * docs/grub.texi (Internals): Move from here ...
20836 * docs/grub-dev.texi: ... here.
20838 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20840 Store the loopback device as data on loopback grub_disk structures,
20841 rather than the file it points to. This fixes use of freed memory
20842 if an existing loopback device is replaced.
20844 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20845 disk->data, not dev->file.
20846 (grub_loopback_read): Adjust file assignment to match.
20847 Fixes Ubuntu bug #742967.
20849 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20851 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20852 when replacing an existing device.
20854 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20856 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20857 memory corruptions.
20859 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20861 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20862 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20863 (grub_jfs_read_inode): Likewise.
20864 (grub_jfs_opendir): Likewise. Remove now useless casts.
20865 (grub_jfs_getent): Likewise.
20866 Make ino a grub_uint32_t rather than int.
20867 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20868 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20869 division and module with bit operations.
20870 (grub_jfs_find_file): Make ino a grub_uint32_t.
20871 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20873 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20875 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20876 warning. (This was in fact always initialised before use, but GCC
20877 wasn't smart enough to prove that.)
20878 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20880 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20882 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20884 (efi_wrap_1): Likewise.
20885 (efi_wrap_2): Likewise.
20886 (efi_wrap_3): Likewise.
20887 (efi_wrap_4): Likewise.
20888 (efi_wrap_5): Likewise.
20889 (efi_wrap_6): Likewise.
20890 (efi_wrap_10): Likewise.
20891 Based on information by: Red Hat/Peter Jones.
20893 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20895 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20896 set-but-not-used variable.
20898 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20900 * docs/grub.texi (Simple configuration): Be more explicit about
20901 GRUB_DEFAULT, and add an example.
20902 Reported by: Leslie Rhorer.
20904 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20906 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20909 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20911 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20912 * util/grub.d/20_linux_xen.in: Likewise.
20914 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20916 * util/grub.d/10_linux.in: Try alternative config filenames where
20917 we parse config file.
20918 * util/grub.d/20_linux_xen.in: Likewise.
20920 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20922 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20923 * util/grub.d/20_linux_xen.in: Likewise.
20925 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20927 * grub-core/disk/raid.c (insert_array): Add few potentially
20928 useful grub_util_info.
20929 (grub_raid_register): Likewise.
20931 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20933 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20934 Preserve partition number in mdadm code path.
20936 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20938 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20939 few potentially useful grub_util_info.
20941 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20943 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20945 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20947 * docs/grub.texi (default): Use @example rather than nested
20948 itemized lists to avoid breaking gendocs.
20950 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20952 * docs/grub.texi (Future): Update.
20954 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20956 * docs/grub.texi (Environment): New chapter.
20957 (Changes from GRUB Legacy): Link to "Environment block" section for
20958 details of limitations.
20959 (Simple configuration): Likewise. Link to documentation of gfxmode
20960 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20962 (Shell-like scripting): Note that normal variables are stored in the
20964 (gettext): Link to documentation of lang and locale_dir.
20965 (list_env): New section.
20966 (load_env): New section.
20967 (save_env): New section.
20969 (Reporting bugs): Fix typo.
20971 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20973 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20976 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20978 * grub-core/term/at_keyboard.c (set_scancodes)
20979 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20981 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20983 * docs/grub.texi (Menu-specific commands): Remove some semantics
20984 that were true in GRUB Legacy but not in GRUB 2.
20985 (submenu): New section.
20986 (false): New section.
20987 (read): New section.
20988 (true): New section.
20990 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20992 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20994 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20996 * docs/grub.texi (Simple configuration): Explain some of the
20997 current limitations of grub-mkconfig.
20998 Reported by: Leslie Rhorer.
21000 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21002 Old macs search for boot.efi rather than for bootia32.efi.
21004 * util/grub-install.in: Copy bootia32.efi to boot.efi.
21005 * util/grub-mkrescue.in: Likewise.
21006 Suggested by: Peter Jones.
21008 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21010 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
21012 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21014 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
21015 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
21016 (grub_lvm_mirror): New struct.
21017 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
21018 (grub_lvm_iterate): Iterate only visible volumes.
21019 (grub_lvm_read): Factor out to ..
21020 (read_lv): ... this. Support mirrors.
21021 (grub_lvm_read): New wrapper function.
21022 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
21023 stripped or mirrored.
21025 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21027 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
21029 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
21031 * docs/grub.texi (loopback): New section.
21033 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
21035 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
21038 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
21040 * docs/grub.texi (BIOS installation): New section, partly based on
21041 previous text in other sections.
21042 (Installing GRUB using grub-install): Replace BIOS discussion with a
21044 (Images): Likewise.
21046 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21048 * grub-core/kern/emu/hostdisk.c (find_partition_start)
21049 [HAVE_DIOCGDINFO]: Add safety checks.
21051 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21053 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
21054 per default compiled in kernel and prior to 8.0 isn't shipped at all.
21056 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
21058 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
21059 real_sb->size is zero (e.g. RAID-0), get the disk size from
21060 real_sb->data_size instead.
21061 Fixes Ubuntu bug #743136.
21063 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21065 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
21066 printf clauses for printing size and start.
21068 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21070 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
21071 Reported and tested by: Timothy Nikkel.
21073 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21075 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
21076 (dirty_region_add_real): ... this.
21077 (dirty_region_add): Don't discard margin refresh when performing
21080 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21082 * grub-core/lib/relocator.c (allocate_regstart)
21083 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
21084 terminals are capabple of malloc-free operation.
21085 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
21086 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
21088 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
21090 * util/grub-setup.c: Copy the partition table zone if floppy support
21091 is disabled, even if no partition table is found.
21093 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
21094 during POST if an invalid partition table is contained in the PBR
21095 of the active partition when GRUB is installed to a partition.
21097 2011-03-28 Colin Watson <cjwatson@debian.org>
21099 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
21102 2011-03-28 Colin Watson <cjwatson@debian.org>
21104 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
21105 to be specific about what kind of RAID device we're scanning for.
21107 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
21109 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
21110 return freed string.
21112 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21114 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
21116 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21118 Use libgeom on FreeBSD to detect partitions.
21120 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
21121 (grub-mkrelpath): Likewise.
21122 (grub-script-check): Likewise.
21123 (grub-editenv): Likewise.
21124 (grub-mkpasswd-pbkdf2): Likewise.
21125 (grub-fstest): Likewise.
21126 (grub-mkfont): Likewise.
21127 (grub-mkdevicemap): Likewise.
21128 (grub-probe): Likewise.
21129 (grub-setup): Likewise.
21130 (grub-ofpathname): Likewise.
21131 (grub-mklayout): Likewise.
21132 (example_unit_test): Likewise.
21133 (grub-menulst2cfg): Likewise.
21134 * grub-core/Makefile.core.def (grub-emu): Likewise.
21135 (grub-emu-lite): Likewise.
21136 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
21137 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
21138 define HAVE_DIOCGDINFO.
21139 (follow_geom_up) [FreeBSD]: New function.
21140 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
21141 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
21142 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
21143 unconditionally of HAVE_DIOCGDINFO.
21145 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21147 Fix FreeBSD compilation problem.
21149 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
21150 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
21152 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
21154 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
21155 Switch back to page zero before loading a kernel, since some kernel
21156 drivers expect that.
21157 Thanks to: Felix Kuehling.
21159 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21161 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
21162 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
21163 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
21165 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21167 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
21168 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
21170 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21172 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
21173 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
21174 malloc is disabled.
21176 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21178 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
21179 for modules headers when counting the needed allocation size.
21181 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21183 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
21184 if no ASCII character is found to prevent crash.
21186 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
21188 * grub-core/video/bitmap.c (match_extension): Ignore case.
21190 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21192 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21194 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21196 * grub-core/script/parser.y: Declare "time" as valid argument.
21198 2011-03-23 Peter Jones <pjones@redhat.com>
21200 Fix incorrect assert failure reporting.
21202 * grub-core/tests/example_functional_test.c (example_test): Add
21204 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21205 (failure_start): ...this. Check that malloc succeeded.
21206 Don't call xvasprintf. Return failure struct.
21207 (failure_append_vtext): New function.
21208 (failure_append_text): Likewise.
21209 (add_failure): Likewise.
21210 (grub_test_assert_helper): Likewise.
21211 * include/grub/test.h (grub_test_assert_helper): New declaration.
21212 (grub_test_assert): Macro rewritten.
21214 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21216 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21218 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21220 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21222 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21224 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21225 into GRUB-style one.
21227 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21229 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21230 error and not grub_errno.
21231 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21233 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21235 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21236 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21238 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21240 * grub-core/efiemu/i386/pc/cfgtables.c
21241 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21242 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21243 (grub_xnu_unlock): Likewise.
21244 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21246 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21248 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21249 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21250 * grub-core/commands/hashsum.c (aliases): Likewise.
21251 * grub-core/commands/setpci.c (pci_registers): Likewise.
21252 * grub-core/disk/usbms.c (attach_hook): Likewise.
21253 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21254 (zio_checksum_table): Likewise.
21255 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21256 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21257 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21258 * grub-core/lib/relocator.c (leftovers): Likewise.
21259 (extra_blocks): Likewise.
21260 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21261 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21262 (modules_last): Likewise.
21263 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21264 (devices): Likewise.
21265 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21266 (modules_last): Likewise.
21267 * grub-core/normal/auth.c (users): Likewise.
21268 * grub-core/normal/context.c (initial_menu): Likewise.
21269 (current_menu): Likewise.
21270 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21271 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21272 (grub_serial_terminfo_input_template): Likewise.
21273 (grub_serial_terminfo_output_template): Likewise.
21274 (grub_serial_terminfo_input): Likewise.
21275 (grub_serial_terminfo_output): Likewise.
21276 (registered): Likewise.
21277 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21279 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21281 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21282 grub_video_mode_type_t.
21283 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21284 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21285 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21287 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21289 * util/grub-install.in: Correct the x86-64 name as x86_64.
21291 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21293 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21294 initial chunk read from the kernel always includes GRUB's multiboot
21295 header, which is now outside the first sector.
21297 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21299 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21300 cached mmap_size, so that this works correctly when called multiple
21302 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21304 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21306 * docs/grub.texi (Simple configuration): Tidy up formatting.
21308 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21310 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21311 Set-but-not-used variable removed.
21313 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21315 Workaround yet another IEEE1275 bug.
21317 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21318 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21319 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21320 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21322 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21323 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21325 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21327 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21330 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21332 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21333 empty, since in that case we can only generate either nothing or a
21334 syntactically invalid configuration file.
21335 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21337 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21339 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21340 (Making a GRUB bootable CD-ROM): Likewise.
21341 (Invoking grub-mkrescue): New section.
21342 Reported by: Yann Dirson. Fixes Debian bug #612585.
21344 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21346 * util/grub-install.in: Remove unnecessary brackets from tr
21348 * util/grub.d/10_hurd.in: Likewise.
21349 * util/grub.d/10_kfreebsd.in: Likewise.
21350 * util/grub.d/10_linux.in: Likewise.
21351 * util/grub.d/20_linux_xen.in: Likewise.
21352 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21354 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21356 * include/grub/file.h (not_easly_seekable): Rename to ...
21357 (not_easily_seekable): ... this. Update all users.
21359 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21361 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21364 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21366 * util/grub-mkimage.c (generate_image): Refuse to create the images
21367 bigger than the actual flash (512K) in Loongson machines. 512K is also
21368 the biggest chip supported by them.
21370 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21372 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21374 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21376 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21377 super_offset field.
21379 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21381 * util/grub-install.in: Ignore install device on platforms
21382 where it doesn't make sense. Always use UUIDs except on pc, efi and
21384 Reported by: Daniel Kahn Gillmor.
21386 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21388 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21390 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21392 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21393 (iterate_real): Don't rely on partition being non-NULL.
21395 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21397 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21398 supported platforms. Put a compile time assert for this rather than
21399 generate a warning with 32-bit shift.
21401 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21403 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21404 logical expression more readable.
21406 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21408 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21409 even if some elements have a name.
21410 Reported by: Alexander GQ Gerasiov.
21412 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21414 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21415 path unreadable if `grub-probe -t abstraction' fails, for example if
21416 memberlist fails on an LVM volume group.
21417 Reported by: Darius Jahandarie.
21419 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21421 * docs/grub.texi (Simple configuration): Document
21422 GRUB_PRELOAD_MODULES.
21424 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21426 * .bzrignore: Remove nonexistent grub-pbkdf2.
21428 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21430 * configure.ac: Bump version to 1.99~rc1.
21432 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21434 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21437 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21439 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21442 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21444 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21446 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21448 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21451 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21453 Fix compilation on cygwin.
21455 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21456 -R .drectve on cygwin.
21457 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21458 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21459 (COND_CYGWIN): New condition.
21460 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21461 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21462 not @TARGET_OBJ2ELF@.
21463 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21464 type to determine whether aux is to be used.
21466 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21468 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21469 realpath'ed device string.
21470 Handle floppy (somewhat).
21471 Issue error in unknown case rather than garbage.
21472 Reported by: Axel Beckert.
21474 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21476 * util/grub.d/00_header.in (load_video): Handle the case when no video
21478 Thanks to: Axel Beckert.
21480 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21482 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21483 variable. Fixes problem on big endian platforms.
21485 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21487 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21488 It doesn't work well there.
21490 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21492 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21494 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21495 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21498 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21500 Use alias->path rather than buggy "canon".
21502 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21503 (ofdisk_hash_add): New argument curcan. All users updated.
21505 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21507 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21509 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21511 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21512 loadmask before doing any calculations. Use correct type for offset.
21513 (grub_linux_load64): Likewise.
21515 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21517 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21519 (console_grub_equivalences_unshift): Likewise.
21520 Reported by: Daniel Dehennin.
21522 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21524 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21525 (set_env_limn_ro): Likewise.
21526 (GRUB_MOD_INIT): Likewise.
21527 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21528 ARRAY_SIZE while on it.
21529 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21530 * grub-core/normal/context.c (grub_env_export): Move from here ...
21531 * grub-core/kern/env.c (grub_env_export): ... here.
21532 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21534 * grub-core/kern/main.c (grub_main): Export root and prefix.
21535 * include/grub/env.h (grub_env_export): Export.
21536 Reported by: Seth Goldberg.
21538 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21540 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21541 Take into account space used by ELF sections and multiboot palette.
21542 Reported by: Grégoire Sutre.
21544 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21548 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21550 Pass more appropriate video id to Linux.
21552 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21553 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21555 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21556 shift params->lfb_size.
21557 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21559 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21561 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21563 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21565 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21566 separator and pass bootpath/devid even if only one of them is available.
21567 Reported by: Seth Goldberg.
21569 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21571 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21572 implementations bug on them.
21574 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21576 (filter_memory_map): Likewise.
21578 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21580 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21581 Reported by: nebuchadnezzar.
21583 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21585 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21586 Reported by: nebuchadnezzar.
21588 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21590 Submenu default support.
21592 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21593 auto_boot. All users updated.
21595 Handle chosen and default with submenus.
21596 (grub_menu_execute_with_fallback): Declared static.
21597 Don't notify failure if autobooted. Upper level does it.
21598 (menuentry_eq): New function.
21599 (get_entry_number): Use menuentry_eq.
21600 (show_menu): New parameter "autobooted". All users updated.
21601 (grub_show_menu): Likewise.
21602 * include/grub/normal.h (grub_show_menu): Likewise.
21603 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21604 (grub_menu_execute_with_fallback): Likewise.
21606 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21608 * util/grub-mklayout.c (usage): Update help text.
21610 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21612 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21614 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21616 * util/grub-menulst2cfg.c (main): Trim the line.
21618 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21620 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21621 (grub_machine_init): Don't check amount of low memory as reportedly
21622 INT 12h can be broken and if low memory is too low we wouldn't have
21623 gotten into grub_machine_init anyway.
21625 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21627 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21628 (grub_machine_mmap_iterate): Take low memory into account
21630 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21632 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21634 Reported by: TiCPU.
21636 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21638 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21641 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21643 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21644 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21646 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21648 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21649 openbsd and netbsd types being in part_bsd module.
21651 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21653 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21654 (_FILE_OFFSET_BITS): Likewise.
21655 Reported by: Seth Goldberg.
21657 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21659 * configure.ac: Check for libdevmapper header.
21661 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21663 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21665 (fzap_lookup): Likewise.
21666 (dnode_get): Likewise.
21667 (make_mdn): Likewise.
21668 (zfs_mount): Likewise.
21669 (fzap_iterate): Use temporary pointer to avoid aliasing.
21670 (grub_zfs_read): Likewise.
21671 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21672 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21673 pointers to avoid aliasing.
21674 (grub_cmd_xnu_kernel64): Likewise.
21675 (grub_xnu_load_driver): Likewise.
21677 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21679 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21681 (grub_cmd_terminal_output): Likewise.
21682 Reported and tested by: Grégoire Sutre.
21684 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21686 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21688 Reported and tested by: Grégoire Sutre.
21690 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21692 * configure.ac: Do CPU substitution even if it's specified explicitly.
21693 Reported and tested by: Alain Greppin.
21695 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21697 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21698 Reported and tested by: Alain Greppin.
21700 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21702 Satisfy some bison versions need for inttypes.h.
21704 * grub-core/lib/posix_wrap/inttypes.h: New file.
21705 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21706 (int16_t): Likewise.
21707 (int32_t): Likewise.
21708 (int64_t): Likewise.
21709 Reported and tested by: Alain Greppin.
21711 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21713 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21714 Silence spurious warning.
21715 Reported and tested by: Alain Greppin.
21717 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21719 * docs/grub.texi (Support automatic decompression): Update with xz
21720 decompression support.
21722 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21724 Improve loaders' kernel command line handling.
21726 * grub-core/lib/cmdline.c: New file.
21727 * include/grub/lib/cmdline.h: Likewise.
21728 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21729 grub_create_loader_cmdline to create kernel command line.
21730 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21731 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21732 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21733 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21734 (linux): Add lib/cmdline.c on common.
21736 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21738 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21739 inopos might be unaligned.
21741 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21743 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21744 endian transformations.
21745 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21746 Based on report by: Doug Nazar.
21748 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21750 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21751 array->members[i].start_sector.
21752 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21754 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21756 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21757 Reported and tested by: Grégoire Sutre.
21759 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21761 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21762 avoid causing test failures by clearing the screen.
21764 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21766 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21767 Fix prefix check to handle the case where dir ends with a slash
21768 (most significantly, "/" itself).
21769 Reported by: Michael Vogt.
21771 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21773 Run terminfo_cls on initing terminfo output to clear the screen and
21774 move the cursor to (0,0).
21776 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21777 Call grub_terminfo_output_init.
21778 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21779 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21780 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21782 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21784 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21787 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21789 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21792 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21794 The E820 type 5 is BADRAM, not EXEC_CODE.
21796 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21797 (GRUB_E820_BADRAM): New define.
21798 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21799 into reserved. Propagate BADRAM.
21800 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21801 (GRUB_E820_BADRAM): New define.
21803 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21805 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21806 Ignore the memory post-4G.
21807 (grub_relocator_firmware_alloc_region): Additional debug statement.
21809 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21811 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21813 Reported by: David Pravec.
21815 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21817 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21820 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21822 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21824 (grub_reed_solomon_recover): Likewise.
21826 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21828 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21830 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21832 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21835 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21837 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21838 descriptions of extract_legacy_entries_source and
21839 extract_legacy_entries_configfile.
21840 Reported by: Seung Soo, Ha.
21842 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21844 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21845 on devices that do not implement function 0.
21847 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21849 * grub-core/fs/hfsplus.c: Make parent unsigned.
21850 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21852 (grub_hfsplus_cmp_extkey): Likewise
21854 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21856 * util/grub-install.in: Correctly use bootloader_id and not
21857 GRUB_DISTRIBUTOR on efibootmgr line.
21859 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21861 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21863 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21865 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21866 Xen and reorder menu item wording to make it clearer that this entry
21867 will launch Xen. Print separate messages when loading Xen and
21870 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21872 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21873 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21874 loop in case of incorrect amiga partmap.
21876 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21878 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21879 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21882 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21884 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21886 Reported by: crocket
21888 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21890 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21892 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21894 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21896 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21898 (grub_cmd_xnu_kextdir): Likewise.
21899 (grub_cmd_xnu_splash): Likewise.
21901 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21903 Avoid using Reed-Solomon with 0 redundancy.
21905 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21906 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21908 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21909 (grub_reed_solomon_recover): Likewise.
21911 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21913 Don't use disk subsystem in freebsd_boot.
21915 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21916 (freebsd_biosdev): Likewise.
21917 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21918 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21920 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21922 Handling of files of unknown size is currently limited. They can't be
21923 used e.g. for initrd or modules. Moreover gzip handling of not
21924 easily seekable files is buggy. Disable unknown file size for now. May
21925 be inefficient but works.
21927 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21928 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21930 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21932 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21935 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21937 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21939 2010-12-25 Shea Levy <shlevy>
21941 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21943 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21945 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21946 Windows Server 2008.
21947 Reported by: Devin Giddings.
21949 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21951 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21952 writing an error message because of async power management.
21953 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21954 (grub_reboot): Likewise.
21956 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21958 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21959 keep unit tests from failing when they shouldn't.
21961 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21963 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21964 previous patch increased the size of the RS code by 20 bytes (at
21965 least with gcc-4.4), so increase this by 20 bytes to match.
21966 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21968 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21970 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21971 scratch area. Make sure to initialise chosen in standalone mode as
21972 well as non-standalone.
21973 Reported by: Robert Hooker and Andy Whitcroft.
21974 Tested by: Andy Whitcroft.
21976 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21978 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21979 constructing a new unescaped string and passing it to grub_xputs in
21980 one go, rather than passing characters to grub_printf one at a time.
21982 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21984 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21985 initialising utf16.
21987 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21989 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21990 comment. Add an extra layer of quotation, requiring the output of
21991 this function to be used in a printf format string.
21992 (gettext_printf): New function.
21993 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21994 Extract translatable strings from here-documents and use a temporary
21995 variable instead, so that xgettext can find them.
21996 * util/grub.d/10_kfreebsd.in: Likewise.
21997 * util/grub.d/10_linux.in: Likewise.
21998 * util/grub.d/20_linux_xen.in: Likewise.
22000 * po/grub.d.sed: New file.
22001 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
22002 arguments. Set c-format flags on all strings extracted from
22003 util/grub.d/ (xgettext refuses to include these itself for strings
22004 it extracted from a shell file, but these really are c-format).
22006 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
22008 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
22009 Avoid next pointing to nowhere.
22011 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
22013 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
22014 rather than assuming than rootblock is exactly in the middle.
22015 (grub_affs_label): Likewise.
22017 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
22019 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
22020 reserved_first_sector to 0.
22021 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
22022 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
22023 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
22025 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
22027 Fix handling of UTF-16 UDF labels.
22029 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
22030 (read_string): .. here.
22031 (grub_udf_label): Use read_string.
22033 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
22035 * grub-core/normal/menu_entry.c (run): Execute commands from menu
22036 editor under argument scope.
22037 Reported by: Jordan Uggla
22039 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
22041 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
22043 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
22045 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
22046 line, and other keys scroll an entire page (previous handling was
22047 for \r and \n to scroll a page and other keys to scroll two lines).
22049 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
22051 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
22052 Set ptrdest to correct get_physical_target_address rather than
22053 incorrect get_virtual_current_address.
22055 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
22057 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
22058 correct cat to grub_uint8_t * rather than grub_uint32_t *.
22060 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
22062 * .bzrignore: Ignore grub-core/rs_decoder.S.
22064 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
22066 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
22067 .mo/.mo.gz opening sequence to ...
22068 (grub_mofile_open_lang): ... here.
22069 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
22070 * util/grub.d/00_header.in (grub_lang): Include country part of
22072 Reported by: Mario Limonciello.
22074 2010-12-09 Robert Millan <rmh@gnu.org>
22076 * NEWS: Document addition of ZFS support.
22078 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
22080 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
22081 rather than `/ 2', as the latter requires -Wa,--divide which would
22082 require bumping our minimum binutils version.
22084 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
22086 * util/grub-script-check.c (main): Print script line number on
22089 2010-12-01 Robert Millan <rmh@gnu.org>
22091 * grub-core/fs/zfs/zfs.c: New file.
22092 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
22093 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
22094 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
22095 * grub-core/fs/zfs/zfsinfo.c: Likewise.
22097 * include/grub/zfs/dmu.h: Likewise.
22098 * include/grub/zfs/dmu_objset.h: Likewise.
22099 * include/grub/zfs/dnode.h: Likewise.
22100 * include/grub/zfs/dsl_dataset.h: Likewise.
22101 * include/grub/zfs/dsl_dir.h: Likewise.
22102 * include/grub/zfs/sa_impl.h: Likewise.
22103 * include/grub/zfs/spa.h: Likewise.
22104 * include/grub/zfs/uberblock_impl.h: Likewise.
22105 * include/grub/zfs/vdev_impl.h: Likewise.
22106 * include/grub/zfs/zap_impl.h: Likewise.
22107 * include/grub/zfs/zap_leaf.h: Likewise.
22108 * include/grub/zfs/zfs.h: Likewise.
22109 * include/grub/zfs/zfs_acl.h: Likewise.
22110 * include/grub/zfs/zfs_znode.h: Likewise.
22111 * include/grub/zfs/zil.h: Likewise.
22112 * include/grub/zfs/zio.h: Likewise.
22113 * include/grub/zfs/zio_checksum.h: Likewise.
22115 * Makefile.util.def: Build ZFS into libgrubmods.
22116 * grub-core/Makefile.core.def: Build zfs.mod.
22118 2010-11-30 Szymon Janc <szymon@janc.net.pl>
22120 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
22122 * grub-core/commands/wildcard.c (match_files): Likewise.
22124 2010-11-30 Robert Millan <rmh@gnu.org>
22126 * grub-core/loader/i386/bsd.c
22127 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
22128 whether kernel is loaded using grub_loader_is_loaded(), rather
22129 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
22130 certain error conditions.
22132 2010-11-30 Robert Millan <rmh@gnu.org>
22134 * grub-core/commands/echo.c: Include `<grub/term.h>'.
22135 (grub_cmd_echo): Call grub_refresh() after printing a message.
22137 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22139 Avoid using tricks for initialising endian variables.
22141 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
22143 (GRUB_MOD_INIT): Don't byte-swap.
22144 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22145 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
22146 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
22147 (grub_swap_bytes32_compile_time): Likewise.
22148 (grub_cpu_to_le32_compile_time): Likewise.
22149 (grub_cpu_to_le16_compile_time): Likewise.
22151 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22153 * util/grub-setup.c (setup): Stop recommending --force. People who
22154 understand the dangers of blocklists are able to find this option
22155 anyway and the ones who don't shouldn't use it anyway.
22157 2010-11-26 Robert Millan <rmh@gnu.org>
22159 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
22162 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
22164 Fix LVM-on-RAID probing.
22166 * util/grub-probe.c (probe): Remember which disk was detected as
22167 RAID (perhaps an LVM physical volume). Use that disk's raidname
22168 rather than that of the top-level disk.
22170 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
22172 Fix cmdline argument quotes for setparams command of menuentry
22175 * grub-core/commands/menuentry.c (setparams_prefix): Use single
22176 quotes for arguments.
22177 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
22178 grub_strchrsub function instead.
22180 * include/grub/misc.h (grub_strchrsub): New function.
22182 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22184 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
22185 effort by skipping "." and ".." entries up-front.
22186 Suggested by: Michael Lazarev.
22188 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22190 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
22191 ldflags to ldadd, to fix link line ordering.
22192 (none_decompress): Likewise.
22194 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22196 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22198 (grub-emu-lite): Remove kern/emu/cache.S.
22200 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22202 * util/deviceiter.c (compare_devices): If the by-id link for a
22203 device couldn't be resolved, fall back to sorting by the by-id link
22204 rather than segfaulting.
22205 Reported and tested by: Daniel Mierswa.
22207 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22209 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22210 ldflags, to fix link line ordering.
22212 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22214 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22215 linkers are picky about this.
22217 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22219 * grub-core/Makefile.am (command.lst): Adjust sed expression
22220 ordering so that extended and priority commands aren't treated as
22223 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22225 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22226 Remove byte-swapping function calls, which are not valid in
22227 structure initialisers.
22228 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22230 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22231 grub_gpt_partition_type_bios_boot.
22233 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22235 Fix test program build on GNU/kFreeBSD.
22237 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22238 $(LIBNVPAIR)' library dependencies.
22240 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22242 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22244 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22246 * util/grub-install.in: Remove excessive quoting that broke
22247 installations to RAID devices.
22249 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22251 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22252 bootloader version instead of 0.
22254 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22256 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22259 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22261 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22262 retrieve the metadat sector if size isn't known.
22263 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22265 2010-11-18 Robert Millan <rmh@gnu.org>
22267 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22268 with grub_memcmp().
22270 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22272 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22274 Reported by: Jordan Uggla.
22276 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22278 Make better UTF compliant.
22280 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22281 sequences as incorrect.
22282 (grub_is_valid_utf8): Likewise.
22283 (grub_utf8_to_ucs4): Likewise.
22284 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22285 (grub_ucs4_to_utf8_alloc): Likewise.
22286 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22288 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22290 Make legacy_source behave like source.
22292 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22294 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22296 2010-11-16 Colin Watson <cjwatson@debian.org>
22298 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22299 (-Wunused implies -Wunused-parameter, but not vice versa).
22301 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22303 * configure.ac: Make error messages less confusing by testing for
22304 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22305 accepted, but produces a diagnostic if something else is wrong).
22307 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22309 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22310 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22312 (grub_keyboard_controller_init)
22313 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22314 read the initial state since controller isn't inited yet.
22316 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22318 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22319 allocate_regbeg may need to create new chunk header.
22321 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22323 Fix quoting in legacy parser.
22325 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22327 (grub_legacy_parse): Likewise.
22328 Reported by: Jordan Uggla.
22329 Tested by: Jordan Uggla.
22331 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22333 Don't add -lgcc on i386 and x86_64.
22335 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22336 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22337 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22339 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22341 * configure.ac: Add -Wno-trampolines when supported.
22343 2010-11-14 Modestas Vainius <modax@debian.org>
22345 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22348 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22350 Add generic logical block size support for UDF.
22352 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22353 (GRUB_UDF_BLKSZ): Removed.
22354 (struct grub_udf_data): New field "lbshift" to hold the logical block
22355 size of the file system in log2 format. All users updated.
22356 (sblocklist): Change type to unsigned.
22357 (grub_udf_mount): Change type of "sblklist" to unsigned.
22358 Move AVDP search before VRS recognition, because the latter requires
22359 knowledge of the logical block size, which is detected during the
22361 Detect and validate logical block size during AVDP search, adding
22362 support for block sizes 512, 1024 and 4096.
22363 Make VRS recognition independent of block size.
22365 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22367 Properly handle deleted files on UDF.
22369 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22370 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22373 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22375 Support reading files larger than 2 GiB.
22377 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22378 "offset" to grub_off_t.
22379 (grub_udf_read_file): Likewise for parameter "pos".
22381 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22383 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22385 (Simple configuration): Refer to Changes from GRUB Legacy about
22386 save_env availability.
22388 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22390 * util/grub-install.in: Ignore empty partition table detection
22391 instead of trying to include part_ module.
22393 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22395 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22396 LVM on RAID support.
22398 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22400 Properly define WORDS_BIGENDIAN in wrapped environments.
22402 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22404 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22406 Reported by: Manoel Rebelo Abranches.
22407 Tested by: Manoel Rebelo Abranches.
22409 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22411 * util/grub-mkconfig.in: Fix quoting.
22413 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22415 Support big ext2 files.
22417 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22418 (grub_ext2_read_block): Support triple indirect blocks.
22419 (grub_ext2_read_file): Use 64-bit types and read size_high.
22420 (grub_ext2_open): Read size_high.
22421 Reported by: Ximin Luo.
22422 Tested by: Manoel Rebelo Abranches.
22424 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22426 * util/grub-install.in: Handle filenames containing spaces.
22427 Reported by: Jordan Uggla.
22428 Tested by: Jordan Uggla.
22430 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22432 * util/grub-mkconfig.in (grub_script_check): New variable.
22433 Use grub_script_check instead of grub-script-check.
22434 Reported by: Barry Jackson.
22436 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22438 * docs/grub.texi (menu): Correct the order.
22439 Reported by: D. Hugh Redelmeier.
22441 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22443 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22446 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22448 * include/grub/elfload.h (grub_elf32_size): New parameter.
22450 Return maximum segments alignment.
22451 (grub_elf64_size): Likewise.
22452 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22453 Return maximum segments alignment.
22454 (grub_elf64_size): Likewise.
22455 * grub-core/loader/powerpc/ieee1275/linux.c:
22456 (grub_linux_claimmap_iterate): New function. Uses the
22457 "available" property in the "memory" node for memory allocation
22458 for kernel in the PowerPC loader.
22459 (grub_linux_load32): Correctly find linux entry point offset.
22460 (grub_linux_load64): Likewise.
22462 2010-11-07 Robert Millan <rmh@gnu.org>
22464 On mips-yeeloong, build with -march=loongson2f when this flag is
22465 available (GCC >= 4.4).
22466 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22468 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22469 or otherwise add -march=mips3.
22471 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22473 Suppress shell expansion on echo '*' and echo "*" like cases.
22474 Reported by: Jordan Uggla.
22476 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22477 string arguments before shell expansion.
22478 * tests/grub_cmd_echo.in: New testcases.
22480 2010-11-07 Robert Millan <rmh@gnu.org>
22482 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22485 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22487 * grub-core/kern/emu/hostdisk.c
22488 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22490 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22492 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22493 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22494 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22496 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22498 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22500 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22502 * util/grub-install.in: Replace useless recomendation to pass
22503 --modules with a recomendation to report a bug.
22505 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22507 Properly register serial terminfo.
22508 Reported by: Jordan Uggla
22510 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22512 (grub_serial_terminfo_output_template): Likewise.
22513 (grub_cmd_serial): Register "serial" with terminfo.
22514 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22515 grub_serial_terminfo_output.
22517 2010-11-05 Robert Millan <rmh@gnu.org>
22519 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22522 2010-11-05 Robert Millan <rmh@gnu.org>
22524 On Yeeloong, pass machine type information to Linux.
22526 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22527 (LOONGSON_MACHTYPE): New macro, set to
22528 "machtype=lemote-yeeloong-2f-8.9inches".
22529 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22530 additional argument to Linux.
22532 2010-11-04 Robert Millan <rmh@gnu.org>
22534 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22535 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22536 (its SATA disks are detected as slaveless IDE master drives on
22538 Reported by Carsten Aulbert.
22540 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22542 * util/bin2h.c (main): Fix spelling error in generated output.
22544 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22546 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22548 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22550 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22551 vga= option is supplied.
22553 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22555 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22556 * util/grub.d/10_kfreebsd.in: Likewise.
22557 * util/grub.d/10_linux.in: Likewise.
22558 * util/grub.d/20_linux_xen.in: Likewise.
22560 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22562 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22563 argument as an argument to no-argument option.
22565 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22567 * util/grub.d/10_linux.in: Add missing load_video with explicit
22568 GRUB_GFXPAYLOAD_LINUX.
22570 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22572 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22574 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22576 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22577 elements with invlid index.
22578 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22579 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22581 * include/grub/raid.h (grub_raid_member): New struct.
22582 (grub_raid_array): Transform devices and start_sector into usage of
22583 grub_raid_member. All users updated
22584 (allocated_devs): New member.
22586 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22588 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22591 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22593 NetBSD build fix for getline function conflict from gnulib.
22595 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22596 components that depend on gnulib headers.
22597 (libgrubmods.a): Renamed from earlier libgrub.a.
22598 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22600 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22602 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22603 install rather than creating a broken install.
22605 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22607 * util/grub-setup.c (argp): Remove misleading example of installing to
22610 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22612 * util/grub-setup.c (setup): Clarify the error message.
22614 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22616 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22618 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22620 * grub-core/kern/emu/misc.c
22621 (grub_make_system_path_relative_to_its_root)
22622 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22624 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22626 * grub-core/kern/emu/misc.c
22627 (grub_make_system_path_relative_to_its_root): Revert r2882.
22629 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22631 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22632 useless field head. All users updated.
22633 (free_subchunk): Correct handling of IN_REGION subchunk.
22635 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22637 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22638 (Supported kernels): Likewise.
22640 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22642 Make mktemp invocations portable.
22644 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22645 exit if mktemp fails.
22646 * tests/grub_script_blockarg.in: Likewise.
22647 * tests/partmap_test.in: Likewise.
22648 * tests/util/grub-shell-tester.in: Likewise.
22649 * tests/util/grub-shell.in: Likewise.
22650 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22651 * Makefile.am: Likewise, and chain shell commands with `&&'
22653 * util/grub-mkrescue.in: Use the same explicit template as above, and
22654 exit if mktemp fails.
22656 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22658 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22659 Linux kernel, reported by Dennis Schridde.
22661 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22663 * grub-core/normal/auth.c (grub_auth_check_authentication):
22664 Set-but-not-used variable removed.
22666 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22668 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22669 32-bit linux protocol.
22671 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22673 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22674 cursor shape for sanity.
22676 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22678 * docs/grub.texi (Installation): Document buggy BIOS install.
22680 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22682 * docs/grub.texi (Installation): Indent.
22684 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22686 * util/grub-setup.c (setup): New parameter allow_floppy.
22687 (arguments): New member allow_floppy.
22688 (argp_parser): Handle --allow-floppy.
22689 (main): Pass allow_floppy.
22690 * util/grub-install.in: New option --allow-floppy passed though to
22693 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22695 * util/grub-install.in: Handle partitionless disks.
22697 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22699 * util/grub-setup.c (setup): Don't clean blocklists before readability
22702 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22704 * docs/grub.texi (Installation): Document embedding zone. Remove
22705 obsolete grub-install example.
22707 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22709 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22710 Set-but-not-used variable ifdef'ed.
22711 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22712 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22714 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22715 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22716 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22717 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22718 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22719 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22720 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22721 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22722 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22723 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22724 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22727 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22729 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22730 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22733 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22735 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22736 synonym to _S5_. Needed for some DSDTs.
22738 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22740 Userspace ACPI parser debugging.
22742 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22743 headers and add relevant defines. Don't include standard headers.
22744 (main) [GRUB_DSDT_TEST]: New function.
22745 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22746 Don't declare functions.
22748 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22750 Remove dead grub_efi_mm_fini.
22752 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22753 (ALLOCATED_PAGES_SIZE): Likewise.
22754 (MAX_ALLOCATED_PAGES): Likewise.
22755 (allocated_pages): Likewise.
22756 (grub_efi_allocate_pages): Don't record allocated pages.
22757 (grub_efi_free_pages): Likewise.
22758 (grub_efi_mm_init): Likewise.
22759 (grub_efi_mm_fini): Removed.
22761 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22763 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22764 (grub_efi_mm_init): Take into account the memory map size increase.
22766 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22768 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22769 (serial_hw_put): Wait based on real time rather than port reads. Don't
22771 * include/grub/serial.h (grub_serial_port): New field broken.
22773 2010-10-16 Robert Millan <rmh@gnu.org>
22775 * grub-core/kern/emu/misc.c
22776 (grub_make_system_path_relative_to_its_root): Fix premature return
22777 when processing non-root ZFS filesystems.
22778 Reported by Sergio Talens-Oliag.
22780 2010-10-15 Robert Millan <rmh@gnu.org>
22782 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22783 guarantee compressed ones are processed first.
22785 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22787 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22788 grub_efiemu_autocore.
22790 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22792 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22794 (grub_console_getkey): Use correct jae opcode rather than ja.
22796 2010-10-12 Robert Millan <rmh@gnu.org>
22798 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22799 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22800 variable. All references updated.
22802 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22804 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22806 Correctly distinguish mdraid flavours.
22808 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22809 (insert_array): New argument raid.
22810 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22811 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22812 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22814 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22816 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22817 handling of special keys.
22819 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22821 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22822 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22824 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22826 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22827 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22829 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22830 Use right endpoint when querying descriptor.
22832 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22834 Clear out 0x80 color bit on EFI.
22836 Reported by: decoder and meta tech.
22838 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22839 (grub_console_setcolorstate): Clear out 0x80 bit.
22840 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22841 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22842 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22844 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22846 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22849 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22851 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22852 mo_file after freeing.
22854 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22856 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22858 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22860 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22863 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22865 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22868 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22870 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22872 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22873 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22874 and terminfo.h when needed.
22875 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22876 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22877 (terminfo): Enable only on terminfokernel.
22878 (extcmd): Likewise.
22879 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22880 * include/grub/lib/arg.h: Likewise.
22881 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22882 incorrect usage of ->.
22884 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22886 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22887 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22889 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22891 Fix coreboot compilation.
22893 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22894 Take VBE info into account even if only text is supported.
22895 (fill_vbe_info): Take into account the case when only VGA text
22897 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22898 on coreboot, multiboot and qemu.
22900 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22902 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22904 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22906 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22908 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22911 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22913 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22914 if they were BSD-style.
22916 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22918 * grub-core/boot/i386/pc/lnxboot.S: Replace
22919 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22920 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22922 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22924 Write embedding zone using Reed-Solomon.
22926 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22927 * grub-core/Makefile.am (rs_decoder.S): New target.
22928 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22929 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22930 (multiboot): Move to RS part.
22931 (post_reed_solomon): New label.
22932 (grub_boot_drive): Move to non-RS part since it's modified in memory
22934 Include rs_decoder.S.
22935 * grub-core/lib/reed_solomon.c: New file.
22936 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22938 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22939 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22940 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22941 * include/grub/partition.h (grub_partition_map): Change prototype of
22942 embed to allow returning additional sectors.
22943 * include/grub/reed_solomon.h: New file.
22944 * util/grub-setup.c (setup): Handle Reed-Solomon.
22946 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22948 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22949 i386 and x86-64 definedness tests.
22951 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22953 Fix generation of kernel_syms.lst
22955 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22958 2010-09-26 Robert Millan <rmh@gnu.org>
22960 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22962 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22963 the pool is an array of devices, iterate through it and return the
22964 first device that passes a stat() test (instead of blindly returning
22967 2010-09-26 Robert Millan <rmh@gnu.org>
22969 Build fixes for GNU/kFreeBSD.
22971 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22972 to programs that require ZFS conversion.
22973 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22974 kernels that don't have FLOPPY_MAJOR.
22976 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22978 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22980 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22982 Fix grub-emu build.
22984 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22985 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22986 mdraid09 and mdraid1x.
22988 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22990 Re-enable grub-extras.
22992 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22993 avoid confusing Automake. Run autogen only twice, once for the top
22994 level and once for grub-core. Add Makefile.util.def and
22995 Makefile.core.def from extra modules to the appropriate autogen
22996 invocations. If Makefile.common exists in an extra module, include
22997 it in both Makefile.util.am and grub-core/Makefile.core.am;
22998 similarly, include any Makefile.util.common file in Makefile.util.am
22999 and any Makefile.core.common file in grub-core/Makefile.core.am.
23000 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
23001 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
23002 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
23003 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
23005 * gentpl.py (gvar_add): Turn GVARS into a set.
23006 (global_variable_initializers): Sort global variables on output.
23007 (vars_init): New function.
23008 (first_time): Likewise.
23009 (library): Ensure that non-global variable initialisations are
23010 emitted before the first time we emit code for a library block.
23011 Append to variables rather than setting them. Only emit
23012 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
23013 each conditional path.
23014 (program): installdir() emits an Autogen macro, so must be passed to
23015 var_add rather than gvar_add.
23017 (script): Likewise.
23018 (rules): New function, centralising handling for different target
23019 types. Set up Guile association lists for first_time and vars_init,
23020 and send most output to a diversion so that variable initialisations
23021 can be emitted first.
23022 (module_rules): Use new rules function.
23023 (kernel_rules): Likewise.
23024 (image_rules): Likewise.
23025 (library_rules): Likewise.
23026 (program_rules): Likewise.
23027 (script_rules): Likewise.
23028 (data_rules): Likewise.
23030 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
23032 * .bzrignore: Add contrib and grub-core/contrib. Remove
23033 grub-core/Makefile.gcry.am.
23035 2010-09-24 Yves Blusseau <blusseau@zetam.org>
23037 * grub-core/lib/LzFind.c: Add missing include.
23038 * grub-core/lib/LzmaEnc.c: Likewise.
23039 * grub-core/script/lexer.c: Likewise.
23040 * grub-core/script/yylex.l: Likewise.
23041 * util/grub-macho2img.c: Likewise.
23042 * util/grub-menulst2cfg.c: Likewise.
23043 * util/grub-mklayout.c: Likewise.
23044 * util/grub-mkpasswd-pbkdf2.c
23045 * util/grub-mkrelpath.c: Likewise.
23046 * util/resolve.c: Likewise.
23048 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
23050 * Makefile.util.def (example_unit_test): Add
23051 grub-core/gnulib/libgnu.a.
23053 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
23055 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
23057 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
23059 Support xz compression on yeeloong.
23061 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
23062 * configure.ac: Check for LZMA.
23063 * grub-core/Makefile.core.def (xz_decompress): New target.
23064 (none_decompress): Likewise.
23065 * grub-core/boot/decompressor/minilib.c: New file.
23066 * grub-core/boot/decompressor/none.c: Likewise.
23067 * grub-core/boot/decompressor/xz.c: Likewise.
23068 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
23069 * grub-core/kern/mips/cache_flush.S: Likewise.
23070 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
23071 * grub-core/kern/mips/startup.S: Move first stage to ...
23072 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
23074 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
23075 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
23076 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
23077 Allocate statically.
23078 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
23079 Allocate statically or use scratch. Don't check CRC32.
23080 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
23081 Allocate statically. Don't check CRC32.
23082 * include/grub/decompressor.h: New file.
23083 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
23085 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
23086 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
23087 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
23088 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
23089 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
23090 * util/grub-mkimage.c (grub_compression_t): New type.
23091 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
23092 (image_target_desc): New field default_compression.
23093 (image_targets): Adjust yeeloong targets.
23094 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
23095 (compress_kernel): New parameter comp.
23096 (generate_image): Likewise. Handle new compression case.
23097 (options): New option --compression
23099 (main): Handle new option.
23101 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
23103 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
23105 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
23107 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
23108 typo in __i386__ conditional.
23110 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
23112 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
23115 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
23117 Implement EFI and ACPI multiboot2 extensions.
23119 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
23120 new tags as supported.
23121 (acpiv2_size): New function.
23122 (grub_multiboot_get_mbi_size): Take new tags into account.
23123 (grub_multiboot_make_mbi): Add new tags.
23124 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
23126 2010-09-21 Aleš Nesrsta <starous@volny.cz>
23128 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
23129 Added missing configuration of USB device.
23131 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23133 * grub-core/normal/menu_entry.c (run): Make sure we always return
23136 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23138 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
23139 NumberOfPages is UINT64 according to the UEFI specification, not
23140 UINTN. Fix printf format.
23142 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23144 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
23145 `err' to grub_usb_err_t.
23146 Reported and tested by: KESHAV P.R.
23148 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23150 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
23151 tpart non-const, so that we can assign to it. (Since this is a
23152 typedef, the constness refers to the pointer rather than what it
23155 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23157 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
23158 $(top_srcdir)/grub-core/gnulib as well as
23159 $(top_builddir)/grub-core/gnulib.
23160 Reported by: KESHAV P.R.
23162 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23164 * util/grub-install.in: Fix the bootloader ID option to be
23165 consistently --bootloader-id, not --bootloader_id.
23166 Reported by: KESHAV P.R.
23168 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23170 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
23171 check hash checksum." consistently translatable.
23173 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23175 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
23178 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23180 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
23181 (GRUB_MOD_INIT): Register sha1sum command.
23182 (GRUB_MOD_FINI): Unregister sha1sum command.
23184 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23186 Keep boot and grub directory names in sync with utils scripts
23188 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
23189 * config.h.in: Add previous macros.
23190 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
23191 * util/grub-install.in: Use $bootdir and $grubdir variables.
23193 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23195 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23196 convert partition names to disk names if the new `convert' parameter
23198 (grub_util_biosdisk_get_grub_dev): If opening the disk device
23199 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23200 disk in its own right. This can happen with Xen disk images.
23202 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23204 * util/grub-editenv.c: Update strings to avoid warnings when generating
23206 * util/grub-setup.c: Likewise.
23208 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23210 * configure.ac: Change version to 1.99~beta0.
23212 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23214 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23216 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23218 * include/multiboot.h: Resynced with specification.
23219 * include/multiboot2.h: Likewise.
23221 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23223 Fix po directory handling.
23225 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23226 * grub-core/gnulib/Makefile.am: Import gettext module.
23227 * m4/gnulib-cache.m4: Likewise.
23228 * m4/gnulib-comp.m4: Likewise.
23229 * m4/gettext.m4: New file, from gnulib.
23230 * m4/glibc2.m4: Likewise.
23231 * m4/iconv.m4: Likewise.
23232 * m4/intdiv0.m4: Likewise.
23233 * m4/intl.m4: Likewise.
23234 * m4/intldir.m4: Likewise.
23235 * m4/intlmacosx.m4: Likewise.
23236 * m4/intmax.m4: Likewise.
23237 * m4/inttypes-pri.m4: Likewise.
23238 * m4/lcmessage.m4: Likewise.
23239 * m4/lib-ld.m4: Likewise.
23240 * m4/lib-link.m4: Likewise.
23241 * m4/lib-prefix.m4: Likewise.
23242 * m4/lock.m4: Likewise.
23243 * m4/nls.m4: Likewise.
23244 * m4/po.m4: Likewise.
23245 * m4/printf-posix.m4: Likewise.
23246 * m4/progtest.m4: Likewise.
23247 * m4/threadlib.m4: Likewise.
23248 * m4/uintmax_t.m4: Likewise.
23249 * m4/visibility.m4: Likewise.
23250 * po/Makefile.am: Remove.
23251 * po/Makefile.in.in: New file, from gettext.
23252 ($(DOMAIN).pot-update): Support POTFILES-shell.
23253 * po/Makevars: New file.
23254 * po/POTFILES-shell: Rename to ...
23255 * po/POTFILES-shell.in: ... this. Update.
23256 * po/POTFILES: Rename to ...
23257 * po/POTFILES.in: ... this. Update.
23258 * po/Rules-quot: New file, from gettext.
23259 * po/boldquot.sed: Likewise.
23260 * po/en@boldquot.header: Likewise.
23261 * po/en@quot.header: Likewise.
23262 * po/insert-header.sin: Likewise.
23263 * po/quot.sed: Likewise.
23264 * po/remove-potcdate.sin: Likewise.
23266 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23268 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23270 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23272 * util/grub.d/20_linux_xen.in: Use submenus.
23274 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23278 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23279 parameter submenu. All users updated.
23280 * grub-core/normal/main.c (free_menu): Rename to ...
23281 (grub_normal_free_menu): ... this. Made global.
23282 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23284 * grub-core/normal/menu_entry.c (screen): New field submenu.
23285 (make_screen): Set submenu.
23286 (run): Open new context if requested.
23287 * include/grub/menu.h (grub_menu_entry): New field submenu.
23288 * include/grub/normal.h (grub_normal_free_menu): New proto.
23290 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23292 Menu entries extractor.
23294 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23296 (GRUB_MOD_INIT): Register new variants.
23297 (GRUB_MOD_FINI): Unregister new variants.
23298 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23299 into grub_cmd_legacy_source.
23300 (grub_cmd_legacy_source): Implement extractor variants.
23301 (GRUB_MOD_INIT): Register new variants.
23302 (GRUB_MOD_FINI): Unregister new variants.
23303 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23305 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23306 search as an extractor.
23307 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23308 test as an extractor.
23309 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23311 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23312 (grub_env_new_context): New function.
23313 (grub_env_context_open): Likewise.
23314 (grub_env_extractor_open): Likewise.
23315 (grub_env_extractor_close): Likewise.
23316 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23317 grub_extractor_level.
23318 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23319 * include/grub/env.h (grub_env_extractor_open): New proto.
23320 (grub_env_extractor_close): Likewise.
23321 * include/grub/normal.h (grub_extractor_level): New external variable.
23323 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23325 Make cutmem accept a region specification.
23326 Suggested by: Samuel Thibault
23328 * grub-core/mmap/mmap.c (parsemem): New function.
23329 (grub_cmd_cutmem): Handle new arguments.
23331 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23333 New command cutmem.
23335 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23336 (GRUB_MOD_INIT): Register new command.
23337 (GRUB_MOD_FINI): Unregister new command.
23339 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23341 Support some annoying BSD and Minix subpartitions.
23343 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23344 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23345 Properly handle concatenation.
23346 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23347 * grub-core/normal/completion.c (iterate_partition): Likewise.
23348 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23349 contain partition. All users updated.
23350 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23352 (grub_openbsdlabel_partition_map): Likewise.
23353 (bsdlabel_partition_map_iterate): Rename to ..
23354 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23355 (bsdlabel_partition_map_iterate): New function.
23356 (netopenbsdlabel_partition_map_iterate): Likewise.
23357 (netbsdlabel_partition_map_iterate): Likewise.
23358 (openbsdlabel_partition_map_iterate): Likewise.
23359 (GRUB_MOD_INIT): Register new partmaps.
23360 (GRUB_MOD_FINI): Unregister new partmaps.
23361 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23362 (grub_partition_msdos_iterate): ... this. All users updated.
23363 Don't support embedding other than in a minix partition.
23364 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23366 * include/grub/partition.h (grub_partition): New field msdostype.
23367 * util/grub-install.in: Handle openbsd and netbsd types being in
23370 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23372 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23374 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23375 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23376 (mdraid09): ... this.
23377 (mdraid1x): New module.
23378 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23379 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23381 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23383 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23386 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23388 * grub-core/commands/efi/lsefimmap.c: Correct header.
23391 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23393 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23394 as printf format strings; the translations might contain '%' which
23395 could cause a crash.
23397 * util/grub-fstest.c (argp_parser): Likewise.
23398 * util/grub-setup.c (argp_parser): Likewise.
23401 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23403 Use argp in grub-fstest.
23405 * util/grub-fstest.c: Don't include getopt.h.
23407 (root): New variable.
23408 (args_count): Likewise.
23410 (num_disks): Likewise.
23411 (images): Likewise.
23413 (debug_str): Likewise.
23415 (options): Transformed to argp.
23417 (main): Split argument parsing into ...
23418 (argp_parser): ... this. Changed to argp format.
23419 (argp): New variable.
23420 (main): Use argp_parse.
23422 2010-09-20 Tristan Gingold <gingold@free.fr>
23423 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23424 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23426 * grub-core/commands/efi/lsefimmap.c: New file.
23427 * grub-core/Makefile.core.def (lsefimmap): New module.
23428 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23430 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23432 Pause the execution (10s max) if any errors are displayed so the user
23433 has a chance to see them.
23435 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23436 (grub_print_error): Increment grub_err_printed_errors.
23437 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23438 execution if any errors were displayed.
23439 (show_menu): Remove old code for pause.
23440 * grub-core/normal/menu_entry.c (run): Likewise.
23441 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23443 (grub_normal_get_char_counter): Likewise.
23444 * include/grub/err.h (grub_err_printed_errors): New external variable.
23445 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23447 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23449 Support multiboot VBE info.
23451 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23452 Take VBE info into account.
23453 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23454 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23455 Call fill_vbe_info when appropriate.
23456 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23457 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23459 (grub_multiboot_get_mbi_size): Take new tags into account.
23460 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23461 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23462 Call fill_vbe_tag when appropriate.
23463 (grub_multiboot_make_mbi): Properly align tags.
23464 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23466 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23468 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23470 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23472 Suport manual terminal geometry specification.
23474 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23475 Save state in grub_ofconsole_terminfo_output.
23476 (grub_ofconsole_term): Use grub_terminfo_getwh.
23477 (grub_ofconsole_getwh): Removed.
23478 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23479 (grub_serial_term): Use grub_terminfo_getwh.
23480 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23481 (options): New struct.
23482 (OPTION_*): New enum.
23483 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23484 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23486 (grub_terminfo_getwh): New proto.
23487 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23489 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23491 Handle legacy "terminal" command.
23493 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23495 (legacy_commands): Add terminal and title.
23496 (grub_legacy_parse): Handle terminal. Simplify title handling.
23498 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23500 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23501 parameters overflow.
23503 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23505 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23508 * docs/grub.texi (Shell-like scripting): Document `!'.
23509 (Network): Simplify using new i386-pc-pxe format. Mention
23514 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23516 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23517 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23520 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23522 * grub-core/commands/efi/lsefisystab.c: Correct header.
23523 * grub-core/commands/efi/lssal.c: Likewise.
23524 * grub-core/commands/testload.c: Likewise.
23526 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23528 * util/grub-mkrescue.in: Add explicit root argument to --set to
23529 prevent the UUID being interpreted as an argument to --set (matches
23530 previous change to prepare_grub_to_access_device).
23532 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23534 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23535 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23536 the verbosity of later #ifs.
23537 (find_partition_start): Define this function on FreeBSD too.
23538 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23540 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23543 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23545 * util/grub-editenv.c: Use argp instead of getopt.
23547 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23549 * util/grub-setup.c: Use argp instead of getopt.
23551 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23553 Use gnulib-tool to create gnulib source files.
23555 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23556 grub-core/gnulib directories
23557 * .bzignore: Add **/.deps and autogenerated gnulib files
23558 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23559 of gnulib macros, add grub-core/gnulib/Makefile
23560 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23561 include m4 directory to aclocal.
23562 * Makefile.util.def: Remove direct compilation of gnulib source files
23563 and use the new grub-core/gnulib/libgnu.a.
23564 * build-aux/config.rpath: move config.rpath from top directory to
23566 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23568 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23569 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23570 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23572 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23575 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23577 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23578 grub-core/genmod.sh and grub-core/gensyminfo.sh
23580 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23582 Add a test for echo command options.
23584 * tests/grub_cmd_echo.in: New test.
23585 * Makefile.util.def: Rules for new test.
23587 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23589 Remove crc.mod and move crc command to hashsum.mod.
23590 Remove lib/crc.c - users updated to use gcrypt implementation.
23592 * grub-core/commands/crc.c: Removed.
23593 * grub-core/Makefile.core.def (crc): Module removed.
23594 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23595 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23596 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23597 * grub-core/lib/crc.c: Removed.
23598 * include/grub/lib/crc.h: Removed.
23599 * Makefile.util.def (crc): Remove lib/crc.c
23600 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23601 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23602 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23603 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23604 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23605 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23607 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23609 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23611 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23613 Split config.h for util and core.
23615 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23616 (ADDR32): Likewise.
23617 (DATA32): Likewise.
23618 (BSS_START_SYMBOL): Likewise.
23619 (END_SYMBOL): Likewise.
23620 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23621 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23622 * config.h.in: New file.
23623 * configure.ac: Use config-util.h as config define file.
23624 Rename MACHINE into GRUB_MACHINE. All users updated.
23625 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23627 (NESTED_FUNC_ATTR): Likewise.
23628 Substitue new variables.
23629 (COND_HAVE_ASM_USCORE): New conditional.
23630 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23631 (kernel_syms.lst): Use ASM_PREFIX.
23632 * grub-core/kern/emu/console.c: Include config-util.h.
23633 * grub-core/kern/emu/misc.c: Likewise.
23634 * grub-core/kern/emu/mm.c: Likewise.
23635 * include/grub/emu/misc.h: Likewise.
23636 * include/grub/libgcc.h: Likewise.
23638 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23640 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23642 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23643 Fix GRUB_TERM_KEY_* constants usage.
23644 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23646 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23648 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23650 * grub-core/bus/usb/uhci.c: Remove empty define.
23651 (grub_uhci_check_transfer): Add missing cast.
23652 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23654 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23656 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23658 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23660 * grub-core/Makefile.core.def (legacycfg): Add
23661 lib/i386/pc/vesa_modes_table.c on emu.
23663 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23665 Reduce number of temporary files generated by build system.
23667 * grub-core/gencmdlist.sh: Removed.
23668 * grub-core/genfslist.sh: Removed.
23669 * grub-core/genhandlerlist.sh: Removed.
23670 * grub-core/genmodsrc.sh: Removed.
23671 * grub-core/genpartmaplist.sh: Removed.
23672 * grub-core/genparttoollist.sh: Removed.
23673 * grub-core/gentermiinallist.sh: Removed.
23674 * grub-core/genvideolist.sh: Removed.
23676 * grub-core/genmod.sh.in: New file.
23677 * grub-core/gensyminfo.sh.in: New file.
23679 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23680 * conf/Makefile.extra-dist: Update with new files.
23681 * gentpl.py: Remove rules related to unnecessary temporary files.
23682 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23684 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23686 * grub-core/bus/usb/uhci.c: Remove empty #define.
23687 * grub-core/genmoddep.awk: Updated with new syminfo format.
23688 * util/bash-completion.d/Makefile.am: Add config.log to
23691 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23693 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23695 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23697 * util/grub-mkconfig.in: Check the config script for syntax errors
23700 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23701 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23703 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23705 * util/grub-install.in: Add EFI and IEEE1275 support.
23706 * util/i386/efi/grub-install.in: Removed.
23707 * util/ieee1275/grub-install.in: Likewise.
23709 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23711 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23712 (grub_cmd_cmosclean): Likewise.
23713 (GRUB_MOD_INIT): Register command cmosclean.
23714 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23715 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23717 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23718 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23719 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23721 Add keyboard layouts support.
23723 * Makefile.util.def (grub-mklayout): New file.
23724 (grub-kbdcomp): New script.
23725 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23726 Add keyboard_layouts.h.
23727 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23728 commands/boot.c on yeeloong.
23729 (keylayouts): New module.
23730 * grub-core/bus/usb/ohci.c
23731 * grub-core/bus/usb/uhci.c
23732 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23733 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23734 (attach_root_port): Likewise.
23735 (poll_nonroot_hub): Likewise.
23736 (grub_usb_poll_devices): Likewise.
23737 (detach_device): Close transfer.
23738 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23740 (grub_usb_bulk_setup_readwrite): Likewise.
23741 (grub_usb_bulk_finish_readwrite): Likewise.
23742 * grub-core/commands/keylayouts.c: New file.
23743 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23744 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23746 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23747 support scancode 2.
23748 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23749 * include/grub/keyboard_layouts.h: New file.
23750 * util/grub-mklayout.c: New file.
23751 * util/grub-kbdcomp.in: Likewise.
23753 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23755 Unify memory types.
23757 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23758 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23760 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23761 (grub_upper_mem): Likewise.
23762 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23763 * include/grub/memory.h (grub_memory_type_t): New enum.
23766 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23768 * grub-core/Makefile.core.def (lsapm): New module.
23769 * grub-core/commands/i386/pc/lsapm.c: New file.
23770 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23771 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23773 * include/grub/i386/pc/apm.h: New file.
23774 * include/multiboot.h (multiboot_apm_info): New struct.
23776 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23778 GRUB-legacy configuration file support.
23780 * Makefile.util.def (grub-menulst2cfg): New util.
23781 * docs/man/grub-menulst2cfg.h2m: New file.
23782 * grub-core/Makefile.core.def (legacycfg): New module.
23783 * grub-core/commands/legacycfg.c: New file.
23784 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23785 (grub_normal_add_menu_entry): ... this.
23786 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23787 (grub_normal_set_password): ...this.
23788 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23789 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23790 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23791 * grub-core/lib/legacy_parse.c: New file.
23792 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23793 * include/grub/i386/pc/vesa_modes_table.h: New file.
23794 * include/grub/legacy_parse.h: Likewise.
23795 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23796 * util/grub-menulst2cfg.c: New file.
23798 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23800 * grub-core/kern/emu/hostdisk.c
23801 (convert_system_partition_to_system_disk): Initialise node.
23803 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23805 * grub-core/kern/emu/hostdisk.c
23806 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23808 Reported and based on patch by: Modestas Vainius.
23810 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23812 Fix DM-RAID probing with recent versions of device-mapper udev
23815 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23816 canonicalise device paths under /dev/mapper/.
23817 (convert_system_partition_to_system_disk): Compare the
23818 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23819 path, since device nodes under /dev/mapper/ are often symlinks.
23821 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23823 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23825 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23827 * configure.ac: Avoid some annoying error messages if freetype-config
23828 program is not found.
23830 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23832 Support RAID on virtio devices, and others.
23834 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23836 [__MINGW32__] (grub_find_device): ... this.
23837 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23838 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23839 reasonable default if dir is NULL.
23840 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23842 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23843 (grub_guess_root_device): Update callers.
23844 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23846 * util/raid.c (grub_util_getdiskname): Remove.
23847 (grub_util_raid_getmembers): Use grub_find_device rather than
23848 grub_util_getdiskname.
23850 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23852 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23853 needing to be compiled with serial support.
23854 (ls): Indicate that multiple files are accepted.
23855 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23856 indicate that multiple files are accepted.
23858 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23860 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23861 libgrub_a_init.c, and util/bash-completion.d/grub.
23863 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23865 * util/grub-setup.c (setup): Fix incorrect container semantics.
23867 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23869 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23871 Reported by: J. Nick Terry
23873 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23875 Move embedding routines to partmap sources files.
23877 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23878 [GRUB_UTIL]: New variable.
23879 (gpt_partition_map_iterate): Set part.parent.
23880 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23881 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23882 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23884 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23885 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23886 (grub_partition_map) [GRUB_UTIL]: New field embed.
23887 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23888 (setup): Use ->embed.
23890 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23892 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23894 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23895 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23897 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23899 Add function to get completions from usage.
23901 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23902 completions from usage. Use LC_ALL=C to get options properly.
23904 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23906 * grub-core/gnulib/basename-lgpl.c: Imported.
23907 * grub-core/gnulib/basename.c: Likewise.
23908 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23909 * grub-core/gnulib/dirname.c: Likewise.
23910 * grub-core/gnulib/dirname.h: Likewise.
23911 * grub-core/gnulib/stripslash.c: Likewise.
23913 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23915 * grub-core/gnulib/error.c: Resynced.
23916 * grub-core/gnulib/getopt.c: Likewise.
23917 * grub-core/gnulib/getopt_int.h: Likewise.
23918 * grub-core/gnulib/regex.h: Likewise.
23919 * grub-core/gnulib/regex_internal.c: Likewise.
23920 * grub-core/gnulib/regex_internal.h: Likewise.
23922 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23924 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23925 CRC calculations and validity checks.
23926 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23929 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23931 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23933 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23935 Fix incorrect echo options handling.
23936 Reported by: Yves Blusseau.
23938 * include/grub/command.h (grub_command_flags_t): New flags
23939 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23940 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23941 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23943 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23945 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23947 (GRUB_COMMAND_FLAG_MENU): Likewise.
23948 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23949 (GRUB_COMMAND_FLAG_TITLE): Removed.
23950 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23951 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23952 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23953 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23954 (grub_command_flags_t): New enum. All users updated.
23956 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23958 Fix solaris compilation.
23960 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23961 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23962 (grub-emu-list): Likewise.
23964 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23966 Remove deprecated root command.
23968 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23971 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23973 * util/i386/pc/grub-setup.c: Merge this ...
23974 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23975 * util/grub-setup.c: ... into this.
23976 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23979 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23981 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23984 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23986 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23989 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23991 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23992 explicit root argument to set to prevent UUID to be interpreted as
23995 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23997 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23999 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
24001 Don't export grub_gate_a20.
24003 * grub-core/kern/i386/pc/init.c: Remove leftovers.
24004 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
24006 (grub_gate_a20): ... this. All users updated.
24007 * include/grub/i386/pc/init.h: Removed. All users updated.
24009 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
24011 Create euro.pf2 which supports most European languages.
24013 * Makefile.am (grubdata_DATA): Add euro.pf2.
24014 (euro.pf2): New target.
24015 (CLEANFILES): Add euro.pf2.
24017 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
24019 * configure.ac: Disable emu-usb by default to prevent inadvertent
24022 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24024 Disable usbserial on grub-emu since our libusb code isn't good enough
24027 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
24028 (usbserial_pl2303): Likewise.
24029 (usbserial_ftdi): Likewise.
24031 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24033 * include/grub/disk.h (grub_disk): Remove has_partitions.
24035 * disk/loopback.c (grub_loopback): Remove has_partitions.
24037 (options): Remove partitions. All users updated.
24038 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
24039 * util/i386/pc/grub-setup.c (setup): copy partition table only when
24040 actual partition table is found.
24042 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24044 Remove readability checks (too many false negatives).
24046 * util/grub-install.in: Remove readability checks.
24047 * util/grub-mkconfig.in: Likewise.
24048 * util/grub.d/10_hurd.in: Likewise.
24049 * util/grub.d/10_kfreebsd.in: Likewise.
24050 * util/grub.d/10_linux.in: Likewise.
24051 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
24054 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24056 Enable acpi shutdown on all ACPI platforms.
24058 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
24059 on coreboo, multiboot and EFI.
24060 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
24061 (grub_acpi_halt): Likewise.
24062 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
24063 (grub_cmd_halt): Don't call grub_acpi_halt directly.
24064 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
24065 * grub-core/lib/i386/halt.c (grub_halt)
24066 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
24068 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24070 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
24073 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24075 * grub-core/video/efi_gop.c: Fix over-80-chars line.
24076 * grub-core/video/efi_uga.c: Likewise.
24078 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24080 Filter devaliases and never open same device twice.
24082 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
24083 (last_ihandle): Likewise.
24084 (ofdisk_hash_ent): New member shortest.
24085 (ofdisk_hash_add): Add canonical path too.
24086 (scan): New function.
24087 (grub_ofdisk_iterate): Iterate over hashed entries.
24088 (compute_dev_path): Don't add :0.
24089 (grub_ofdisk_open): Don't really open the disk.
24090 (grub_ofdisk_close): Avoid closing unrelated disk.
24091 (grub_ofdisk_read): Implement reopen logic.
24092 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
24094 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
24097 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24101 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
24102 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
24103 right address. Add sparc64_ieee1275_ldflags.
24104 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
24105 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
24106 to grub_host_to_target_addr
24107 (load_image): Likewise.
24109 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24111 * grub-core/normal/completion.c (complete_file): Handle device
24113 Fix based on patch by Doug Nazar.
24115 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24117 grub-mknetdir script.
24119 * Makefile.util.def (grub-mknetdir): New module.
24120 * tests/util/grub-shell.in: Support boot=net
24121 * util/grub-mknetdir.in: New file.
24123 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24125 videoinfo on non-vbe.
24127 * grub-core/Makefile.core.def (vbeinfo): Removed.
24128 (vbetest): Removed.
24129 (videoinfo): New module.
24130 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
24131 * grub-core/commands/i386/pc/vbetest.c: Removed.
24132 * grub-core/commands/videoinfo.c: New file.
24133 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
24135 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
24137 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
24138 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
24139 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
24140 mode_number. New parameter mode. All users updated.
24141 (grub_video_gop_iterate): New function.
24142 (grub_video_efi_gop): New member iterate.
24143 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
24144 (grub_vbe_set_video_mode): Remove setting useless fields.
24145 (vbe2videoinfo): New function.
24146 (grub_video_vbe_iterate): Likewise.
24147 (grub_video_vbe_setup): Use vbe2videoinfo.
24148 (grub_video_vbe_print_adapter_specific_info): New function.
24149 (grub_video_vbe_adapter): New fields iterate and
24150 print_adapter_specific_info.
24151 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
24153 (grub_video_mode_info): New field mode_number.
24154 (grub_video_adapter): New fields iterate and
24155 print_adapter_specific_info.
24157 2010-09-13 Tristan Gingold <gingold@free.fr>
24158 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
24159 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24161 * grub-core/commands/efi/lsefisystab.c: New file.
24162 * grub-core/commands/efi/lssal.c: Likewise.
24163 * grub-core/Makefile.core.def (lsacpi): New module.
24164 (lsefisystab): Likewise.
24165 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
24166 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
24167 (grub_efi_sal_system_table): New struct.
24168 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
24169 (grub_efi_sal_system_table_memory_descriptor): Likewise.
24170 (grub_efi_sal_system_table_platform_features): Likewise.
24171 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
24172 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
24173 (grub_efi_sal_system_table_ap_wakeup): Likewise.
24174 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
24176 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24178 Support explicit user claim that a device is BIOS-visible.
24180 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
24181 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
24182 * grub-core/kern/emu/hostdisk.c
24183 (convert_system_partition_to_system_disk): Support mdX.
24184 (find_system_device): New parameter add. All users updated.
24185 (grub_util_biosdisk_is_present): New function.
24186 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
24189 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24191 Search hints support.
24193 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24196 2010-09-13 Yves Blusseau <blusseau@zetam.org>
24198 Bash completion script for util commands
24200 * Makefile.am: Add util/bash-completion.d directory
24201 * configure.ac: Likewise.
24202 * util/bash-completion.d/Makefile.am: New file.
24203 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24205 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24207 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24208 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24209 Reported by: Yves Blusseau.
24211 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24213 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24214 partition size and offset.
24216 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24218 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24220 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24222 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24224 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24226 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24227 (grub_xvasprintf): Likewise.
24229 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24231 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24233 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24235 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24236 args ending with NULL.
24238 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24240 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24243 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24245 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24247 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24249 Shutdown using ACPI.
24251 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24252 * grub-core/commands/acpihalt.c: New file.
24253 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24254 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24255 (grub_acpi_halt): New proto.
24256 (GRUB_ACPI_SLP_EN): New const.
24257 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24258 (GRUB_ACPI_OPCODE_*): New enum.
24259 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24261 2010-09-11 Tristan Gingold <gingold@free.fr>
24262 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24263 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24265 * commands/lsacpi.c: New file.
24266 * grub-core/Makefile.core.def (lsacpi): New module.
24267 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24268 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24269 (grub_acpi_madt_entry_header): New struct.
24270 (grub_acpi_madt): Likewise.
24271 (grub_acpi_madt_entry_interrupt_override): Likewise.
24272 (grub_acpi_madt_entry_sapic): Likewise.
24273 (grub_acpi_madt_entry_lsapic): Likewise.
24274 (grub_acpi_madt_entry_platform_int_source): Likewise.
24275 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24276 (PRIuGRUB_UINT32_T): Likewise.
24277 (PRIxGRUB_UINT64_T): Likewise.
24279 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24281 Implement loading palette on ieee1275_fb.
24283 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24284 (have_setcolors): Likewise.
24285 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24286 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24287 (grub_video_ieee1275_set_palette): Implement.
24289 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24290 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24292 * util/grub-install.in (grub_partition): New variable.
24293 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24294 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24295 Fixes a bug reported by Yves Blusseau.
24297 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24301 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24302 =grub_cpu_flush_cache on all mips and not only yeeloong.
24303 * configure.ac (COND_mips): New conditional.
24304 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24306 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24307 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24308 [GRUB_LINKER_HAVE_INIT]: New function.
24309 (grub_emu_post_init): Likewise.
24310 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24311 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24312 * include/grub/cache.h (_mips): Include mips/cache.h.
24313 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24314 LVM and RAID prototypes.
24315 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24316 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24319 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24321 * util/grub-install.in: Don't try to verify core.img until after
24322 running grub-mkimage to create it.
24324 2010-09-10 Robert Millan <rmh@gnu.org>
24326 * util/grub.d/10_hurd.in: Add misc readability checks.
24327 * util/grub.d/10_kfreebsd.in: Likewise.
24328 * util/grub.d/10_linux.in: Likewise.
24330 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24332 * util/grub-install.in: ${imgext} won't be defined here until the
24333 install branch is merged. For the meantime, only verify core.img on
24334 i386-pc and sparc64-ieee1275 platforms.
24336 2010-09-10 Robert Millan <rmh@gnu.org>
24338 Solaris support in grub_find_zpool_from_dir(). Thanks
24339 Seth Goldberg for referring to getextmntent() facility.
24341 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24343 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24345 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24346 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24347 method for finding zpool name.
24349 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24351 grub-fstest needs the host and hostfs modules while other utilities
24352 actively require those modules to be absent, so grub-fstest needs
24353 its own initialisation and finalisation code.
24355 * Makefile.am (grub_fstest.pp): New target.
24356 (grub_fstest_init.lst): Likewise.
24357 (grub_fstest_init.c): Likewise.
24358 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24360 2010-09-10 Robert Millan <rmh@gnu.org>
24362 * configure.ac: Check for `struct statfs.f_fstypename' and
24363 `struct statfs.f_mntfromname'.
24365 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24366 kFreeBSD-specific code.
24368 2010-09-10 Robert Millan <rmh@gnu.org>
24370 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24371 on ZFS. Now non-main filesystems are supported as / too.
24373 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24375 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24376 and grub-core/disk/host.c to ...
24377 (grub-fstest): ... here. Having the host disk implementation
24378 present confuses grub-probe and other utility programs.
24380 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24381 when writing to a file, not when writing to stdout.
24383 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24385 * tests/partmap_test.in: New test for partitions.
24386 * Makefile.util.def: Rules for new test.
24388 2010-09-09 Robert Millan <rmh@gnu.org>
24390 * util/grub-probe.c (probe): Fix a pair of unhandled error
24393 2010-09-09 Robert Millan <rmh@gnu.org>
24395 Basic Btrfs support (detection and UUID).
24397 * grub-core/fs/btrfs.c: New file.
24398 * Makefile.util.def (library): Register btrfs.c.
24399 * grub-core/Makefile.core.def: Likewise.
24401 2010-09-08 Robert Millan <rmh@gnu.org>
24403 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24404 with (optional) parameters to specify device and relative path.
24405 * util/grub-install.in: Use is_path_readable_by_grub() to
24406 verify readability of a few critical files.
24407 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24408 verify readability of grub.cfg.new.
24410 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24412 Split minix.mod into minix.mod and minix2.mod.
24414 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24415 * grub-core/Makefile.core.def (minix2): New module.
24416 * grub-core/fs/minix.c: Use definitions instead of runtime version
24418 * grub-core/fs/minix2.c: New file.
24420 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24422 Add new --boot-directory option to replace --root-directory
24424 * util/grub-install.in: Add new --boot-directory option
24425 * util/grub-reboot.in: Likewise.
24426 * util/grub-set-default.in: Likewise.
24428 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24430 * util/grub-mkconfig.in: Use new variable.
24432 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24434 * configure.ac: Define some useful variables.
24436 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24438 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24439 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24440 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24441 Use terminfo and don't use cursor-on/cursor-off unless it's known
24443 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24444 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24446 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24448 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24449 starts with "(,", fill the drive containing the loaded image in
24450 between those two characters, but expect that a full partition
24451 specification including partition map names will follow.
24453 2010-09-08 Robert Millan <rmh@gnu.org>
24455 * configure.ac: Remove `--enable-grub-fstest' option.
24456 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24458 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24459 `grub-fstest' instead of `grub-probe' for readability verification.
24460 * util/grub-probe.c (probe): Remove readability verification kludge.
24462 2010-09-08 Robert Millan <rmh@gnu.org>
24464 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24465 initializing `GRUB_FS'.
24467 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24469 Not command (!) support to GRUB script.
24471 * tests/grub_script_not.in: New test.
24472 * Makefile.util.def: Rules for new test.
24474 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24475 ! command as a special case.
24476 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24478 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24480 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24483 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24485 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24487 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24489 * docs/grub.texi (Shell-like scripting): Documentation for break,
24490 continue, shift and return commands.
24492 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24494 Rename CD-ROM to cd on BIOS.
24496 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24498 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24500 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24502 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24503 * util/grub-probe.c (main): Likewise.
24504 * util/i386/pc/grub-setup.c (main): Likewise.
24505 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24506 Reported and debugged by: alexxy
24508 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24510 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24513 2010-09-05 Jo Shields <directhex@apebox.org>
24515 * util/grub.d/30_os-prober.in: Add missing classes.
24517 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24519 * docs/grub.texi (Theme file format): Document new position format.
24521 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24523 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24524 a table. Use @code instead of @verbatim.
24526 2010-09-05 Colin D Bennett <colin@gibibit.com>
24528 Gfxmenu documentation.
24530 * docs/grub.texi (Theme file format): New chapter.
24532 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24534 * grub-core/Makefile.core.def (xzio): New module.
24535 * grub-core/io/xzio.c: New file.
24536 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24537 * grub-core/lib/xzembed/xz_config.h: Likewise.
24538 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24539 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24540 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24541 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24542 * grub-core/lib/xzembed/xz_private.h: Likewise.
24543 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24544 * include/grub/file.h (grub_file_filter_id): New compression filter
24545 GRUB_FILE_FILTER_XZIO.
24547 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24549 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24550 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24553 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24555 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24556 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24558 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24560 Uncompressed checksum support.
24562 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24563 (check_list): New parameter uncompress.
24564 (grub_cmd_hashsum): Handle --uncompress.
24566 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24568 Reintroduce testload.
24570 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24572 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24573 (GRUB_MOD_INIT): New function.
24574 (GRUB_MOD_FINI): Likewise.
24575 * grub-core/Makefile.core.def (testload): New module.
24577 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24579 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24580 (uint8_t): New type.
24581 (uint16_t): Likewise.
24582 (uint32_t): Likewise.
24583 (uint64_t): Likewise.
24585 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24587 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24589 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24591 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24593 (grub_gzfile_open): Removed. All users updated.
24594 (GRUB_MOD_INIT): New function.
24595 (GRUB_MOD_FINI): Likewise.
24596 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24597 (grub_file_filters_enabled): Likewise.
24598 (grub_file_open): Handle filters.
24599 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24600 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24601 * include/grub/file.h (grub_file_filter_id_t): New type.
24602 (grub_file_filter_t): Likewise.
24603 (grub_file_filters_all): New extern variable.
24604 (grub_file_filters_enabled): Likewise.
24605 (grub_file_filter_register): New inline function.
24606 (grub_file_filter_unregister): Likewise.
24607 (grub_file_filter_disable): Likewise.
24608 (grub_file_filter_disable_compression): Likewise.
24609 * include/grub/gzio.h: Removed.
24611 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24613 Filename expansion support for wildcards in GRUB script.
24615 * tests/grub_script_expansion.in: New test.
24616 * Makefile.util.def: Rule for new test.
24618 * grub-core/commands/wildcard.c: New file, implements filename
24619 expansion support for GRUB script.
24620 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24621 * grub-core/script/argv.c: Cosmetic changes.
24622 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24623 Refactored to perform wildcard expansion on arguments.
24624 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24627 * tests/util/grub-shell.in: Fix quoting for read input.
24629 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24631 Support for updating environment variables with matched substrings
24634 * tests/grub_cmd_regexp.in: New test.
24635 * Makefile.util.def: Rule for new test.
24637 * grub-core/commands/regexp.c: New option -s to update environment
24638 variables with regexp matches.
24640 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24642 * include/grub/file.h (grub_file): New member not_easly_seekable.
24643 (grub_file_seekable): New inline function.
24644 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24646 (grub_gzio_open): Set not_easly_seekable.
24647 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24648 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24650 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24652 Support for options to appear multiple times on cmdline.
24654 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24655 * grub-core/commands/extcmd.c: Support for repeatable option.
24656 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24657 repeatable option support.
24659 Refactor menuentry into a regular command.
24661 * grub-core/commands/menuentry.c: New file, menuentry command
24663 * grub-core/Makefile.core.def: Rule update for normal.mod.
24664 * grub-core/normal/main.c: Moved menuentry creation to
24665 grub-core/commands/menuentry.c.
24666 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24667 (grub_menu_execute_entry_real): Removed.
24668 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24670 (grub_script_execute_menuentry): Removed.
24671 * grub-core/script/parser.y (menuentry): Removed.
24672 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24673 * grub-core/script/yylex.l (menuentry): Removed.
24674 * include/grub/menu.h (grub_menu_init): New prototype.
24675 (grub_menu_fini): New prototype.
24676 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24677 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24678 (grub_script_execute_sourcecode): New prototype.
24680 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24682 "return" command for GRUB script functions.
24684 * tests/grub_script_return.in: New test.
24685 * Makefile.util.def: Rules for new test.
24687 * grub-core/script/execute.c (grub_script_return): New function.
24688 * grub-core/script/main.c: Register/unregister return commaond.
24689 * include/grub/script_sh.h (grub_script_return): New prototype.
24691 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24693 "setparams" command to update positional parameters.
24695 * tests/grub_script_setparams.in: New test.
24696 * Makefile.util.def: Rules for new test.
24698 * grub-core/script/argv.c (grub_script_argv_make): New function.
24699 * grub-core/script/execute.c (replace_scope): New function.
24700 (grub_script_setparams): New function.
24701 * grub-core/script/lexer.c: Remove unused variables.
24702 * grub-core/script/main.c: Register/unregister setparams command.
24703 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24704 (grub_script_setparams): New prototype.
24706 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24708 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24711 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24713 Support for passing block of commands as an argument to extcmds.
24715 * Makefile.util.def: Rules for new test.
24716 * tests/grub_script_blockarg.in: New test.
24717 * grub-core/tests/test_blockarg.c: New file, block argument
24718 command used in the test.
24720 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24721 (grub_register_extcmd_prio): New function prototype.
24722 (grub_extcmd_dispatcher): New function prototype.
24723 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24725 * include/grub/script_sh.h (struct grub_script): New members
24726 `children', `next_siblings' and `refcnt' for block arguments and
24727 reference counting.
24728 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24729 (grub_script_arg): New member `script' for block argument.
24730 (grub_script_argv): New member `script' for block argument.
24731 (grub_parser_param): New member `scripts' for block argument.
24732 (grub_script_mem_free): New extern function prototype.
24733 (grub_script_ref): New function prototype.
24734 (grub_script_unref): New function prototype.
24736 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24737 extcmd form to support block arguments.
24738 * grub-core/script/argv.c: Block arguments support.
24739 * grub-core/script/execute.c: Likewise.
24740 * grub-core/script/lexer.c: Likewise.
24741 * grub-core/script/main.c: Likewise.
24742 * grub-core/script/script.c: Likewise.
24743 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24746 * grub-core/commands/acpi.c: Update extcmd implementations with
24747 grub_extcmd_context_t.
24748 * grub-core/commands/cat.c: Likewise.
24749 * grub-core/commands/echo.c: Likewise.
24750 * grub-core/commands/extcmd.c: Likewise.
24751 * grub-core/commands/hashsum.c: Likewise.
24752 * grub-core/commands/hdparm.c: Likewise.
24753 * grub-core/commands/help.c: Likewise.
24754 * grub-core/commands/hexdump.c: Likewise.
24755 * grub-core/commands/i386/cpuid.c: Likewise.
24756 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24757 * grub-core/commands/i386/pc/halt.c: Likewise.
24758 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24759 * grub-core/commands/iorw.c: Likewise.
24760 * grub-core/commands/keystatus.c: Likewise.
24761 * grub-core/commands/loadenv.c: Likewise.
24762 * grub-core/commands/ls.c: Likewise.
24763 * grub-core/commands/lspci.c: Likewise.
24764 * grub-core/commands/memrw.c: Likewise.
24765 * grub-core/commands/probe.c: Likewise.
24766 * grub-core/commands/search_wrap.c: Likewise.
24767 * grub-core/commands/setpci.c: Likewise.
24768 * grub-core/commands/sleep.c: Likewise.
24769 * grub-core/disk/loopback.c: Likewise.
24770 * grub-core/hello/hello.c: Likewise.
24771 * grub-core/loader/i386/bsd.c: Likewise.
24772 * grub-core/loader/xnu.c: Likewise.
24773 * grub-core/term/gfxterm.c: Likewise.
24774 * grub-core/term/serial.c: Likewise.
24775 * grub-core/tests/lib/functional_test.c: Likewise.
24777 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24779 Multi-line quoted strings support.
24781 * grub-core/script/lexer.c (append_newline): Removed.
24782 (grub_script_lexer_yywrap): Refactored.
24783 (grub_script_lexer_init): Refactored.
24784 * grub-core/script/yylex.l (yywrap): New function.
24785 (grub_lexer_resplit): New function.
24786 (grub_lexer_unput): New function.
24787 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24789 * tests/grub_script_echo1.in: Added few more testcases.
24791 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24793 * grub-core/kern/misc.c: Don't add abort alias in utils.
24794 Reported by: echoline.
24796 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24798 Add missing files into "make dist" tarball for other platforms.
24800 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24801 * conf/Makefile.common (dist_noinst_DATA): New variable.
24802 * conf/Makefile.extra-dist: Added missing make dist files.
24803 * grub-core/Makefile.core.def: Likewise.
24805 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24807 Compress grub_prefix.
24809 * grub-core/boot/i386/pc/lnxboot.S: Use
24810 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24811 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24812 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24813 GRUB_MACHINE_PREFIX_END. All users updated.
24814 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24815 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24817 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24818 * util/grub-mkimage.c (image_target_desc): Change data_end to
24819 prefix_end. All users updated.
24821 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24823 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24825 (grub_openbsd_boot): Likewise.
24826 (grub_netbsd_boot): Likewise.
24827 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24828 (grub_xnu_boot): Likewise.
24830 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24832 * configure.ac: Clean LIBS variable after tests.
24834 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24836 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24838 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24840 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24841 echo if libdevmapper will be used.
24843 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24845 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24846 constant for the same file.
24848 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24850 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24852 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24854 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24857 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24859 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24860 required by the boot protocol.
24862 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24863 ebp and edi members.
24864 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24865 state.ebp and state.edi.
24866 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24867 %ebp and %edi according to grub_relocator32_ebp and
24868 grub_relocator32_edi respectively.
24869 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24872 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24874 Add i386-pc-pxe image target.
24876 * util/grub-mkimage.c (image_target_desc): New enum value
24878 (image_targets): New target i386-pc-pxe.
24879 (generate_image): Handle i386-pc-pxe image.
24881 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24885 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24886 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24888 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24889 (grub_pxe_pxenv): Correct type.
24891 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24893 * NEWS: Document most of the important changes since 1.98.
24895 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24897 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24898 generated manual page) a little.
24900 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24902 * docs/grub.texi: Add myself as an author.
24904 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24906 * Makefile.util.def (libgrub.a): Add missing sunpc.
24907 Reported by: Seth Goldberg.
24909 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24911 Interrupt wrapping and code simplifications.
24913 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24914 x86_noieee1275 which are functionaly equivalent in this case.
24915 (grub-install): Make source on each platform explicit. Enable on
24917 * gentpl.py (x86_efi_pc): Removed group.
24918 (x86_noefi): Likewise.
24919 (i386_noefi): Likewise.
24920 (x86_noieee1275): Likewise.
24921 (i386_noieee1275): Likewise.
24922 (i386_noefi_noieee1275): Likewise.
24923 (i386_pc_qemu_coreboot): Likewise.
24924 (i386_coreboot_multiboot): Likewise.
24925 (i386_pc_coreboot_multiboot_qemu): Likewise.
24926 (x86_noefi_mips): Likewise.
24927 (noieee1275): Likewise.
24928 (ieee1275_mips): Likewise.
24929 (noemu_noieee1275): Likewise.
24932 (videoinkernel): Likewise.
24933 (videomodules): Likewise.
24934 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24935 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24936 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24937 include/grub/loader.h, include/grub/msdos_partition.h,
24938 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24939 include/grub/machine/console.h, include/grub/machine/vga.h,
24940 include/grub/machine/vbe.h, include/grub/machine/init.h,
24941 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24942 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24943 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24944 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24945 * grub-core/Makefile.core.def (kernel): Explicit the source for
24946 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24947 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24948 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24949 Use videoinkernel tag.
24950 (usb): Enable on all usb.
24951 (usbserial_common): Likewise.
24952 (usbserial_pl2303): Likewise.
24953 (usbserial_ftdi): Likewise.
24954 (uhci): Enable on all x86.
24955 (ohci): Enable on all pci.
24956 (cmostest): Enable on all CMOS.
24957 (acpi): Include commands/acpi.c on all platforms.
24958 (halt): Add relevant lib/*/halt.c.
24959 (hdparm): Enable on all pci.
24961 (usbtest): Enable on all usb.
24962 (ata): Enable on all pci.
24963 (ata_pthru): Likewise.
24964 (usbms): Enable on all usb.
24965 (usb_keyboard): Likewise.
24966 (font): Use tag videomodules.
24968 (datetime): Use tag cmos. Enable on all noemu.
24969 (mmap): Use tags common and x86.
24970 (gfxterm): Use tag videomodules.
24971 (bitmap): Likewise.
24972 (bitmap_scale): Likewise.
24973 (video_fb): Likewise.
24975 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24976 adjust padding accordingly. All users updated.
24977 (grub_ohci_transaction): Fix bad format specification.
24978 (GRUB_MOD_INIT): Add asserts for struct size.
24979 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24980 (grub_alloc_td): Likewise.
24981 (grub_free_queue): Likewise.
24982 (grub_uhci_transfer): Likewise.
24983 (grub_uhci_transaction): Fix bad format specification.
24984 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24985 (grub_usb_bulk_readwrite): Likewise.
24986 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24987 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24989 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24991 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24992 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24993 Transformed into C.
24994 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24995 Moved from here ...
24996 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24997 ... here. Transformed into C. Made static.
24998 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24999 Moved from here ...
25000 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
25001 ... here. Transformed into C. Made static.
25002 * grub-core/kern/i386/pc/startup.S
25003 (grub_biosdisk_check_int13_extensions): Moved from here ...
25004 * grub-core/disk/i386/pc/biosdisk.c
25005 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
25007 * grub-core/kern/i386/pc/startup.S
25008 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
25009 * grub-core/disk/i386/pc/biosdisk.c
25010 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
25011 Transformed into C. Made static.
25012 * grub-core/kern/i386/pc/startup.S
25013 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
25014 * grub-core/disk/i386/pc/biosdisk.c
25015 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
25016 Transformed into C. Made static.
25017 * grub-core/kern/i386/pc/startup.S
25018 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
25019 * grub-core/disk/i386/pc/biosdisk.c
25020 (grub_biosdisk_get_diskinfo_standard): ... here.
25021 Transformed into C. Made static.
25022 * grub-core/kern/i386/pc/startup.S
25023 (grub_biosdisk_get_num_floppies): Moved from here ...
25024 * grub-core/disk/i386/pc/biosdisk.c
25025 (grub_biosdisk_get_num_floppies): ... here.
25026 Transformed into C. Made static.
25027 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
25029 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
25030 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
25031 Transformed into C. Made static.
25032 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
25033 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
25034 Transformed into C. Made static.
25035 * grub-core/kern/i386/ieee1275/init.c: Removed.
25036 * grub-core/kern/i386/misc.S: Likewise.
25037 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
25038 Splitted from here ...
25039 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
25040 Transformed into C. Made static. All users updated.
25041 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
25042 Transformed into C. Made static. All users updated.
25043 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
25045 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
25046 Transformed into C. Made static. All users updated.
25047 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
25049 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
25050 Transformed into C. Made static. All users updated.
25051 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
25052 Removed (replaced by C version).
25053 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
25055 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
25056 Transformed into C. Made static.
25057 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
25059 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
25060 ... here. Transformed into C.
25061 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
25063 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
25064 ... here. Transformed into C.
25065 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
25067 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
25068 ... here. Transformed into C. Made static.
25069 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
25071 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
25072 ... here. Transformed into C.
25073 * grub-core/kern/i386/pc/startup.S
25074 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
25075 * grub-core/video/i386/pc/vbe.c
25076 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
25077 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
25079 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
25080 ... here. Transformed into C.
25081 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
25083 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
25084 ... here. Transformed into C.
25085 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
25087 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
25088 ... here. Transformed into C.
25089 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
25091 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
25092 ... here. Transformed into C.
25093 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
25095 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
25096 ... here. Transformed into C. Made static.
25097 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
25099 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
25100 ... here. Transformed into C. Made static.
25101 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
25103 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
25104 ... here. Transformed into C. Made static.
25105 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
25106 pxe_rm_entry as third argument.
25107 (grub_bios_interrupt): New function.
25108 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
25109 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
25110 of calling grub_stop.
25111 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
25112 * grub-core/lib/efi/halt.c (grub_halt): ...here.
25113 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
25114 * grub-core/lib/emu/halt.c (grub_halt): ... here.
25115 * grub-core/lib/i386/halt.c: Moved from here ...
25116 * grub-core/lib/i386/halt.c: ... here.
25117 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
25118 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
25119 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
25121 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
25122 * include/grub/i386/coreboot/init.h: Removed.
25123 * include/grub/i386/multiboot/init.h: Likewise.
25124 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
25125 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
25126 * include/grub/i386/pc/int.h: New file.
25127 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
25128 (grub_pxe_scan): Removed.
25129 (grub_pxe_call): Update prototype.
25130 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
25132 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
25133 * include/grub/i386/qemu/init.h: Removed.
25134 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
25136 (grub_halt): Likewise.
25137 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
25138 (grub_reboot): Likewise.
25139 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
25140 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
25141 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
25143 2010-08-30 Robert Millan <rmh@gnu.org>
25145 * NEWS: Document addition of ZFS support in `grub-install' and
25148 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
25150 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
25153 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25155 Remove leftover embedding of font objects.
25157 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25158 * util/grub-install.in (font): Removed.
25159 * util/grub-mkimage.c (generate_image): Remove font support. All users
25162 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25164 Remove leftover embedding of font objects.
25166 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25167 * util/grub-install.in (font): Removed.
25168 * util/grub-mkimage.c (generate_image): Remove font support. All users
25171 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25173 * docs/grub.texi (Network): Fix reference to pxe_blksize.
25174 Reported by: Ian Turner
25176 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25178 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
25179 timeout to avoid indefinite boot stalling.
25181 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25183 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
25184 (grub_env_write_color_highlight): Likewise.
25186 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25188 * grub-core/normal/term.c (print_more): Return to normal and not
25189 to standard state after printing "---MORE---".
25191 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25193 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25194 Mask out the bit 0x80 since it has other meaning that specifiing color.
25196 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25198 New relocator. Allows for more kernel support and more straightforward
25201 * Makefile.am (BOOTTARGET): New variable.
25202 (QEMU32): Likewise.
25203 (linux.init.x86_64): New target.
25204 (linux.init.i386): Likewise.
25205 (multiboot.elf): Likewise.
25206 (kfreebsd.elf): Likewise.
25207 (kfreebsd.aout): Likewise.
25208 (pc-chainloader.elf): Likewise.
25209 (pc-chainloader.bin): Likewise.
25210 (ntldr.elf): Likewise.
25211 (ntldr.bin): Likewise.
25212 (multiboot2.elf): Likewise.
25213 (kfreebsd.init.x86_64): Likewise.
25214 (kfreebsd.init.i386): Likewise.
25215 (knetbsd.init.i386): Likewise.
25216 (kopenbsd.init.i386): Likewise.
25217 (knetbsd.init.x86_64): Likewise.
25218 (kopenbsd.init.x86_64): Likewise.
25219 (linux-initramfs.i386): Likewise.
25220 (linux-initramfs.x86_64): Likewise.
25221 (kfreebsd-mfsroot.i386.img): Likewise.
25222 (knetbsd.image.i386): Likewise.
25223 (kopenbsd.image.i386): Likewise.
25224 (kopenbsd.image.x86_64): Likewise.
25225 (knetbsd.miniroot-image.i386.img): Likewise.
25226 (kfreebsd-mfsroot.x86_64.img): Likewise.
25227 (knetbsd.image.x86_64): Likewise.
25228 (knetbsd.miniroot-image.x86_64.img): Likewise.
25229 (kfreebsd-mfsroot.i386.gz): Likewise.
25230 (bootcheck-kfreebsd-i386): Likewise.
25231 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25232 (bootcheck-kfreebsd-x86_64): Likewise.
25233 (knetbsd.miniroot-image.i386.gz): Likewise.
25234 (bootcheck-knetbsd-i386): Likewise.
25235 (bootcheck-kopenbsd-i386): Likewise.
25236 (bootcheck-kopenbsd-x86_64): Likewise.
25237 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25238 (bootcheck-knetbsd-x86_64): Likewise.
25239 (bootcheck-linux-i386): Likewise.
25240 (bootcheck-linux-x86_64): Likewise.
25241 (bootcheck-linux16-i386): Likewise.
25242 (bootcheck-linux16-x86_64): Likewise.
25243 (bootcheck-multiboot): Likewise.
25244 (bootcheck-multiboot2): Likewise.
25245 (bootcheck-kfreebsd-aout): Likewise.
25246 (bootcheck-pc-chainloader): Likewise.
25247 (bootcheck-ntldr): Likewise.
25248 (CLEANFILES): Add new targets.
25249 (BOOTCHECKS): New variable.
25250 (.PHONY): Add bootchecks.
25251 (SUCCESSFUL_BOOT_STRING): New variable.
25252 (BOOTCHECK_TIMEOUT): Likewise.
25253 (bootcheck): New target
25254 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25255 * configure.ac: Correct efiemu excuse.
25256 * docs/grub.texi (Supported kernels): New chapter.
25257 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25258 include/grub/mm_private.h. Simplify inclusion of
25259 include/grub/boot.h, include/grub/loader.h
25260 and include/grub/msdos_partition.h
25261 (KERNEL_HEADER_FILES) [i386_coreboot]:
25262 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25263 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25264 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25265 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25266 include/grub/machine/loader.h.
25267 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25268 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25270 (pci.mod): Enable on i386-multiboot.
25271 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25272 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25274 (relocator.mod): Rewritten.
25275 (aout.mod): Enable on all x86.
25276 (bsd.mod): Likewise.
25277 (ntldr.mod): New module.
25278 (linux.mod): Use loader/i386/linux.c on all x86.
25279 (xnu.mod): Enable on all x86.
25280 (vga_text.mod): disable on EFI and QEMU.
25281 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25282 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25283 * grub-core/efiemu/loadcore.c: Likewise.
25284 * grub-core/efiemu/main.c: Likewise.
25285 (grub_efiemu_exit_boot_services): Removed.
25286 (grub_efiemu_finish_boot_services): Likewise.
25287 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25289 * grub-core/efiemu/i386/nocfgtables.c: New file.
25290 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25291 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25292 (grub_efi_finish_boot_services): Moved from here ...
25293 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25294 Fille finish memory map and related data.
25295 (finish_mmap_buf): New variable.
25296 (grub_efi_uintn_t finish_mmap_size): Likewise.
25297 (grub_efi_uintn_t finish_key): Likewise.
25298 (grub_efi_uintn_t finish_desc_size): Likewise.
25299 (grub_efi_uint32_t finish_desc_version): Likewise.
25300 (grub_efi_is_finished): Likewise.
25301 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25303 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25304 (grub_elf64_phdr_iterate): Likewise.
25305 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25306 (grub_os_area_size): Likewise.
25307 (grub_machine_init): Don't reserve os area.
25308 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25309 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25310 * grub-core/kern/i386/loader.S: Removed.
25311 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25312 (grub_os_area_size): Likewise.
25313 (grub_machine_init): Don't reserve os area.
25314 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25315 Don't call grub_dl_unload_all.
25316 Don't include loader.S.
25317 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25318 Declare the memory after _end as available.
25319 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25320 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25321 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25322 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25323 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25324 * include/grub/mm_private.h (grub_mm_header): ... here.
25325 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25326 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25327 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25328 (grub_mm_region): ..here. Removed addr. Added pre_size.
25330 * grub-core/kern/mm.c (base): Renamed to ...
25331 (grub_mm_base): ... this. Made global.
25332 (grub_real_malloc): Alloc from end of region.
25333 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25334 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25335 * grub-core/kern/powerpc/cache_flush.S: ... here.
25336 * grub-core/lib/efi/relocator.c: New file.
25337 * grub-core/lib/i386/relocator.c: Rewritten.
25338 * grub-core/lib/i386/relocator16.S: New file.
25339 * grub-core/lib/i386/relocator32.S: Likewise.
25340 * grub-core/lib/i386/relocator64.S: Likewise.
25341 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25342 * grub-core/lib/i386/relocator_common.S: New file.
25343 * grub-core/lib/ieee1275/relocator.c: Likewise.
25344 * grub-core/lib/mips/relocator.c: Rewritten.
25345 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25346 stylistic adjustments.
25347 * grub-core/lib/powerpc/relocator.c: New file.
25348 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25349 * grub-core/lib/relocator.c: Rewritten.
25350 * grub-core/lib/x86_64/relocator_asm.S: New file.
25351 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25352 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25353 (bsd_tag): New struct.
25354 (tags): New variable.
25355 (tags_last): Likewise.
25356 (netbsd_module): New struct.
25357 (netbsd_mods): New variable.
25358 (netbsd_mods_last): Likewise.
25359 (openbsd_opts): New parameter "serial".
25360 (OPENBSD_SERIAL_ARG): New definition.
25361 (netbsd_opts): New parameter "serial".
25362 (NETBSD_SERIAL_ARG): New definition.
25363 (grub_freebsd_add_meta): Reorganised into ...
25364 (grub_bsd_add_meta): ...this. All users updated.
25365 (grub_freebsd_add_mmap): Reorganised into ...
25366 (generate_e820_mmap): ...this...
25367 (grub_bsd_add_mmap): ...and this. All users updated.
25368 (grub_freebsd_list_modules): Use tags.
25369 (grub_netbsd_add_meta_module): New function.
25370 (grub_netbsd_list_modules): Likewise.
25371 (grub_freebsd_boot): Use relocator and finish EFI.
25372 (grub_openbsd_boot): Likewise.
25373 (grub_netbsd_setup_video): New function.
25374 (grub_netbsd_add_modules): Likewise.
25375 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25377 (grub_bsd_unload): Unload tags.
25378 (grub_bsd_load_aout): Use relocator.
25379 (grub_bsd_elf32_size_hook): New function.
25380 (grub_bsd_elf32_hook): Use relocator.
25381 (grub_bsd_elf64_size_hook): New function.
25382 (grub_bsd_elf64_hook): Use relocator.
25383 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25384 (grub_bsd_load): Zero-out openbsd_ramdisk.
25385 (grub_bsd_load): Use relocator.
25386 (grub_cmd_openbsd): Support serial.
25387 (grub_cmd_netbsd): Support modules.
25388 (grub_cmd_freebsd_module): Use relocator.
25389 (grub_netbsd_module_load): New function.
25390 (grub_cmd_netbsd_module): Likewise.
25391 (grub_cmd_openbsd_ramdisk): Likewise.
25392 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25394 (GRUB_MOD_FINI): Unregister new commands.
25395 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25396 (grub_freebsd_load_elfmodule_obj): Use relocator.
25397 (grub_freebsd_load_elfmodule): Likewise.
25398 (grub_freebsd_load_elf_meta): Likewise.
25399 (grub_netbsd_load_elf_meta): New function.
25400 (grub_openbsd_find_ramdisk): Likewise.
25401 * grub-core/loader/i386/bsd_helper.S: Removed.
25402 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25403 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25404 * grub-core/loader/i386/efi/linux.c: Likewise.
25405 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25406 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25407 (DEFAULT_VIDEO_MODE): Likewise.
25408 (real_mode_target): New variable.
25409 (prot_mode_target): Likewise.
25410 (initrd_mem_target): Likewise.
25411 (relocator): Likewise.
25412 (efi_mmap_buf): Likewise.
25413 (efi_mmap_size): Likewise.
25414 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25415 (free_pages): Use relocator.
25416 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25417 (grub_linux_setup_video): Return error.
25418 (grub_linux_trampoline_start): Removed.
25419 (grub_linux_trampoline_end): Likewise.
25420 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25421 andd video parameters depending on firmware.
25422 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25423 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25424 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25425 (grub_cmd_initrd): Use relocator.
25426 * grub-core/loader/i386/linux_trampoline.S: Removed.
25427 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25428 (elf_sec_entsize): Likewise.
25429 (elf_sec_shstrndx): Likewise.
25430 (elf_sections): Likewise.
25431 (grub_multiboot_load): Use relocator.
25432 (grub_multiboot_get_mbi_size): Account for sections.
25433 (grub_multiboot_make_mbi): Use relocator and support sections.
25434 (grub_multiboot_add_elfsyms): New function.
25435 (grub_multiboot_free_mbi): Free sections.
25436 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25437 (grub_linux_real_target): Likewise.
25438 (grub_linux_real_chunk): Likewise.
25439 (grub_linux16_prot_size): Likewise.
25440 (grub_linux16_boot): Use relocator.
25441 (grub_linux_unload): Unload relocator.
25442 (grub_cmd_linux): Use relocator.
25443 (grub_cmd_initrd): Likewise.
25444 * grub-core/loader/i386/pc/ntldr.c: New file.
25445 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25446 Don't try to guess CPU frequency.
25447 (grub_xnu_set_video): Stretch bitmap.
25448 (grub_xnu_boot): Use relocator.
25449 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25450 (grub_linux_unload): Free relocator.
25451 (grub_linux_load32): Use relocator.
25452 (grub_linux_load64): Likewise.
25453 (grub_cmd_initrd): Likewise.
25454 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25455 (grub_multiboot_unload): Unload relocator.
25456 (grub_cmd_multiboot): Use relocator.
25457 (grub_cmd_module): Likewise.
25458 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25459 Use relocator and support sections.
25460 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25461 (elf_sec_entsize): Likewise.
25462 (elf_sec_shstrndx): Likewise.
25463 (elf_sections): Likewise.
25464 (grub_multiboot_load): Use relocator.
25465 (grub_multiboot_get_mbi_size): Account for sections.
25466 (grub_multiboot_make_mbi): Use relocator and support sections.
25467 (grub_multiboot_add_elfsyms): New function.
25468 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25469 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25470 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25471 Prototype changed. All users updated.
25472 (grub_xnu_align_heap): Simplified.
25473 (grub_xnu_writetree_toheap): Likewise.
25474 (grub_xnu_unload): Unload relocator.
25475 (grub_cmd_xnu_kernel): Use relocator.
25476 (grub_cmd_xnu_kernel64): Likewise.
25477 (grub_xnu_register_memory): Simplified.
25478 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25479 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25481 (grub_console_checkkey): Likewise.
25482 (grub_console_getkey): Likewise.
25483 (grub_console_getwh): Likewise.
25484 (grub_console_getxy): Likewise.
25485 (grub_console_gotoxy): Likewise.
25486 (grub_console_cls): Likewise.
25487 (grub_console_setcolorstate): Likewise.
25488 (grub_console_setcursor): Likewise.
25489 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25490 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25491 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25492 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25493 * grub-core/tests/boot/kernel-8086.S: Likewise.
25494 * grub-core/tests/boot/kernel-i386.S: Likewise.
25495 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25496 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25497 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25498 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25499 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25500 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25501 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25502 * grub-core/tests/boot/linux.cfg: Likewise.
25503 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25504 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25505 * grub-core/tests/boot/linux16.cfg: Likewise.
25506 * grub-core/tests/boot/multiboot.cfg: Likewise.
25507 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25508 * grub-core/tests/boot/ntldr.cfg: Likewise.
25509 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25510 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25511 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25513 * include/grub/dl.h (grub_dl_unload_all): Removed.
25514 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25515 (grub_efi_finish_boot_services): Change prototype.
25516 (grub_efi_is_finished): New variable.
25517 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25519 (grub_efiemu_finish_boot_services): Removed.
25520 (grub_machine_efiemu_init_tables): New prototype.
25521 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25522 (grub_elf64_phdr_iterate): Likewise.
25523 * include/grub/i386/bsd.h: Include relocator.h.
25524 (freebsd_tag_header): New struct.
25525 (grub_openbsd_bios_mmap): Removed.
25526 (grub_unix_real_boot): Removed.
25527 (grub_freebsd_load_elfmodule32): Changed prototype.
25528 (grub_freebsd_load_elfmodule_obj64): Likewise.
25529 (grub_freebsd_load_elf_meta32): Likewise.
25530 (grub_freebsd_load_elf_meta64): Likewise.
25531 (grub_freebsd_add_meta): Removed.
25532 (grub_netbsd_load_elf_meta32): New prototype.
25533 (grub_netbsd_load_elf_meta64): Likewise.
25534 (grub_bsd_add_meta): Likewise.
25535 (grub_openbsd_ramdisk_descriptor): New struct.
25536 (grub_openbsd_find_ramdisk32): New prototype.
25537 (grub_openbsd_find_ramdisk64): Likewise.
25538 * include/grub/i386/coreboot/loader.h: Removed.
25539 * include/grub/i386/efi/loader.h: Likewise.
25540 * include/grub/i386/ieee1275/loader.h: Likewise.
25541 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25543 * include/grub/i386/loader.h: Removed.
25544 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25546 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25547 (grub_phys_addr_t): New type.
25548 (grub_vtop): New inline function.
25549 (grub_map_memory): Likewise.
25550 (grub_unmap_memory): Likewise.
25551 * include/grub/i386/multiboot/loader.h: Removed.
25552 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25553 (NETBSD_BTINFO_CONSOLE): New definition.
25554 (NETBSD_BTINFO_SYMTAB): Likewise.
25555 (NETBSD_BTINFO_MODULES): Likewise.
25556 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25557 (grub_netbsd_bootinfo): New struct.
25558 (grub_netbsd_btinfo_common): Use explicit bitsize.
25559 (grub_netbsd_btinfo_mmap_entry): Removed.
25560 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25561 (grub_netbsd_btinfo_bootdisk): New struct.
25562 (grub_netbsd_btinfo_symtab): Likewise.
25563 (grub_netbsd_btinfo_serial): Likewise.
25564 (grub_netbsd_btinfo_modules): Likewise.
25565 (grub_netbsd_btinfo_framebuf): Likewise.
25566 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25567 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25569 (grub_openbsd_bootargs): Use explicit bitsize.
25570 (grub_openbsd_bootarg_console): New struct.
25571 (GRUB_OPENBSD_COM_MAJOR): New definition.
25572 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25573 * include/grub/i386/pc/efiemu.h: Removed.
25574 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25575 * include/grub/i386/qemu/loader.h: Removed.
25576 * include/grub/i386/relocator.h: Rewritten.
25577 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25578 * include/grub/mips/memory.h: New file.
25579 * include/grub/mips/multiboot.h: Rewritten.
25580 * include/grub/mips/relocator.h: Rewritten.
25581 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25582 (grub_vtop): New function.
25583 (grub_map_memory): Likewise.
25584 (grub_unmap_memory): Likewise.
25585 * include/grub/misc.h (ALIGN_DOWN): New definition.
25586 * include/grub/mm.h (grub_mm_check_real): New proto.
25587 (GRUB_MM_CHECK): New definition.
25588 * include/grub/mm_private.h: New file.
25589 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25590 (grub_multiboot_get_mbi_size): Removed.
25591 (grub_multiboot_make_mbi): Change prottype.
25592 (grub_multiboot_set_accepts_video): New proto.
25593 (grub_multiboot_add_elfsyms): Likewise.
25594 (grub_multiboot_payload_eip): New variable.
25595 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25597 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25599 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25600 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25601 * include/grub/powerpc/ieee1275/loader.h: Removed.
25602 * include/grub/powerpc/memory.h: New file.
25603 * include/grub/powerpc/relocator.h: Likewise.
25604 * include/grub/relocator.h: Likewise.
25605 * include/grub/relocator_private.h: Likewise.
25606 * include/grub/sparc64/ieee1275/loader.h: Removed.
25607 * include/grub/x86_64/memory.h: New file.
25608 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25609 (grub_xnu_heap_malloc): Likewise.
25610 (grub_xnu_heap_real_start): Removed.
25611 (grub_xnu_heap_start): Likewise.
25612 (grub_xnu_relocator): New variable.
25613 (grub_xnu_heap_target_start): Likewise.
25614 * tests/util/grub-shell.in: Support non-pc.
25615 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25617 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25619 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25621 (grub_bidi_logical_to_visual): Check that malloc succeded.
25622 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25624 (grub_xputs_normal): Likewise.
25626 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25628 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25631 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25633 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25635 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25637 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25639 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25641 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25644 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25646 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25648 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25650 * grub-core/normal/term.c (print_more): Fix a memory leak.
25651 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25652 (grub_xputs_normal): Likewise.
25654 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25656 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25657 the begining of the string
25659 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25661 * grub-core/script/script.c (grub_script_parse): Free parsed on
25664 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25666 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25669 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25671 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25674 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25676 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25677 (scroll_up): Fix a memory leak.
25679 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25681 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25684 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25686 Handle USB pendrives exposed as floppies.
25688 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25690 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25691 Check for partitions on all devices.
25693 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25695 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25696 (readkey): Likewise.
25698 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25700 Multiple variable names support to "export" command.
25702 * normal/context.c (grub_cmd_export): "export" command supports
25703 multiple variable names.
25705 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25707 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25708 --target=drive output to Mach device name.
25710 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25712 New Automake based build system for GRUB.
25714 * ABOUT-NLS: New file.
25715 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25716 in Makefile.util.def file.
25717 * Makefile.util.def: New file. Autogen build definitions file for
25719 * conf/Makefile.common: New file. Common variables for GRUB host
25720 utils and target modules.
25721 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25722 * docs/Makefile.am: New file. Automake file for docs.
25723 * gentpl.py: New file. Python script to generate Autogen
25725 * grub-core/Makefile.am: New file. GRUB target modules' rules
25726 that doesn't fit in Makefile.core.def file.
25727 * grub-core/Makefile.core.def: New file. Autogen build
25728 definitions file for GRUB target modules.
25729 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25730 specific setjmp.S file.
25731 * po/Makefile.am: New file.
25733 * .bzrignore: New ignores.
25734 * INSTALL: New requirements, without Ruby.
25735 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25736 * autogen.sh: Updated to invoke autogen as necessary.
25737 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25738 and defines for Automake conditionals.
25739 * geninit.sh: Refactoring.
25741 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25743 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25746 * include/grub/test.h: Fix functional test modules' naming.
25747 * grub-core/tests/example_functional_test.c: Fix test module name.
25749 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25750 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25751 * util/grub-editenv.c: Likewise.
25752 * util/grub-fstest.c: Likewise.
25753 * util/grub-mkdevicemap.c: Likewise.
25754 * util/grub-mkfont.c: Likewise.
25755 * util/grub-mkimage.c: Likewise.
25756 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25757 * util/grub-probe.c: Likewise.
25758 * util/grub-script-check.c: Likewise.
25759 * util/i386/pc/grub-setup.c: Likewise.
25760 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25762 * tests/util/grub-shell.in: Fix override directory path.
25763 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25764 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25766 * util/lvm.c: Update #includes.
25767 * util/raid.c: Likewise.
25768 * util/resolve.c: Likewise.
25769 * grub-core/bus/emu/pci.c: Likewise.
25770 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25771 * grub-core/lib/posix_wrap/string.h: Likewise.
25772 * grub-core/kern/emu/main.c: Likewise.
25774 * grub-core/gensymlist.sh: New file. Script for generating kernel
25776 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25778 * grub-core/gentrigtables.c: Fix unused variable warnings.
25780 * Makefile.in: Removed.
25781 * conf/any-emu.rmk: Removed.
25782 * conf/common.rmk: Removed.
25783 * conf/i386-coreboot.rmk: Removed.
25784 * conf/i386-efi.rmk: Removed.
25785 * conf/i386-ieee1275.rmk: Removed.
25786 * conf/i386-multiboot.rmk: Removed.
25787 * conf/i386-pc.rmk: Removed.
25788 * conf/i386-qemu.rmk: Removed.
25789 * conf/i386.rmk: Removed.
25790 * conf/mips-yeeloong.rmk: Removed.
25791 * conf/mips.rmk: Removed.
25792 * conf/powerpc-ieee1275.rmk: Removed.
25793 * conf/sparc64-ieee1275.rmk: Removed.
25794 * conf/tests.rmk: Removed.
25795 * conf/x86-efi.rmk: Removed.
25796 * conf/x86_64-efi.rmk: Removed.
25797 * gendistlist.sh: Removed.
25798 * geninitheader.sh: Removed.
25799 * genkernsyms.sh.in: Removed.
25800 * genmk.rb: Removed.
25801 * gensymlist.sh.in: Removed.
25802 * mkinstalldirs: Removed.
25804 * grub-core/boot: ... to here.
25806 * grub-core/bus: ... to here.
25807 * commands: Moved ...
25808 * grub-core/commands: ... to here.
25810 * grub-core/disk: ... to here.
25811 * efiemu: Moved ...
25812 * grub-core/efiemu: ... to here.
25814 * grub-core/font: ... to here.
25816 * grub-core/fs: ... to here.
25817 * gencmdlist.sh: Moved ...
25818 * grub-core/gencmdlist.sh: ... to here.
25819 * genemuinit.sh: Moved ...
25820 * grub-core/genemuinit.sh: ... to here.
25821 * genemuinitheader.sh: Moved ...
25822 * grub-core/genemuinitheader.sh: ... to here.
25823 * genfslist.sh: Moved ...
25824 * grub-core/genfslist.sh: ... to here.
25825 * genhandlerlist.sh: Moved ...
25826 * grub-core/genhandlerlist.sh: ... to here.
25827 * genmoddep.awk: Moved ...
25828 * grub-core/genmoddep.awk: ... to here.
25829 * genmodsrc.sh: Moved ...
25830 * grub-core/genmodsrc.sh: ... to here.
25831 * genpartmaplist.sh: Moved ...
25832 * grub-core/genpartmaplist.sh: ... to here.
25833 * genparttoollist.sh: Moved ...
25834 * grub-core/genparttoollist.sh: ... to here.
25835 * genterminallist.sh: Moved ...
25836 * grub-core/genterminallist.sh: ... to here.
25837 * gentrigtables.c: Moved ...
25838 * grub-core/gentrigtables.c: ... to here.
25839 * genvideolist.sh: Moved ...
25840 * grub-core/genvideolist.sh: ... to here.
25841 * gettext: Moved ...
25842 * grub-core/gettext: ... to here.
25843 * gfxmenu: Moved ...
25844 * grub-core/gfxmenu: ... to here.
25845 * gnulib: Moved ...
25846 * grub-core/gnulib: ... to here.
25848 * grub-core/hello: ... to here.
25850 * grub-core/hook: ... to here.
25852 * grub-core/io: ... to here.
25854 * grub-core/kern: ... to here.
25856 * grub-core/lib: ... to here.
25857 * loader: Moved ...
25858 * grub-core/loader: ... to here.
25860 * grub-core/mmap: ... to here.
25861 * normal: Moved ...
25862 * grub-core/normal: ... to here.
25863 * partmap: Moved ...
25864 * grub-core/partmap: ... to here.
25865 * parttool: Moved ...
25866 * grub-core/parttool: ... to here.
25867 * script: Moved ...
25868 * grub-core/script: ... to here.
25870 * grub-core/term: ... to here
25871 * tests/example_functional_test.c: Moved ...
25872 * grub-core/tests/example_functional_test.c: ... to here.
25873 * tests/lib/functional_test.c: Moved ...
25874 * grub-core/tests/lib/functional_test.c: ... to here.
25875 * tests/lib/test.c: Moved ...
25876 * grub-core/tests/lib/test.c: ... to here.
25878 * grub-core/video: ... to here.
25880 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25882 Replace --enable-grub-emu-modules with grub-emu-lite.
25884 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25887 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25888 * kern/emu/full.c: New file. For grub-emu specific initialization.
25889 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25890 * kern/emu/main.c: Call initialization function grub_emu_init.
25892 * Makefile.in: Include grub-emu-lite in install.
25893 * commands/parttool.c: Use grub_no_autoload to differentiate
25894 between grub-emu and grub-emu-lite.
25895 * include/grub/misc.h: New variable grub_no_autoload.
25897 * conf/any-emu.rmk: New rules for grub-emu-lite.
25898 * configure.ac: Remove --enable-grub-emu-modules.
25899 * genmk.rb: Cleanup unnecessary rules.
25900 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25902 * normal/main.c: Don't load list files on grub-emu-lite.
25903 * util/misc.c (grub_arch_sync_caches): Removed.
25905 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25907 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25908 grub-mkimage rather than grub-mkelfimage.
25909 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25911 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25913 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25914 a key after CapsLock or NumLock. It's just a qemu bug.
25916 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25918 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25919 needed by libusb wrapper.
25921 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25923 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25925 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25927 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25928 --nounzip is passed.
25930 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25932 USB hotunplugging and USB serial support.
25934 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25935 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25936 (grub_uhci_transfer): Respect timeout and set *actual.
25937 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25938 non-standard length.
25939 (grub_usb_device_attach): Autoload modules.
25940 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25941 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25942 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25944 (grub_usb_add_hub): Fill nports and children.
25945 (attach_root_port): Receive hub instead of controller.
25946 All users updated. Fill hub->devices.
25947 (grub_usb_root_hub): Allocate hub->devices.
25948 (detach_device): New function.
25949 (poll_nonroot_hub): Fill children and detach devices.
25950 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25951 actual arguments. All users updated.
25952 (grub_usb_bulk_read_extended): New function.
25953 * bus/usb/serial/common.c: New file.
25954 * bus/usb/serial/ftdi.c: Likewise.
25955 * bus/usb/serial/pl2303.c: Likewise.
25956 * commands/terminal.c (handle_command): Support wildcard.
25957 * commands/usbtest.c: Output "Unknown" instead of empty string.
25958 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25959 (usbserial_common_mod_SOURCES): New variable.
25960 (usbserial_common_mod_CFLAGS): Likewise.
25961 (usbserial_common_mod_LDFLAGS): Likewise.
25962 (pkglib_MODULES): Add usbserial_pl2303.mod.
25963 (usbserial_pl2303_mod_SOURCES): New variable.
25964 (usbserial_pl2303_mod_CFLAGS): Likewise.
25965 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25966 (pkglib_MODULES): Add usbserial_ftdi.mod.
25967 (usbserial_ftdi_mod_SOURCES): New variable.
25968 (usbserial_ftdi_mod_CFLAGS): Likewise.
25969 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25970 (pkglib_MODULES): Add serial.mod.
25971 (serial_mod_SOURCES): New variable.
25972 (serial_mod_CFLAGS): Likewise.
25973 (serial_mod_LDFLAGS): Likewise.
25974 * conf/i386-pc.rmk: Likewise.
25975 * conf/mips-yeeloong.rmk: Likewise.
25976 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25977 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25978 * disk/usbms.c (first_available_slot): New variable.
25979 (grub_usbms_attach): Don't reuse free slots due to potential cache
25981 * include/grub/serial.h: Moved to ..
25982 * include/grub/ns8250.h: ...this.
25983 * include/grub/serial.h: New file.
25984 * include/grub/term.h (grub_term_poll_usb): New variable.
25985 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25986 readkey. All users updated.
25987 (grub_terminfo_output_state): Pass term to put.
25988 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25989 (grub_usb_controller_dev): Add timeout and actual arguments to
25990 transfer. All users updated.
25991 (grub_usb_interface): New field detach_data.
25992 (grub_usb_device): New fields children and nports.
25993 (grub_usb_ep_type_t): New type.
25994 (grub_usb_get_ep_type): New function.
25995 (grub_usb_bulk_read_extended): Likewise.
25996 * include/grub/usbdesc.h (grub_usb_desc): New type.
25997 * include/grub/usbserial.h: New file.
25998 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25999 * kern/term.c (grub_term_poll_usb): New variable.
26000 (grub_getkey): Call grub_term_poll_usb if set.
26001 (grub_checkkey): Likewise.
26002 (grub_getkeystatus): Likewise.
26003 * term/serial.c: Moved controller-specific parts to ...
26004 * term/ns8250.c: ... here.
26005 * term/serial.c: Mostly rewritten.
26006 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
26009 2010-08-20 Robert Millan <rmh@gnu.org>
26011 Make kFreeBSD code more generic to support ext2fs as root, ufs as
26012 a separate module and maybe other interesting combinations.
26014 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
26015 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
26016 (kfreebsd_entry): Add generic filesystem module load routine.
26017 Map GRUB `ext2' to kFreeBSD `ext2fs'.
26019 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
26021 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
26022 "numcenter" (I misunderstood the purpose of this entry).
26023 * docs/grub.texi (sendkey): Likewise.
26025 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
26027 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
26028 status flag options; simply omitting the option is equivalent and
26029 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
26030 (keysym_table): Rename "num5numlock" to "numlock".
26031 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
26032 can uniformly say that only the last of multiple `sendkey'
26033 invocations has any effect.
26034 * docs/grub.texi (sendkey): New section.
26036 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
26038 * commands/i386/pc/sendkey.c (options): Fix three typos.
26040 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
26042 Implement sendkey support.
26044 * commands/i386/pc/sendkey.c: New file.
26045 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
26046 (sendkey_mod_SOURCES): New variable.
26047 (sendkey_mod_CFLAGS): Likewise.
26048 (sendkey_mod_LDFLAGS): Likewise.
26050 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
26052 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
26053 fix warnings from Autoconf.
26055 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
26057 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
26058 to avoid false positives with some assemblers that output things
26059 like "someprefix_func" as part of their output.
26061 2010-08-15 Robert Millan <rmh@gnu.org>
26063 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
26065 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
26066 grub_get_libzfs_handle() errors.
26068 2010-08-14 Robert Millan <rmh@gnu.org>
26070 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
26071 filesystem is not ZFS.
26073 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26075 Fix for misspelled color names defaulting to black/black (bug
26076 reported by Doug Nazar)
26078 * include/grub/normal.h (grub_parse_color_name_pair): Add return
26079 status to prototype.
26080 * normal/color.c (grub_parse_color_name_pair): Return failure
26082 (grub_env_write_color_normal): Ignore bad color names.
26083 (grub_env_write_color_highlight): Likewise.
26084 * normal/main.c (GRUB_MOD_INIT): Set default color names.
26086 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26088 "shift" command support to GRUB script.
26090 * include/grub/script_sh.h (grub_script_shift): New prototype.
26091 * script/execute.c (grub_script_shift): New function.
26092 * script/main.c (grub_script_init): Register shift command.
26093 (grub_script_fini): Unregister shift command.
26094 * util/grub-script-check.c (grub_script_cmd_shift): New function.
26096 * tests/grub_script_shift.in: New testcase.
26097 * conf/tests.rmk: Rules for new testcase.
26099 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26101 "continue" command support to GRUB script.
26103 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
26104 (grub_script_break): Continue support.
26105 * script/main.c (grub_script_init): Register continue command.
26106 (grub_script_fini): Unregister continue command.
26108 * tests/grub_script_continue.in: New testcase.
26109 * conf/tests.rmk: Rules for new testcase.
26111 2010-08-12 BVK Chaitanya <bvk@dbook>
26113 "break" command support to GRUB script.
26115 * conf/common.rmk: Rule updates to grub-script-check.
26116 * include/grub/misc.h (grub_min): New function.
26117 * include/grub/script_sh.h (grub_script_init): New prototype.
26118 (grub_script_fini): New prototype.
26119 (grub_script_break): New prototype.
26120 * script/main.c (grub_script_init): New function.
26121 (grub_script_fini): New function.
26122 * script/execute.c (grub_script_break): New function.
26123 * normal/main.c: Calls to grub_script_{init,fini}.
26124 * util/grub-script-check.c (grub_script_break): New function.
26126 * tests/grub_script_break.in: New testcase.
26127 * conf/tests.rmk: Rules for new test case.
26129 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26131 Function parameters support to GRUB script.
26133 * script/yylex.l (VARIABLE): Regular expression update.
26134 * script/function.c (grub_script_function_call): Moved ...
26135 * script/execute.c (grub_script_function_call): ... to here.
26136 (grub_script_execute_arglist_to_argv): Removed.
26137 (grub_script_arglist_to_argv): New function.
26138 * script/argv.c: New file.
26139 (grub_script_argv_free): New function.
26140 (grub_script_argv_next): Likewise.
26141 (grub_script_argv_append): Likewise.
26142 (grub_script_argv_split_append): Likewise.
26143 * include/grub/script_sh.h (grub_script_argv): New struct.
26144 (grub_script_argv_free): New function.
26145 (grub_script_argv_next): Likewise.
26146 (grub_script_argv_append): Likewise.
26147 (grub_script_argv_split_append): Likewise.
26149 * conf/common.rmk (normal.mod): New source script/argv.c.
26151 * tests/grub_script_echo1.in: More tests.
26152 * tests/grub_script_vars1.in: Likewise.
26153 * tests/grub_script_functions.in: New test case.
26154 * conf/tests.rmk: Rules for new testcase.
26156 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26158 Remove grub_script_cmdblock struct.
26160 * include/grub/script_sh.h: Remove grub_script_cmdblock.
26161 * script/parser.y: Likewise.
26162 * script/execute.c: Rename cmdblock suffix to cmdlist.
26163 * script/script.c: Likewise.
26164 * util/grub-script-check.c: Likewise.
26166 2010-08-11 Yves Blusseau <blusseau@zetam.org>
26168 * .bzrignore: add grub-macho2img
26170 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26172 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
26174 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26176 Remove the dump of sm712 initialisation sequence.
26178 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
26179 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
26180 (GRUB_VGA_IO_MISC_WRITE): Likewise.
26181 (GRUB_VGA_CR_*): Added many registers.
26182 (GRUB_VGA_SR_*): Likewise.
26183 (GRUB_VGA_GR_*): Likewise.
26184 (grub_vga_write_arx): New function.
26185 (grub_video_hw_config): New struct.
26186 (grub_vga_set_geometry): New function.
26187 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
26188 GRUB_PCI_CLASS_SUBCLASS_VGA.
26189 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
26190 * video/sm712.c (grub_sm712_write_reg): New function
26191 (grub_sm712_read_reg): Likewise.
26192 (grub_sm712_sr_write): Likewise.
26193 (grub_sm712_gr_write): Likewise.
26194 (grub_sm712_cr_write): Likewise.
26195 (grub_sm712_write_arx): Likewise.
26196 (grub_sm712_cr_shadow_write): Likewise.
26197 (grub_sm712_write_dda_lookup): Likewise.
26198 (grub_video_sm712_setup): Initialise the video rather then
26199 blindly replay the dump.
26200 (main) [TEST]: Add a routine to be able to compile as standalone for
26202 * video/sm712_init.c (sm712_init): Removed.
26203 (sm712_sr_seq1): New array.
26204 (sm712_sr_seq2): Likewise.
26206 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26208 * include/grub/vga.h: Add missing grub/pci.h include.
26210 2010-08-10 Yves Blusseau <blusseau@zetam.org>
26212 * util/grub-macho2img.c (main): fix typo
26214 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26216 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26217 (grub_vga_gr_read): Likewise.
26218 (grub_vga_cr_write): Likewise.
26219 (grub_vga_cr_read): Likewise.
26220 (grub_vga_sr_write): Likewise.
26221 (grub_vga_sr_read): Likewise.
26222 (grub_vga_palette_read): Likewise.
26223 (grub_vga_palette_write): Likewise.
26224 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26225 (grub_sm712_sr_read): New function.
26226 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26227 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26229 2010-08-09 Robert Millan <rmh@gnu.org>
26231 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26232 out unused variables on non-ZFS build.
26234 2010-08-08 Robert Millan <rmh@gnu.org>
26236 Fix path generation for sub-filesystems in ZFS.
26238 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26241 2010-08-08 Robert Millan <rmh@gnu.org>
26243 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26245 2010-08-08 Robert Millan <rmh@gnu.org>
26247 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26248 exist, issue a proper error message (rely on `ls' for translated
26251 2010-08-08 Robert Millan <rmh@gnu.org>
26253 Fix grub-probe invocation.
26255 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26257 2010-08-04 Robert Millan <rmh@gnu.org>
26259 * configure.ac: Remove checks for getfsstat() and getmntany().
26260 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26261 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26262 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26263 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26264 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26266 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26267 via find_mount_point_from_dir() and getfsstat() / getmntany().
26269 2010-08-04 Robert Millan <rmh@gnu.org>
26271 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26272 (grub_find_zpool_from_mount_point): Merge into ...
26273 (grub_find_zpool_from_dir): ... this.
26274 * kern/emu/misc.c: Likewise.
26277 (grub_make_system_path_relative_to_its_root): Replace
26278 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26279 with grub_find_zpool_from_dir().
26280 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26282 2010-08-04 Robert Millan <rmh@gnu.org>
26284 Support OpenSolaris in ZFS device resolution.
26286 * configure.ac: Check for getmntany().
26287 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26288 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26291 2010-08-03 Robert Millan <rmh@gnu.org>
26293 Fix grub-emu build.
26295 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26296 * include/grub/emu/misc.h: ... here.
26298 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26299 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26301 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26302 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26303 (grub_get_libzfs_handle): Move to ...
26304 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26305 (grub_get_libzfs_handle): ... here.
26307 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26309 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26310 as command name case.
26312 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26314 * disk/raid.c (insert_array): Select unique numbers for named arrays
26315 as well, for use as keys in the disk cache.
26317 2010-08-01 Robert Millan <rmh@gnu.org>
26319 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26320 kFreeBSD device name, except on ZFS where the filesystem label is
26322 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26323 `/boot/zfs/zpool.cache'.
26324 Set mountfrom kernel variable using ${kfreebsd_device}.
26326 2010-08-01 Robert Millan <rmh@gnu.org>
26328 Make it even harder to use uninitialized `libzfs_handle' (and
26329 make the interface a bit simpler).
26331 * include/grub/util/misc.h (grub_util_init_libzfs)
26332 (libzfs_handle): Remove.
26333 (grub_get_libzfs_handle): New prototype.
26335 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26337 (grub_util_init_libzfs): Remove.
26338 (grub_get_libzfs_handle): New function.
26340 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26341 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26342 accessing `libzfs_handle' directly.
26344 2010-08-01 Robert Millan <rmh@gnu.org>
26346 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26347 (grub_find_zpool_from_mount_point): New function prototypes.
26349 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26350 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26352 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26353 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26354 `static' attribute.
26356 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26357 finding zpool from mount point into ...
26358 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26360 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26361 requested path is part of a ZFS pool, use
26362 grub_find_zpool_from_mount_point() to detect its filesystem name,
26363 and generate a path with `/fsname@path' syntax.
26365 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26367 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26368 (void) rather than () so that this is a proper prototype.
26370 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26372 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26374 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26376 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26377 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26379 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26381 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26383 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26385 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26387 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26389 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26390 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26391 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26392 disable gfxpayload.
26393 (Shell-like scripting): Add real content.
26394 (Serial terminal): Suggest `terminal_input serial; terminal_output
26395 serial' rather than putting the two commands on separate lines,
26396 since console input will be inoperative after the first command.
26397 (menuentry): Document --class, --users, and --hotkey options.
26398 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26399 Vladimir Serbinenko).
26401 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26402 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26404 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26406 2010-08-01 Robert Millan <rmh@gnu.org>
26408 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26409 (grub_find_zpool_from_mount_point): New function prototypes.
26411 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26412 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26414 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26415 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26416 `static' attribute.
26418 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26419 finding zpool from mount point into ...
26420 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26422 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26423 requested path is part of a ZFS pool, use
26424 grub_find_zpool_from_mount_point() to detect its filesystem name,
26425 and generate a path with `/fsname@path' syntax.
26427 2010-08-01 Robert Millan <rmh@gnu.org>
26429 Prevent accidental use of uninitialized libzfs_handle.
26431 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26432 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26433 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26435 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26437 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26438 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26440 2010-08-01 Robert Millan <rmh@gnu.org>
26442 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26444 2010-07-31 Robert Millan <rmh@gnu.org>
26446 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26448 2010-07-31 Robert Millan <rmh@gnu.org>
26450 * kern/emu/misc.c: Add missing license header.
26452 2010-07-31 Robert Millan <rmh@gnu.org>
26454 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26456 * include/grub/util/libnvpair.h: Include `<config.h>'.
26457 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26458 declaring libnvpair prototypes ourselves.
26459 * include/grub/util/libzfs.h: Include `<config.h>'.
26460 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26461 declaring libzfs prototypes ourselves.
26463 (libzfs_handle): Moved to ...
26464 * include/grub/util/misc.h (libzfs_handle): ... here.
26465 Include `<grub/util/libzfs.h>'.
26467 2010-07-30 Robert Millan <rmh@gnu.org>
26469 * include/grub/emu/misc.h: Add missing license header.
26471 2010-07-30 Robert Millan <rmh@gnu.org>
26473 Enable `grub-probe -t device' resolution on ZFS.
26475 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26476 * include/grub/util/libnvpair.h: New file.
26477 * include/grub/util/libzfs.h: New file.
26479 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26480 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26481 `<grub/util/libnvpair.h>'.
26482 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26484 (find_mount_point_from_dir): New static function.
26485 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26487 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26488 find_root_device_from_libzfs() before ressorting to find_root_device().
26490 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26492 * util/misc.c: Include `<grub/util/libzfs.h>'.
26493 (grub_util_init_libzfs): New function.
26494 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26495 [HAVE_LIBZFS] (fini_libzfs): New static function.
26496 (grub_util_init_libzfs): New function.
26497 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26499 2010-07-30 Robert Millan <rmh@gnu.org>
26501 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26502 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26503 `warn_unused_result' attribute.
26504 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26505 (grub_xasprintf, grub_xvasprintf): Likewise.
26506 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26508 2010-07-29 Robert Millan <rmh@gnu.org>
26510 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26511 (probe): Handle `PRINT_FS_LABEL'.
26512 (main): Handle `-t fs_label'.
26514 2010-07-29 Robert Millan <rmh@gnu.org>
26516 * configure.ac: Remove grub-mkisofs checks.
26518 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26520 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26521 Reported by: Lennart Sorensen.
26523 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26525 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26526 prior to terminal_input/terminal_output separation. It's been over 1.5
26527 years and those versions weren't widely deployed.
26529 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26531 * disk/raid.c (insert_array): Don't count named arrays when looking
26532 for unused array numbers.
26533 Reported and tested by: Michael Guntsche.
26535 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26537 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26538 implementation of this so that grub-emu links again, with a note
26539 that this should support hotplugging in the future.
26541 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26543 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26545 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26547 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26549 (grub_loopback_close): Remove empty function.
26550 (grub_loopback_dev): Remove close method.
26552 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26554 Disable EFI cursor when the EFI console becomes inactive.
26556 * term/efi/console.c (grub_efi_console_init): New function.
26557 (grub_efi_console_fini): New function.
26558 (grub_console_term_output): Register init and fini methods.
26560 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26562 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26565 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26567 * disk/loopback.c (grub_loopback): Replace filename with file.
26568 (delete_loopback): Handle new semantics.
26569 (grub_cmd_loopback): Likewise.
26570 (grub_loopback_iterate): Likewise.
26571 (grub_loopback_close): Likewise.
26573 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26575 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26577 Reported by: Tito Keitel.
26579 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26581 * docs/grub.texi (Naming convention): Document new naming convention.
26583 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26584 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26586 Generate device.map in something closer to the old ordering.
26588 * util/deviceiter.c (struct device): New declaration.
26589 (compare_file_names): Rename to ...
26590 (compare_devices): ... this. Sort by kernel name in preference to
26591 the stable by-id name, but keep the latter as a fallback comparison.
26592 Update header comment.
26593 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26594 of `struct device' rather than of plain file names.
26596 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26598 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26601 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26603 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26605 (setv1table): Likewise.
26607 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26609 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26610 removing the homehost if present.
26611 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26612 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26613 removing the homehost if present.
26614 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26616 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26618 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26619 parameter. Set its pointer target to 0.
26620 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26621 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26622 `data_offset' value from the superblock for 1.x metadata.
26623 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26624 data on the device.
26625 (insert_array): Record the start sector of data on the device.
26626 (grub_raid_register): Pass start_sector parameters to
26627 grub_raid_list->detect and insert_array.
26628 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26630 (struct grub_raid): Add start_sector parameter to `detect'.
26632 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26633 __attribute__ ((packed)), leaving a comment.
26634 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26635 (grub_mdraid_detect_09): ... here and ...
26636 (grub_mdraid_detect_1x): ... here.
26638 2010-07-20 Peter Henn <peter.henn@web.de>
26640 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26641 chunk size and disk size, which are already given as sector counts
26642 as distinct from the 0.90 units. Fetch the correct device number
26643 from the role table instead of using the table index.
26645 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26647 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26648 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26649 (WriteMostly1): New macro.
26650 Set array->name to NULL for metadata format 0.90. Add support for
26651 metadata 1.x. Fix some comments.
26652 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26654 * util/getroot.c (grub_util_get_grub_dev): Add support for
26655 /dev/md/name style devices.
26657 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26659 * .bzrignore: Ignore 20_linux_xen.
26661 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26663 * util/import_unicode.py: Remove unnecessary imports.
26665 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26667 Hotplugging and USB hub support.
26669 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26670 (grub_ohci): Likewise.
26671 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26672 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26673 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26674 (GRUB_OHCI_CTRL_EDS): Likewise.
26675 (GRUB_OHCI_BULK_EDS): Likewise.
26676 (GRUB_OHCI_TDS): Likewise.
26677 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26678 (grub_ohci_ed_phys2virt): New function.
26679 (grub_ohci_virt_to_phys): Likewise.
26680 (grub_ohci_td_phys2virt): Likewise.
26681 (grub_ohci_td_virt2phys): Likewise.
26682 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26684 (grub_ohci_find_ed): New function.
26685 (grub_ohci_alloc_td): Likewise.
26686 (grub_ohci_free_td): Likewise.
26687 (grub_ohci_free_tds): Likewise.
26688 (grub_ohci_transfer): Use previously allocated memory.
26689 (grub_ohci_portstatus): Reset status changed bit.
26690 (grub_ohci_detect_dev): Supply status changed.
26691 (grub_ohci_fini_hw): Free memory.
26692 (grub_ohci_restore_hw): Reallocate memory.
26693 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26694 Reset status change.
26695 (grub_uhci_detect_dev): Supply status_change.
26696 * bus/usb/usb.c (attach_hooks): New var.
26697 (grub_usb_device_attach): New function.
26698 (grub_usb_register_attach_hook_class): Likewise.
26699 (grub_usb_unregister_attach_hook_class): Likewise.
26700 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26701 (grub_usb_add_hub): Reset connection changed bit.
26702 (attach_root_port): New function.
26703 (grub_usb_root_hub): Likewise.
26704 (poll_nonroot_hub): Likewise.
26705 (grub_usb_poll_devices): Likewise.
26706 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26707 * disk/usbms.c (grub_usbms_open): Use device hooks.
26708 (grub_usbms_iterate) :Poll devices.
26709 (grub_usbms_finddevs): Split into ...
26710 (grub_usbms_attach): ... this ...
26711 (grub_usbms_attach): ... and this.
26712 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26714 (grub_usb_interface): New fields attached and detach_hook.
26715 (grub_usb_attach_hook_class): New type.
26716 (grub_usb_attach_desc): New struct.
26717 (grub_usb_register_attach_hook_class): New function.
26718 (grub_usb_unregister_attach_hook_class): Likewise.
26719 (grub_usb_poll_devices): Likewise.
26720 (grub_usb_device_attach): Likewise.
26721 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26722 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26724 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26726 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26727 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26728 delta determination style. Works with most NetBSD partitions too.
26730 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26732 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26733 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26735 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26737 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26739 2010-07-14 Anton Blanchard <anton@samba.org>
26741 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26744 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26746 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26748 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26750 * kern/partition.c (grub_partition_check_containment): New function to
26751 check that a partition is physically contained in a parent. Since
26752 offsets are relative (and non-negative), this reduces to checking that
26753 the partition ends before its parent.
26754 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26755 (grub_partition_iterate): Likewise.
26756 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26758 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26759 partitions that start before their parent, and add debug printfs.
26761 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26763 * Makefile.in (.SUFFIX): Spell correctly, as ...
26764 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26765 bare module name without `.mod', e.g. `test') tried to invoke a
26768 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26770 * README: Point to the Info manual.
26772 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26774 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26775 2nd superblock position from partition size.
26777 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26779 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26780 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26781 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26784 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26786 Restructure SCSI .id handling.
26787 Reported and tested by: Aleš Nesrsta.
26789 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26790 (grub_atapi_dev): Changed .name to "ata". New field .id.
26791 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26792 (grub_usbms_dev): New field .id.
26793 * disk/scsi.c (grub_scsi_iterate): Generate name.
26794 (grub_scsi_open): Parse name.
26795 * include/grub/scsi.h (grub_make_scsi_id): New function.
26796 (grub_scsi_dev): Change iterate and open to number instead of naming
26797 busses. All users updated.
26798 (grub_scsi): Remove name. Add .bus.
26800 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26802 * commands/help.c (grub_cmd_help): Fix a typo.
26804 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26806 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26807 Reported and tested by: Colin Watson.
26809 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26811 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26814 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26816 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26818 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26820 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26823 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26825 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26826 and disk/raid6_recover.c.
26827 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26828 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26830 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26832 * term/gfxterm.c (repaint_schedulded): Rename to ...
26833 (repaint_scheduled): ... this. Update all callers.
26834 (repaint_was_schedulded): Rename to ...
26835 (repaint_was_scheduled): ... this. Update all callers.
26837 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26839 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26840 which we expect to be handled by upper layers.
26842 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26844 * bus/usb/usbhub.c: #include time.h header.
26846 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26848 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26849 entry_name also for entries without stat blocks (e.g. ".."); fixes
26850 corruption of the first entry in a directory.
26852 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26854 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26855 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26856 doesn't work otherwise.
26858 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26860 * docs/grub.texi (Features): Update list of supported file systems.
26861 (GNU/Linux): Update for GRUB 2.
26862 (Serial terminal): Remove mention of --disable-serial, which was a
26863 GRUB Legacy configure option. Update instructions to use
26864 `terminal_input' and `terminal_output' rather than `terminal'.
26865 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26866 configuration' and `Installing GRUB using grub-install'.
26867 (Menu entry editor): Update for GRUB 2.
26868 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26869 Document new -a, -u, and -v options.
26870 (initrd): New section.
26871 (initrd16): New section.
26872 (linux): New section.
26873 (linux16): New section.
26874 (search): The `var' argument to `--set' is optional.
26875 (GRUB only offers a rescue shell): Go into a little more detail on
26878 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26880 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26882 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26884 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26885 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26887 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26889 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26890 install_prefix, in line with install_dos_part and install_bsd_part.
26891 Add new prefix variable, which is copied to install_prefix after
26892 comparing core.img in memory with the one read from disk in the
26893 no-embedding case, and use that rather than overwriting
26894 install_prefix immediately when installing to a partition.
26895 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26898 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26900 * configure.ac: Avoid == in test command, it's not portable.
26901 * util/grub.d/30_os-prober.in: Likewise.
26903 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26905 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26907 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26909 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26910 multiple (top-level) partmaps.
26912 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26914 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26915 Reported by: Tino Keitel.
26917 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26919 Bidi and diacritics support.
26921 * Makefile.in (widthspec.bin): New target.
26922 (widthspec.h): Likewise.
26923 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26924 * autogen.sh: Generate unidata.c.
26925 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26926 * commands/ls.c (grub_ls_list_devices): Likewise.
26927 (grub_ls_list_files): Likewise.
26928 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26929 (grub_mini_cmd_lsmod): Likewise.
26930 * commands/read.c: Likewise.
26931 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26932 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26933 * lib/arg.c (grub_arg_show_help): Likewise.
26934 * lib/crypto.c (grub_password_get): Likewise.
26935 * normal/auth.c (grub_username_get): Likewise.
26936 * normal/misc.c (grub_normal_print_device_info): Likewise.
26937 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26938 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26939 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26940 (normal/charset.c_DEPENDENCIES): New variable.
26941 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26942 (pkglib_MODULES): Remove charset.mod.
26943 (charset_mod_SOURCES): Removed.
26944 (charset_mod_CFLAGS): Likewise.
26945 (charset_mod_LDFLAGS): Likewise.
26946 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26947 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26949 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26950 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26951 (kernel_img_HEADERS): Add terminfo.h.
26952 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26953 Fill ->font. Reverse ascii bitmaps.
26954 (grub_font_get_xheight): New function.
26955 * font/font.c (grub_font_get_string_width): Moved from here ...
26956 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26957 * font/font.c (grub_font_draw_string): Moved from here ...
26958 * gfxmenu/font.c (grub_font_draw_string): ... here.
26959 * font/font.c (grub_font_dup_glyph): New function.
26960 (grub_font_blit_glyph): Likewise.
26961 (grub_font_blit_glyph_mirror): Likewise.
26962 (blit_comb): Likewise.
26963 (grub_font_construct_dry_run): Likewise.
26964 (grub_font_get_constructed_device_width): Likewise.
26965 (grub_font_construct_glyph): Likewise.
26966 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26967 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26968 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26969 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26970 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26971 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26972 (grub_font_get_xheight): New proto.
26973 (grub_font_get_constructed_device_width): Likewise.
26974 (grub_font_construct_glyph): Likewise.
26975 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26976 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26977 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26978 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26979 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26980 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26981 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26982 (grub_console_getcharwidth): Likewise.
26983 * include/grub/misc.h (grub_xputs): New proto.
26984 (grub_puts): Inlined.
26985 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26986 (grub_normal_get_line_counter): Removed.
26987 (grub_install_newline_hook): Likewise.
26988 (grub_normal_get_char_counter): New proto.
26989 (grub_normal_reset_more): Likewise.
26990 (grub_xputs_normal): Likewise.
26991 * include/grub/powerpc/ieee1275/console.h: Removed.
26992 * include/grub/sparc64/ieee1275/console.h: Likewise.
26993 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26994 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26995 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26996 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26997 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26998 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26999 (grub_term_input): Pass reference to self. All users updated.
27000 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
27001 Pass reference to self. New fields normal_color, highlight_color and
27002 data. All users updated.
27003 (grub_putchar): Removed.
27004 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
27005 (grub_unicode_estimate_width): New function.
27006 (grub_term_getcharwidth): Add defaults.
27007 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
27008 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
27009 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
27010 (grub_cls): Remove EXPORT_FUNC.
27011 (grub_setcolorstate): Inline.
27012 (grub_newline_hook): Removed.
27013 * include/grub/terminfo.h: Rewritten. All users updated.
27014 * include/grub/unicode.h: New file.
27015 * include/grub/video.h (grub_video_signed_rect): New type.
27016 * kern/emu/console.c (grub_console_highlight_color): Removed.
27017 (grub_console_normal_color): Likewise.
27018 (grub_console_standard_color): Made static.
27019 (grub_ncurses_putchar): Remove mapping.
27020 (grub_ncurses_getcharwidth): Removed.
27021 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
27022 (grub_ncurses_setcolor): Removed.
27023 (grub_ncurses_getcolor): Likewise.
27024 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
27025 (grub_console_putchar): ... this.
27026 (grub_console_putchar): Handle argument difference.
27027 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
27028 console_init_early and console_init_lately.
27029 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
27030 * kern/misc.c (grub_puts): Removed.
27031 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
27032 (grub_vsnprintf_real): Remove str = NULL support.
27033 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
27034 * normal/charset.c (grub_utf8_to_ucs4): ... here.
27035 * kern/term.c (grub_putcode): Renamed to ...
27036 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
27037 (grub_putchar): Removed.
27038 (grub_xputs_dumb): New function.
27039 (grub_xputs): New variable.
27040 * lib/charset.c: Move from here ...
27041 * normal/charset.c: ... to here.
27042 (grub_ucs4_to_utf8): New function.
27043 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
27044 (join_types): New variable.
27045 (unpack_join): New function.
27046 (bidi_types): New variable.
27047 (unpack_bidi): New function.
27048 (get_bidi_type): Likewise.
27049 (get_join_type): Likewise.
27050 (is_mirrored): Likewise.
27051 (grub_unicode_get_comb_type): Likewise.
27052 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
27053 (is_type_after): Likewise.
27054 (grub_unicode_aglomerate_comb): Likewise.
27055 (bidi_line_wrap): Likewise.
27056 (grub_bidi_line_logical_to_visual): Likewise.
27057 (grub_bidi_logical_to_visual): Likewise.
27058 (grub_unicode_mirror_code): Likewise.
27059 (grub_unicode_shape_code): Likewise.
27060 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
27061 Don't use grub_putchar.
27062 * normal/main.c (grub_normal_init_page): Use grub_putcode.
27063 (grub_normal_reader_init): Likewise.
27064 (grub_xputs_saved): New variable.
27065 (GRUB_MOD_INIT): Set grub_xputs.
27066 (GRUB_MOD_FINI): Restore grub_xputs.
27067 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
27068 (menu_init): Avoid printing gfxmenu error.
27069 (show_menu): Use grub_normal_get_char_counter.
27070 * normal/menu_entry.c (update_screen): Fix out-of-array.
27071 (complete): Avoid NULL dereferencing.
27072 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
27073 * normal/menu_text.c (print_spaces): Removed.
27074 (grub_print_ucs4): Likewise.
27075 (grub_print_message_indented): Use grub_print_ucs4.
27076 (print_message): Use grub_putcode.
27077 (print_entry): Hanlde diacritics.
27078 * normal/term.c (term_state): New type.
27079 (grub_more_lines): Removed.
27080 (term_states): New variable.
27081 (grub_normal_line_counter): Renamed to ..
27082 (grub_normal_char_counter): ...this. All users updated.
27083 (grub_normal_get_line_counter): Renamed to ...
27084 (grub_normal_get_char_counter): ... this.
27085 (grub_normal_reset_more): New function.
27086 (process_newline): Removed.
27087 (print_more): New function.
27088 (grub_install_newline_hook): Removed.
27089 (map_code): New function.
27090 (grub_puts_terminal): Use grub_print_ucs4.
27091 (putglyph): New function.
27092 (putcode_real): Likewise.
27093 (grub_putcode): Use putcode_real.
27094 (get_maxwidth): New function.
27095 (get_startwidth): Likewise.
27096 (print_ucs4_terminal): Likewise.
27097 (find_term_state): Likewise.
27098 (put_glyphs_terminal): Likewise.
27099 (print_backlog): Likewise.
27100 (print_ucs4_real): Likewise.
27101 (grub_print_ucs4): Likewise.
27102 (grub_xputs_normal): Likewise.
27103 * term/efi/console.c (grub_console_putchar): Output diacritics.
27104 (grub_console_getcharwidth): Removed.
27105 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27106 * term/gfxterm.c (clear_char): Free chars.
27107 (scroll_up): Avoid leaking memory.
27108 (grub_gfxterm_putchar): Support diacritics.
27109 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27110 * term/i386/pc/console.c (grub_console_term_output): Declare as
27111 GRUB_TERM_CODE_TYPE_VGA.
27112 * term/i386/pc/vga.c (grub_vga_term): Declare as
27113 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
27114 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
27115 GRUB_TERM_CODE_TYPE_VGA.
27116 * term/i386/vga_common.c (map_char): Removed.
27117 (grub_console_putchar): Likewise.
27118 (grub_console_getcharwidth): Likewise.
27119 * term/ieee1275/ofconsole.c: Simplify using terminfo.
27120 (colors): Reordered to match terminfo.
27121 (grub_ofconsole_normal_color): Removed.
27122 (grub_ofconsole_writeesc): Likewise.
27123 (grub_ofconsole_highlight_color): Likewise.
27124 (grub_ofconsole_getcharwidth): Likewise.
27125 (grub_ofconsole_setcolorstate): Likewise.
27126 (grub_ofconsole_setcolor): Likewise.
27127 (grub_ofconsole_getcolor): Likewise.
27128 (grub_ofconsole_readkey): Renamed to ...
27129 (readkey): ... this. Remove escape sequence handling. Return -1 on no
27131 (grub_ofconsole_checkkey): Removed.
27132 (grub_ofconsole_getkey): Likewise.
27133 (grub_ofconsole_getxy): Likewise.
27134 (grub_ofconsole_gotoxy): Likewise.
27135 (grub_ofconsole_cls): Likewise.
27136 (grub_ofconsole_refresh): Likewise.
27137 (grub_ofconsole_terminfo_input): New struct.
27138 (grub_ofconsole_terminfo_output): Likewise.
27139 (grub_ofconsole_term_input): Use terminfo.
27140 (grub_ofconsole_term_output): Likewise.
27141 (grub_console_init): Split into ...
27142 (grub_console_init_early): ...this and ...
27143 (grub_console_init_lately): ...this. Use terminfo.
27144 (grub_ofconsole_putchar): Renamed to ...
27145 (put): ... this. Remove mapping.
27146 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
27147 * term/serial.c: Simplify using terminfo.
27150 (keep_track): Likewise.
27151 (registered): Likewise.
27152 (input_buf): Likewise.
27153 (npending): Likewise.
27154 (serial_translate_key_sequence): Likewise.
27155 (fill_input_buf): Likewise.
27156 (grub_serial_checkkey): Likewise.
27157 (grub_serial_getkey): Likewise.
27158 (grub_serial_getxy): Likewise.
27159 (grub_serial_gotoxy): Likewise.
27160 (grub_serial_putchar): Likewise.
27161 (grub_serial_cls): Likewise.
27162 (grub_serial_setcolorstate): Likewise.
27163 (grub_serial_setcursor): Likewise.
27164 (serial_hw_init): Use serial_hw_fetch.
27165 (grub_serial_terminfo_input): New variable.
27166 (grub_serial_terminfo_output): Likewise.
27167 (grub_serial_term_input): Use terminfo.
27168 (grub_serial_term_output): Likewise.
27169 * term/terminfo.c (putstr): Use put.
27170 (grub_terminfo_all_free): New function
27171 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
27172 (grub_terminfo_output_register): New function.
27173 (grub_terminfo_output_unregister): Likewise.
27174 (grub_terminfo_getxy): Likewise.
27175 (grub_terminfo_readkey): Likewise.
27176 (grub_terminfo_checkkey): Likewise.
27177 (grub_terminfo_getkey): Likewise.
27178 (grub_terminfo_input_init): Likewise.
27179 (print_terminfo): Likewise.
27180 (grub_cmd_terminfo): Handle encoding.
27181 (grub_terminfo_gotoxy): Track position.
27182 (grub_terminfo_cls): Likewise.
27183 (grub_terminfo_putchar): Likewise.
27184 (grub_terminfo_setcolorstate): Handle colors
27185 (grub_terminfo_cursor_on): This ...
27186 (grub_terminfo_cursor_off): ... and this merged into ...
27187 (grub_terminfo_setcursor): ... this.
27188 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
27189 * unicode/ArabicShaping.txt: New file (imported from Unicode).
27190 * unicode/BidiMirroring.txt: Likewise.
27191 * unicode/UnicodeData.txt: Likewise.
27192 * unicode/COPYING: Likewise.
27193 * util/grub-editenv.c (grub_putchar): Removed.
27194 (grub_xputs_real): New function.
27195 (grub_xputs): New variable.
27196 * util/grub-fstest.c (grub_putchar): Removed.
27197 (grub_xputs_real): New function.
27198 (grub_xputs): New variable.
27199 * util/grub-mkdevicemap.c (grub_putchar): Removed.
27200 (grub_xputs_real): New function.
27201 (grub_xputs): New variable.
27202 * util/grub-probe.c (grub_putchar): Removed.
27203 (grub_xputs_real): New function.
27204 (grub_xputs): New variable.
27205 * util/grub-script-check.c (grub_putchar): Removed.
27206 (grub_xputs_real): New function.
27207 (grub_xputs): New variable.
27208 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27209 (grub_xputs_real): New function.
27210 (grub_xputs): New variable.
27211 * util/import_unicode.py: New file.
27212 * util/grub-mkfont.c (ft_errmsgs): New array.
27213 (grub_glyph_info): Make bitmap a pointer.
27214 (file_formats): New type WIDTH_SPEC.
27215 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27216 (options): Add width-spec.
27218 (add_char): Renamed to ...
27219 (add_glyph): ... this.
27220 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27221 (glyph_replace): New type.
27222 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27223 (add_char): New function.
27224 (add_subst): Likewise.
27225 (process_cursive): Likewise.
27226 (add_font): Handle GSUB.
27227 (write_font_width_spec): New function.
27228 (main): Sort glyphs.
27229 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27230 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27231 * kern/term.c (grub_cls): Moved from here...
27232 * normal/term.c (grub_cls): ... here.
27234 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27236 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27237 suitable for using within the format argument of printf when
27238 converting grub_size_t.
27239 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27240 "x" to convert grub_size_t arguments.
27242 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27244 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27246 (list_get_minimal_size): Take selection box into account.
27248 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27250 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27253 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27255 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27256 devices when iterating over /dev/disk/by-id; they will be handled
27257 later if appropriate, which they aren't always (e.g. LVM).
27259 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27261 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27262 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27264 (grub_halt): Likewise.
27265 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27267 (grub_halt): Don't return, even if all of shut-down, power-off, and
27270 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27272 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27273 arguments, not three.
27275 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27277 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27278 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27279 LVM-on-RAID is handled correctly.
27281 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27283 * docs/grub.texi (Changes from GRUB Legacy): New section.
27284 (Future): Fix typo.
27286 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27288 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27289 grub.d/README accidentally ends up executable for one reason or
27290 another. Ignore it.
27292 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27294 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27295 (gpt_partition_map_iterate): Support non-512B sectors.
27297 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27299 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27300 Tested by: Seth Goldberg.
27302 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27304 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27305 Properly align mbi.
27306 Reported by: Seth Goldberg.
27308 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27310 * util/grub-mkrescue.in: Avoid module duplication.
27312 2010-07-01 Sean Finney <seanius@seanius.net>
27314 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27316 2010-07-01 Sean Finney <seanius@seanius.net>
27318 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27320 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27322 * disk/lvm.c (grub_lvm_checkvalue): New function.
27323 (grub_lvm_check_flag): Likewise.
27325 2010-07-01 Robert Millan <rmh@gnu.org>
27327 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27328 Support 'p' as partition separator on kernel of FreeBSD (used
27330 (grub_util_biosdisk_get_grub_dev): Likewise.
27332 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27334 Yeeloong firmware port.
27336 * boot/mips/yeeloong/fwstart.S: New file.
27337 * bus/cs5536.c (gpiodump): New const.
27338 (set_io_space): New function.
27339 (set_iod): Likewise.
27340 (set_p2d): Likewise.
27341 (grub_cs5536_init_geode): Likewise.
27342 * commands/mips/yeeloong/lsspd.c: New file.
27343 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27344 (serial_mod_SOURCES): New variable.
27345 (serial_mod_CFLAGS): Likewise.
27346 (serial_mod_LDFLAGS): Likewise.
27347 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27348 term/terminfo.c and term/tparm.c.
27349 (pkglib_IMAGES): Add fwstart.img.
27350 (fwstart_img_SOURCES): New variable.
27351 (fwstart_img_CFLAGS): Likewise.
27352 (fwstart_img_ASFLAGS): Likewise.
27353 (fwstart_img_LDFLAGS): Likewise.
27354 (fwstart_img_FORMAT): Likewise.
27355 (pkglib_MODULES): Add lsspd.mod.
27356 (lsspd_mod_SOURCES): New variable.
27357 (lsspd_mod_CFLAGS): Likewise.
27358 (lsspd_mod_LDFLAGS): Likewise.
27359 (pkglib_MODULES): Add halt.mod.
27360 (halt_mod_SOURCES): New variable.
27361 (halt_mod_CFLAGS): Likewise.
27362 (halt_mod_LDFLAGS): Likewise.
27363 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27364 (serial_mod_SOURCES): Removed.
27365 (serial_mod_CFLAGS): Likewise.
27366 (serial_mod_LDFLAGS): Likewise.
27367 * disk/ata.c (check_device): New function.
27368 (grub_ata_device_initialize): Use check_device.
27369 (grub_ata_iterate): Recheck devices.
27370 (grub_ata_open): Likewise.
27371 (grub_atapi_iterate): Likewise.
27372 (grub_atapi_open): Likewise.
27373 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27374 (GRUB_ATA_CH1_PORT1): Likewise.
27375 (GRUB_ATA_CH0_PORT2): Likewise.
27376 (GRUB_ATA_CH1_PORT2): Likewise.
27377 * include/grub/mips/loongson.h: New file.
27378 * include/grub/mips/yeeloong/ec.h: Likewise.
27379 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27380 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27381 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27382 * include/grub/misc.h (grub_halt): Declare as noreturn.
27383 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27384 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27385 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27386 (UART_ENABLE_DTRRTS): Likewise.
27387 (UART_ENABLE_MODEM): Removed.
27388 (UART_ENABLE_OUT2): New const.
27389 * include/grub/term.h (grub_term_register_input_active): New function.
27390 (grub_term_register_output_active): Likewise.
27391 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27393 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27394 (init_pci): New function.
27395 (grub_machine_init): Execute platform init when firmware. Init serial.
27396 (grub_halt): Implement.
27397 (grub_exit): Likewise.
27398 (grub_reboot): Likewise.
27399 * term/serial.c (serial_hw_init): Update macros.
27400 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27401 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27402 (image_targets): New target mipsel-yeeloong-flash.
27403 (generate_image): Support IMAGE_YEELOONG_FLASH.
27404 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27405 (grub_video_sm712_setup): Init card.
27406 (grub_video_sm712_set_palette): Removed.
27407 * video/sm712_init.c: New file.
27409 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27411 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27412 PATH when running help2man and then run it on the unadorned
27413 executable names, rather than passing $(builddir)/* paths to
27414 help2man. This avoids the build directory ending up in generated
27417 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27419 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27420 to avoid accidents when debugging with 'sh -x'.
27421 * util/grub-mkrescue.in: Likewise.
27422 * util/grub.d/00_header.in: Likewise.
27423 * util/grub.d/10_hurd.in: Likewise.
27424 * util/grub.d/10_kfreebsd.in: Likewise.
27425 * util/grub.d/10_linux.in: Likewise.
27426 * util/grub.d/10_netbsd.in: Likewise.
27427 * util/grub.d/10_windows.in: Likewise.
27428 * util/grub.d/20_linux_xen.in: Likewise.
27429 * util/grub.d/30_os-prober.in: Likewise.
27430 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27432 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27434 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27435 last character in the buffer.
27436 Reported by: Vladimir Serbinenko.
27438 2010-06-29 Robert Millan <rmh@gnu.org>
27440 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27441 (Command-line and menu entry commands): Document `badram' command.
27443 2010-06-28 Robert Millan <rmh@gnu.org>
27445 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27446 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27447 command using ${GRUB_BADRAM} as parameter.
27449 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27451 * docs/grub.texi (Device map): New section.
27452 (Themes): New section (stub).
27453 * Makefile.in (docs/grub.info): The info documentation now builds
27454 without errors. Make sure it stays that way.
27456 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27458 Use normal parser for menu entries.
27459 Reported by: Thomas Frauendorfer
27461 * include/grub/parser.h (grub_parser_execute): Don't export.
27462 * normal/menu.c (grub_menu_execute_entry_real): New function.
27463 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27465 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27467 * docs/grub.texi (Embedded configuration): New section (replacing
27468 old "Preset Menu" stub).
27469 (Images): New section.
27470 (configfile): Note that any menu entries defined in `file' are shown
27473 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27475 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27477 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27479 * util/grub-install.in: Add --debug-image= option.
27481 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27483 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27486 * util/deviceiter.c (check_device): Rename to ...
27487 (check_device_readable_unique): ... this. Update all callers.
27488 Maintain and check a list of which devices (by canonicalized name)
27489 have already been seen.
27490 (clear_seen_devices): New function.
27491 (compare_file_names) [__linux__]: New function.
27492 (grub_util_iterate_devices): Clear the list of seen devices on exit
27493 and (just in case) on entry.
27494 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27495 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27496 seen-devices list, superseded by general code in check_device.
27498 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27500 * commands/cat.c (options): New variable.
27501 (grub_cmd_cat): Parse options. If the --dos option is given, print
27502 DOS-style "\r\n" line endings as simple newlines (Debian bug
27504 (GRUB_MOD_INIT): Use extcmd.
27505 (GRUB_MOD_FINI): Likewise.
27506 * docs/grub.texi (cat): Document --dos.
27508 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27510 XEN with Linux grub-mkconfig support.
27512 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27513 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27514 GRUB_CMDLINE_XEN_DEFAULT.
27515 * util/grub.d/20_linux_xen.in: New file.
27517 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27519 Initialise VGA video on qemu ourselves.
27521 * boot/i386/qemu/boot.S: Don't call 0xc000.
27522 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27523 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27524 (kernel_img_HEADERS): Add pci.h.
27525 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27526 * configure.ac: Force unifont on qemu and yeeloong.
27527 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27528 (grub_vga_palette_write): Use correct register.
27529 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27530 Call grub_qemu_init_cirrus.
27531 * kern/i386/qemu/init.c: New file.
27532 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27534 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27536 2010-06-26 Pavel Roskin <proski@gnu.org>
27538 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27541 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27543 * docs/grub.texi (Simple configuration): Explain that
27544 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27545 set to `true' to disable their respective recovery entries, not
27548 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27550 Make the `source' command slightly faster.
27552 * normal/main.c (grub_normal_execute): Don't re-read list files when
27555 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27557 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27558 field position and mask size to red fields from mode_info, not
27560 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27561 Remove redundant tag->common.framebuffer_type assignment.
27562 Reported by: Seth Goldberg.
27564 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27566 Sync up other versions of the Linux loader with Robert Millan's
27567 change of 2010-01-09, "Make loader output a bit more user-friendly".
27569 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27571 (grub_cmd_linux): Likewise.
27572 (grub_cmd_initrd): Likewise.
27573 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27574 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27576 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27578 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27579 larger than MEMORY_MAP_SIZE.
27581 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27583 Fix parallel build.
27585 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27587 * script/parser.y: #include grub_script.tab.h header.
27589 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27591 Support >3GiB and <16MiB RAM in i386-qemu.
27593 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27594 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27595 (grub_lower_mem): Removed.
27596 (grub_upper_mem): Likewise.
27597 (mem_size): Made static.
27598 (above_4g): New variable.
27599 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27600 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27603 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27605 Cirrus 5446 and Bochs video cards support.
27607 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27609 (video_cirrus_mod_SOURCES): New variable.
27610 (video_cirrus_mod_CFLAGS): Likewise.
27611 (video_cirrus_mod_LDFLAGS): Likewise.
27612 (video_bochs_mod_SOURCES): Likewise.
27613 (video_bochs_mod_CFLAGS): Likewise.
27614 (video_bochs_mod_LDFLAGS): Likewise.
27615 * include/grub/vga.h: New file.
27616 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27617 (grub_video_fb_set_page_t): New type.
27618 (grub_video_fb_setup): New prototype.
27619 (grub_video_fb_swap_buffers): Likewise.
27620 (grub_video_fb_get_info_and_fini): Likewise.
27621 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27622 (CRTC_DATA_PORT): Likewise.
27623 (CRTC_CURSOR): Likewise.
27624 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27625 (CRTC_CURSOR_ADDR_LOW): Likewise.
27626 (CRTC_CURSOR_DISABLE): Likewise.
27627 (update_cursor): Use grub_vga_cr_write.
27628 (grub_vga_text_setcursor): Likewise.
27629 * video/bochs.c: New file.
27630 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27631 (palette): Likewise.
27632 (palette_size): Likewise.
27633 (framebuffer): New variable.
27634 (grub_video_fb_init): Use 'framebuffer'.
27635 (grub_video_fb_fini): Likewise.
27636 (grub_video_fb_get_info): Likewise.
27637 (grub_video_fb_get_palette): Likewise.
27638 (grub_video_fb_set_palette): Likewise.
27639 (grub_video_fb_set_viewport): Likewise.
27640 (grub_video_fb_get_viewport): Likewise.
27641 (grub_video_fb_map_color): Likewise.
27642 (grub_video_fb_map_rgb): Likewise.
27643 (grub_video_fb_map_rgba): Likewise.
27644 (grub_video_fb_unmap_color): Likewise.
27645 (grub_video_fb_unmap_color_int): Likewise.
27646 (grub_video_fb_fill_rect): Likewise.
27647 (grub_video_fb_blit_bitmap): Likewise.
27648 (grub_video_fb_blit_render_target): Likewise.
27649 (grub_video_fb_scroll): Likewise.
27650 (grub_video_fb_create_render_target): Likewise.
27651 (grub_video_fb_doublebuf_blit_init): Likewise.
27652 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27653 (doublebuf_pageflipping_update_screen): New function.
27654 (doublebuf_pageflipping_init): Likewise.
27655 (grub_video_fb_setup): Likewise.
27656 (grub_video_fb_swap_buffers): Likewise.
27657 (grub_video_fb_get_info_and_fini): Likewise.
27658 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27660 (doublebuf_pageflipping_commit): Restructured into ...
27661 (doublebuf_pageflipping_set_page): ... this.
27662 (doublebuf_pageflipping_update_screen): Removed.
27663 (doublebuf_pageflipping_init): Likewise.
27664 (double_buffering_init): Likewise.
27665 (grub_video_vbe_setup): Use grub_video_fb_setup.
27666 (grub_video_vbe_swap_buffers): Removed.
27667 (grub_video_vbe_set_active_render_target): Likewise.
27668 (grub_video_vbe_get_active_render_target): Likewise.
27669 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27670 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27671 grub_video_fb_set_active_render_target and
27672 grub_video_fb_get_active_render_target.
27673 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27674 (SEQUENCER_DATA_PORT): Likewise.
27675 (MAP_MASK_REGISTER): Likewise.
27676 (CRTC_ADDR_PORT): Likewise.
27677 (CRTC_DATA_PORT): Likewise.
27678 (START_ADDR_HIGH_REGISTER): Likewise.
27679 (START_ADDR_LOW_REGISTER): Likewise.
27680 (GRAPHICS_ADDR_PORT): Likewise.
27681 (GRAPHICS_DATA_PORT): Likewise.
27682 (READ_MAP_REGISTER): Likewise.
27683 (INPUT_STATUS1_REGISTER): Likewise.
27684 (INPUT_STATUS1_VERTR_BIT): Likewise.
27685 (get_map_mask): Use grub_vga_sr_read.
27686 (set_map_mask): Use grub_vga_sr_write.
27687 (set_read_map): Use grub_vga_gr_write.
27688 (set_start_address): Use grub_vga_cr_write.
27689 * video/sm712.c (framebuffer): Remove leftover fields.
27691 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27693 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27694 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27695 instead. Replace the gfxterm backend check with a check that
27696 ${GRUB_PREFIX}/video.lst is non-empty.
27697 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27699 (load_video): New generated function. Call it before loading
27700 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27701 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27702 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27703 * docs/grub.texi (Simple configuration): Document
27704 GRUB_VIDEO_BACKEND.
27706 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27708 Use video functions in linux and xnu loaders.
27710 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27711 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27712 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27713 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27714 loader/i386/pc/linux.c.
27715 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27716 (find_line_len): Removed.
27717 (find_framebuf): Likewise.
27718 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27719 * loader/i386/efi/xnu.c: Removed.
27720 * loader/i386/pc/xnu.c: Moved from here...
27721 * loader/i386/xnu.c: ...here.
27723 Enable priorities in video drivers.
27725 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27726 (grub_video_adapter): New field prio.
27727 (grub_video_register): Respect prio when inserting.
27728 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27729 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27730 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27731 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27732 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27733 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27734 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27738 * include/grub/video.h (grub_video_driver_id_t): New value
27739 GRUB_VIDEO_DRIVER_SDL.
27740 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27742 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27744 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27745 argument to printf.
27746 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27748 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27750 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27751 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27753 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27755 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27756 directly, and recommend grub-install instead.
27757 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27759 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27761 Fix i386-pc prefix handling with nested partitions (Debian bug
27762 #585068). Note that the case where the core image is booted using
27763 multiboot and relocated from its original location still requires
27766 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27767 with "(,", fill the boot drive in between those two characters, but
27768 expect that a full partition specification including partition map
27770 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27771 specified, write a prefix without the drive name but including a
27772 full partition specification.
27774 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27776 * util/grub-mkconfig.in: Ignore non-option arguments, for
27777 compatibility with older versions (before 2010-06-12) which did the
27778 same. In particular, this makes it easier to ship an update-grub
27779 wrapper which is compatible with that used with GRUB Legacy (Debian
27782 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27784 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27785 for manual page generation.
27787 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27789 * po/POTFILES: Remove leftover commands/handler.c.
27791 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27793 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27794 left this script non-functional.
27796 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27798 * docs/man/grub-emu.h2m: New file.
27800 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27802 * docs/grub.texi (Commands): Document reduced command set in rescue
27804 (cpuid): New section.
27806 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27808 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27809 new partition naming style.
27810 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27812 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27814 Add "-o grub.iso" like cmdline options support.
27816 * util/grub-install.in: Improve cmdline option parsing.
27817 * util/grub-mkconfig.in: Likewise.
27818 * util/grub-mkrescue.in: Likewise.
27819 * util/grub-reboot.in: Likewise.
27820 * util/grub-set-default.in: Likewise.
27821 * util/i386/efi/grub-install.in: Likewise.
27822 * util/ieee1275/grub-install.in: Likewise.
27823 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27825 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27827 * .bzrignore: Ignore 41_custom.
27829 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27831 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27833 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27835 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27836 prototype declarations.
27838 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27839 generating fs, partmap, and video lists.
27840 * include/grub/fs.h (grub_fs_register): Omit prototype if
27841 GRUB_LST_GENERATOR is defined.
27842 * include/grub/partition.h (grub_partition_map_register): Likewise.
27843 * include/grub/video.h (grub_video_register): Likewise.
27845 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27847 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27849 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27851 * util/grub-mkrescue.in: Support --xorriso argument.
27853 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27855 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27856 Suggested by: Thomas Schmitt.
27858 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27860 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27861 Suggested by: Thomas Schmitt.
27863 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27865 custom.cfg support.
27867 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27868 * util/grub.d/41_custom.in: New file.
27870 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27872 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27873 been merged back into normal.
27875 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27877 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27878 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27880 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27882 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27883 when generating manual pages.
27884 * docs/man/grub-bin2h.h2m: New file.
27885 * docs/man/grub-editenv.h2m: New file.
27886 * docs/man/grub-fstest.h2m: New file.
27887 * docs/man/grub-install.h2m: New file.
27888 * docs/man/grub-macho2img.h2m: New file.
27889 * docs/man/grub-mkconfig.h2m: New file.
27890 * docs/man/grub-mkdevicemap.h2m: New file.
27891 * docs/man/grub-mkfont.h2m: New file.
27892 * docs/man/grub-mkimage.h2m: New file.
27893 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27894 * docs/man/grub-mkrelpath.h2m: New file.
27895 * docs/man/grub-mkrescue.h2m: New file.
27896 * docs/man/grub-ofpathname.h2m: New file.
27897 * docs/man/grub-pe2elf.h2m: New file.
27898 * docs/man/grub-probe.h2m: New file.
27899 * docs/man/grub-reboot.h2m: New file.
27900 * docs/man/grub-script-check.h2m: New file.
27901 * docs/man/grub-set-default.h2m: New file.
27902 * docs/man/grub-setup.h2m: New file.
27904 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27906 Use FOR_* macros instead of *_iterate whenever possible.
27908 * commands/handler.c: Removed.
27909 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27910 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27911 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27912 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27913 (grub_probe_SOURCES): Remove kern/parser.c.
27914 (util/grub-script-check.c_DEPENDENCIES): Removed.
27915 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27916 and grub_script_check_init.c.
27917 (grub_script_check_init.lst): Removed.
27918 (grub_script_check_init.h): Likewise.
27919 (grub_script_check_init.c): Likewise.
27920 (pkglib_MODULES): Remove handler.mod and sh.mod.
27921 (handler_mod_SOURCES): Removed.
27922 (handler_mod_CFLAGS): Likewise.
27923 (handler_mod_LDFLAGS): Likewise.
27924 (normal_mod_SOURCES): Remove normal/handler.c.
27925 Add script/main.c, script/script.c, script/execute.c,
27926 script/function.c, script/lexer.c, grub_script.tab.c
27927 and grub_script.yy.c.
27928 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27929 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27930 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27931 (grub_setup_SOURCES): Remove kern/parser.c.
27932 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27933 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27934 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27935 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27936 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27937 (grub_setup_SOURCES): Remove kern/parser.c.
27938 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27939 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27940 * include/grub/command.h (grub_command_iterate): Removed.
27941 (FOR_COMMANDS): New macro.
27942 * include/grub/dl.h (grub_dl): New member next.
27943 (grub_dl_iterate): Removed.
27944 (grub_dl_head): New variable declaration.
27945 (FOR_DL_MODULES): New macro.
27946 * include/grub/fs.h: Include list.h.
27947 (grub_fs): Make next first element.
27948 (grub_fs_list): New variable declaration.
27949 (grub_fs_register): Make inline.
27950 (grub_fs_unregister): Likewise.
27951 (grub_fs_iterate): Removed.
27952 (FOR_FILESYSTEMS): New macro.
27953 * include/grub/handler.h: Removed.
27954 * include/grub/list.h (grub_list_hook_t): Removed.
27955 (grub_list_test_t): Likewise.
27956 (grub_list_pop): Likewise.
27957 (grub_list_iterate): Likewise.
27958 (grub_list_insert): Likewise.
27959 (FOR_LIST_ELEMENTS): New macro.
27960 * include/grub/parser.h (grub_parser_class): Removed.
27961 (grub_parser_register): Likewise.
27962 (grub_parser_unregister): Likewise.
27963 (grub_parser_get_current): Likewise.
27964 (grub_parser_set_current): Likewise.
27965 (grub_register_rescue_parser): Likewise.
27966 (grub_rescue_parse_line): New function.
27967 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27968 * include/grub/script_sh.h (grub_script_function_list): New variable
27970 (FOR_SCRIPT_FUNCTIONS): New macro.
27971 (grub_script_function_iterate): Removed.
27972 (grub_normal_parse_line): New prototype.
27973 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27974 (FOR_DISABLED_TERM_INPUTS): Likewise.
27975 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27976 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27977 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27979 (grub_video_register): Inline.
27980 (grub_video_unregister): Likewise.
27981 (grub_video_adapter_list): New variable declaration.
27982 (grub_video_iterate): Removed.
27983 (FOR_VIDEO_ADAPTERS): New macro.
27984 * kern/dl.c (grub_dl_list): Removed. All users updated.
27985 (grub_dl_iterate): Removed.
27986 * kern/fs.c (grub_fs_list): Make global.
27987 (grub_fs_register): Removed.
27988 (grub_fs_unregister): Likewise.
27989 (grub_fs_iterate): Likewise.
27990 * kern/handler.c: Removed.
27991 * kern/list.c (grub_list_pop): Removed.
27992 (grub_list_iterate): Likewise.
27993 (grub_list_insert): Likewise.
27994 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27995 (grub_prio_list_insert): Don't use grub_list_insert.
27996 * kern/main.c (grub_register_rescue_parser): Don't call
27997 grub_register_rescue_parser.
27998 * kern/parser.c (grub_parser_class): Removed.
27999 (grub_parser_execute): Use grub_rescue_parse_line.
28000 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
28001 (grub_rescue_parser): Removed.
28002 (grub_register_rescue_parser): Likewise.
28003 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
28004 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
28005 (grub_auth_check_authentication): Likewise.
28006 * normal/completion.c (iterate_command): Removed.
28007 (grub_normal_do_completion): Use FOR_COMMANDS.
28008 * normal/handler.c: Removed.
28009 * normal/main.c (read_config_file): Remove parser changing.
28010 (grub_normal_execute): Don't call read_handler_list.
28011 (grub_normal_read_line_real): Statically allocate prompt.
28012 (grub_cmdline_run): Use grub_normal_parse_line.
28013 (GRUB_MOD_FINI): Don't call free_handler_list.
28014 * normal/menu_entry.c (run): Likewise.
28015 * script/function.c (grub_script_function_list): Make global.
28016 (grub_script_function_iterate): Removed.
28017 * script/main.c (grub_normal_parse_line): Make global.
28018 (grub_sh_parser): Removed.
28019 (GRUB_MOD_INIT): Likewise.
28020 (GRUB_MOD_FINI): Likewise.
28021 * tests/lib/functional_test.c (grub_functional_test): Use
28023 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
28024 (grub_test_run): Use FOR_LIST_ELEMENTS.
28025 * tests/lib/unit_test.c (main): Likewise.
28026 * util/deviceiter.c (grub_util_iterate_devices): Don't use
28028 * util/grub-fstest.c (grub_term_input_class): Removed.
28029 (grub_term_output_class): Likewise.
28030 * util/grub-probe.c: Likewise.
28031 * util/i386/pc/grub-setup.c: Likewise.
28032 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28033 * util/grub-script-check.c (main): Don't call grub_init_all and
28035 * video/video.c (grub_video_adapter_list): Make global.
28036 (grub_video_register): Removed.
28037 (grub_video_unregister): Likewise.
28038 (grub_video_iterate): Likewise.
28040 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
28042 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
28043 reported by Henrique Ferreiro.
28045 2010-06-09 Robert Millan <rmh@gnu.org>
28047 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
28048 ones, when both are available.
28050 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
28052 Make --version uniform and avoid hard-coded program name.
28054 * util/grub-mkimage.c (main): Use `program_name' instead of
28056 * util/i386/pc/grub-setup.c (main): Likewise.
28057 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
28058 * util/grub-install.in: Save the basename of $0 in $self, and use the
28059 latter in informational messages. Use the same format for --version
28060 as the binary programs.
28061 * util/grub-mkconfig.in: Likewise.
28062 * util/grub-mkrescue.in: Likewise.
28063 * util/grub-reboot.in: Likewise.
28064 * util/grub-set-default.in: Likewise.
28065 * util/i386/efi/grub-install.in: Likewise.
28066 * util/ieee1275/grub-install.in: Likewise.
28067 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
28069 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
28071 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
28072 embedding area. Use <= instead of == when checking for non-emptiness.
28074 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
28076 * configure.ac: Add `.' to the directories searched for unifont.
28078 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
28080 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
28083 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
28085 * docs/grub.texi (History): Expand to cover GRUB 2.
28086 (Serial terminal): Refer to `terminal_input' and `terminal_output'
28087 commands, not `terminal'.
28088 (serial): Likewise.
28089 (terminal_input): New section.
28090 (terminal_output): New section.
28091 (uppermem): New section (stub).
28092 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
28094 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
28096 * docs/grub.texi (Security): Menu entries are unrestricted by
28097 default, not restricted to superusers as I had previously thought.
28098 Reword to account for this.
28100 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28102 * kern/emu/misc.c (device_mapper_null_log): New function.
28103 (grub_device_mapper_supported): New function.
28104 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
28106 * kern/emu/hostdisk.c (find_partition_start): Check whether
28107 device-mapper is supported before trying to use it.
28108 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
28110 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28112 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
28113 (File name syntax): Likewise.
28114 (help): --all is no longer supported in GRUB 2. Be more precise
28115 about pattern matching.
28117 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28119 * normal/completion.c (grub_normal_do_completion): When completing
28120 arguments to "set" and the current word contains an equals sign,
28121 skip to after the equals sign before starting completion.
28123 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28125 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
28127 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28129 * docs/grub.texi (Network): New section.
28130 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
28131 `(nd)' as in GRUB Legacy.
28132 (pxe_unload): New section.
28134 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28136 * docs/grub.texi (Troubleshooting): `echo' is not usually available
28137 in the rescue shell, so recommend using `set' instead. Thanks,
28140 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28142 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
28143 (password): New section.
28144 (password_pbkdf2): New section.
28145 (search): New section.
28146 (Security): New section.
28147 (Troubleshooting): New section, currently very incomplete.
28148 (Invoking grub-mkpasswd-pbkdf2): New section.
28149 (Internals): New section, currently very incomplete.
28151 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28153 * util/grub.d/00_header.in: Add some more quoting (of
28154 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
28156 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
28158 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28160 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
28161 to `count', fixing variable shadowing that broke the -c option.
28163 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
28165 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
28166 in case they contain spaces.
28168 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28170 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
28171 "part_" to partmap module names, in line with grub-install.
28172 Reported by: Jindřich Makovička (Debian bug #584426).
28174 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28176 * util/grub-mkimage.c: Make target-related error messages slightly
28177 more helpful; -O talks about "format". Explicitly point to the use
28178 of -O if no target is specified.
28179 Reported by: Didier Raboud (Debian bug #584415).
28181 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
28183 * INSTALL: Document several build requirements for optional features
28184 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
28186 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
28188 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
28189 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
28190 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28192 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28194 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28195 Thanks to Jordan Uggla for spotting this.
28197 2010-06-02 Aleš Nesrsta <starous@volny.cz>
28199 Finally make USB usable.
28201 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28202 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28203 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28204 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28205 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28206 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28207 (GRUB_OHCI_FSMPS): Likewise.
28208 (GRUB_OHCI_PERIODIC_START): Likewise.
28209 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28210 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28211 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28212 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28213 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28214 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28215 (grub_ohci_transaction): Likewise.
28216 (grub_ohci_transfer): Improve condition detection algorithms.
28217 Handle toggle property. Program the transactions correctly.
28218 Improve error handling. Various important fixups.
28219 (grub_ohci_portstatus): Put register writes in right order.
28220 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28221 (grub_uhci_transfer): Don't show "failed" message on success.
28222 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28224 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28225 determine its size.
28226 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28227 before initialization is completed. Use IN direction for empty
28228 transfers. Use last_trans and compute toggle.
28229 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28230 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28231 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28232 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28233 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28234 (grub_usb_device): Increase toggle to 256.
28235 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28236 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28237 GRUB_USBMS_SUBCLASS_SFF8070.
28238 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28239 (grub_scsi_inquiry): New member page and alloc_length.
28240 (grub_scsi_request_sense): New structure.
28241 (grub_scsi_request_sense_data): Likewise.
28242 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28244 * disk/scsi.c (grub_scsi_request_sense): New function.
28245 (grub_scsi_test_unit_ready): Likewise.
28246 (grub_scsi_inquiry): Fill new fields.
28247 (grub_scsi_read_capacity): Likewise.
28248 (grub_scsi_read10): Add request sense at the end.
28249 (grub_scsi_read12): Likewise.
28250 (grub_scsi_write10): Likewise.
28251 (grub_scsi_write12): Likewise.
28252 (grub_scsi_open): Add Test Unit Ready.
28253 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28254 Support additional subclasses. Con't clear halt yet. Activate the
28255 proper config. Calculate LUNs correctly.
28256 (grub_usbms_transfer): Various important fixups.
28258 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28260 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28261 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28262 (grub_ohci_fini_hw): New function.
28263 (grub_ohci_restore_hw): Likewise.
28264 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28265 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28266 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28268 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28270 Dedicated DMA allocations.
28272 * bus/pci.c (grub_memalign_dma32): New function
28273 (grub_dma_free): Likewise.
28274 (grub_dma_get_virt): Likewise.
28275 (grub_dma_get_phys): Likewise.
28276 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28277 (grub_ohci_pci_iter): Use dma32_alloc.
28278 (grub_ohci_transfer): Likewise.
28279 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28280 (grub_usb_bulk_readwrite): Likewise.
28281 * include/grub/pci.h: Add declarations.
28283 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28287 * bus/cs5536.c: New file.
28288 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28289 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28290 (cs5536_mod_SOURCES): New variable.
28291 (cs5536_mod_CFLAGS): Likewise.
28292 (cs5536_mod_LDFLAGS): Likewise.
28293 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28295 (kernel_img_SOURCES): Add bus/cs5536.c.
28296 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28298 (usb_mod_SOURCES): New variable.
28299 (usb_mod_CFLAGS): New variable.
28300 (usb_mod_LDFLAGS): New variable.
28301 (usbtest_mod_SOURCES): New variable.
28302 (usbtest_mod_CFLAGS): New variable.
28303 (usbtest_mod_LDFLAGS): New variable.
28304 (ohci_mod_SOURCES): New variable.
28305 (ohci_mod_CFLAGS): New variable.
28306 (ohci_mod_LDFLAGS): New variable.
28307 (usbms_mod_SOURCES): New variable.
28308 (usbms_mod_CFLAGS): New variable.
28309 (usbms_mod_LDFLAGS): New variable.
28310 (usb_keyboard_mod_SOURCES): New variable.
28311 (usb_keyboard_mod_CFLAGS): New variable.
28312 (usb_keyboard_mod_LDFLAGS): New variable.
28313 * include/grub/smbus.h: New file.
28314 * include/grub/cs5536.h: New file.
28316 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28318 * util/grub.d/00_header.in: Add safety check to make sure that
28319 ${locale_dir} exists before trying to probe it.
28321 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28323 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28324 per the GNU Coding Standards; this is now too obscure to be worth
28327 (chainloader): Remove cross-reference to `SCO UnixWare'.
28329 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28331 * docs/grub.texi (Chain-loading): New section.
28332 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28333 adjusted for GRUB 2.
28334 (SCO UnixWare): Likewise.
28336 (chainloader): Add reference to `Block list syntax'.
28337 (drivemap): New section.
28338 (parttool): New section.
28340 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28342 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28344 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28345 (Installing GRUB using grub-install): Remove reference to the grub
28346 shell; mention `grub-mkimage' and `grub-setup' instead.
28347 (Invoking grub-install): Likewise.
28348 (Interface): Add reference to `Menu entry editor'.
28349 (serial): Remove `--device' option.
28351 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28353 * docs/grub.texi (Configuration): New section, documenting
28354 configuration file generation using grub-mkconfig. I've left a slot
28355 for documenting the full shell scripting format but have not yet
28356 started on writing that up.
28357 (Invoking grub-mkconfig): New section.
28359 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28361 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28362 (GNU GRUB manual): Likewise.
28363 (General commands): Update description of `terminfo' for GRUB 2.
28365 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28367 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28368 (GRUB_MOD_INIT): Fix capitalisation.
28369 * docs/grub.texi (Command-line and menu entry commands): Document
28370 gettext and gptsync commands.
28372 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28374 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28375 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28377 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28379 Add btrfs probing support, currently only in the single-device case.
28381 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28383 (grub_guess_root_device): Call find_root_device_from_mountinfo
28384 before looking in /dev.
28386 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28388 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28389 GRUB_DISK_SIZE_UNKNOWN.
28390 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28392 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28394 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28395 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28396 corrupted or not synced properly.
28398 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28400 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28401 Reported by: Seth Goldberg.
28403 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28405 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28407 Reported by: Seth Goldberg.
28409 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28411 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28412 Reported by: Seth Goldberg.
28414 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28416 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28417 64-bit address as signed on MIPS.
28419 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28421 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28422 to the empty string.
28424 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28426 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28428 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28429 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28430 * kern/misc.c (__enable_execute_stack): Disable on
28433 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28435 Make grub-probe work with symbolic links under /dev/mapper as well
28436 as with real block devices. The Linux world seems to be (at best)
28437 in transition here, and GRUB shouldn't get caught in the middle.
28439 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28442 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28444 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28445 input files (in which case exit zero).
28447 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28449 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28450 return NULL for various reasons even if it has a maximum-length
28451 buffer: for example, there might be a symlink loop, or the path
28452 might exceed PATH_MAX. If this happens, return NULL.
28454 2010-05-27 Robert Millan <rmh@gnu.org>
28456 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28457 partmap module to handle cross-partmap setups.
28458 Reported by Orestes Mas. Gràcies!
28460 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28462 * util/grub-mkrescue.in: Initialise override_dir rather than
28463 assuming that it's unset or empty in the environment.
28465 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28467 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28468 variable index into p_index to suppress a warning with -Wshadow.
28470 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28472 * INSTALL: Added flex >= 2.5.35 requirement.
28474 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28476 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28478 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28482 * commands/i386/cmostest.c: New file.
28483 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28484 (cmostest_mod_SOURCES): New variable.
28485 (cmostest_mod_CFLAGS): Likewise.
28486 (cmostest_mod_LDFLAGS): Likewise.
28487 * conf/i386-pc.rmk: Likewise.
28488 * docs/grub.texi (Vendor power-on keys): New section.
28489 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28490 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28491 and GRUB_BUTTON_CMOS_ADDRESS.
28492 * util/grub.d/00_header.in: Handle powering-on by separate button.
28494 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28496 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28497 Removed drawing_scrollbar argument. All users updated
28499 Reported by Jo Shields
28501 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28503 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28504 buffer since gfxterm handles double repaint.
28506 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28508 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28509 * term/gfxterm.c (real_scroll): Likewise.
28511 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28513 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28514 before calling BIOS.
28516 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28518 * include/grub/i18n.h: Always enable grub_gettext.
28520 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28522 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28523 partition naming style.
28525 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28527 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28528 not the first option.
28530 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28532 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28534 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28536 * util/misc.c: Move inclusion of <limits.h> to ...
28537 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28539 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28541 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28542 Fix merge error in NetBSD code.
28543 (find_partition_start) [__NetBSD__]: Likewise.
28545 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28547 Fix grub-mkrescue usage unit testing.
28549 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28551 2010-05-18 Christian Franke <franke@computer.org>
28553 * util/grub.d/10_windows.in: Use path names instead of
28554 drive letters to prevent warning from Cygwin 1.7.
28555 Add drivemap command to menuentry if needed.
28557 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28559 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28560 gnumach and gnumach.gz.
28562 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28564 * include/grub/i18n.h (gettext): Inline instead of using #define.
28565 (grub_gettext): Likewise.
28568 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28570 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28571 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28572 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28573 (main): Add a slash after pkglibdirroot.
28575 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28577 * util/grub-install.in: Add missing "in" keyword.
28579 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28581 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28582 Reported by: Seth Goldberg.
28584 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28586 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28588 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28590 * configure.ac: Check for Linux device-mapper support.
28592 * util/hostdisk.c (device_is_mapped): New function.
28593 (find_partition_start): New function, partly broken out from
28594 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28595 device-mapper support added.
28596 (linux_find_partition): Use find_partition_start.
28597 (convert_system_partition_to_system_disk): Add `st' argument.
28598 Support Linux /dev/mapper/* devices if device-mapper support is
28599 available; only DM-RAID devices are understood at present.
28600 (find_system_device): Add `st' argument. Pass it to
28601 convert_system_partition_to_system_disk.
28602 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28603 find_system_device and convert_system_partition_to_system_disk. Use
28604 find_partition_start.
28606 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28607 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28608 * util/deviceiter.c [__linux__]: Define MINOR.
28609 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28610 * util/mkdevicemap.c (grub_putchar): New function.
28611 (grub_getkey): New function.
28612 (grub_refresh): New function.
28613 (main): Set debug=all if -v -v is used.
28615 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28617 Fix build with non-GNU libcs.
28619 * util/misc.c (canonicalize_file_name): Move to ...
28620 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28621 grub_make_system_path_relative_to_its_root.
28623 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28625 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28626 we handle finding grub-mkimage. Default to finding grub-mkimage in
28627 ${bindir} with program_transform_name applied, and provide a
28628 --grub-mkimage option to override this.
28630 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28632 Remove grub-mkisofs.
28634 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28635 (grub_mkisofs_SOURCES): Removed.
28636 (grub_mkisofs_CFLAGS): Removed.
28637 * util/mkisofs/defaults.h: Removed.
28638 * util/mkisofs/eltorito.c: Likewise.
28639 * util/mkisofs/exclude.h: Likewise.
28640 * util/mkisofs/hash.c: Likewise.
28641 * util/mkisofs/include/: Likewise.
28642 * util/mkisofs/include/fctldefs.h: Likewise.
28643 * util/mkisofs/include/mconfig.h: Likewise.
28644 * util/mkisofs/include/prototyp.h: Likewise.
28645 * util/mkisofs/include/statdefs.h: Likewise.
28646 * util/mkisofs/iso9660.h: Likewise.
28647 * util/mkisofs/joliet.c: Likewise.
28648 * util/mkisofs/match.c: Likewise.
28649 * util/mkisofs/match.h: Likewise.
28650 * util/mkisofs/mkisofs.c: Likewise.
28651 * util/mkisofs/mkisofs.h: Likewise.
28652 * util/mkisofs/msdos_partition.h: Likewise.
28653 * util/mkisofs/multi.c: Likewise.
28654 * util/mkisofs/name.c: Likewise.
28655 * util/mkisofs/rock.c: Likewise.
28656 * util/mkisofs/tree.c: Likewise.
28657 * util/mkisofs/write.c: Likewise.
28659 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28661 Unify grub-mkimage accross platforms.
28663 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28664 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28665 (grub_mkelfimage_SOURCES): Removed.
28666 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28667 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28668 (bin_UTILITIES): Add grub-mkimage.
28669 (grub_mkimage_SOURCES): New variable.
28670 (kernel_img_HEADERS): Remove machine/kernel.h.
28671 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28672 (pkglib_PROGRAMS): Add kernel.img.
28673 (kernel_img_HEADERS): Add machine/kernel.h.
28674 (kernel_img_FORMAT): Removed.
28675 (bin_UTILITIES): Remove grub-mkimage.
28676 (grub_mkimage_SOURCES): Removed.
28677 (grub_mkimage_CFLAGS): Likewise.
28678 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28679 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28680 (pkglib_PROGRAMS): Add kernel.img.
28681 (bin_UTILITIES): Remove grub-mkimage.
28682 (grub_mkimage_SOURCES): Removed.
28683 (grub_mkimage_CFLAGS): Likewise.
28684 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28685 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28686 (pkglib_PROGRAMS): Add kernel.img.
28687 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28688 (pkglib_PROGRAMS): Add kernel.img.
28689 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28690 (grub_mkimage_SOURCES): Removed.
28691 (grub_mkimage_CFLAGS): Likewise.
28692 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28693 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28694 (pkglib_PROGRAMS): Add kernel.img.
28695 (bin_UTILITIES): Remove grub-mkimage.
28696 (grub_mkimage_SOURCES): Removed.
28697 (grub_mkimage_CFLAGS): Likewise.
28698 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28699 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28700 (grub_mkimage_SOURCES): Removed.
28701 (grub_mkimage_CFLAGS): Likewise.
28702 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28703 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28704 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28705 (grub_pe32_optional_header): ... this.
28706 (grub_pe64_optional_header): ... and this. All users updated.
28707 (GRUB_PE32_PE32_MAGIC): Split into ..
28708 (GRUB_PE32_PE32_MAGIC): .. this.
28709 (GRUB_PE32_PE64_MAGIC): .. and this.
28710 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28711 * include/grub/elf.h (PT_GNU_STACK): New definition.
28712 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28713 * include/grub/i386/efi/kernel.h: Likewise.
28714 * include/grub/i386/kernel.h: Likewise.
28715 * include/grub/i386/pc/kernel.h: Likewise.
28716 * include/grub/i386/qemu/boot.h: Likewise.
28717 * include/grub/mips/kernel.h: Likewise.
28718 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28719 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28720 * include/grub/powerpc/kernel.h: Likewise.
28721 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28722 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28723 * include/grub/sparc64/kernel.h: Likewise.
28724 * include/grub/x86_64/efi/kernel.h: Likewise.
28725 * include/grub/x86_64/kernel.h: Likewise.
28726 * include/grub/offsets.h: New file.
28727 * include/grub/kernel.h (grub_module_info): Split into ...
28728 (grub_module_info32): ... this.
28729 (grub_module_info64): ... and this.
28730 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28731 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28732 (grub_boot_blocklist): Moved from here ...
28733 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28734 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28735 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28736 * include/grub/types.h (grub_target_to_host16): Removed.
28737 (grub_target_to_host32): Likewise.
28738 (grub_target_to_host64): Likewise.
28739 (grub_host_to_target16): Likewise.
28740 (grub_host_to_target32): Likewise.
28741 (grub_host_to_target64): Likewise.
28742 (grub_host_to_target_addr): Likewise.
28744 Support grub-mkrescue for efi, coreboot and qemu.
28746 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28747 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28748 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28749 * util/grub-mkrawimage.c: Moved from here ...
28750 * util/grub-mkimage.c: ... here. All users updated.
28751 (ALIGN_ADDR): Use image_target.
28752 (TARGET_NO_FIELD): New const.
28753 (image_target_desc): New type.
28754 (image_targets): New array.
28755 (grub_target_to_host64): Use image_target.
28756 (grub_target_to_host32): Likewise.
28757 (grub_target_to_host16): Likewise.
28758 (grub_host_to_target64): Likewise.
28759 (grub_host_to_target32): Likewise.
28760 (grub_host_to_target16): Likewise.
28761 (grub_host_to_target_addr): Likewise.
28762 (generate_image): Handle multiimage.
28763 (main): Require -O parameter. All users updated.
28764 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28765 util/efi/grub-mkimage.c
28766 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28767 New option --rom-directory.
28769 * util/i386/efi/grub-mkimage.c: Removed.
28770 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28771 (grub_target_to_host32): Likewise.
28772 (grub_target_to_host64): Likewise.
28773 (grub_host_to_target16): Likewise.
28774 (grub_host_to_target32): Likewise.
28775 (grub_host_to_target64): Likewise.
28776 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28777 (grub_target_to_host32): Likewise.
28778 (grub_target_to_host64): Likewise.
28779 (grub_host_to_target16): Likewise.
28780 (grub_host_to_target32): Likewise.
28781 (grub_host_to_target64): Likewise.
28783 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28785 Source tree is reorganized for emu build.
28787 * include/grub/util/console.h: Move from here...
28788 * include/grub/emu/console.h: ...to here.
28789 * include/grub/util/getroot.h: Move from here...
28790 * include/grub/emu/getroot.h: ...to here.
28791 * include/grub/util/hostdisk.h: Move from here...
28792 * include/grub/emu/hostdisk.h: ...to here.
28793 * util/console.c: Move from here...
28794 * kern/emu/console.c: ...to here.
28795 * util/getroot.c: Move from here...
28796 * kern/emu/getroot.c: ...to here.
28797 * util/grub-emu.c: Move from here...
28798 * kern/emu/main.c: ...to here.
28799 * util/hostdisk.c: Move from here...
28800 * kern/emu/hostdisk.c: ...to here.
28801 * util/hostfs.c: Move from here...
28802 * kern/emu/hostfs.c: ...to here.
28803 * util/mm.c: Move from here...
28804 * kern/emu/mm.c: ...to here.
28805 * util/pci.c: Move from here...
28806 * bus/emu/pci.c: ...to here.
28807 * util/sdl.c: Move from here...
28808 * video/emu/sdl.c: ...to here.
28809 * util/time.c: Move from here...
28810 * kern/emu/time.c: ...to here.
28811 * util/usb.c: Move from here...
28812 * bus/usb/emu/usb.c: ...to here.
28814 * include/grub/emu/misc.h: New header for grub-emu functions.
28815 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28817 * conf/any-emu.rmk: Rule updates for above renames.
28818 * conf/common.rmk: Likewise.
28819 * conf/i386-pc.rmk: Likewise.
28820 * conf/i386-qemu.rmk: Likewise.
28821 * conf/mips.rmk: Likewise.
28822 * conf/sparc64-ieee1275.rmk: Likewise.
28823 * conf/x86-efi.rmk: Likewise.
28825 * disk/lvm.h: #include updates for above renames.
28826 * util/grub-mkrelpath.c: Likewise.
28827 * util/grub-probe.c: Likewise.
28828 * util/i386/pc/grub-setup.c: Likewise.
28829 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28830 * kern/emu/console.c: Likewise.
28831 * kern/emu/getroot.c: Likewise.
28832 * kern/emu/hostdisk.c: Likewise.
28833 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28835 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28836 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28837 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28838 * util/misc.c: Remove grub-emu functions.
28840 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28843 Reported by: Thorsten Grützmacher.
28845 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28847 (circprog_set_property): Register and unregister timeout hook.
28848 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28849 (label_destroy): Free template. and unregister hook.
28850 (label_set_state): New function.
28851 (label_set_property): Handle templates and hooks.
28852 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28854 (progress_bar_set_property): Register and unregister timeout hook.
28855 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28856 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28857 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28858 (update_timeout_visit): Removed.
28859 (update_timeouts): New function.
28860 (redraw_timeouts): Likewise.
28861 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28862 (grub_gfxmenu_clear_timeout): Likewise.
28863 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28864 (grub_gfxmenu_timeout_notify): Likewise.
28865 (grub_gfxmenu_timeout_notifications): New external variable.
28866 (grub_gfxmenu_timeout_register): New function.
28867 (grub_gfxmenu_timeout_unregister): Likewise.
28869 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28871 Transform (broken) vga terminal into (working) vga video driver.
28873 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28874 video/i386/pc/vga.c.
28875 * include/grub/video.h (grub_video_driver_id):
28876 Add GRUB_VIDEO_DRIVER_VGA.
28877 * term/i386/pc/vga.c: Renamed to ...
28878 * video/i386/pc/vga.c: ...this
28879 (DEBUG_VGA): Removed.
28880 (CHAR_WIDTH): Likewise.
28881 (CHAR_HEIGHT): Likewise.
28882 (TEXT_WIDTH): Likewise.
28883 (TEXT_HEIGHT): Likewise.
28884 (DEFAULT_FG_COLOR): Likewise.
28885 (DEFAULT_BG_COLOR): Likewise.
28886 (colored_char): Likewise.
28889 (cursor_state): Likewise.
28890 (fg_color): Likewise.
28891 (bg_color): Likewise.
28892 (text_buf): Likewise.
28895 (framebuffer): New variable.
28896 (set_read_map): Disabled.
28897 (setup): New variable.
28898 (is_target): Likewise.
28899 (grub_vga_mod_init): Likewise.
28900 (grub_vga_mod_fini): Likewise.
28901 (check_vga_mem): Likewise.
28902 (write_char): Likewise.
28903 (write_cursor): Likewise.
28904 (scroll_up): Likewise.
28905 (grub_vga_putchar): Likewise.
28906 (grub_vga_getcharwidth): Likewise.
28907 (grub_vga_getwh): Likewise.
28908 (grub_vga_getxy): Likewise.
28909 (grub_vga_gotoxy): Likewise.
28910 (grub_vga_cls): Likewise.
28911 (grub_vga_setcolorstate): Likewise.
28912 (grub_vga_setcursor): Likewise.
28913 (grub_video_vga_init): New function.
28914 (grub_video_vga_setup): Likewise.
28915 (grub_video_vga_fini): Likewise.
28916 (update_target): Likewise.
28917 (grub_video_vga_blit_bitmap): Likewise.
28918 (grub_video_vga_blit_render_target): Likewise.
28919 (grub_video_vga_set_active_render_target): Likewise.
28920 (grub_video_vga_get_active_render_target): Likewise.
28921 (grub_video_vga_swap_buffers): Likewise.
28922 (grub_video_vga_set_palette): Likewise.
28923 (grub_video_vga_get_info_and_fini): Likewise.
28924 (grub_vga_term): Removed.
28925 (grub_video_vga_adapter): New variable.
28926 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28927 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28929 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28931 * video/readers/jpeg.c: Indented.
28933 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28935 Various jpeg cleanups.
28937 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28938 (grub_jpeg_decode_quan_table): Use sizeof.
28939 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28941 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28943 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28944 tables. Ignore non-last ac bit.
28945 (grub_jpeg_decode_quan_table): Likewise.
28947 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28949 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28950 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28951 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28952 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28953 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28954 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28956 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28958 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28961 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28963 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28965 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28967 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28970 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28972 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28975 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28977 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28980 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28982 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28984 2010-05-01 Christian Franke <franke@computer.org>
28986 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28987 Remove broken Cygwin path conversion.
28988 * util/misc.c: [__CYGWIN__] Add include and define.
28989 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28991 (make_system_path_relative_to_its_root): Simplify loop, replace early
28993 [__CYGWIN__] Add conversion to win32 path.
28994 Include "/" case in trailing slash removal.
28996 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28998 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28999 Reported by: Seth Goldberg
29001 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29003 * commands/help.c (grub_cmd_help): Fix a typo.
29004 Reported by: Seth Goldberg
29006 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29008 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
29010 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
29011 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
29012 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
29013 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
29014 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
29015 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
29016 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
29017 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
29018 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
29019 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
29020 * normal/context.c (GRUB_MOD_INIT): Likewise.
29021 * normal/main.c (GRUB_MOD_INIT): Likewise.
29022 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
29023 * term/serial.c (GRUB_MOD_INIT): Likewise.
29024 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
29026 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29028 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
29031 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29033 * commands/iorw.c: New file.
29034 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
29035 (iorw_mod_SOURCES): New variable.
29036 (iorw_mod_CFLAGS): Likewise.
29037 (iorw_mod_LDFLAGS): Likewise.
29039 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29043 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
29044 * normal/main.c (hotkey_aliases): New variable.
29045 (grub_normal_add_menu_entry): Parse "--hotkey".
29046 * normal/menu_text.c (run_menu): Handle hotkeys.
29048 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29050 * kern/i386/coreboot/init.c (grub_machine_init): Call
29051 grub_machine_mmap_init on qemu.
29053 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29055 * boot/i386/qemu/boot.S: Add a missing .code16.
29057 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29059 Use LBIO on coreboot.
29061 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
29062 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
29063 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
29065 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
29066 grub_machine_mmap_init on coreboot.
29067 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
29068 GRUB_LINUXBIOS_MEMBER_LINK.
29069 (grub_machine_mmap_iterate): Fix declaration.
29070 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
29072 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29074 Split coreboot and multiboot ports.
29076 * conf/i386-multiboot.rmk: New file.
29077 * configure.ac: Add multiboot port.
29078 * include/grub/i386/multiboot/boot.h: New file.
29079 * include/grub/i386/multiboot/console.h: Likewise.
29080 * include/grub/i386/multiboot/init.h: Likewise.
29081 * include/grub/i386/multiboot/kernel.h: Likewise.
29082 * include/grub/i386/multiboot/loader.h: Likewise.
29083 * include/grub/i386/multiboot/memory.h: Likewise.
29084 * include/grub/i386/multiboot/serial.h: Likewise.
29085 * include/grub/i386/multiboot/time.h: Likewise.
29086 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
29087 * loader/multiboot.c: Likewise.
29088 * loader/multiboot_mbi2.c: Likewise.
29089 * util/grub-mkrescue.in: Generate multiboot rescue.
29091 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29093 * kern/parser.c (grub_parser_execute): Cope with read-only config.
29095 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29097 Merge handling of input and output terminals. Fix a hang.
29099 * commands/terminal.c (abstract_terminal): New struct.
29100 (handle_command): New function. Based on grub_cmd_terminal_input.
29101 (grub_cmd_terminal_input): Use handle_command.
29102 (grub_cmd_terminal_output): Use handle_command.
29104 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
29106 Fix comment handling.
29108 * tests/grub_script_comments.in: New testcase.
29109 * conf/tests.rmk: Rules for new testcase.
29110 * script/yylex.l: Updated flex rules.
29112 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
29114 * docs/grub.texi (play): Document that zero pitches produce rests.
29115 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
29118 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
29120 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
29123 2010-04-26 Christian Franke <franke@computer.org>
29125 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
29126 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
29127 (grub_get_prefix): Remove function.
29128 * util/grub-emu.c (main): Replace grub_get_prefix () call by
29129 make_system_path_relative_to_its_root ().
29130 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
29132 2010-04-24 Christian Franke <franke@computer.org>
29134 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
29135 (kernel_img_LDFLAGS): Remove -static-libgcc.
29137 2010-04-24 Christian Franke <franke@computer.org>
29139 * configure.ac: Do not CHECK_BSS_START_SYMBOL
29140 and CHECK_END_SYMBOL if grub-emu is built.
29141 Unset TARGET_OBJ2ELF if grub-emu is built
29142 without module support.
29144 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
29148 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
29149 (grub_fstest_SOURCES): Likewise.
29150 (pkglib_MODULES): Add nilfs2.mod.
29151 (nilfs2_mod_SOURCES): New variable.
29152 (nilfs2_mod_CFLAGS): Likewise.
29153 (nilfs2_mod_LDFLAGS): Likewise.
29154 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29155 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29156 * fs/nilfs2.c: New file.
29158 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
29160 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
29163 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
29165 Add grub-mkconfig support for NetBSD.
29167 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
29168 * util/grub-mkconfig.in: export new NetBSD specific variables.
29169 * po/POTFILES-shell: added 10_netbsd.in.
29170 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
29172 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
29174 Fix emu build with grub-emu-pci and grub-emu-modules.
29176 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
29178 * include/grub/libpciaccess.h: New file.
29179 * conf/any-emu.rmk: Update kernel headers for emu build.
29181 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29183 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
29185 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29187 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
29189 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29191 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29192 Retrieve chosen/bootpath if bootpath isn't hardcoded.
29193 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29194 util/ieee1275/ofpath.c.
29195 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29196 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29197 * include/grub/sparc64/ieee1275/boot.h
29198 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29199 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29200 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29201 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29203 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29204 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29205 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29208 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29210 * util/grub-mkconfig.in: Corrected two == equality tests.
29211 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29212 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29213 expect a number appended to it.
29214 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29215 expects a number appended to it.
29217 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29219 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29221 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29223 * util/hostdisk.c (make_device_name): Change to new partition naming.
29225 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29227 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29229 2010-04-17 Christian Franke <franke@computer.org>
29231 * Makefile.in: Add missing localedir setting.
29233 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
29235 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29236 mistake in r2156. Noticed by Anthony Fok.
29238 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29240 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29242 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29244 Fix a spurious, uninitialized variable warning.
29246 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29247 Initialize variable, shdr.
29248 (grub_freebsd_load_elfmodule): Likewise.
29249 (grub_freebsd_load_elf_meta): Likewise.
29251 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29253 Fix for escaped dollar in double quoted strings.
29255 * script/yylex.l: Updated flex rules.
29256 * conf/tests.rmk: Rule for new testcase.
29257 * tests/grub_script_dollar.in: New testcase.
29259 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29260 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29262 Enclose all translated strings in grub.cfg in single quotes, and
29263 escape them appropriately (Ubuntu bug #552921).
29265 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29266 * util/grub.d/10_hurd.in: Use it.
29267 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29268 * util/grub.d/10_linux.in (linux_entry): Likewise.
29270 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29272 Fix cygwin compilation.
29274 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29275 * include/grub/misc.h (__register_frame_info)
29276 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29277 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29278 * kern/misc.c (__register_frame_info)
29279 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29280 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29282 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29284 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29286 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29288 Unify libgcc processing.
29290 * Makefile.in (kernel_img_LDFLAGS): New variable.
29291 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29292 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29294 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29295 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29296 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29297 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29298 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29299 overwriting. Remove -lgcc and -static-libgcc
29300 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29301 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29302 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29303 (kernel_img_LDFLAGS): Append instead of overwriting.
29304 Remove -lgcc and -static-libgcc
29305 * conf/sparc64-ieee1275.rmk: Likewise.
29306 * include/grub/powerpc/libgcc.h: Move to ...
29307 * include/grub/libgcc.h: .. this.
29308 * include/grub/libgcc.h: Don't export most of the function on x86.
29309 (__bswapsi2): New export.
29310 (__bswapdi2): Likewise.
29311 * include/grub/mips/libgcc.h: Removed.
29312 * include/grub/sparc64/libgcc.h: Likewise.
29314 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29316 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29317 disk_info_msg (conflicts with gettexting into languages with cases).
29319 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29321 Add grub-probe support for NetBSD.
29323 * util/getroot.c (find_root_device): Convert block device to
29324 character device on NetBSD.
29325 * util/probe.c (probe): Require character device on NetBSD.
29326 * util/hostdisk.c: NetBSD specific headers.
29327 (configure_device_driver): new function to tune device driver
29328 parameters (currently only for NetBSD floppy driver).
29329 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29330 via disklabel ioctl).
29331 (open_device): call configure_device_driver on NetBSD.
29332 (convert_system_partition_to_system_disk): NetBSD specific code.
29333 (device_is_wholedisk): Likewise.
29334 (grub_util_biosdisk_get_grub_dev): Likewise.
29335 (make_device_name): Fixed a typo in bsd_part_str.
29336 * configure.ac: check for opendisk() and getrawpartition() on
29337 NetBSD and set LIBUTIL.
29338 * Makefile.in: add LIBUTIL to LIBS.
29340 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29344 * util/grub-script-check.c: Better help message.
29346 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29350 * configure.ac: Flex version check.
29351 * conf/common.rmk: Add -Wno-error to sh.mod.
29352 * script/yylex.l: Remove all #pragma.
29354 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29356 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29358 Reported by: Seth Goldberg.
29360 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29362 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29363 Rename "module" to "module2".
29364 Reported by: Seth Goldberg.
29366 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29368 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29370 Reported by: Seth Goldberg.
29372 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29374 * lib/posix_wrap/locale.h: Add missing file.
29375 Reported by: Seth Goldberg.
29377 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29379 grub-emu module load support.
29381 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29382 NO_DYNAMIC_MODULES switched to this.
29383 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29384 (CFLAGS): Likewise.
29385 * conf/any-emu.rmk: Generate symlist.
29386 (kernel_img_HEADERS): Add util/datetime.h.
29387 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29388 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29389 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29390 kern/$(target_cpu)/cache.S.
29391 * configure.ac (grub-emu-modules): New option.
29392 * genmk.rb: Handle multiple source lists.
29393 * include/grub/sdl.h: New file.
29394 * include/grub/libusb.h: Likewise.
29395 * util/grub-emu.c (main): Hanle (host) root.
29396 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29397 GRUB_ERR_UNKNOWN_DEVICE.
29398 * util/misc.c: Move mm functions to ...
29399 * util/mm.c: ... here. All users updated.
29401 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29403 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29404 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29406 (maintainer-clean): Remove libgcrypt-grub.
29408 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29410 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29412 2010-04-09 EFI Coder <eficoder@hotmail.com>
29414 * normal/menu_text.c (print_message): Clean up the message and show
29415 the Fn information when on EFI
29416 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29418 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29420 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29422 * normal/crypto.c (read_crypto_list): Likewise.
29423 * normal/dyncmd.c (read_command_list): Likewise.
29424 * normal/term.c (read_terminal_list): Likewise.
29425 * normal/main.c (read_lists): Use explicit prefix.
29426 (read_lists_hook): Use read_lists.
29427 (grub_normal_execute): Likewise.
29429 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29431 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29432 Reported by: Thomas Schmitt.
29433 Add -no-emul-boot to grub-mkisofs parameters.
29435 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29437 * font/font.c: Indented.
29439 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29441 Elif support to GRUB script (by Deepak Vankadaru).
29443 * tests/grub_script_if.in: New testcase.
29444 * conf/tests.rmk: Rule for new testcase.
29445 * script/parser.y: Grammar rules for elif.
29447 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29449 While and until loops support to GRUB script.
29451 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29452 (grub_script_create_cmdwhile): New function prototype.
29453 (grub_script_execute_cmdwhile): New function prototype.
29454 * script/execute.c (grub_script_execute_cmdwhile): New function.
29455 * script/parser.y (command): New commands.
29456 (whilecmd): New grammar rule.
29457 (untilcmd): New grammar rule.
29458 * script/script.c (grub_script_create_cmdwhile): New function.
29459 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29462 * tests/grub_script_while1.in: New testcase.
29463 * conf/tests.rmk: Rule for new testcase.
29465 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29467 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29470 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29472 GRUB_BACKGROUND support.
29474 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29475 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29477 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29479 Load fonts and modules for gfxmenu in grub-mkconfig.
29480 Idea by: Mario Vazquez
29482 * util/grub.d/00_header.in: Load pf2 and image modules.
29484 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29486 grub-mkconfig multiple terminal support.
29488 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29489 * util/grub.d/00_header.in: Likewise.
29491 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29493 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29494 we use cd $(srcdir).
29496 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29498 * util/grub.d/10_linux.in: Only use the first word of
29499 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29500 spaces in GRUB_DISTRIBUTOR.
29501 * util/grub.d/10_kfreebsd.in: Likewise.
29502 * util/grub.d/10_hurd.in: Likewise.
29504 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29506 Fix unit testing framework for Qemu 0.12.
29508 * tests/util/grub-shell.in: Remove -serial stdio option.
29510 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29512 POSIX header file wrappers.
29514 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29516 * lib/posix_wrap/ctype.h: Likewise.
29517 * lib/posix_wrap/errno.h: Likewise.
29518 * lib/posix_wrap/langinfo.h: Likewise.
29519 * lib/posix_wrap/limits.h: Likewise.
29520 * lib/posix_wrap/localcharset.h: Likewise.
29521 * lib/posix_wrap/stdint.h: Likewise.
29522 * lib/posix_wrap/stdio.h: Likewise.
29523 * lib/posix_wrap/stdlib.h: Likewise.
29524 * lib/posix_wrap/string.h: Likewise.
29525 * lib/posix_wrap/sys/types.h: Likewise.
29526 * lib/posix_wrap/unistd.h: Likewise.
29527 * lib/posix_wrap/wchar.h: Likewise.
29528 * lib/posix_wrap/wctype.h: Likewise.
29529 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29530 (grub_script.yy.h): Likewise.
29531 * script/yylex.l: Remove POSIX emulation #defines.
29532 * Makefile.in (POSIX_CFLAGS): New variable.
29533 (GNULIB_UTIL_CFLAGS): Likewise.
29537 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29538 (regexp_mod_SOURCES): New variable.
29539 (regexp_mod_CFLAGS): Likewise.
29540 (regexp_mod_LDFLAGS): Likewise.
29541 * commands/regexp.c: New file.
29542 * gnulib/regcomp.c: New file. Imported from gnulib.
29543 * gnulib/regex.c: Likewise.
29544 * gnulib/regex_internal.c: Likewise.
29545 * gnulib/regex_internal.h: Likewise.
29546 * gnulib/regexec.c: Likewise.
29547 * gnulib/regex.h: Likewise.
29549 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29551 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29552 unsupported video mode types.
29554 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29556 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29558 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29560 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29561 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29563 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29565 Remove unused grub_vga_get_font.
29567 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29568 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29570 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29572 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29573 * include/grub/misc.h: Likewise.
29575 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29577 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29578 for which failure is fatal.
29580 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29582 * util/grub-install.in: Use mkdir -p to create grub directory.
29583 * util/i386/efi/grub-install.in: Likewise.
29584 * util/ieee1275/grub-install.in: Likewise.
29586 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29588 * Makefile.in (LEX): new variable.
29590 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29592 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29593 `=' and added double quotes on operands of this equality test.
29595 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29597 * Makefile.in (uninstall): Remove a leftover debug echo.
29598 Reported by: Grégoire Sutre
29600 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29602 MIPS multiboot2 support.
29604 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29605 (multiboot2_mod_SOURCES): New variable.
29606 (multiboot2_mod_CFLAGS): Likewise.
29607 (multiboot2_mod_LDFLAGS): Likewise.
29608 (multiboot2_mod_ASFLAGS): Likewise.
29609 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29611 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29612 (MULTIBOOT_MBI_REGISTER): Likewise.
29613 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29614 (MULTIBOOT_ELF32_MACHINE): Likewise.
29615 (MULTIBOOT_ELF64_MACHINE): Likewise.
29616 * include/grub/mips/multiboot.h: New file.
29617 * include/grub/video.h (grub_video_driver_id): New type
29618 GRUB_VIDEO_DRIVER_SM712.
29619 (grub_video_get_info_and_fini): Export.
29620 (grub_video_get_palette): Likewise.
29621 (grub_video_get_driver_id): Likewise.
29622 * include/multiboot2.h: Resynced with spec.
29623 * loader/i386/multiboot.c: Moved from here ...
29624 * loader/multiboot.c: ... here. All users updated.
29625 (grub_multiboot_boot): Use platform-specific macros.
29626 * loader/i386/multiboot_elfxx.c: Moved from here ...
29627 * loader/multiboot_elfxx.c: ... here. All users updated.
29628 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29629 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29630 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29632 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29634 Import gnulib argp module.
29636 * gnulib/argp-ba.c: New file.
29637 * gnulib/argp-eexst.c: Likewise.
29638 * gnulib/argp-fmtstream.c: Likewise.
29639 * gnulib/argp-fmtstream.h: Likewise.
29640 * gnulib/argp-fs-xinl.c: Likewise.
29641 * gnulib/argp-help.c: Likewise.
29642 * gnulib/argp-namefrob.h: Likewise.
29643 * gnulib/argp-parse.c: Likewise.
29644 * gnulib/argp-pin.c: Likewise.
29645 * gnulib/argp-pv.c: Likewise.
29646 * gnulib/argp-pvh.c: Likewise.
29647 * gnulib/argp-version-etc.c: Likewise.
29648 * gnulib/argp-version-etc.h: Likewise.
29649 * gnulib/argp-xinl.c: Likewise.
29650 * gnulib/argp.h: Likewise.
29652 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29654 * kern/device.c (grub_device_iterate): Clear errors after failed
29657 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29659 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29660 returned by firmware.
29662 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29664 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29665 compilation on coreboot and qemu
29667 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29669 * include/multiboot2.h: Resync with spec.
29671 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29673 Multiboot2 tag support
29675 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29676 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29677 Remove loader/multiboot_loader.c.
29678 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29679 (grub_multiboot2_real_boot): Likewise.
29680 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29681 (grub_get_multiboot_mmap_count): New proto.
29682 (grub_fill_multiboot_mmap): Likewise.
29683 (grub_multiboot_set_video_mode): Likewise.
29684 (grub_multiboot_set_console): Likewise.
29685 (grub_multiboot_load): Likewise.
29686 (grub_multiboot_load_elf): Likewise.
29687 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29688 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29689 * include/multiboot.h: Resynced with specification.
29690 * include/multiboot2.h: Resynced with specification.
29691 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29692 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29693 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29694 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29696 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29697 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29698 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29700 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29702 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29703 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29705 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29706 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29707 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29709 * loader/i386/multiboot_mbi2.c: New file.
29711 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29713 Resync with gnulib.
29715 * Makefile.in (GNULIB_CFLAGS): New variable.
29716 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29717 (grub_script_check_CFLAGS): New variable.
29718 * gnulib/alloca.h: Resync with gnulib.
29719 * gnulib/error.c: Likewise.
29720 * gnulib/error.h: Likewise.
29721 * gnulib/fnmatch.c: Likewise.
29722 * gnulib/fnmatch_loop.c: Likewise.
29723 * gnulib/getdelim.c: Likewise.
29724 * gnulib/getline.c: Likewise.
29725 * gnulib/getopt.c: Likewise.
29726 * gnulib/getopt1.c: Likewise.
29727 * gnulib/getopt_int.h: Likewise.
29728 * gnulib/gettext.h: Likewise.
29729 * gnulib/progname.c: Likewise.
29730 * gnulib/progname.h: Likewise.
29732 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29734 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29735 which is the case with --disabled-nls.
29737 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29738 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29739 * util/misc.c: Likewise.
29740 * util/mkisofs/mkisofs.c: Likewise.
29741 * util/mkisofs/mkisofs.h: Likewise.
29743 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29745 Simplify Apple CC support.
29747 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29748 Add 0 byte at the end not to have a symbol with empty target.
29749 * mmap/i386/pc/mmap_helper.S: Likewise.
29750 * genmk.rb: Ignore errors 2030 and 2050.
29751 * kern/i386/pc/startup.S: Use LOCAL when possible.
29753 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29755 Testcase and the fix for final semicolon on cmdline.
29757 * tests/grub_script_final_semicolon.in: New testcase.
29758 * conf/tests.rmk: Rules for the new testcase.
29759 * script/parser.y: Grammar fix.
29761 2010-03-26 BVK Chaitanya <bvk@localhost>
29763 Blank lines testcase for GRUB script.
29765 * tests/grub_script_blanklines.in: New testcase.
29766 * conf/tests.rmk: Rules for the new testcase.
29768 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29770 Don't use __FILE__.
29772 * genmk.rb: Add -DGRUB_FILE to all C targets.
29773 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29774 * include/grub/list.h: Likewise.
29775 * include/grub/misc.h: Likewise.
29776 * include/grub/mm.h: Likewise.
29777 * include/grub/test.h: Likewise.
29778 * kern/mm.c: Likewise.
29779 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29781 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29783 Sunpc partitions support.
29785 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29786 (grub_fstest_SOURCES): Likewise.
29787 (pkglib_MODULES): Add part_sunpc.mod.
29788 (part_sunpc_mod_SOURCES): New variable.
29789 (part_sunpc_mod_CFLAGS): Likewise.
29790 (part_sunpc_mod_LDFLAGS): Likewise.
29791 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29792 * partmap/sunpc.c: New file.
29794 2010-03-26 BVK Chaitanya <bvk@localhost>
29796 For loop support to GRUB script.
29798 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29799 (grub_script_create_cmdfor): New function prototype.
29800 (grub_script_execute_cmdfor): New function prototype.
29801 * script/execute.c (grub_script_execute_cmdfor): New function.
29802 * script/parser.y (command): New for command.
29803 (forcmd): New grammar rule.
29804 * script/script.c (grub_script_create_cmdfor): New function.
29805 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29807 * tests/grub_script_for1.in: New testcase.
29808 * conf/tests.rmk: Rules for new testcase.
29810 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29814 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29815 'partition' is NULL, grub_partition_get_start already does that.
29816 * commands/loadenv.c (check_blocklists): Likewise.
29817 (write_blocklists): Likewise.
29818 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29819 (grub_fstest_SOURCES): Likewise.
29820 (pkglib_MODULES): Add part_bsd.mod.
29821 (part_bsd_mod_SOURCES): New variable.
29822 (part_bsd_mod_CFLAGS): Likewise.
29823 (part_bsd_mod_LDFLAGS): Likewise.
29824 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29825 (grub_emu_SOURCES): Likewise.
29826 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29827 * include/grub/bsdlabel.h: New file.
29828 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29830 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29831 (grub_partition_map_list): New variable.
29832 (grub_partition_map_register): Inline.
29833 (grub_partition_map_unregister): Likewise.
29834 (FOR_PARTITION_MAPS): New macro.
29835 (grub_partition_map_iterate): Removed.
29836 (grub_partition_get_start): Handle nested partitions.
29837 * include/grub/msdos_partition.h: Remove bsd-related entries.
29838 (grub_pc_partition): Remove.
29839 * kern/disk.c (grub_disk_close): Free partition data.
29840 (grub_disk_adjust_range): Handle nested partitions.
29841 * kern/partition.c (grub_partition_map_probe): New function.
29842 (grub_partition_probe): Parse name to number, handle subpartitions.
29843 (get_partmap): New function.
29844 (grub_partition_iterate): Handle subpartitions.
29845 (grub_partition_get_name): Likewise.
29846 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29847 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29848 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29849 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29851 (acorn_partition_map_probe): Remove.
29852 (acorn_partition_map_get_name): Likewise.
29853 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29855 Set 'index' to 0 since there can be only one partition entry per sector.
29856 (amiga_partition_map_probe): Remove.
29857 (amiga_partition_map_get_name): Likewise.
29858 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29860 Set 'offset' and 'index' to real positions of partitions.
29861 (apple_partition_map_probe): Remove.
29862 (apple_partition_map_get_name): Likewise.
29863 * partmap/bsdlabel.c: New file.
29864 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29866 Allocate 'data' so it can be correctly freed.
29867 Set 'index' to offset inside sector.
29868 (gpt_partition_map_probe): Remove.
29869 (gpt_partition_map_get_name): Likewise.
29870 * partmap/msdos.c (grub_partition_parse): Remove.
29871 (pc_partition_map_iterate): Don't force raw access.
29873 Make 'ext_offset' a local variable.
29874 (pc_partition_map_probe): Remove.
29875 (pc_partition_map_get_name): Remove.
29876 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29878 (sun_partition_map_probe): Remove.
29879 (sun_partition_map_get_name): Likewise.
29880 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29881 (grub_pcpart_type): Likewise.
29882 * util/hostdisk.c (open_device): Handle new numbering scheme.
29883 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29884 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29885 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29886 * util/grub-install.in: Insert all subpartition modules.
29887 * util/ieee1275/grub-install.in: Likewise.
29889 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29891 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29894 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29896 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29898 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29900 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29901 match where 'make install' puts them.
29902 * util/i386/efi/grub-install.in: Likewise.
29904 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29906 * .bzrignore: Add gentrigtables, grub-script-check,
29907 grub_script_check_init.c, grub_script_check_init.h, and
29910 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29912 * kern/parser.c: Indented.
29914 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29916 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29918 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29920 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29921 alpha_mask_size == 0 case.
29923 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29925 GRUB shell lexer and parser improvements.
29927 * conf/any-emu.rmk: Build rule updates.
29928 * conf/common.rmk: Likewise.
29929 * conf/i386-coreboot.rmk: Likewise.
29930 * conf/i386-efi.rmk: Likewise.
29931 * conf/i386-ieee1275.rmk: Likewise.
29932 * conf/i386-pc.rmk: Likewise.
29933 * conf/powerpc-ieee1275.rmk: Likewise.
29934 * conf/x86_64-efi.rmk: Likewise.
29936 * configure.ac: Configure check for flex.
29938 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29940 (grub_lexer_param): Struct member updates.
29941 (grub_parser_param): Likewise.
29942 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29943 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29944 (grub_script_lexer_init): Prototype update.
29945 (grub_script_lexer_record_start): Likewise.
29946 (grub_script_lexer_record_stop): Likewise.
29947 (grub_script_lexer_yywrap): New function prototype.
29948 (grub_script_lexer_fini): Likewise.
29949 (grub_script_execute_argument_to_string): Removed by...
29950 (grub_script_execute_argument_to_argv): ...better version.
29952 * script/execute.c (ROUND_UPTO): New macro.
29953 (grub_script_execute_cmdline): Out of memory fixes.
29954 (grub_script_execute_menuentry): Likewise.
29955 (grub_script_execute_argument_to_string): Removed. Update all
29957 (grub_script_execute_argument_to_argv): ...better version.
29958 * script/function.c (grub_script_function_create): Use
29959 grub_script_execute_argument_to_argv instead of
29960 grub_script_execute_argument_to_string.
29962 * script/lexer.c (check_varstate): Removed.
29963 (check_textstate): Removed.
29964 (grub_script_lexer_record_start): Likewise.
29965 (grub_script_lexer_record_stop): Likewise.
29966 (recordchar): Replaced with...
29967 (grub_script_lexer_record): ...new function.
29968 (nextchar): Removed.
29969 (grub_script_lexer_init): Rewritten.
29970 (grub_script_yylex): Rewritten.
29971 (append_newline): New function.
29972 (grub_script_lexer_yywrap): New function.
29973 (grub_script_lexer_fini): New function.
29974 (grub_script_yyerror): Sets error flag.
29976 * script/yylex.l: New file.
29977 (grub_lexer_yyfree): Wrapper for flex yyffre.
29978 (grub_lexer_yyalloc): Likewise.
29979 (grub_lexer_yyrealloc): Likewise.
29980 * script/parser.y: Refactored.
29982 * script/script.c (grub_script_arg_add): Out of memory fixes.
29983 (grub_script_add_arglist): Likewise.
29984 (grub_script_create_cmdline): Likewise.
29985 (grub_script_create_cmdmenu): Likewise.
29986 (grub_script_add_cmd): Likewise.
29987 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29988 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29991 * tests/grub_script_echo1.in: New testcase.
29992 * tests/grub_script_vars1.in: New testcase.
29993 * tests/grub_script_echo_keywords.in: New testcase.
29995 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29997 Remove some redundancy in build system.
29999 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
30000 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
30001 (TARGET_LDFLAGS): Add -nostdlib.
30002 (TARGET_IMG_LDFLAGS): Likewise.
30003 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
30004 anything since mmap isn't available.
30005 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
30007 (pkglib_MODULES): Remove reboot.mod.
30008 (reboot_mod_SOURCES): Removed.
30009 (reboot_mod_CFLAGS): Likewise.
30010 (reboot_mod_LDFLAGS): Likewise.
30011 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
30012 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
30013 (DEFSYMFILES): Add kernel_syms.lst.
30014 (kernel_img_HEADERS): Add common headers.
30015 (symlist.c): New target.
30016 (kernel_syms.lst): Likewise.
30017 (pkglib_MODULES): Add memdisk.mod.
30018 (memdisk_mod_SOURCES): New variable.
30019 (memdisk_mod_CFLAGS): Likewise.
30020 (memdisk_mod_LDFLAGS): Likewise.
30021 (pkglib_MODULES): Add reboot.mod.
30022 (reboot_mod_SOURCES): New variable.
30023 (reboot_mod_CFLAGS): Likewise.
30024 (reboot_mod_LDFLAGS): Likewise.
30025 (pkglib_MODULES): Add date.mod.
30026 (date_mod_SOURCES): New variable.
30027 (date_mod_CFLAGS): Likewise.
30028 (date_mod_LDFLAGS): Likewise.
30029 (pkglib_MODULES): Add datehook.mod.
30030 (datehook_mod_SOURCES): New variable.
30031 (datehook_mod_CFLAGS): Likewise.
30032 (datehook_mod_LDFLAGS): Likewise.
30033 (pkglib_MODULES): Add lsmmap.mod.
30034 (lsmmap_mod_SOURCES): New variable.
30035 (lsmmap_mod_CFLAGS): Likewise.
30036 (lsmmap_mod_LDFLAGS): Likewise.
30037 (pkglib_MODULES): Add boot.mod.
30038 (boot_mod_SOURCES): New variable.
30039 (boot_mod_CFLAGS): Likewise.
30040 (boot_mod_LDFLAGS): Likewise.
30041 * conf/i386-coreboot.rmk: Removed redundant parts.
30042 * conf/i386-ieee1275.rmk: Likewise.
30043 * conf/i386-pc.rmk: Likewise.
30044 * conf/mips-yeeloong.rmk: Likewise.
30045 * conf/mips.rmk: Likewise.
30046 * conf/powerpc-ieee1275.rmk: Likewise.
30047 * conf/sparc64-ieee1275.rmk: Likewise.
30048 * conf/x86_64-efi.rmk: Likewise.
30049 * conf/i386-coreboot.rmk: Moved qemu parts ..
30050 * conf/i386-qemu.rmk: ... here
30051 * conf/i386-efi.rmk: Moved common parts to...
30052 * conf/x86-efi.rmk: ... here.
30053 * conf/i386.rmk: Added modules common to all x86 variants.
30054 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
30055 * disk/memdisk.c: Remove grub/machine/kernel.h.
30056 * gensymlist.sh.in: Include symbol.h.
30057 * hook/datehook.c: Correct module name.
30058 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
30059 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
30060 * include/grub/i386/efi/serial.h: New file.
30061 * include/grub/x86_64/efi/serial.h: Likewise.
30062 * util/time.c: Likewise.
30063 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
30065 2010-03-14 Colin King <colin.king@ubuntu.com>
30066 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
30068 Shrink the pre-partition-table part of boot.img by eight bytes.
30070 * boot/i386/pc/boot.S (ERR): New macro.
30071 (chs_mode): Use ERR.
30072 (geometry_error): Likewise.
30073 (hd_probe_error): Remove. This is only used once, so we wrwite
30075 (read_error): Instead of printing read_error_string, just set up
30076 %si and fall through to ...
30077 (error_message): ... this new function, also used by ERR.
30079 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
30081 Speed up consecutive hostdisk operations on the same device.
30083 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
30084 (grub_util_biosdisk_open): Initialise disk->data.
30085 (struct linux_partition_cache): New structure.
30086 (linux_find_partition): Cache partition start positions; these are
30087 expensive to compute on every read and write.
30088 (open_device): Cache open file descriptor in disk->data, so that we
30089 don't have to reopen it and flush the buffer cache for consecutive
30090 operations on the same device.
30091 (grub_util_biosdisk_close): New function.
30092 (grub_util_biosdisk_dev): Set `close' member.
30094 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
30095 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
30096 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
30097 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
30098 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
30100 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30102 Compile parts of grub-emu as modules.
30104 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
30105 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
30106 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
30107 (all-local): Add $(GRUB_EMU).
30108 (install-local): Install $(GRUB_EMU).
30109 (uninstall): Uninstall $(GRUB_EMU).
30110 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
30111 * kern/dl.c: Likewise.
30112 * commands/sleep.c: Not include machine/time.h.
30113 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
30114 (COMMON_CFLAGS): Likewise.
30115 (sbin_UTILITIES): Remove grub-emu.
30116 (grub_emu_SOURCES): Removed.
30117 (kernel_img_RELOCATABLE): New variable.
30118 (pkglib_PROGRAMS): Add kernel.img.
30119 (kernel_img_SOURCES): New variable
30120 (kernel_img_CFLAGS): Likewise.
30121 (kernel_img_LDFLAGS): Likewise.
30122 (TARGET_NO_STRIP): Likewise.
30123 (TARGET_NO_DYNAMIC_MODULES): Likewise.
30124 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
30125 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
30126 (grub-emu): New target.
30127 (GRUB_EMU): New variable.
30128 * configure.ac: Whitelist -emu as possible x86_64 architecture.
30129 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
30130 * loader/xnu.c: Likewise.
30131 * include/grub/pci.h: Likewise.
30132 * genemuinit.sh: New file.
30133 * genemuinitheader.sh: Likewise.
30134 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
30135 Support TARGET_NO_DYNAMIC_MODULES.
30136 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
30137 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
30138 * disk/loopback.c: Likewise.
30139 * font/font_cmd.c: Likewise.
30140 * partmap/acorn.c: Likewise.
30141 * partmap/amiga.c: Likewise.
30142 * partmap/apple.c: Likewise.
30143 * partmap/gpt.c: Likewise.
30144 * partmap/msdos.c: Likewise.
30145 * partmap/sun.c: Likewise.
30146 * parttool/msdospart.c: Likewise.
30147 * term/gfxterm.c: Likewise.
30148 * video/bitmap.c: Likewise.
30149 * video/readers/jpeg.c: Likewise.
30150 * video/readers/png.c: Likewise.
30151 * video/readers/tga.c: Likewise.
30152 * video/video.c: Likewise.
30153 * util/grub-emu.c (read_command_list): Removed.
30154 (main): Don't call util_init_nls.
30155 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
30156 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
30158 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30160 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
30161 date.mod, datehook.mod.
30162 (datetime_mod_SOURCES): New variable.
30163 (datetime_mod_CFLAGS): Likewise.
30164 (datetime_mod_LDFLAGS): Likewise.
30165 (date_mod_SOURCES): Likewise.
30166 (date_mod_CFLAGS): Likewise.
30167 (date_mod_LDFLAGS): Likewise.
30168 (datehook_mod_SOURCES): Likewise.
30169 (datehook_mod_CFLAGS): Likewise.
30170 (datehook_mod_LDFLAGS): Likewise.
30171 * conf/sparc64-ieee1275.rmk: Likewise.
30172 * lib/ieee1275/datetime.c: New file.
30174 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30176 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
30177 (ieee1275_fb_mod_SOURCES): New variable.
30178 (ieee1275_fb_mod_CFLAGS): Likewise.
30179 (ieee1275_fb_mod_LDFLAGS): Likewise.
30180 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
30182 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
30183 (HEAP_MAX_ADDR): Likewise.
30184 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
30186 Correct stop condition.
30187 (grub_ieee1275_devices_iterate): New function.
30188 * video/ieee1275.c: New file.
30190 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30192 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30194 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30196 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30197 SCRATCH_PAD_DISKBOOT as scratch.
30198 (bootit): Pass Openfirmware pointer in %o4.
30199 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30201 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30202 with util/grub-mkrawimage.c.
30203 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30204 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30205 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30206 (grub_aout_load) [GRUB_UTIL]: Likewise.
30207 * include/grub/kernel.h (grub_modules_get_end): New proto.
30208 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30209 (SCRATCH_PAD_BOOT): New definition.
30210 (SCRATCH_PAD_DISKBOOT): Likewise.
30211 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30212 * include/grub/sparc64/ieee1275/ieee1275.h
30213 (grub_ieee1275_original_stack): New variable
30214 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30216 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30217 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30218 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30219 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30220 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30221 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30222 (grub_platform_image_format_t): New type.
30223 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30224 * kern/main.c (grub_modules_get_end)
30225 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30226 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30227 (codestart): Switch stacks.
30228 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30230 (grub_heap_init): Use grub_modules_get_end.
30231 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30233 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30235 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30237 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
30239 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30241 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30243 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30246 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30248 * genmoddep.awk: Output all missing symbols and not only first.
30250 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30252 * NEWS: Put the date of 1.98 release.
30254 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30256 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30259 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30261 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30262 completition in the middle of string.
30264 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30266 * util/grub-mkrescue.in: Use mktemp with explicit template.
30268 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30270 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30272 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30274 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30277 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30279 Fix FreeBSD compilation.
30281 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30282 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30284 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30286 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30288 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30290 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30292 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30294 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30296 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30298 Support relative image path in theme file.
30300 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30301 (image_set_property): Handle theme_dir and relative path.
30303 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30305 * configure.ac: Alias amd64 to x86_64.
30307 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30309 * NEWS: mention multiboot on EFI.
30311 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30313 * kern/main.c (grub_load_modules): Handle errors from init functions of
30316 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30318 * normal/autofs.c (autoload_fs_module): Handle errors.
30320 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30322 Disable linux.mod on qemu-mips since it's not functional and leads
30323 to compilation failure.
30325 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30326 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30327 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30328 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30329 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30330 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30331 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30332 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30333 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30334 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30335 Reported by: BVK Chaitanya
30337 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30339 * INSTALL: Add gettext as a dependency and add qemu to a new section
30340 "Prerequisites for make-check".
30342 2010-03-04 Christian Franke <franke@computer.org>
30344 * util/grub-pe2elf.c: Add missing include "progname.h".
30346 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30348 * normal/crypto.c (read_crypto_list): Fix a typo.
30349 Reported by: Seth Goldberg.
30351 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30353 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30354 Reported by: Seth Goldberg.
30356 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30358 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30361 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30363 * genmk.rb: Remove terminal*.lst in make clean.
30364 Reported by: Seth Goldberg.
30366 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30368 * util/i386/efi/grub-install.in: Copy gettext files.
30370 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30372 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30374 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30376 Wait for user entry basing on presence of output rather than on errors.
30378 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30379 (grub_install_newline_hook): Likewise.
30380 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30381 * normal/menu.c (show_menu): Check line_counter to determine presence
30383 * normal/term.c (grub_normal_line_counter): New variable.
30384 (grub_normal_get_line_counter): New function.
30385 (grub_install_newline_hook): Likewise.
30387 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30389 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30391 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30393 * configure.ac: Update version to 1.98.
30395 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30397 * util/grub.d/10_linux.in (linux_entry): Don't default to
30398 gfxpayload=keep if Linux doesn't support video handover.
30400 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30402 Don't compile video modules on yeeloong since video subsystem is part
30405 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30406 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30407 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30408 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30409 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30410 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30411 * include/grub/bitmap_scale.h: Likewise.
30412 * include/grub/bufio.h: Likewise.
30413 * include/grub/font.h: Likewise.
30414 * include/grub/gfxterm.h: Likewise.
30415 * include/grub/video.h: Likewise.
30416 * include/grub/vbe.h: Don't include video_fb.h.
30417 * video/i386/pc/vbe.c: Include video_fb.h.
30418 * commands/i386/pc/vbetest.c: Include video.h.
30420 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30422 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30423 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30424 default entry if GRUB_SAVEDEFAULT=true. This allows using
30425 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30426 saving a new default on every boot.
30428 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30430 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30431 * normal/term.c (read_terminal_list): Likewise.
30432 * normal/main.c (grub_normal_init_page): Likewise.
30433 (grub_normal_read_line_real): Likewise.
30435 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30437 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30439 Reported by: Seth Goldberg.
30441 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30443 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30444 duplicate declaration of `start'.
30446 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30448 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30450 Reported by: Georgy Buranov
30452 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30454 * util/grub-mkrawimage.c (usage): Change string formatting to
30457 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30459 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30462 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30464 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30465 Reported by: Michael Suchanek.
30467 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30469 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30470 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30472 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30474 Remove any reference to non-free fonts.
30476 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30477 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30478 uses non-free components.
30479 * font/font.c (grub_font_get_name): Remove example name.
30480 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30481 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30482 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30483 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30485 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30487 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30489 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30491 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30493 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30495 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30497 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30499 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30501 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30503 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30504 * docs/grub.texi (Command-line and menu entry commands): Document play
30507 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30509 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30510 parse arguments as inline tempo and notes. Move code for playing notes
30512 (play): ... new function.
30514 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30516 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30517 grub_uint16_t instead of short.
30518 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30519 disk from little endian to cpu endianness.
30521 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30523 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30524 GRUB_TICKS_PER_SECOND instead of 120.
30526 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30528 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30529 escape sequence after \e.
30531 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30533 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30534 non-ASCII characters.
30536 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30538 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30539 set root in single quotes to prevent \, from being unescaped.
30541 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30543 Prevent unknown commands from stopping menuentry execution.
30545 * script/execute.c (grub_script_execute_cmdline): Print error after
30548 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30550 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30551 Reported by: Pavel Pisa.
30553 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30555 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30557 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30559 Merge grub_ieee1275_map_physical into grub_map and rename to
30562 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30563 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30565 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30566 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30568 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30570 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30572 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30573 opening and not after.
30575 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30577 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30580 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30582 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30583 (alloc_phys): Use ALIGN_UP instead of align_addr.
30585 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30587 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30589 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30591 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30593 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30595 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30598 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30600 Fix over-4GiB seek on sparc64.
30602 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30603 Replace pos_i and pos_lo with pos. All users updated.
30604 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30606 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30608 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30611 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30613 * util/grub-mkrawimage.c (main): Call set_program_name.
30615 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30617 Properly align 64-bit targets.
30619 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30620 (generate_image): Use ALIGN_ADDR.
30622 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30624 Properly create cross-endian images.
30626 * include/grub/types.h (grub_host_to_target_addr): New macro
30627 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30629 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30631 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30633 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30635 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30637 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30638 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30639 (grub_linux_boot): Divide by 64K when on VESA.
30641 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30643 Support GRUB_GFXPAYLOAD_LINUX.
30645 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30646 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30648 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30650 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30651 to show messages instead of discarding them.
30652 Process errors after executing command and not before. Keep old method
30655 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30657 * configure.ac: Check for ft2build.h.
30659 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30661 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30663 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30665 * genkernsyms.sh.in: Use TARGET_CC.
30667 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30671 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30673 * include/grub/multiboot2.h: Remove leftover file.
30674 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30675 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30677 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30679 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30681 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30683 Fix warnings in grub-emu when compiling with maximum warning options.
30685 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30686 (grub_arch_modules_addr): Return 0 and not NULL.
30687 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30688 (xstrdup): Use newstr instead of dup.
30689 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30690 of disk to dsk to avoid shadowing.
30691 (find_free_slot): Fix prototype.
30692 * util/getroot.c (grub_util_is_dmraid): Make static.
30693 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30694 Add missing prototype.
30695 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30697 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30699 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30702 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30704 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30707 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30709 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30710 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30711 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30712 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30713 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30714 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30716 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30718 * include/grub/err.h (grub_err_printf): Don't export.
30720 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30722 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30724 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30726 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30727 * kern/misc.c (grub_gettext_dummy): Make static.
30729 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30731 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30733 * kern/term.c (grub_putchar): Likewise.
30735 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30737 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30738 buggy hook call and memory leak.
30740 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30742 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30744 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30746 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30748 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30750 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30752 Return grub_errno on allocation error.
30754 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30756 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30758 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30760 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30761 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30763 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30765 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30767 (grub_pxefs_open): Likewise.
30769 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30771 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30772 * util/grub.d/10_kfreebsd.in: Likewise.
30773 * util/grub.d/10_linux.in: Likewise.
30775 2010-02-06 Colin D Bennett <colin@gibibit.com>
30777 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30778 (gfxmenu_mod_SOURCES): New variable.
30779 (gfxmenu_mod_CFLAGS): Likewise.
30780 (gfxmenu_mod_LDFLAGS): Likewise.
30781 * include/grub/term.h (grub_term_set_current_output): Declare
30783 * docs/gfxmenu-theme-example.txt: New file.
30784 * gfxmenu/gfxmenu.c: Likewise.
30785 * gfxmenu/gui_box.c: Likewise.
30786 * gfxmenu/gui_canvas.c: Likewise.
30787 * gfxmenu/gui_circular_progress.c: Likewise.
30788 * gfxmenu/gui_image.c: Likewise.
30789 * gfxmenu/gui_label.c: Likewise.
30790 * gfxmenu/gui_list.c: Likewise.
30791 * gfxmenu/gui_progress_bar.c: Likewise.
30792 * gfxmenu/gui_string_util.c: Likewise.
30793 * gfxmenu/gui_util.c: Likewise.
30794 * gfxmenu/icon_manager.c: Likewise.
30795 * gfxmenu/model.c: Likewise.
30796 * gfxmenu/named_colors.c: Likewise.
30797 * gfxmenu/theme_loader.c: Likewise.
30798 * gfxmenu/view.c: Likewise.
30799 * gfxmenu/widget-box.c: Likewise.
30800 * include/grub/gfxmenu_model.h: Likewise.
30801 * include/grub/gfxmenu_view.h: Likewise.
30802 * include/grub/gfxwidgets.h: Likewise.
30803 * include/grub/gui.h: Likewise.
30804 * include/grub/gui_string_util.h: Likewise.
30805 * include/grub/icon_manager.h: Likewise.
30807 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30809 Agglomerate scrolling in gfxterm.
30811 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30812 (grub_virtual_screen_setup): Initialise 'total_screen'.
30813 (write_char): Split to ...
30814 (paint_char): ... this ...
30815 (write_char): ... and this.
30816 (paint_char): Handle delayed scrolling.
30817 (draw_cursor): Likewise.
30818 (scroll_up): Split to ...
30819 (real_scroll): ... this ...
30820 (scroll_up): ... and this.
30821 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30823 (grub_gfxterm_refresh): Call real_scroll.
30825 2010-02-06 Colin D Bennett <colin@gibibit.com>
30827 * include/grub/misc.h (grub_iscntrl): New inline function.
30828 (grub_isalnum): Likewise.
30829 (grub_strtol): Likewise.
30831 2010-02-06 Colin D Bennett <colin@gibibit.com>
30833 * normal/menu_text.c (get_entry_number): Move from here ...
30834 * normal/menu.c (get_entry_number): ... moved here.
30835 * include/grub/menu.h (grub_menu_get_default_entry_index):
30837 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30838 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30839 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30840 (grub_menu_viewer_should_return): Likewise.
30841 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30842 * normal/menu_text.c (run_menu): Enable menu switching.
30843 * normal/menu_viewer.c (should_return): New variable.
30844 (menu_viewer_changed): Likewise.
30845 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30846 (grub_menu_viewer_should_return): New function.
30847 (menuviewer_write_hook): Likewise.
30848 (grub_menu_viewer_init): Likewise.
30850 2010-02-06 Colin D Bennet <colin@gibibit.com>
30851 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30853 Support for gfxterm in a window.
30855 * include/grub/gfxterm.h: New file.
30856 * include/grub/video.h (struct grub_video_rect): New declaration.
30857 (grub_video_rect_t): Likewise.
30858 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30859 (refcount): New variable.
30860 (render_target): Likewise.
30861 (window): Likewise.
30862 (repaint_callback): Likewise.
30863 (grub_virtual_screen_setup): Use 'render_target'.
30864 (init_window): New function.
30865 (grub_gfxterm_init_window): Likewise.
30866 (grub_gfxterm_init): Check reference counter.
30868 (destroy_window): New function.
30869 (grub_gfxterm_destroy_window): Likewise.
30870 (grub_gfxterm_fini): Check reference counter.
30871 Use destroy_window.
30872 (redraw_screen_rect): Restore viewport.
30873 Use 'render_target' and 'window'.
30874 Call 'repaint_callback'.
30875 (write_char): Use 'render_target'.
30876 (draw_cursor): Likewise.
30877 (scroll_up): Restore viewport.
30878 Use 'render_target' and 'window'.
30879 Call 'repaint_callback'.
30880 (grub_gfxterm_cls): Likewise.
30881 (grub_gfxterm_refresh): Use 'window'.
30882 (grub_gfxterm_set_repaint_callback): New function.
30883 (grub_gfxterm_background_image_cmd): Use 'window'.
30884 (grub_gfxterm_get_term): New function.
30885 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30887 2010-02-06 Colin D Bennett <colin@gibibit.com>
30889 Bitmap scaling support.
30891 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30892 (bitmap_scale_mod_SOURCES): New variable.
30893 (bitmap_scale_mod_CFLAGS): Likewise.
30894 (bitmap_scale_mod_LDFLAGS): Likewise.
30895 * include/grub/bitmap_scale.h: New file.
30896 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30897 (background_image_cmd_options): New variable.
30898 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30899 (cmd): Rename and change type to ...
30900 (background_image_cmd_handle): ... this. All users updated.
30901 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30902 * video/bitmap_scale.c: New file.
30904 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30908 * Makefile.in (LIBSDL): New variable.
30909 (enable_grub_emu_sdl): Likewise.
30910 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30911 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30912 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30913 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30914 * util/sdl.c: New file.
30916 2010-02-06 Colin D Bennett <colin@gibibit.com>
30917 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30919 Double buffering support.
30921 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30922 * include/grub/video.h: Update comment.
30923 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30925 (grub_video_fb_doublebuf_blit_init): New prototype.
30926 * term/gfxterm.c (scroll_up): Support double buffering.
30927 (grub_gfxterm_refresh): Likewise.
30928 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30929 (grub_video_fb_doublebuf_blit_init): Likewise.
30930 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30931 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30932 'displayed_page', 'render_page' and 'update_screen'.
30933 (grub_video_vbe_fini): Free offscreen buffer.
30934 (doublebuf_pageflipping_commit): New function.
30935 (doublebuf_pageflipping_update_screen): Likewise.
30936 (doublebuf_pageflipping_init): Likewise.
30937 (double_buffering_init): Likewise.
30938 (grub_video_vbe_setup): Enable doublebuffering.
30939 (grub_video_vbe_swap_buffers): Implement.
30940 (grub_video_vbe_set_active_render_target): Handle double buffering.
30941 (grub_video_vbe_get_active_render_target): Likewise.
30942 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30943 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30944 (grub_video_vbe_enable_double_buffering): Likewise.
30945 (grub_video_vbe_swap_buffers): Use update_screen.
30946 (grub_video_set_mode): Use double buffering.
30948 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30950 * maintainance/gentrigtables.py: Remove.
30951 * lib/trig.c: Likewise.
30953 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30955 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30957 (trigtables.c): New rule.
30958 (gentrigtables): Likewise.
30959 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30961 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30963 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30966 2010-02-06 Colin D Bennet <colin@gibibit.com>
30968 Trigonometry support.
30970 * include/grub/trig.h: New file.
30971 * lib/trig.c: Likewise.
30972 * maintainance/gentrigtables.py: Likewise.
30973 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30974 (trig_mod_SOURCES): New variable.
30975 (trig_mod_CFLAGS): Likewise.
30976 (trig_mod_LDFLAGS): Likewise.
30978 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30980 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30983 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30985 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30988 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30990 * util/hostdisk.c (open_device): Don't use partition device when reading
30991 before the partition.
30992 (grub_util_biosdisk_read): Don't read from partition and before the
30993 partition in single operation.
30994 (grub_util_biosdisk_write): Don't write to partition and before the
30995 partition in single operation.
30997 2010-02-03 Torsten Landschoff <torsten@debian.org>
30999 * kern/disk.c (grub_disk_read): Fix offset computation when reading
31002 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
31004 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
31006 (grub_biosdisk_write): Refuse to write to CDROM.
31008 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
31010 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
31012 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
31014 * font/font.c (find_glyph): Check that bmp_idx is available before
31016 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
31017 with (font == NULL).
31019 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
31021 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
31023 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
31025 * include/grub/script_sh.h (sourcecode): Add const qualifier.
31026 * util/grub-script-check.c (getline): Fix empty lines case.
31028 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
31030 * Makefile.in (check): Exit with fail status when one of the tests
31032 * tests/example_functional_test.c (example_test): Fix reversed assert.
31033 * tests/example_unit_test.c (example_test): Likewise.
31035 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
31037 * util/grub.d/10_linux.in: This script does not use any of the
31038 contents of gettext.sh, only the external command `gettext', so stop
31039 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
31040 the same prefix as GRUB.)
31041 * util/grub.d/10_kfreebsd.in: Likewise.
31043 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
31045 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
31048 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
31050 * kern/disk.c (grub_disk_read): Fix offset computation when reading
31053 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
31055 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
31056 having a 4KiB and not 32KiB buffer size.
31058 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31060 * util/hostfs.c: Include `<errno.h>'.
31061 (grub_hostfs_read): Handle errors from fseeko() and fread().
31063 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31065 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
31066 loop when using read hooks on files whose size isn't sector-aligned.
31068 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31070 Remove unused parameter.
31072 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
31073 (grub_iso9660_open): Remove initialization of `data->length'.
31075 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31077 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
31078 memleak conditions.
31080 2010-01-27 Carles Pina i Estany <carles@pina.cat>
31082 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
31083 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
31085 2010-01-26 Carles Pina i Estany <carles@pina.cat>
31087 * util/bin2h.c (usage): Fix warning (space after backslash).
31089 2010-01-26 Carles Pina i Estany <carles@pina.cat>
31091 * font/font.c: Include `grub/fontformat.h.
31092 Remove font file format constants.
31093 (grub_font_load): Use the new macros.
31094 * include/grub/fontformat.h: New file.
31095 * util/grub-mkfont.c: Include `grub/fontformat.c'.
31096 (write_font_pf2): Use the new macros.
31098 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
31100 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
31103 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
31105 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
31107 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
31108 (_start): Macroify `0x7F'.
31110 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
31111 (make_install_device): Use "(pxe)" as fallback prefix when booting
31114 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
31116 * configure.ac: Reset LIBS after check for libgcc symbols.
31118 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
31120 * util/hostdisk.c (open_device): Add trailing newline to debug
31123 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
31125 * configure.ac: Check for `limits.h'.
31126 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
31128 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
31130 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
31131 capitalize error strings.
31133 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
31135 * util/grub.d/10_hurd.in: Add a recovery mode.
31137 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
31139 * configure.ac: Check for libgcc symbols with -nostdlib.
31141 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
31143 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
31145 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31147 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
31148 stack since heap may be unavailable at that point.
31149 (grub_ofconsole_gotoxy): Likewise.
31151 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31153 * configure.ac: Check for _restgpr_14_x.
31154 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
31155 and _savegpr_* prototypes.
31157 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
31159 Use generic grub_reboot() for i386-efi.
31161 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
31162 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
31163 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
31165 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31167 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
31168 presence of "prefix" variable as it breaks when normal.mod is
31171 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31173 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
31174 stack since heap is unavailable at that point.
31176 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31178 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
31179 (grub_freebsd_bootinfo): Rewritten.
31180 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
31182 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31184 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
31186 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
31188 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
31191 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
31193 * util/misc.c (make_system_path_relative_to_its_root): Change the work
31194 around for handling "/" to the correct fix. Fix a memory leak. Use
31195 xstrdup instead of strdup.
31197 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31199 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31201 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31203 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31205 * font/font.c (struct grub_font): New member 'bmp_idx'.
31206 (font_init): Initialise 'bmp_idx'.
31207 (load_font_index): Fill 'bmp_idx'.
31208 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31210 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31212 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31215 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31217 Move context handling out of the kernel.
31219 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31220 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31221 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31222 * conf/i386-efi.rmk: Likewise.
31223 * conf/i386-ieee1275.rmk: Likewise.
31224 * conf/i386-pc.rmk: Likewise.
31225 * conf/powerpc-ieee1275.rmk: Likewise.
31226 * conf/sparc64-ieee1275.rmk: Likewise.
31227 * conf/x86_64-efi.rmk: Likewise.
31228 * include/grub/env.h: Include grub/menu.h.
31229 (grub_env_var_type): Removed.
31230 (grub_env_var): Replaced field 'type' with 'global'.
31231 (grub_env_find): New prototype.
31232 (grub_env_context_open): Remove EXPORT_FUNC.
31233 (grub_env_context_close): Likewise.
31234 (grub_env_export): Likewise.
31235 (grub_env_set_data_slot): Removed.
31236 (grub_env_get_data_slot): Likewise.
31237 (grub_env_unset_data_slot): Likewise.
31238 (grub_env_unset_menu): New prototype.
31239 (grub_env_set_menu): Likewise.
31240 (grub_env_get_menu): Likewise.
31241 * include/grub/env_private.h: New file.
31242 * include/grub/normal.h (grub_context_init): New prototype.
31243 (grub_context_fini): Likewise.
31244 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31245 * normal/context.c (grub_cmd_export): ... to here.
31246 * kern/env.c: Include env_private.h.
31247 (HASHSZ): Moved to include/grub/env_private.h.
31248 (grub_env_context): Likewise.
31249 (grub_env_sorted_var): Likewise.
31250 (current_context): Renamed from this ...
31251 (grub_current_context): ...to this. 'static' removed. All users updated.
31252 (grub_env_find): Removed 'static'.
31253 (grub_env_context_open): Moved to normal/context.c.
31254 (grub_env_context_close): Likewise.
31255 (grub_env_export): Likewise.
31256 (mangle_data_slot_name): Removed.
31257 (grub_env_set_data_slot): Likewise.
31258 (grub_env_get_data_slot): Likewise.
31259 (grub_env_unset_data_slot): Likewise.
31260 * kern/main.c (grub_set_root_dev): Don't export root.
31261 It will be done later.
31262 (grub_main): Don't export prefix.
31263 It will be done later.
31264 * normal/context.c: New file.
31265 * normal/main.c (free_menu): Use grub_env_unset_menu.
31266 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31267 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31268 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31269 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31271 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31275 * commands/setpci.c: New file.
31276 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31277 (setpci_mod_SOURCES): New variable.
31278 (setpci_mod_CFLAGS): Likewise.
31279 (setpci_mod_LDFLAGS): Likewise.
31281 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31283 Byte-addressable PCI configuration space.
31285 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31287 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31288 GRUB_PCI_REG_CACHELINE.
31289 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31290 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31291 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31292 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31293 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31294 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31295 grub_pci_make_address.
31296 (lock_rom_area): Likewise.
31297 * commands/lspci.c (grub_lspci_iter): Use macroses
31298 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31299 of grub_pci_make_address.
31300 * disk/ata.c (grub_ata_pciinit): Likewise.
31301 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31302 (GRUB_PCI_REG_VENDOR): Likewise.
31303 (GRUB_PCI_REG_DEVICE): Likewise.
31304 (GRUB_PCI_REG_COMMAND): Likewise.
31305 (GRUB_PCI_REG_STATUS): Likewise.
31306 (GRUB_PCI_REG_REVISION): Likewise.
31307 (GRUB_PCI_REG_CLASS): Likewise.
31308 (GRUB_PCI_REG_CACHELINE): Likewise.
31309 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31310 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31311 (GRUB_PCI_REG_BIST): Likewise.
31312 (GRUB_PCI_REG_ADDRESSES): Likewise.
31313 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31314 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31315 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31316 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31317 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31318 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31319 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31320 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31321 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31322 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31323 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31324 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31325 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31326 (GRUB_PCI_REG_MIN_GNT): Likewise.
31327 (GRUB_PCI_REG_MAX_LAT): Likewise.
31328 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31329 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31330 * video/efi_uga.c (find_framebuf): Likewise.
31331 * video/sm712.c (grub_video_sm712_setup): Likewise.
31332 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31335 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31337 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31338 can be reliably determined to be supported.
31340 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31342 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31343 that VESA is supported.
31344 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31347 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31349 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31351 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31353 * util/misc.c (make_system_path_relative_to_its_root): Work around
31354 special-casing of "/", as previous incarnation of this routine did.
31356 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31358 Fix any-emu compilation.
31360 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31361 * grub_bin2h_SOURCES: New variable.
31363 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31365 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31367 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31369 * util/grub.d/00_header.in: Fix handling of locale_dir.
31371 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31373 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31374 as possible unifont location (Gentoo).
31375 Reported by: Alexander Brüning
31377 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31379 Don't try to generate lists for kernel.img.
31381 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31382 (pkglib_MODULES): Remove kernel.img.
31383 (kernel_img_EXPORTS): Removed.
31384 (kernel_img_RELOCATABLE): New variable.
31385 * conf/x86_64-efi.rmk: Likewise.
31386 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31388 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31390 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31391 grub_xasprintf or grub_snprintf.
31392 (grub_vsprintf): Likewise.
31393 (grub_snprintf): New proto.
31394 (grub_vsnprintf): Likewise.
31395 (grub_xasprintf): Likewise.
31396 (grub_xvasprintf): Likewise.
31397 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31398 (grub_sprintf): Removed.
31399 (grub_vsnprintf): New function.
31400 (grub_snprintf): Likewise.
31401 (grub_xvasprintf): Likewise.
31402 (grub_xasprintf): Likewise.
31403 (grub_vsprintf): Renamed to ...
31404 (grub_vsnprintf_real): ...this. New argument max_len.
31406 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31408 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31409 fix grub-script-check warning.
31411 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31413 * include/grub/font.h (grub_font_load): Fix prototype.
31415 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31417 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31419 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31421 * include/grub/x86_64/at_keyboard.h: New file.
31423 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31425 * loader/mips/linux.c: Include missing grub/i18n.h.
31427 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31429 * normal/menu.c (notify_execution_failure): Clarify error message.
31431 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31433 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31434 return value (and revert all return statements). Update users.
31436 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31438 * kern/device.c (grub_device_iterate): Allocate new part_ent
31439 structure based on sizeof (*p) rather than sizeof (p->next), to
31440 account for structure padding.
31442 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31443 disk is NULL, which might happen for LVM physical volumes with no
31446 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31448 * loader/mips/linux.c (grub_cmd_initrd)
31449 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31451 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31453 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31454 (grub_video_video_init, grub_video_bitmap_init)
31455 (grub_font_manager_init, grub_term_gfxterm_init)
31456 (grub_at_keyboard_init): New extern declarations.
31457 (grub_machine_init): Initialize gfxterm and at_keyboard.
31459 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31461 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31462 `gfxterm.mod' into core image.
31464 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31465 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31466 (kernel_img_FORMAT): Copy to ...
31468 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31469 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31470 (kernel_img_FORMAT): ... here, and ...
31472 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31473 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31474 (kernel_img_FORMAT): ... here.
31476 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31477 and input (at_keyboard) terminals in kernel.
31478 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31480 (pkglib_MODULES): Remove `pci.mod'.
31481 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31482 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31483 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31484 (at_keyboard_mod_LDFLAGS): Remove variables.
31486 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31488 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31490 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31492 * include/grub/mips/libgcc.h: Only export symbols for functions
31493 that libgcc provides.
31495 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31499 * bus/bonito.c: New file.
31500 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31501 GRUB_PCI_NUM_DEVICES.
31502 * term/i386/pc/serial.c: Move to ...
31503 * term/serial.c: ... here. All users updated.
31504 * util/i386/pc/grub-mkimage.c: Move to ...
31505 * util/grub-mkrawimage.c: ... here. All users updated.
31506 * term/i386/pc/at_keyboard.c: Move to ...
31507 * term/at_keyboard.c: ... here. All users updated.
31508 * conf/mips-qemu-mips.rmk: New file.
31509 * conf/mips-yeeloong.rmk: Likewise.
31510 * conf/mips.rmk: Likewise.
31511 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31513 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31515 (grub_ata_pciinit): Support CS5536.
31516 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31517 * font/font_cmd.c (loadfont_command): Open file before passing it to
31519 (pseudo_file_read): New function.
31520 (pseudo_file_close): Likewise.
31521 (pseudo_fs): New structure.
31522 (load_font_module): New function.
31523 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31524 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31525 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31526 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31527 * include/grub/i386/at_keyboard.h: Split into ...
31528 * include/grub/at_keyboard.h: ... this ...
31529 * include/grub/i386/at_keyboard.h: ... and this.
31530 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31532 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31534 (grub_elf64_size): Likewise.
31535 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31537 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31538 * include/grub/i386/coreboot/serial.h: Rewritten.
31539 * include/grub/i386/ieee1275/serial.h: Include
31540 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31541 * include/grub/i386/pc/serial.h: Moved from here ...
31542 * include/grub/serial.h: ... to here. All users updated.
31543 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31544 (GRUB_PCI_NUM_BUS): Likewise.
31545 (GRUB_PCI_NUM_DEVICES): Likewise.
31546 (grub_pci_device_map_range): Add missing volatile keyword.
31547 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31548 * include/grub/mips/at_keyboard.h: New file.
31549 * include/grub/mips/cache.h: Likewise.
31550 * include/grub/mips/io.h: Likewise.
31551 * include/grub/mips/kernel.h: Likewise.
31552 * include/grub/mips/libgcc.h: Likewise.
31553 * include/grub/mips/pci.h: Likewise.
31554 * include/grub/mips/qemu-mips/boot.h: Likewise.
31555 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31556 * include/grub/mips/qemu-mips/loader.h: Likewise.
31557 * include/grub/mips/qemu-mips/memory.h: Likewise.
31558 * include/grub/mips/qemu-mips/serial.h: Likewise.
31559 * include/grub/mips/qemu-mips/time.h: Likewise.
31560 * include/grub/mips/relocator.h: Likewise.
31561 * include/grub/mips/time.h: Likewise.
31562 * include/grub/mips/types.h: Likewise.
31563 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31564 * include/grub/mips/yeeloong/boot.h: Likewise.
31565 * include/grub/mips/yeeloong/kernel.h: Likewise.
31566 * include/grub/mips/yeeloong/loader.h: Likewise.
31567 * include/grub/mips/yeeloong/memory.h: Likewise.
31568 * include/grub/mips/yeeloong/pci.h: Likewise.
31569 * include/grub/mips/yeeloong/serial.h: Likewise.
31570 * include/grub/mips/yeeloong/time.h: Likewise.
31571 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31572 * kern/elf.c (grub_elf32_size): New parameter. All users
31574 (grub_elf64_size): Likewise.
31575 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31576 Load modules before saying "Welcome to GRUB!".
31577 Call grub_refresh after saying "Welcome to GRUB!".
31578 * kern/mips/cache.S: New file.
31579 * kern/mips/cache_flush.S: Likewise.
31580 * kern/mips/dl.c: Likewise.
31581 * kern/mips/init.c: Likewise.
31582 * kern/mips/qemu-mips/init.c: Likewise.
31583 * kern/mips/startup.S: Likewise.
31584 * kern/mips/yeeloong/init.c: Likewise.
31585 * kern/term.c (grub_putcode): Handle NULL terminal.
31586 (grub_getcharwidth): Likewise.
31587 (grub_getkey): Likewise.
31588 (grub_checkkey): Likewise.
31589 (grub_getkeystatus): Likewise.
31590 (grub_getxy): Likewise.
31591 (grub_getwh): Likewise.
31592 (grub_gotoxy): Likewise.
31593 (grub_cls): Likewise.
31594 (grub_setcolorstate): Likewise.
31595 (grub_setcolor): Likewise.
31596 (grub_getcolor): Likewise.
31597 (grub_refresh): Likewise.
31598 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31599 (write_jump): Add hatch nop.
31600 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31601 * lib/mips/setjmp.S: New file.
31602 * loader/mips/linux.c: Likewise.
31603 * term/i386/pc/at_keyboard.c: Move from here ...
31604 * term/at_keyboard.c: ... to here.
31605 * term/i386/pc/serial.c: Moved from here ...
31606 * term/serial.c: ... to here. All users updated.
31607 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31608 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31609 (serial_translate_key_sequence): Avoid deadlock.
31610 (grub_serial_getkey): Handle backspace.
31611 (grub_serial_putchar): Fix newline handling.
31612 * util/i386/pc/grub-mkimage.c: Move from here ...
31613 * util/grub-mkrawimage.c: ... to here. All users updated.
31614 (generate_image): New parameters 'font_path' and 'format'.
31615 Support embedding font.
31616 Use grub_host_to_target* instead of grub_cpu_to_le*.
31617 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31618 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31619 (options): New option "--font".
31621 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31622 (main): Handle "--font".
31623 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31624 (grub_virtual_screen_setup): Set bg_color_display.
31625 (redraw_screen_rect): Use bg_color_display instead of incorrect
31627 (grub_gfxterm_cls): Likewise.
31628 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31629 Support embedding config file.
31630 (add_segments): Likewise.
31631 (options): New option "--config".
31632 (main): Handle "--config".
31633 * video/sm712.c: New file.
31635 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31637 Fix parallel builds.
31639 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31640 font.c depend on ascii.h).
31642 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31644 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31646 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31648 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31649 By default: disabled.
31650 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31653 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31655 * font/font.c: Update copyright years.
31656 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31658 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31660 * font/font.c: Include `ascii.h'.
31661 (ASCII_BITMAP_SIZE): New macro.
31662 (ascii_font_glyph): Define.
31663 (ascii_glyph_lookup): New function.
31664 (grub_font_get_string_width): Change comment. If glyph not found, use
31665 ascii_glyph_lookup.
31666 (grub_font_get_glyph_with_fallback): If glyph not available returns
31667 ascii_glyph_lookup.
31668 * util/grub-mkfont.c (file_formats): New enum.
31669 (options): Add `ascii-bitmaps' new option.
31670 (usage): Add `asii-bitmaps' new option.
31671 (write_font_ascii_bitmap): New function.
31672 (write_font): Rename to ...
31673 (write_font_p2): ... this. Remove print_glyphs call.
31674 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31675 used. Call print_glyphs.
31676 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31678 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31680 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31681 (grub_bin2h_SOURCES): New variable.
31682 * util/bin2h.c: New file.
31684 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31686 * include/multiboot.h: Resynced with spec.
31687 * include/multiboot2.h: Likewise.
31688 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31689 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31691 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31693 * include/grub/term.h (grub_term_register_input,
31694 grub_term_register_output): Check return of terminal init()
31695 routines, and abort if errors are raised.
31697 * commands/terminal.c: Update copyright year.
31699 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31701 * commands/terminal.c (grub_cmd_terminal_input)
31702 (grub_cmd_terminal_output): Check return of terminal init()
31703 routines, and abort if errors are raised.
31705 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31707 * include/grub/i386/bsd.h: Fix include pathes.
31709 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31711 Add missing *BSD copyright headers.
31713 * include/grub/aout.h: Add BSD licence.
31714 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31715 * include/grub/i386/freebsd_linker.h: ... here,
31716 * include/grub/i386/freebsd_reboot.h: ... here,
31717 * include/grub/i386/netbsd_bootinfo.h: ... here,
31718 * include/grub/i386/netbsd_reboot.h: ... here,
31719 * include/grub/i386/openbsd_bootarg.h: ... here,
31720 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31721 licence to each file.
31723 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31725 * acinclude.m4: Remove `nop' assembly instruction; it's not
31726 implemented by all architectures.
31728 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31730 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31731 ELILO. This is no longer necessary.
31733 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31735 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31737 * util/grub-script-check.c: grub-script-check tool.
31738 * conf/common.rmk: Make rules for grub-script-check.
31740 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31742 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31743 spotting it back in 2008. Shame on me for forgetting he did.
31745 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31747 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31749 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31750 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31751 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31752 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31753 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31754 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31756 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31758 * include/grub/test.h: Add license header.
31759 * tests/example_functional_test.c: Likewise.
31760 * tests/example_unit_test.c: Likewise.
31761 * tests/lib/functional_test.c: Likewise.
31762 * tests/lib/test.c: Likewise.
31763 * tests/lib/unit_test.c: Likewise.
31765 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31767 Use flag-based instead of hook-based video mode selection and "auto"
31770 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31771 (grub_video_set_mode): Changed prototype. All users updated.
31772 (grub_video_check_mode_flag): New inline function.
31773 * video/video.c (parse_modespec): New function.
31774 (grub_video_set_mode): Parse flags and keywords.
31776 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31778 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31781 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31783 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31785 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31787 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31789 * util/grub-emu.c (usage): Likewise.
31790 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31791 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31792 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31793 * util/i386/pc/grub-setup.c (usage): Likewise.
31795 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31797 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31799 (grub_util_info): Likewise.
31800 (grub_util_error): Likewise.
31801 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31802 and/or new lines in `grub_util_warna', `grub_util_info',
31803 `grub_util_error' calls.
31804 * util/getroot.c: Likewise.
31805 * util/grub-editenv.c: Likewise.
31806 * util/grub-emu.c: Likewise.
31807 * util/grub-fstest.c: Likewise.
31808 * util/grub-mkdevicemap.c: Likewise.
31809 * util/grub-mkfont.c: Likewise.
31810 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31811 * util/grub-mkrelpath.c: Likewise.
31812 * util/grub-pe2elf.c: Likewise.
31813 * util/grub-probe.c: Likewise.
31814 * util/hostdisk.c: Likewise.
31815 * util/i386/efi/grub-mkimage.c: Likewise.
31816 * util/i386/pc/grub-mkimage.c: Likewise.
31817 * util/i386/pc/grub-setup.c: Likewise.
31818 * util/ieee1275/ofpath.c: Likewise.
31819 * util/mkisofs/eltorito.c: Likewise.
31820 * util/mkisofs/rock.c: Likewise.
31821 * util/mkisofs/write.c: Likewise.
31822 * util/raid.c: Likewise.
31823 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31824 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31826 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31828 Enable multiboot on non-pc.
31830 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31831 multiboot.mod and multiboot2.mod to ...
31832 * conf/i386.rmk (pkglib_MODULES): ... here.
31833 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31835 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31836 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31838 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31839 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31841 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31842 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31844 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31845 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31847 (ata_mod_SOURCES): Removed.
31848 (ata_mod_CFLAGS): Likewise.
31849 (ata_mod_LDFLAGS): Likewise.
31850 (relocator_mod_SOURCES): Removed.
31851 (relocator_mod_CFLAGS): Likewise.
31852 (relocator_mod_ASFLAGS): Likewise.
31853 (relocator_mod_LDFLAGS): Likewise.
31855 * include/grub/x86_64/multiboot.h: New file.
31856 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31859 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31861 Video multiboot support.
31863 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31865 * include/multiboot.h: Resynced with multiboot specification.
31866 * include/multiboot2.h: Likewise.
31867 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31868 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31869 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31870 (HAS_VGA_TEXT): Likewise.
31871 (accepts_video): New variable.
31872 (grub_multiboot_set_accepts_video): New function.
31873 (grub_multiboot_get_mbi_size): Account for video structures.
31874 (set_video_mode): New function.
31875 (retrieve_video_parameters): Likewise.
31876 (grub_multiboot_make_mbi): Fill video fields.
31878 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31882 * include/grub/video.h (grub_video_driver_id): New type.
31883 (grub_video_adapter): New member 'id'. All users updated.
31884 (grub_video_get_driver_id): New proto.
31885 * video/video.c (grub_video_get_driver_id): New function.
31887 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31889 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31892 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31894 * normal/cmdline.c (print_completion): Gettextizze.
31896 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31898 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31900 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31902 * gettext/gettext.c (grub_gettext_translate): Push and pop
31904 (grub_gettext_delete_list): Change comment style.
31905 * kern/err.c (grub_error): Gettextizze.
31906 (grub_fatal): Gettextizze.
31908 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31910 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31911 (grub_linux16_real_boot): ... this.
31912 * kern/i386/loader.S: Likewise.
31913 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31914 (grub_linux16_boot): New function. Switches to text mode and calls
31915 grub_linux16_real_boot().
31917 * loader/i386/bsd.c: Include `<grub/video.h>'.
31918 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31919 text mode before calling grub_unix_real_boot().
31921 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31922 (grub_multiboot_boot): Switch to text mode before calling
31923 grub_relocator32_boot().
31925 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31926 (grub_chainloader_boot): Switch to text mode before calling
31927 grub_chainloader_real_boot().
31929 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31930 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31932 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31935 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31936 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31938 * util/grub.d/00_header.in: Define a "savedefault" function for use
31940 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31942 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31943 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31945 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31946 saved_entry if boot_once is unset.
31947 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31948 previous saved entry (i.e. grub-reboot).
31950 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31952 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31954 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31956 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31958 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31960 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31962 * util/grub-reboot.in: Fix --version output.
31963 * util/grub-set-default.in: Likewise.
31965 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31967 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31970 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31972 * util/grub.d/00_header.in: Quote the value assigned to `default',
31973 in case it contains spaces.
31975 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31977 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31978 `save_default_entry' call from the macosx case to the linux case.
31980 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31981 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31983 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31984 in `chosen' environment variable.
31985 * normal/menu_text.c (get_entry_number): Check if the variable
31986 matches the title of a menu entry.
31987 (run_menu): Pass menu to get_entry_number.
31989 * util/grub-reboot.in: New file.
31990 * util/grub-set-default.in: New file.
31991 * conf/common.rmk (grub-reboot): New utility.
31992 (grub-set-default): New utility.
31994 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31995 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31996 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31997 move it to `saved_entry' for the next boot. Load environment on
31999 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
32000 * util/grub.d/10_hurd.in: Likewise.
32001 * util/grub.d/10_linux.in (linux_entry): Likewise.
32002 * util/grub.d/10_windows.in: Likewise.
32003 * util/grub.d/30_os-prober.in: Likewise.
32005 * util/grub-install.in: Create environment block.
32006 * util/i386/efi/grub-install.in: Likewise.
32007 * util/ieee1275/grub-install.in: Likewise.
32008 * util/sparc64/ieee1275/grub-install.in: Likewise.
32010 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
32012 Unit testing framework for GRUB.
32014 * Makefile.in: Test framework build rules for 'make check'.
32015 * conf/tests.rmk: Build rules for individual tests and framework.
32017 * include/grub/test.h: Header file for whitebox tests.
32018 * tests/lib/functional_test.c: Framework support for whitebox
32020 * tests/lib/test.c: Common whitebox testing code for unit and
32022 * tests/lib/unit_test.c: Framework support for whitebox unit
32025 * tests/util/grub-shell-tester.in: Support utility for grub-script
32027 * tests/util/grub-shell.in: Utility to execute grub-script
32028 commands in a Qemu instance.
32030 * tests/example_functional_test.c: Example whitebox functional
32032 * tests/example_grub_script_test.in: Example grub-script test.
32033 * tests/example_scripted_test.in: Example scripted test.
32034 * tests/example_unit_test.c: Example whitebox unit test.
32036 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
32038 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
32039 Add loader/i386/multiboot_mbi.c.
32040 (multiboot2_mod_SOURCES): Likewise.
32041 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
32042 (multiboot2_mod_SOURCES): Likewise.
32043 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
32044 (grub_multiboot_make_mbi): Likewise.
32045 (grub_multiboot_free_mbi): Likewise.
32046 (grub_multiboot_init_mbi): Likewise.
32047 (grub_multiboot_add_module): Likewise.
32048 (grub_multiboot_set_bootdev): Likewise.
32049 * loader/i386/multiboot.c (mbi): Removed.
32050 (mbi_dest): Likewise.
32051 (alloc_mbi): New variable.
32052 (grub_multiboot_payload_size): Removed. All users updated.
32053 (grub_multiboot_pure_size): New variable.
32054 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
32055 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
32056 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
32057 (grub_fill_multiboot_mmap): Likewise.
32058 (grub_multiboot_get_bootdev): Likewise.
32059 (grub_multiboot): Use multiboot_mbi functions.
32060 * loader/i386/multiboot_mbi.c: New file.
32062 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
32064 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
32065 it would result in module crash.
32067 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
32069 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
32070 (grub_ofconsole_getwh): Split to ...
32071 (grub_ofconsole_getwh): ... this.
32072 (grub_ofconsole_dimensions): ...and this.
32073 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
32075 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
32077 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
32079 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
32081 * loader/i386/pc/multiboot2.c: Removed stalled file.
32083 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
32085 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
32086 Reported by: Grégoire Sutre
32088 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
32090 * util/misc.c (canonicalize_file_name): New function.
32091 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
32092 instead of realpath().
32094 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
32096 * util/grub-install.in (usage): Clarify meaning of --root-directory,
32097 and make it clearer that it's optional. Based on confusion
32100 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
32102 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
32103 in premature implicit newline.
32105 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
32107 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
32108 which resulted in garbled command line at the end of screen.
32110 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32112 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
32113 initialization with similar approach as with other Linux loaders.
32115 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32117 Fix i386-ieee1275 build.
32119 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
32120 and grub_term_height() for video_{width,height} initialization.
32122 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32124 Fix grub-emu build.
32126 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
32128 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32129 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32131 Support for multiple terminals.
32133 * Makefile.in (pkglib_DATA): terminal.lst.
32134 (terminal.lst): New target.
32135 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
32136 (GRUB_MOD_INIT(handler)): Likewise.
32137 (GRUB_MOD_FINI(handler)): Likewise.
32138 * commands/help.c (grub_cmd_help): Handle multiple terminals.
32139 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
32140 * commands/sleep.c (do_print): Use grub_term_restore_pos.
32141 (grub_cmd_sleep): Use grub_term_save_pos.
32142 * commands/terminal.c: New file.
32143 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
32144 commands/terminal.c and lib/charset.c.
32145 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
32146 (pkglib_MODULES): Add terminal.mod.
32147 (terminal_mod_SOURCES): New variable.
32148 (terminal_mod_CFLAGS): Likewise.
32149 (terminal_mod_LDFLAGS): Likewise.
32150 * genhandlerlist.sh: Don't handle terminals.
32151 * genmk.rb: Generate terminal-*.lst.
32152 * genterminallist.sh: New file.
32153 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
32154 (grub_is_valid_utf8): Likewise.
32155 (grub_utf8_to_ucs4_alloc): Likewise.
32156 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
32157 (grub_menu_register_viewer): Changed argument.
32158 (grub_menu_try_text): New proto.
32159 (grub_gfxmenu_try_hook): New declaration.
32160 * include/grub/normal.h (grub_normal_exit_level): New declaration.
32161 (grub_menu_init_page): Additional argument term.
32162 (grub_normal_init_page): Likewise.
32163 (grub_cmdline_get): Arguments simplified.
32164 (grub_utf8_to_ucs4_alloc): Removed.
32165 (grub_print_ucs4): Additional argument term.
32166 (grub_getstringwidth): Likewise.
32167 (grub_print_message_indented): Likewise.
32168 (grub_menu_text_register_instances): New proto.
32169 (grub_show_menu): Likewise.
32170 (read_terminal_list): Likewise.
32171 (grub_set_more): Likewise.
32172 * include/grub/parser.h: Include handler.h.
32173 * include/grub/reader.h: Rewritten.
32174 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
32175 (GRUB_TERM_WIDTH): Changed to function.
32176 (GRUB_TERM_HEIGHT): Likewise.
32177 (GRUB_TERM_BORDER_WIDTH): Likewise.
32178 (GRUB_TERM_BORDER_HEIGHT): Likewise.
32179 (GRUB_TERM_NUM_ENTRIES): Likewise.
32180 (GRUB_TERM_ENTRY_WIDTH): Likewise.
32181 (GRUB_TERM_CURSOR_X): Likewise.
32182 (grub_term_input_class): Likewise.
32183 (grub_term_output_class): Likewise.
32184 (grub_term_outputs_disabled): New declaration.
32185 (grub_term_inputs_disabled): Likewise.
32186 (grub_term_outputs): Likewise.
32187 (grub_term_inputs): Likewise.
32188 (grub_term_register_input): Rewritten.
32189 (grub_term_register_output): Likewise.
32190 (grub_term_unregister_input): Likewise.
32191 (grub_term_unregister_output): Likewise.
32192 (FOR_ACTIVE_TERM_INPUTS): New macro.
32193 (FOR_DISABLED_TERM_INPUTS): Likewise.
32194 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32195 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32196 * include/grub/terminfo.h: Add oterm argument to all protypes.
32197 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32198 Use grub_rescue_run.
32199 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32201 * kern/reader.c: Removed. All users updated.
32202 * kern/rescue_reader.c (grub_rescue_init): Removed.
32203 (grub_rescue_reader): Likewise.
32204 (grub_register_rescue_reader): Likewise.
32205 (grub_rescue_run): New function based on kern/reader.c.
32206 * kern/term.c: Adapted for multiterm.
32207 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32208 (grub_is_valid_utf8): Likewise.
32209 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32210 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32212 * loader/i386/linux.c (grub_linux_boot): Likewise.
32213 * normal/auth.c (grub_username_get): New function.
32214 (grub_auth_check_authentication): Use grub_username_get.
32215 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32216 * normal/color.c: Adapt for multiterm.
32217 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32218 (grub_normal_init_page): Additional argument term.
32219 (read_lists): Call read_terminal_lists.
32220 (grub_enter_normal_mode): Call grub_cmdline_run.
32221 Handle grub_normal_exit_level.
32222 (grub_cmd_normal): Make reentrant.
32223 (grub_cmd_normal_exit): New function.
32224 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32225 * normal/menu.c: Adapt for multiterm.
32226 * normal/menu_entry.c: Likewise.
32227 * normal/menu_text.c: Likewise.
32228 * normal/menu_viewer.c: Removed. All users updated.
32229 * normal/term.c: New file.
32230 * util/console.c: Change order of includes to workaround a bug in
32232 * term/terminfo.c: New argument oterm on all exported functions.
32234 * util/grub-editenv.c (grub_term_input_class): Removed.
32235 (grub_term_output_class): Likewise.
32237 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32239 Make loader output a bit more user-friendly.
32241 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32242 is being loaded. Likewise for the Hurd.
32244 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32245 that kernel of FreeBSD ${version} is being loaded.
32247 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32249 (grub_cmd_initrd): Likewise.
32250 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32251 that Linux ${version} is being loaded. Likewise for initrd.
32253 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32255 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32257 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32259 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32260 (GRUB_MOD_INIT): Gettextizze.
32261 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32262 (GRUB_MOD_INIT): Gettextizze.
32263 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32264 (grub_cmd_linux): Capitalise Linux.
32265 (GRUB_MOD_INIT): Gettextizze.
32266 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32267 (grub_cmd_linux): Capitalise Linux.
32268 (GRUB_MOD_INIT): Gettextizze.
32269 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32270 (grub_cmd_linux): Capitalise Linux.
32271 (GRUB_MOD_INIT): Gettextizze.
32272 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32273 (GRUB_MOD_INIT): Gettextizze.
32274 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32275 (grub_cmd_linux): Capitalise Linux.
32276 (GRUB_MOD_INIT): Gettextizze.
32277 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32278 (grub_cpu_xnu_init): Gettextizze.
32279 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32280 (GRUB_MOD_INIT): Gettextizze.
32281 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32282 (GRUB_MOD_INIT): Gettextizze.
32283 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32284 (grub_linux_load64): Capitalise Linux.
32285 (GRUB_MOD_INIT): Gettextizze.
32286 * loader/xnu.c: Include `<grub/i18n.h>'.
32287 (GRUB_MOD_INIT): Gettextizze.
32288 * po/POTFILES: Add `loader/efi/appleloader.c',
32289 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32290 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32291 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32292 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32293 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32294 and `loader/xnu.c'.
32296 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32298 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32300 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32302 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32303 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32304 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32306 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32308 Reset Multiboot 2 support. New loader implements the draft in
32309 /branches/multiboot2 and shares as much code as possible with the
32310 production Multiboot 1 implementation.
32312 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32313 * loader/multiboot2.c: Likewise.
32314 * loader/i386/multiboot_helper.S: Likewise.
32315 * include/multiboot2.h: Replace with latest version from the draft
32316 in /branches/multiboot2.
32318 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32319 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32320 and `loader/multiboot2.c'.
32321 (pkglib_MODULES): Add `multiboot2.mod'.
32322 (multiboot2_mod_SOURCES): New variable.
32323 (multiboot2_mod_LDFLAGS): Likewise.
32324 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32326 * conf/i386-pc.rmk: Likewise.
32328 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32329 (multiboot_mod_SOURCES): Remove variable.
32330 (multiboot_mod_LDFLAGS): Likewise.
32331 (multiboot_mod_CFLAGS): Likewise.
32333 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32334 `<multiboot2.h>' instead of `<multiboot.h>'.
32335 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32336 (MULTIBOOT_HEADER_MAGIC): New macros.
32338 * loader/multiboot_loader.c (module_version_status): Remove variable.
32339 (find_multi_boot2_header): Remove function.
32340 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32341 logic. Always check for the Multiboot version we're compiling for.
32342 (grub_cmd_module_loader): Likewise.
32343 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32344 command instead of `multiboot'.
32346 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32348 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32349 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32352 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32353 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32355 Fix breakage introduced with previous commit.
32357 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32359 * normal/handler.c (read_handler_list): Revert part of previous commit
32360 affecting this file.
32361 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32362 (grub_normal_execute): ... here.
32364 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32366 Merge prefix-redefinition-fix branch.
32368 * normal/autofs.c (read_fs_list): Make function capable of being
32369 run multiple times, gracefuly replacing the previous data
32371 * normal/dyncmd.c (read_command_list): Likewise.
32372 * normal/handler.c (read_handler_list): Likewise.
32373 * normal/main.c (read_lists): New function. Calls all the
32374 list reading functions.
32375 (grub_normal_execute): Use read_lists() instead of calling all
32376 list reading functions explicitly. Register read_lists() as a
32377 variable hook attached to ${prefix}.
32379 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32381 Merge crypto branch.
32383 * Makefile.in (pkglib_DATA): Add crypto.lst.
32384 (crypto.lst): New target.
32385 * commands/hashsum.c: New file.
32386 * commands/password.c (check_password): Use grub_crypto_memcmp.
32387 * commands/password_pbkdf2.c: New file.
32388 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32389 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32390 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32391 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32392 -I$(srcdir)/lib/libgcrypt_wrap.
32393 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32394 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32395 password_pbkdf2.mod.
32396 (crypto_mod_SOURCES): New variable.
32397 (crypto_mod_CFLAGS): Likewise.
32398 (crypto_mod_LDFLAGS): Likewise.
32399 (hashsum_mod_SOURCES): New variable.
32400 (hashsum_mod_CFLAGS): Likewise.
32401 (hashsum_mod_LDFLAGS): Likewise.
32402 (pbkdf2_mod_SOURCES): New variable.
32403 (pbkdf2_mod_CFLAGS): Likewise.
32404 (pbkdf2_mod_LDFLAGS): Likewise.
32405 (password_pbkdf2_mod_SOURCES): New variable.
32406 (password_pbkdf2_mod_CFLAGS): Likewise.
32407 (password_pbkdf2_mod_LDFLAGS): Likewise.
32408 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32409 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32410 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32411 Include conf/gcry.rmk.
32412 * include/grub/auth.h: Rewritten.
32413 * include/grub/crypto.h: New file.
32414 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32415 * include/grub/normal.h (read_crypto_list): New prototype.
32416 * lib/crypto.c: New file.
32417 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32418 * lib/pbkdf2.c: Likewise.
32419 * normal/auth.c (grub_auth_strcmp): Removed.
32420 (grub_iswordseparator): Likewise.
32421 (grub_auth_strword): Likewise.
32422 (is_authenticated): Use grub_strword.
32423 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32424 and grub_strword. Pass entered password to authentication callback.
32425 * normal/crypto.c: New file.
32426 * normal/main.c: Call read_crypto_list.
32427 * util/grub-mkpasswd-pbkdf2.c: New file.
32428 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32430 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32432 Fix descent and ascent calculation.
32434 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32435 (options): New option "asce".
32437 (add_char): Ignore invalid glyphs for descent calculation.
32438 Calculate ascent from actual content.
32439 (print_glyphs): Use 'asce'.
32440 (write_font): Likewise. Allow ascent override.
32441 (main): Handle "asce" option.
32443 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32445 * kern/err.c: Include `<grub/i18n.h>'.
32446 (grub_print_error): Add full stop. Gettextizze.
32447 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32448 (grub_bsd_load_elf): Capitalise ELF.
32449 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32450 (grub_cmd_freebsd_module): Likewise.
32451 (grub_cmd_freebsd_module_elf): Likewise.
32452 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32454 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32456 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32457 * commands/search_file.c (HELP_MESSAGE): New macro.
32458 * commands/search_label.c (HELP_MESSAGE): Likewise.
32459 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32460 * po/POTFILES: Add `commands/search_file.c',
32461 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32462 `commands/search.c'.
32464 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32466 * config.rpath: Update from Gnulib.
32468 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32470 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32472 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32474 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32476 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32478 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32479 arguments to fread so that we get a return value in bytes, rather
32480 than something that will normally be rounded down to 0.
32481 Adjust error handling to avoid producing garbage when size_t is not
32482 the same size as long long.
32484 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32486 * util/mkisofs/write.c (padblock_write): Check return value of
32489 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32491 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32494 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32496 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32498 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32499 instead of manual alignment.
32500 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32501 verbose). Avoid attempts to read past end of the device
32502 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32503 but GRUB_DISK_CACHE_SIZE may exceed that).
32505 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32507 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32508 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32511 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32513 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32515 (grub_efi_piwg_device_path): New structure
32516 (grub_efi_piwg_device_path_t): New type.
32517 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32518 (devpath_1): Transform to a structure. All users updated.
32519 (devpath_2): Likewise.
32520 (devpath_3): Likewise.
32521 (devpath_4): Likewise.
32522 (devpath_5): Likewise.
32524 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32526 * loader/efi/appleloader.c: Restored. Update all users.
32528 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32530 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32532 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32533 (struct boot_blocklist): Move from here ...
32534 * include/grub/i386/pc/boot.h [ASM_FILE]
32535 (struct grub_boot_blocklist): ... to here. Update all users.
32536 (setup): Only initialize `start' member of `first_block'
32537 structure. Add assert() calls to verify the other members.
32539 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32540 (generate_image): Fix broken blocklist length initialization.
32541 Add assert() call to verify blocklist `segment' field.
32543 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32545 * loader/efi/appleloader.c: Remove. Update all users.
32547 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32549 * boot/i386/pc/boot.S: Update copyright year.
32550 * boot/i386/pc/cdboot.S: Likewise.
32551 * boot/i386/pc/diskboot.S: Likewise.
32552 * boot/i386/pc/lnxboot.S: Likewise.
32553 * boot/i386/pc/pxeboot.S: Likewise.
32554 * bus/pci.c: Likewise.
32555 * commands/cmp.c: Likewise.
32556 * commands/help.c: Likewise.
32557 * commands/hexdump.c: Likewise.
32558 * commands/i386/pc/halt.c: Likewise.
32559 * commands/i386/pc/play.c: Likewise.
32560 * commands/i386/pc/vbeinfo.c: Likewise.
32561 * commands/ls.c: Likewise.
32562 * commands/test.c: Likewise.
32563 * disk/dmraid_nvidia.c: Likewise.
32564 * disk/i386/pc/biosdisk.c: Likewise.
32565 * disk/ieee1275/nand.c: Likewise.
32566 * disk/ieee1275/ofdisk.c: Likewise.
32567 * disk/lvm.c: Likewise.
32568 * disk/raid.c: Likewise.
32569 * disk/raid6_recover.c: Likewise.
32570 * disk/scsi.c: Likewise.
32571 * fs/affs.c: Likewise.
32572 * fs/cpio.c: Likewise.
32573 * fs/ext2.c: Likewise.
32574 * fs/hfs.c: Likewise.
32575 * fs/iso9660.c: Likewise.
32576 * fs/ntfs.c: Likewise.
32577 * fs/sfs.c: Likewise.
32578 * fs/udf.c: Likewise.
32579 * fs/ufs.c: Likewise.
32580 * fs/xfs.c: Likewise.
32581 * gencmdlist.sh: Likewise.
32582 * genmk.rb: Likewise.
32583 * include/grub/disk.h: Likewise.
32584 * include/grub/efi/api.h: Likewise.
32585 * include/grub/efi/efi.h: Likewise.
32586 * include/grub/efi/pe32.h: Likewise.
32587 * include/grub/elf.h: Likewise.
32588 * include/grub/fs.h: Likewise.
32589 * include/grub/i386/at_keyboard.h: Likewise.
32590 * include/grub/i386/pc/memory.h: Likewise.
32591 * include/grub/i386/pc/vbe.h: Likewise.
32592 * include/grub/i386/pci.h: Likewise.
32593 * include/grub/i386/tsc.h: Likewise.
32594 * include/grub/ieee1275/ieee1275.h: Likewise.
32595 * include/grub/ntfs.h: Likewise.
32596 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32597 * include/grub/sparc64/libgcc.h: Likewise.
32598 * include/grub/symbol.h: Likewise.
32599 * include/grub/types.h: Likewise.
32600 * include/multiboot2.h: Likewise.
32601 * io/gzio.c: Likewise.
32602 * kern/device.c: Likewise.
32603 * kern/disk.c: Likewise.
32604 * kern/efi/efi.c: Likewise.
32605 * kern/efi/mm.c: Likewise.
32606 * kern/elf.c: Likewise.
32607 * kern/file.c: Likewise.
32608 * kern/i386/dl.c: Likewise.
32609 * kern/i386/pc/init.c: Likewise.
32610 * kern/i386/pc/startup.S: Likewise.
32611 * kern/ieee1275/ieee1275.c: Likewise.
32612 * kern/ieee1275/init.c: Likewise.
32613 * kern/main.c: Likewise.
32614 * kern/mm.c: Likewise.
32615 * kern/powerpc/dl.c: Likewise.
32616 * kern/sparc64/dl.c: Likewise.
32617 * kern/x86_64/dl.c: Likewise.
32618 * lib/hexdump.c: Likewise.
32619 * loader/efi/appleloader.c: Likewise.
32620 * loader/i386/ieee1275/linux.c: Likewise.
32621 * loader/i386/pc/chainloader.c: Likewise.
32622 * loader/i386/pc/linux.c: Likewise.
32623 * loader/i386/pc/multiboot2.c: Likewise.
32624 * loader/ieee1275/multiboot2.c: Likewise.
32625 * loader/multiboot2.c: Likewise.
32626 * loader/multiboot_loader.c: Likewise.
32627 * loader/powerpc/ieee1275/linux.c: Likewise.
32628 * normal/completion.c: Likewise.
32629 * normal/menu_entry.c: Likewise.
32630 * partmap/apple.c: Likewise.
32631 * util/grub.d/10_hurd.in: Likewise.
32632 * util/hostfs.c: Likewise.
32633 * video/readers/png.c: Likewise.
32635 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32637 * include/grub/misc.h (GNUC_PREREQ): New macro.
32638 (ATTRIBUTE_ERROR): New macro.
32639 * include/grub/list.h (grub_bad_type_cast_real): Use
32642 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32644 * normal/menu_text.c (print_message): Change messages.
32646 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32648 * normal/menu_entry.c (store_completion): Gettextizze.
32650 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32652 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32654 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32656 * po/POTFILES: Sort correctly.
32658 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32660 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32661 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32662 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32664 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32665 summary. Gettextizze the strings.
32666 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32667 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32668 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32670 (GRUB_MOD_INIT): Remove command name from summary.
32671 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32673 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32674 * term/i386/pc/serial.c (options): Add full stops.
32675 (GRUB_MOD_INIT): Remove command name from the summary.
32677 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32679 * commands/acpi.c: Gettextizze help strings and/or options. Include
32680 `grub/i18n.h' if needed.
32681 * commands/blocklist.c: Likewise.
32682 * commands/boot.c: Likewise.
32683 * commands/cat.c: Likewise.
32684 * commands/cmp.c: Likewise.
32685 * commands/configfile.c: Likewise.
32686 * commands/crc.c: Likewise.
32687 * commands/date.c: Likewise.
32688 * commands/echo.c: Likewise.
32689 * commands/efi/fixvideo.c: Likewise.
32690 * commands/efi/loadbios.c: Likewise.
32691 * commands/gptsync.c: Likewise.
32692 * commands/halt.c: Likewise.
32693 * commands/handler.c: Likewise.
32694 * commands/hdparm.c: Likewise.
32695 * commands/hexdump.c: Likewise.
32696 * commands/i386/cpuid.c: Likewise.
32697 * commands/i386/pc/drivemap.c: Likewise.
32698 * commands/i386/pc/halt.c: Likewise.
32699 * commands/i386/pc/pxecmd.c: Likewise.
32700 * commands/i386/pc/vbeinfo.c: Likewise.
32701 * commands/i386/pc/vbetest.c: Likewise.
32702 * commands/ieee1275/suspend.c: Likewise.
32703 * commands/keystatus.c: Likewise.
32704 * commands/loadenv.c: Likewise.
32705 * commands/ls.c: Likewise.
32706 * commands/lsmmap.c: Likewise.
32707 * commands/lspci.c: Likewise.
32708 * commands/memrw.c: Likewise.
32709 * commands/minicmd.c: Likewise.
32710 * commands/parttool.c: Likewise.
32711 * commands/password.c: Likewise.
32712 * commands/probe.c: Likewise.
32713 * commands/read.c: Likewise.
32714 * commands/reboot.c: Likewise.
32715 * commands/search.c: Likewise.
32716 * commands/sleep.c: Likewise.
32717 * commands/test.c: Likewise.
32718 * commands/true.c: Likewise.
32719 * commands/usbtest.c: Likewise.
32720 * commands/videotest.c: Likewise.
32721 * commands/xnu_uuid.c: Likewise.
32722 * disk/loopback.c: Likewise.
32723 * hello/hello.c: Likewise.
32724 * loader/i386/bsd.c: Likewise.
32725 * term/i386/pc/serial.c: Likewise.
32726 * po/POTFILES: Add new files.
32728 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32730 * term/i386/pc/at_keyboard.c
32731 (keyboard_controller_wait_untill_ready): Rename to ...
32732 (keyboard_controller_wait_until_ready): ... this. Update all users.
32734 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32736 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32737 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32738 string using string width.
32739 * normal/menu_text.c (grub_print_message_indented): Use
32740 grub_print_spaces and not print_spaces.
32741 (print_timeout): Likewise.
32742 (print_spaces): Move to...
32743 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32745 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32747 Import from Gnulib.
32749 * gnulib/getdelim.c: New file.
32750 * gnulib/getline.c: Likewise.
32752 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32754 * include/grub/list.h (grub_assert_fail): Removed.
32755 (grub_bad_type_cast_real): New function.
32756 (grub_bad_type_cast): New macro.
32757 (GRUB_AS_LIST): Use grub_bad_type_cast.
32758 (GRUB_AS_LIST_P): Likewise.
32759 (GRUB_AS_NAMED_LIST): Likewise.
32760 (GRUB_AS_NAMED_LIST_P): Likewise.
32761 (GRUB_AS_PRIO_LIST): Likewise.
32762 (GRUB_AS_PRIO_LIST_P): Likewise.
32763 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32765 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32767 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32770 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32772 * configure.ac: Check for TARGET_CFLAGS initialization before we
32773 initialize it ourselves (sigh).
32774 Move a few modifications to TARGET_CFLAGS to be unconditional
32775 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32778 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32779 * term/i386/pc/at_keyboard.c
32780 (keyboard_controller_wait_untill_ready): Likewise.
32781 (keyboard_controller_led): Rename `led_status' paramter to avoid
32784 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32786 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32789 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32791 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32793 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32795 * normal/menu_text.c (grub_print_message_indented): Prevent
32796 past-the-end-of-array dereference.
32798 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32800 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32801 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32803 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32805 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32806 * normal/main.c (grub_normal_read_line): Remove a space from the
32809 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32811 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32812 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32813 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32814 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32815 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32816 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32817 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32819 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32821 * video/readers/jpeg.c (cmd): Declare.
32822 (grub_cmd_jpegtest): Use `grub_command_t' type.
32823 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32825 (GRUB_MOD_FINI): Use `cmd' to unregister.
32826 * video/readers/png.c (cmd): Declare.
32827 (grub_cmd_pngtest): Use `grub_command_t' type.
32828 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32830 (GRUB_MOD_FINI): Use `cmd' to unregister.
32831 * video/readers/tga.c (cmd): Declare.
32832 (grub_cmd_tgatest): Use `grub_command_t' type.
32833 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32835 (GRUB_MOD_FINI): Use `cmd' to unregister.
32837 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32839 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32841 * kern/corecmd.c (grub_register_core_commands): Likewise.
32842 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32843 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32844 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32845 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32846 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32847 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32848 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32849 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32850 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32851 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32852 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32853 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32854 * normal/handler.c (insert_handler): Likewise.
32855 * normal/main.c (GRUB_MOD_INIT): Likewise.
32856 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32858 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32860 * commands/help.c (grub_cmd_help): Print the command name before the
32862 (GRUB_MOD_INIT): Remove command name from the summary.
32863 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32865 * lib/arg.c (find_long): Print the command name before the summary.
32866 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32868 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32869 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32870 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32871 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32872 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32873 * commands/date.c (GRUB_MOD_INIT): Likewise.
32874 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32875 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32876 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32877 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32878 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32879 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32880 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32881 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32882 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32883 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32884 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32885 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32886 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32887 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32888 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32889 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32890 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32891 * commands/password.c (GRUB_MOD_INIT): Likewise.
32892 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32893 * commands/read.c (GRUB_MOD_INIT): Likewise.
32894 * commands/search.c (GRUB_MOD_INIT): Likewise.
32895 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32896 * commands/test.c (GRUB_MOD_INIT): Likewise.
32897 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32898 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32899 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32900 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32901 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32902 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32903 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32904 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32905 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32906 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32907 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32908 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32909 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32910 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32912 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32914 Use search command for preliminar UUID search.
32916 * commands/search.c: Split into ...
32917 * commands/search_wrap.c: ...this
32918 * commands/search.c: ...and this.
32919 * commands/search_file.c: New file.
32920 * commands/search_label.c: New file.
32921 * commands/search_uuid.c: New file.
32922 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32923 Add commands/search_wrap.c, commands/search_file.c,
32924 commands/search_label.c and commands/search_uuid.c.
32925 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32926 (search_mod_SOURCES): Set to commands/search_wrap.c.
32927 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32929 (search_fs_file_mod_SOURCES): New variable.
32930 (search_fs_file_mod_CFLAGS): Likewise.
32931 (search_fs_file_mod_LDFLAGS): Likewise.
32932 (search_label_mod_SOURCES): Likewise.
32933 (search_label_mod_CFLAGS): Likewise.
32934 (search_label_mod_LDFLAGS): Likewise.
32935 (search_fs_uuid_mod_SOURCES): New variable.
32936 (search_fs_uuid_mod_CFLAGS): Likewise.
32937 (search_fs_uuid_mod_LDFLAGS): Likewise.
32938 (fs_file_mod_SOURCES): Removed.
32939 (fs_file_mod_CFLAGS): Likewise.
32940 (fs_file_mod_LDFLAGS): Likewise.
32941 (fs_uuid_mod_SOURCES): Removed.
32942 (fs_uuid_mod_CFLAGS): Likewise.
32943 (fs_uuid_mod_LDFLAGS): Likewise.
32944 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32945 Set to util/grub-install.in.
32946 * disk/fs_file.c: Removed.
32947 * disk/fs_uuid.c: Likewise.
32948 * include/grub/search.h: New file.
32949 * util/grub-install.in: Handle sparc64.
32950 Create and use load.cfg.
32951 * util/sparc64/ieee1275/grub-install.in: Removed.
32953 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32955 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32956 Ignore return status if CF is cleared.
32957 (grub_biosdisk_get_diskinfo_standard): Likewise.
32959 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32961 * term/i386/pc/at_keyboard.c
32962 (keyboard_controller_wait_untill_ready): New function.
32963 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32964 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32965 for keyboard polling, rather than duplicate the same loop. This
32966 saves a few bytes in code size.
32968 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32970 Support for (pxe[:server[:gateway]]) syntax and
32971 use environment variable for PXE.
32973 * commands/i386/pc/pxecmd.c (options): Removed.
32974 (print_ip): Removed.
32975 (grub_cmd_pxe): Removed
32976 (grub_cmd_pxe_unload): New function.
32977 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32978 (grub_pxe_your_ip): Made static.
32979 (grub_pxe_default_server_ip): Likewise.
32980 (grub_pxe_default_gateway_ip): Likewise.
32981 (grub_pxe_blksize): Likewise.
32982 (parse_ip): New function.
32983 (grub_pxe_open): Support server and gateway specification.
32984 (grub_pxe_close): Free disk->data.
32985 (grub_pxefs_open): Use disk->data.
32986 (grub_pxefs_read): Likewise.
32987 (grub_env_write_readonly): New function.
32988 (set_mac_env): Likewise.
32989 (set_env_limn_ro): Likewise.
32990 (parse_dhcp_vendor): Likewise.
32991 (grub_pxe_detect): Set the environment variables.
32992 (set_ip_env): New function.
32993 (write_ip_env): Likewise.
32994 (grub_env_write_pxe_default_server): Likewise.
32995 (grub_env_write_pxe_default_gateway): Likewise.
32996 (grub_env_write_pxe_blocksize): Likewise.
32997 (GRUB_MOD_INIT(pxe)): Set environment variables.
32998 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32999 (grub_pxe_mac_addr_t): ... this. All users updated.
33000 (grub_pxe_your_ip): Removed.
33001 (grub_pxe_server_ip): Likewise.
33002 (grub_pxe_gateway_ip): Likewise.
33003 (grub_pxe_blksize): Likewise.
33005 2009-12-25 Carles Pina i Estany <carles@pina.cat>
33007 * commands/help.c: Include `<grub/i18n.h>'.
33008 (grub_cmd_help): Gettextizze.
33009 (GRUB_MOD_INIT): Likewise.
33010 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
33011 (GRUB_MOD_INIT): Gettextizze.
33012 * commands/search.c: Include `<grub/i18n.h>'.
33013 (options): Gettextizze.
33014 (GRUB_MOD_INIT): Gettextizze.
33015 * lib/arg.c: Include `<grub/i18n.h>'.
33016 (help_options): Gettextizze.
33017 (find_long): Likewise.
33018 (grub_arg_show_help): Likewise.
33019 * normal/dyncmd.c: Include `<grub/i18n.h>'.
33020 (read_command_list): Gettextizze.
33021 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
33022 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
33024 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
33026 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
33027 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
33028 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
33029 (led_status): New variable.
33030 (keyboard_controller_led): New function.
33031 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
33032 update led status for caps lock, num lock and scroll lock.
33034 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
33036 * util/hostdisk.c (open_device): Fix a comment.
33038 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33040 * util/grub-install.in (host_os): New variable.
33041 * util/i386/efi/grub-install.in (host_os): Likewise.
33043 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33045 * util/mkisofs/write.c (padblock_write): Abort when given an
33046 excedingly large embed image, instead of silently truncating it.
33048 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33050 * include/multiboot.h: Indentation fixes.
33052 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33054 * include/multiboot.h (struct multiboot_aout_symbol_table)
33055 (struct multiboot_elf_section_header_table): New structure
33056 declarations (stolen from GRUB Legacy).
33057 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
33060 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
33061 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
33064 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33066 * include/multiboot.h: Make comments src2texi-friendly.
33068 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33070 For consistency with [multiboot]/docs/boot.S.
33072 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
33073 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
33074 (MULTIBOOT_MAGIC2): Rename from this ...
33075 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
33077 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33079 * include/multiboot.h: Remove `<grub/types.h>'.
33080 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
33081 types. Update all users.
33083 2009-12-25 Carles Pina i Estany <carles@pina.cat>
33085 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
33086 `couldn't' and `can not' by `cannot'.
33087 * commands/i386/pc/drivemap.c: Likewise.
33088 * disk/ata.c: Likewise.
33089 * disk/ieee1275/nand.c: Likewise.
33090 * fs/affs.c: Likewise.
33091 * fs/fat.c: Likewise.
33092 * fs/hfs.c: Likewise.
33093 * fs/hfsplus.c: Likewise.
33094 * fs/iso9660.c: Likewise.
33095 * fs/jfs.c: Likewise.
33096 * fs/minix.c: Likewise.
33097 * fs/reiserfs.c: Likewise.
33098 * fs/sfs.c: Likewise.
33099 * fs/udf.c: Likewise.
33100 * fs/ufs.c: Likewise.
33101 * fs/xfs.c: Likewise.
33102 * loader/powerpc/ieee1275/linux.c: Likewise.
33103 * loader/sparc64/ieee1275/linux.c: Likewise.
33104 * util/grub-probe.c: Likewise.
33105 * util/misc.c: Likewise.
33107 2009-12-24 Carles Pina i Estany <carles@pina.cat>
33109 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
33111 * commands/acpi.c: Likewise.
33112 * commands/blocklist.c: Likewise.
33113 * commands/efi/loadbios.c: Likewise.
33114 * commands/i386/pc/drivemap.c: Likewise.
33115 * commands/loadenv.c: Likewise.
33116 * commands/memrw.c: Likewise.
33117 * commands/password.c: Likewise.
33118 * commands/videotest.c: Likewise.
33119 * disk/ata.c: Likewise.
33120 * disk/ata_pthru.c: Likewise.
33121 * disk/dmraid_nvidia.c: Likewise.
33122 * disk/ieee1275/nand.c: Likewise.
33123 * disk/ieee1275/ofdisk.c: Likewise.
33124 * disk/loopback.c: Likewise.
33125 * disk/lvm.c: Likewise.
33126 * disk/mdraid_linux.c: Likewise.
33127 * disk/raid.c: Likewise.
33128 * disk/raid6_recover.c: Likewise.
33129 * disk/scsi.c: Likewise.
33130 * efiemu/main.c: Likewise.
33131 * efiemu/mm.c: Likewise.
33132 * efiemu/pnvram.c: Likewise.
33133 * efiemu/symbols.c: Likewise.
33134 * font/font.c: Likewise.
33135 * fs/cpio.c: Likewise.
33136 * fs/hfsplus.c: Likewise.
33137 * fs/iso9660.c: Likewise.
33138 * fs/jfs.c: Likewise.
33139 * fs/minix.c: Likewise.
33140 * fs/ntfs.c: Likewise.
33141 * fs/ntfscomp.c: Likewise.
33142 * fs/reiserfs.c: Likewise.
33143 * fs/ufs.c: Likewise.
33144 * fs/xfs.c: Likewise.
33145 * gettext/gettext.c: Likewise.
33146 * include/grub/auth.h: Likewise.
33147 * kern/elf.c: Likewise.
33148 * kern/file.c: Likewise.
33149 * kern/ieee1275/init.c: Likewise.
33150 * kern/ieee1275/mmap.c: Likewise.
33151 * kern/ieee1275/openfw.c: Likewise.
33152 * kern/powerpc/dl.c: Likewise.
33153 * kern/sparc64/dl.c: Likewise.
33154 * lib/arg.c: Likewise.
33155 * loader/i386/bsd.c: Likewise.
33156 * loader/i386/bsdXX.c: Likewise.
33157 * loader/i386/efi/linux.c: Likewise.
33158 * loader/i386/efi/xnu.c: Likewise.
33159 * loader/i386/ieee1275/linux.c: Likewise.
33160 * loader/i386/linux.c: Likewise.
33161 * loader/i386/multiboot.c: Likewise.
33162 * loader/i386/pc/linux.c: Likewise.
33163 * loader/i386/pc/multiboot2.c: Likewise.
33164 * loader/i386/xnu.c: Likewise.
33165 * loader/ieee1275/multiboot2.c: Likewise.
33166 * loader/macho.c: Likewise.
33167 * loader/machoXX.c: Likewise.
33168 * loader/multiboot2.c: Likewise.
33169 * loader/multiboot_loader.c: Likewise.
33170 * loader/powerpc/ieee1275/linux.c: Likewise.
33171 * loader/sparc64/ieee1275/linux.c: Likewise.
33172 * loader/xnu.c: Likewise.
33173 * loader/xnu_resume.c: Likewise.
33174 * mmap/i386/pc/mmap.c: Likewise.
33175 * normal/menu_viewer.c: Likewise.
33176 * partmap/acorn.c: Likewise.
33177 * partmap/amiga.c: Likewise.
33178 * partmap/apple.c: Likewise.
33179 * script/lexer.c: Likewise.
33180 * term/gfxterm.c: Likewise.
33181 * term/i386/pc/serial.c: Likewise.
33182 * term/i386/pc/vga.c: Likewise.
33183 * term/ieee1275/ofconsole.c: Likewise.
33184 * term/terminfo.c: Likewise.
33185 * video/bitmap.c: Likewise.
33186 * video/efi_gop.c: Likewise.
33187 * video/efi_uga.c: Likewise.
33188 * video/fb/video_fb.c: Likewise.
33189 * video/i386/pc/vbe.c: Likewise.
33190 * video/readers/tga.c: Likewise.
33191 * video/video.c: Likewise.
33193 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
33195 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33196 * commands/lspci.c: Likewise.
33197 * commands/probe.c: Likewise.
33198 * commands/xnu_uuid.c: Likewise.
33199 * conf/i386-coreboot.rmk: Likewise.
33200 * conf/i386-efi.rmk: Likewise.
33201 * conf/i386-ieee1275.rmk: Likewise.
33202 * conf/i386-pc.rmk: Likewise.
33203 * conf/powerpc-ieee1275.rmk: Likewise.
33204 * conf/sparc64-ieee1275.rmk: Likewise.
33205 * conf/x86_64-efi.rmk: Likewise.
33206 * fs/i386/pc/pxe.c: Likewise.
33207 * gettext/gettext.c: Likewise.
33208 * include/grub/efi/graphics_output.h: Likewise.
33209 * include/grub/i386/pc/memory.h: Likewise.
33210 * kern/env.c: Likewise.
33211 * kern/i386/qemu/startup.S: Likewise.
33212 * lib/i386/pc/biosnum.c: Likewise.
33213 * lib/i386/relocator.c: Likewise.
33214 * lib/i386/relocator_asm.S: Likewise.
33215 * lib/relocator.c: Likewise.
33216 * loader/i386/bsd.c: Likewise.
33217 * loader/i386/multiboot.c: Likewise.
33218 * loader/i386/pc/chainloader.c: Likewise.
33219 * loader/i386/xnu.c: Likewise.
33220 * loader/xnu.c: Likewise.
33221 * normal/main.c: Likewise.
33222 * normal/menu_text.c: Likewise.
33223 * util/getroot.c: Likewise.
33224 * util/grub-mkconfig_lib.in: Likewise.
33225 * util/grub.d/00_header.in: Likewise.
33226 * util/i386/pc/grub-mkimage.c: Likewise.
33227 * util/mkisofs/eltorito.c: Likewise.
33228 * util/mkisofs/exclude.h: Likewise.
33229 * util/mkisofs/hash.c: Likewise.
33230 * util/mkisofs/iso9660.h: Likewise.
33231 * util/mkisofs/joliet.c: Likewise.
33232 * util/mkisofs/mkisofs.c: Likewise.
33233 * util/mkisofs/mkisofs.h: Likewise.
33234 * util/mkisofs/multi.c: Likewise.
33235 * util/mkisofs/name.c: Likewise.
33236 * util/mkisofs/rock.c: Likewise.
33237 * util/mkisofs/tree.c: Likewise.
33238 * util/mkisofs/write.c: Likewise.
33239 * video/efi_gop.c: Likewise.
33241 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33243 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33246 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33248 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33249 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33251 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33253 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33254 (GRUB_MOD_INIT(memrw)): Update help line.
33256 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33258 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33259 Use grub_extcmd_t. All users updated.
33260 (options): New variable.
33261 (grub_cmd_read): Restructure for readability. Support "-v" option.
33262 (grub_cmd_write): Restructure for readability.
33264 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33266 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33268 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33270 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33271 with the actual contents of the correspondending make variable.
33272 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33273 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33274 specifying `*.lst' and `efiemu??.o'
33276 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33278 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33279 after function name.
33280 Noticed by Rene Engelhard <rene@debian.org>.
33282 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33284 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33285 (options): New variable.
33286 (iospace): Likewise.
33287 (grub_lspci_iter): List IO spaces if "-i" was given.
33288 (grub_cmd_lspci): Parse options.
33289 (GRUB_MOD_INIT(lspci)): Use extcmd.
33290 (GRUB_MOD_FINI(lspci)): Likewise.
33292 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33294 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33295 `function' keyword.
33296 Patch by Tony Mancill <tmancill@debian.org>.
33298 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33300 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33301 (grub_uhci_portstatus): Likewise.
33302 (grub_uhci_portstatus): Add necessary delay.
33303 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33305 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33307 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33308 (GRUB_MOD_INIT): Likewise.
33309 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33310 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33311 * commands/echo.c (options): Fix capitalizations and/or full stops.
33312 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33313 (enable_rom_area): Likewise.
33314 (GRUB_MOD_INIT): Likewise.
33315 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33316 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33317 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33318 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33319 * commands/hexdump.c (options): Likewise.
33320 * commands/i386/cpuid.c (options): Likewise.
33321 (GRUB_MOD_INIT): Likewise.
33322 * commands/i386/pc/drivemap.c (options): Likewise.
33323 (GRUB_MOD_INIT): Likewise.
33324 * commands/i386/pc/halt (options): Likewise.
33325 (GRUB_MOD_INIT): Likewise.
33326 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33327 * commands/i386/pc/pxecmd.c (options): Likewise.
33328 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33329 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33330 * commands/keystatus.c (options): Likewise.
33331 (GRUB_MOD_INIT): Likewise.
33332 * commands/loadenv.c (options): Likewise.
33333 * commands/ls.c (options): Likewise.
33334 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33335 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33336 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33337 * commands/parttool.c (helpmsg): Likewise.
33338 * commands/probe.c (options): Likewise.
33339 * commands/read.c (GRUB_MOD_INIT): Likewise.
33340 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33341 * commands/search.c (options): Likewise.
33342 * commands/sleep.c (options): Likewise.
33343 * commands/test.c (GRUB_MOD_INIT): Likewise.
33344 * commands/true.c (GRUB_MOD_INIT): Likewise.
33345 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33346 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33347 * lib/arg.c (help_options): Likewise.
33348 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33350 * po/POTFILES: Add `commands/loadenv.c'.
33352 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33354 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33355 instead of specifying them explicit.
33357 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33359 * NEWS: Add grub-probe support for GNU/Hurd.
33361 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33363 * NEWS: gettext was added after 1.97.
33365 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33367 * util/mkisofs/msdos_partition.h: New file (based on
33368 include/grub/msdos_partition.h).
33369 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33370 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33371 (ld_options, main): Recognize --protective-msdos-label.
33372 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33373 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33374 (padblock_write): If `use_protective_msdos_label' is set, patch a
33375 protective DOS-style label in the output image.
33377 * util/grub-mkrescue.in: Use --protective-msdos-label.
33379 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33381 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33384 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33386 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33388 (ld_options, main): Recognize `--embedded-boot'.
33389 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33391 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33392 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33393 (padblock_write): Likewise. Rewrite to support embedded boot image.
33395 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33396 for BIOS-based disk boot instead of only ElTorito.
33398 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33400 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33401 build (not needed for bootstrap).
33403 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33405 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33406 from i386-pc build (not needed for bootstrap).
33407 Rewrite a pair of strings.
33409 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33411 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33413 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33415 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33417 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33419 * kern/env.c (grub_env_context_open): Mark exported variable for
33422 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33424 * kern/env.c (grub_env_export): Create nonexistent variables before
33427 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33429 * include/grub/auth.h: Include `<grub/i18n.h>'.
33430 (GRUB_GET_PASSWORD): Gettextizze string.
33431 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33433 (grub_utf8_to_ucs4_alloc): Fix indentation.
33434 (grub_print_ucs4): Likewise.
33435 (grub_getstringwidth): Likewise.
33436 (print_message_indented): New declaration.
33437 * normal/auth.c: Include `<grub/i18n.h>'.
33438 (grub_auth_check_authentication): Gettexttize string.
33439 * normal/cmdline.c: Include `<grub/i18n.h>'.
33440 (grub_cmdline_get): Gettextizze.
33441 * normal/color.c: Include `<grub/i18n.h>'.
33442 (grub_parse_color_name_pair): Gettexttize strings.
33443 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33444 string (use `print_message_indented').
33445 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33446 `include/grub/normal.h'.
33447 (print_message_indented): Renamed to ...
33448 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33449 used in normal/main.c).
33450 (print_message): Use `grub_print_message_indented' instead of
33451 `print_message_indented'.
33452 (print_timeout): Likewise.
33453 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33454 (grub_normal_print_device_info): Gettexttize strings.
33455 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33457 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33459 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33460 of arguments. Return number of tokens and not arguments. All users
33463 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33465 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33466 non-MSDOS paritions.
33468 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33470 * include/grub/types.h (UNUSED): Removed since it conflicts with
33471 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33472 Reported by Grégoire Sutre.
33474 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33476 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33477 (grub_print_ucs4_alloc): Likewise.
33478 (grub_getstringwidth): Likewise.
33479 * normal/main.c (grub_normal_init_page): Gettextize version string.
33480 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33481 (getstringwidth): Renamed to ...
33482 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33483 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33484 (grub_print_ucs4): Remove `static' qualifer (now used in
33486 * po/POTFILES: Add normal/main.c.
33488 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33490 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33491 (print_message_indented): Add `margin_left' and `margin_right'
33493 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33495 (print_timeout): Use `print_message_indented' to print the message.
33496 Deletes `second_stage' parameter.
33497 (run_menu): Update `print_timeout' calls.
33499 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33501 Fix console palette on OpenFirmware.
33503 * term/ieee1275/ofconsole.c (MAX): Removed.
33504 (colors): Redone based on VGA palette.
33505 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33506 colors are supported.
33507 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33509 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33511 Fix potential EfiEmu double prepare.
33513 * efiemu/main.c (prepared): New variable
33514 (grub_efiemu_unload): Set prepare to '0'.
33515 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33517 set_virtual_address_map support.
33519 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33521 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33523 (grub_efiemu_crc32): Likewise.
33524 (grub_efiemu_crc64): Likewise.
33525 (grub_efiemu_set_virtual_address_map): Likewise.
33526 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33528 (grub_autoefi_set_virtual_address_map): Likewise.
33529 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33530 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33531 Restructure flow to accomodate it.
33532 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33533 (grub_efiemu_crc): Recompute CRC32.
33534 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33535 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33536 * efiemu/symbols.c (relocated_handle): New variable.
33537 (grub_efiemu_free_syms): Free relocated_handle.
33538 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33539 (grub_efiemu_write_sym_markers): New function.
33540 (grub_efiemu_set_virtual_address_map): Likewise.
33542 Newer XNU parameters.
33544 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33545 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33546 (grub_xnu_fill_devicetree): New prototype.
33547 (grub_xnu_heap_real_start): New variable.
33548 * loader/xnu.c (get_name_ptr): New function.
33549 (grub_xnu_load_driver): Fill namelen and name.
33551 64-bit xnu support.
33553 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33554 and 'loader/macho64.c'.
33555 * conf/i386-pc.rmk: Likewise.
33556 * conf/x86_64-efi.rmk: Likewise.
33557 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33558 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33559 * include/grub/macho.h (grub_macho_segment64): New structure.
33560 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33561 (grub_macho_size32): ... to this.
33562 (grub_macho32_get_entry_point): Renamed from ...
33563 (grub_macho_get_entry_point32): ... to this.
33564 (grub_macho_contains_macho64): New prototype.
33565 (grub_macho_size64): Likewise.
33566 (grub_macho_get_entry_point64): Likewise.
33567 (grub_macho32_load): Renamed from ...
33568 (grub_macho_load32): ... to this.
33569 (grub_macho32_filesize): Renamed from ...
33570 (grub_macho_filesize32): ... to this.
33571 (grub_macho32_readfile): Renamed from ...
33572 (grub_macho_readfile32): ... to this.
33573 (grub_macho_filesize64): New prototype.
33574 (grub_macho_readfile64): Likewise.
33575 (grub_macho_parse32): Likewise.
33576 (grub_macho_parse64): Likewise.
33577 * loader/macho.c: Split into ...
33578 * loader/machoXX.c: ... and this. Replace 32 with XX.
33579 * loader/macho32.c: New file.
33580 * loader/macho64.c: Likewise.
33581 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33582 (grub_cmd_xnu_kernel): Make 32-bit only.
33583 (grub_cmd_xnu_kernel64): New function.
33584 (grub_xnu_load_driver): Support Mach-O 64.
33585 (grub_cmd_xnu_mkext): Likewise.
33586 * util/grub.d/30_os-prober.in (osx_entry): New function.
33587 Generate entries for 64-bit boot too.
33589 Eliminate ad-hoc tree format in XNU and EfiEmu.
33591 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33592 * efiemu/pnvram.c: Rewritten to use environment variables.
33595 Inline utf16_to_utf8.
33597 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33598 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33600 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33602 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33603 * commands/usbtest.c (grub_usb_get_string): ... move here.
33604 (usb_print_str): Fix error handling.
33605 * include/grub/usb.h (grub_usb_get_string): Remove.
33607 UTF-8 to UTF-16 transformation.
33609 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33610 (charset_mod_SOURCES): New variable.
33611 (charset_mod_CFLAGS): Likewise.
33612 (charset_mod_LDFLAGS): Likewise.
33613 * include/grub/utf.h: New file.
33614 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33616 Support for device properties.
33618 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33619 (grub_xnu_devprop_device_header): Likewise.
33620 (grub_xnu_devprop_device_descriptor): Likewise.
33621 (grub_xnu_devprop_add_device): New prototype.
33622 (grub_xnu_devprop_remove_device): Likewise.
33623 (grub_xnu_devprop_remove_property): Likewise.
33624 (grub_xnu_devprop_add_property_utf8): Likewise.
33625 (grub_xnu_devprop_add_property_utf16): Likewise.
33626 (grub_cpu_xnu_init): Likewise.
33627 (grub_cpu_xnu_fini): Likewise.
33628 (grub_cpu_xnu_unload): Likewise.
33629 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33630 (property_descriptor): Likewise.
33631 (devices): New variable.
33632 (grub_xnu_devprop_remove_property): New function.
33633 (grub_xnu_devprop_add_device): Likewise.
33634 (grub_xnu_devprop_remove_device): Likewise.
33635 (grub_xnu_devprop_add_property): Likewise.
33636 (grub_xnu_devprop_add_property_utf8): Likewise.
33637 (grub_xnu_devprop_add_property_utf16): Likewise.
33638 (hextoval): Likewise.
33639 (grub_cpu_xnu_fill_devprop): Likewise.
33640 (grub_cmd_devprop_load): Likewise.
33641 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33642 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33643 (cmd_devprop_load): New variable.
33644 (grub_cpu_xnu_init): New function.
33645 (grub_cpu_xnu_fini): Likewise.
33646 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33647 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33648 (grub_cmd_xnu_devtree): Likewise.
33649 (hextoval): New function.
33650 (unescape): Likewise.
33651 (grub_xnu_fill_devicetree): Likewise.
33653 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33654 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33656 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33658 Workaround for broken ATI VBE.
33660 * video/i386/pc/vbe.c (last_set_mode): New variable.
33661 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33662 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33663 (grub_video_vbe_setup): Don't check for reserved flag.
33665 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33667 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33668 the `find' command.
33670 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33672 UUID support for HFS.
33674 * fs/hfs.c (grub_hfs_uuid): New function.
33675 (grub_hfs_fs): New value .uuid.
33676 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33678 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33680 Fix a segfault with parsing unknown long options.
33682 * util/grub-mkrelpath.c (options): Zero terminate it.
33684 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33686 * include/grub/misc.h (grub_puts): New declaration.
33687 (grub_puts_): Likewise.
33688 * kern/misc.c (grub_puts): New definition.
33689 (grub_puts_): Likewise.
33691 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33693 * util/grub-probe.c (probe): Improve error message.
33695 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33697 * loader/i386/multiboot_elfxx.c
33698 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33701 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33703 Relocator framework
33705 * loader/i386/xnu_helper.S: Removed. All users updated.
33706 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33707 (relocator_mod_SOURCES): New variable.
33708 (relocator_mod_CFLAGS): Likewise.
33709 (relocator_mod_LDFLAGS): Likewise.
33710 (relocator_mod_ASFLAGS): Likewise.
33711 * conf/x86_64.rmk: Likewise.
33712 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33713 (grub_multiboot_payload_entry_offset): Likewise.
33714 (grub_multiboot_forward_relocator): Likewise.
33715 (grub_multiboot_forward_relocator_end): Likewise.
33716 (grub_multiboot_backward_relocator): Likewise.
33717 (grub_multiboot_backward_relocator_end): Likewise.
33718 (grub_multiboot_payload_eip): New variable.
33719 (grub_multiboot_payload_orig): Likewise.
33720 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33721 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33722 * include/grub/i386/memory.h
33723 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33724 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33725 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33726 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33727 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33728 * include/grub/i386/relocator.h: New file.
33729 * include/grub/x86_64/relocator.h: Likewise.
33730 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33731 (XNU_RELOCATOR): New macro.
33732 (grub_xnu_launcher_start): Remove.
33733 (grub_xnu_launcher_end): Likewise.
33734 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33735 (grub_xnu_heap_real_start): Remove.
33736 (grub_xnu_heap_start): Change to void *. All users updated.
33737 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33738 * lib/i386/relocator.c: New file.
33739 * lib/i386/relocator_asm.S: Likewise.
33740 * lib/i386/relocator_backward.S: Likewise.
33741 * lib/mips/relocator.c: Likewise.
33742 * lib/mips/relocator_asm.S: Likewise.
33743 * lib/relocator.c: Likewise.
33744 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33746 (playground): Likewise.
33747 (grub_multiboot_payload_orig): New variable.
33748 (grub_multiboot_payload_dest): Likewise.
33749 (grub_multiboot_payload_size): Likewise.
33750 (grub_multiboot_payload_eip): Likewise.
33751 (grub_multiboot_payload_esp): Likewise.
33752 (grub_multiboot_boot): Use grub_relocator32_boot.
33753 (grub_multiboot_unload): Free relocators.
33754 (grub_multiboot): Setup stack. Use relocators.
33755 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33756 (grub_multiboot_load_elfXX): Use relocators.
33757 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33758 (grub_multiboot_payload_size): Likewise.
33759 (grub_multiboot_payload_dest): Likewise.
33760 (grub_multiboot_payload_entry_offset): Likewise.
33761 (grub_multiboot_forward_relocator): Likewise.
33762 (grub_multiboot_backward_relocator): Likewise.
33763 (grub_multiboot_real_boot): Likewise.
33764 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33765 (grub_xnu_entry_point): Likewise.
33766 (grub_xnu_arg1): Likewise.
33767 (grub_xnu_stack): Likewise.
33768 (grub_xnu_launch): Removed.
33769 (grub_xnu_boot_resume): New function.
33770 (grub_xnu_boot): Use relocators.
33771 * loader/i386/xnu_helper.S: Removed.
33772 * loader/xnu.c (grub_xnu_heap_start): New variable.
33773 (grub_xnu_heap_size): Likewise.
33774 (grub_xnu_heap_malloc): Use relocators.
33775 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33777 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33779 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33782 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33784 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33785 GRUB_ERR_NONE before calling grub_env_set.
33787 2009-12-12 Robert Millan <rmh@aybabtu.com>
33789 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33790 * genmk.rb (video): New variable.
33791 (CLEANFILES, VIDEOFILES): Add #{video}.
33792 (#{video}): New target rule.
33793 * genvideolist.sh: New file.
33794 * Makefile.in (pkglib_DATA): Add video.lst.
33795 (video.lst): New target rule.
33796 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33798 * util/grub.d/30_os-prober.in: Replace `vbe' with
33799 ${GRUB_VIDEO_BACKEND}.
33801 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33803 * THANKS: Add David Miller.
33805 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33807 libpciaccess support.
33809 * Makefile.in (LIBPCIACCESS): New variable.
33810 (enable_grub_emu_pci): Likewise.
33811 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33812 util/pci.c and commands/lspci.c.
33813 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33814 * configure.ac (grub-emu-pci): New option.
33815 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33816 (grub_pci_device_unmap_range): Likewise.
33817 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33818 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33819 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33820 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33821 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33822 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33823 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33824 * include/grub/pciutils.h: New file.
33825 * util/pci.c: Likewise.
33827 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33829 * util/misc.c: Don't include <errno.h> twice.
33831 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33833 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33834 name in an error message.
33835 (grub_biosdisk_rw): Likewise.
33837 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33839 Eliminate NTFS 4Gib barrier.
33841 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33842 (read_run_data): Likewise.
33843 (grub_ntfs_read_run_list): Likewise.
33844 (grub_ntfs_read_block): Likewise.
33845 (grub_ntfs_iterate_dir): Likewise.
33846 (read_mft): Likewise.
33847 (read_data): Likewise.
33849 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33850 to avoid 64-bit division
33851 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33852 (grub_ntfs_rlst): Use grub_disk_addr_t.
33854 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33856 Eliminate grub-fstest 4Gib barrier.
33858 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33859 (read_file): Fix error reporting.
33861 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33863 Eliminate hexdump 4Gib barrier.
33865 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33866 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33868 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33870 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33873 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33875 Remove miscellaneous files in distclean target.
33877 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33879 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33881 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33882 if they're already set. This resolves the conflict between my
33883 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33884 fixing the --grub-probe option again.
33885 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33886 change on 2009-10-06, so that we now once again source
33887 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33889 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33891 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33892 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33893 `util/devicemap.c'.
33895 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33897 * include/grub/misc.h (grub_printf_): New declaration.
33898 * kern/misc.c (grub_printf_): New definition.
33899 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33900 instead of `grub_printf' and `_'.
33901 * normal/menu_entry.c (store_completion): Likewise.
33903 (grub_menu_entry_run): Likewise.
33904 * normal/menu_text.c (grub_wait_after_message): Likewise.
33905 (notify_booting): Likewise.
33906 (notify_fallback): Likewise.
33907 (notify_execution_failure): Likewise.
33909 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33911 * configure.ac: Check for vasprintf.
33912 * util/misc.c (asprintf): Move allocation from here ...
33913 (vasprintf): ... to here. New function.
33914 (xasprintf): New function.
33915 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33917 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33918 * util/grub-mkfont.c (write_font): Likewise.
33919 * util/grub-probe.c (probe): Likewise.
33920 * util/hostdisk.c (make_device_name): Likewise.
33922 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33924 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33925 anything even prefixed with 'cdrom' as a cdrom.
33927 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33929 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33932 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33934 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33935 grub_gettext_msg_list.
33936 (grub_gettext_gettranslation_from_position): Return const char *
33938 (grub_gettext_translate): Add the translated strings into a list,
33939 returns from the list if existing there.
33940 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33941 (grub_gettext_delete_list): Delete the list.
33942 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33943 lang environment variable is changed.
33944 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33946 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33948 Rename kernel.mod to kernel.img.
33950 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33951 (kernel_mod_EXPORTS): Rename to ...
33952 (kernel_img_EXPORTS): ... this.
33953 (kernel_mod_SOURCES): Rename to ...
33954 (kernel_img_SOURCES): ... this.
33955 (kernel_mod_HEADERS): Rename to ...
33956 (kernel_img_HEADERS): ... this. All users updated.
33957 (kernel_mod_CFLAGS): Rename to ...
33958 (kernel_img_CFLAGS): ... this.
33959 (kernel_mod_ASFLAGS): Rename to ...
33960 (kernel_img_ASFLAGS): ... this.
33961 (kernel_mod_LDFLAGS): Rename to ...
33962 (kernel_img_LDFLAGS): ... this.
33963 * conf/x86_64-efi.rmk: Likewise.
33964 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33965 (read_kernel_image): ... this. All users updated.
33966 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33968 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33970 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33971 (print_spaces): New function.
33972 (grub_print_ucs4): New function.
33973 (getstringwidth): New function.
33974 (print_message_indented): New function.
33975 (print_message): Gettexttize strings using print_message_indented.
33976 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33978 (get_entry_number): Gettextize and uses dynamic terminal width.
33979 (notify_booting, notify_fallback, notify_execution_failure):
33981 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33984 (grub_menu_entry_run): Likewise.
33985 * PO/POTFILES: Add normal/menu_entry.c.
33987 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33989 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33991 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33993 * util/grub-install.in: Install gettext .mo files.
33994 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33996 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33998 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
34001 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
34003 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
34004 non-firmware-dependant one in realmode.S takes precedence.
34006 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
34008 * commands/halt.c: Replace misc arch-specific headers with
34010 * commands/reboot.c: Likewise.
34011 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
34013 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
34014 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
34015 (kernel_img_SOURCES): ... to here.
34017 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
34018 * include/grub/i386/pc/init.h: Likewise.
34019 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
34020 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
34022 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
34024 * include/grub/i386/halt.h: Remove.
34025 * include/grub/i386/reboot.h: Likewise.
34027 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
34029 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
34031 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
34032 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
34033 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
34035 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34036 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34037 (usage): Add missing comma in printf.
34039 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
34041 Use the same reboot approach on i386 coreboot and qemu as we do on
34044 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
34045 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
34046 * kern/i386/reboot.c: Remove.
34047 * include/grub/i386/reboot.h (grub_reboot): Export function.
34048 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
34049 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
34050 0xf000:0xfff0 instead of 0xffff:0x0000.
34051 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
34052 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
34054 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
34056 Fix $srcdir != $objdir build.
34058 * Makefile.in (po/%.po): Rewrite as ...
34059 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
34061 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
34063 Fix GNU/Hurd grub-install crash.
34064 * util/grub-probe.c (probe): Try to access `path' only when it is not
34067 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34069 Correct module naming.
34071 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
34072 (GRUB_MOD_INIT(efi_uga)): ... to this
34073 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
34074 (GRUB_MOD_FINI(efi_uga)): ... to this
34075 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
34076 (GRUB_MOD_INIT(efi_gop)): ... to this
34077 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
34078 (GRUB_MOD_FINI(efi_gop)): ... to this
34080 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
34082 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
34084 (usage): Translate `arg' strings using gettext().
34085 Thanks to Jordi Mallach for the suggestion.
34087 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34089 GOP support. Based on patch from Bean
34090 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34092 * video/efi_gop.c: New file.
34093 * include/grub/efi/graphics_output.h: Likewise.
34094 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
34095 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34097 * conf/x86_64-efi.rmk: Likewise.
34099 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34101 Rename efi_fb to efi_uga.
34103 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34105 (efi_fb_mod_SOURCES): Rename this ...
34106 (efi_uga_mod_SOURCES): ... to this.
34107 (efi_fb_mod_CFLAGS): Rename this ...
34108 (efi_uga_mod_CFLAGS): ... to this.
34109 (efi_fb_mod_LDFLAGS): Rename this ...
34110 (efi_uga_mod_LDFLAGS): ... to this.
34111 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34113 (efi_fb_mod_SOURCES): Rename this ...
34114 (efi_uga_mod_SOURCES): ... to this.
34115 (efi_fb_mod_CFLAGS): Rename this ...
34116 (efi_uga_mod_CFLAGS): ... to this.
34117 (efi_fb_mod_LDFLAGS): Rename this ...
34118 (efi_uga_mod_LDFLAGS): ... to this.
34119 * video/efi_fb.c: Move this ...
34120 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
34122 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34124 * po/README: New file. Explain our PO file workflow.
34126 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34128 * po/ChangeLog: Remove. Move relevant entries back to ...
34129 * ChangeLog: ... here.
34130 * po/ca.po: Remove (now handled by TLP).
34131 * po/id.po: Likewise.
34132 * po/zh_CN.po: Likewise.
34133 * Makefile.in (LINGUAS): Initialize in a way that supports
34136 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34138 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
34139 reliing on po/LINGUAS.
34140 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
34141 (po/%.po): ... this.
34143 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34145 * util/i386/efi/grub-mkimage.c: Include "progname.h".
34146 (main): Use `program_name' instead of nonexistent `progname'.
34148 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34150 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34151 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
34153 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34155 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
34157 * conf/i386-efi.rmk: Likewise.
34158 * conf/i386-ieee1275.rmk: Likewise.
34159 * conf/powerpc-ieee1275.rmk: Likewise.
34160 * conf/sparc64-ieee1275.rmk: Likewise.
34161 * conf/x86_64-efi.rmk: Likewise.
34163 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34165 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
34167 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34169 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
34171 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34173 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
34174 (grub_mkdevicemap_SOURCES): New variable.
34175 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
34176 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
34177 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
34178 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
34179 (grub_mkdevicemap_SOURCES): Remove.
34180 * conf/i386-efi.rmk: Likewise.
34181 * conf/i386-ieee1275.rmk: Likewise.
34182 * conf/i386-pc.rmk: Likewise.
34183 * conf/powerpc-ieee1275.rmk: Likewise.
34184 * conf/sparc64-ieee1275.rmk: Likewise.
34185 * conf/x86_64-efi.rmk: Likewise.
34186 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
34187 (usage): Fix strings to use `program_name'.
34188 (main): Initialize gettext.
34189 * util/grub-editenv.c: Likewise.
34190 * util/grub-emu.c: Likewise.
34191 * util/grub-fstest.c: Likewise.
34192 * util/grub-mkdevicemap.c: Likewise.
34193 * util/grub-mkfont.c: Likewise.
34194 * util/grub-mkrelpath.c: Likewise.
34195 * util/grub-pe2elf.c: Likewise.
34196 * util/grub-probe.c: Likewise.
34197 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34198 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34199 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34201 * util/misc.c: Include `"progname.h"'.
34202 (progname): Remove variable.
34203 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34205 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34207 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34208 printf and print a newline after the menuentry header line.
34209 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34211 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34213 autoconf >= 2.60 support $(localedir).
34215 * INSTALL: Note that autoconf 2.60 is required.
34216 * configure.ac (AC_PREREQ): Bump to 2.60.
34217 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34218 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34220 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34222 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34225 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34227 * normal/main.c (grub_normal_read_line): Fix off-by-one
34230 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34232 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34233 "parser.grub" in grub_command_execute() call.
34235 2009-11-24 Carles Pina i Estany <carles@pina.cat>
34237 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34238 * conf/i386-efi.rmk: Likewise.
34239 * conf/i386-ieee1275.rmk: Likewise.
34240 * conf/i386-pc.rmk: Likewise.
34241 * conf/powerpc-ieee1275.rmk: Likewise.
34242 * conf/sparc64-ieee1275.rmk: Likewise.
34243 * conf/x86_64-efi.rmk: Likewise.
34244 * gettext/gettex.c: Include <grub/i18n.h>.
34245 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34247 * include/grub/i18n.h: ... to here
34248 * include/grub/i18n.h: ... to here.
34249 * kern/misc.c: Include <grub/i18n.h>
34250 (grub_gettext_dummy): Move above user.
34252 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34254 * util/Makefile.in (install-local): Convert a `for' into a normal
34257 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34259 * autogen.sh: Add automake call.
34260 * config.guess: Remove.
34261 * config.sub: Likewise.
34262 * install-sh: Likewise.
34264 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34266 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34268 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34270 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34271 function to a normal shell `for'.
34273 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34275 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34277 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34279 * util/grub-mkrelpath.c: New file.
34280 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34281 (grub_mkrelpath_SOURCES): New variable.
34282 * include/grub/util/misc.h: New function prototype.
34283 * util/misc.c (make_system_path_relative_to_its_root): New function.
34285 * util/grub-mkconfig_lib.in (bindir): New variable.
34286 (grub_mkrelpath): Likewise.
34287 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34289 * util/probe.c (probe): Make the file path relative to its root.
34290 Change a info message to use the GRUB path. Enable again the
34291 check if we can read the file with GRUB facilities.
34293 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34296 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34298 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34301 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34303 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34306 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34308 * util/getroot.c (grub_util_is_dmraid): New function.
34309 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34310 devices as normal ones, not as LVM.
34312 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34314 * conf/common.rmk: Add grub-gettext_lib target and updates
34315 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34317 * gettext/gettext.c: New file. (Reads mo files).
34318 * include/grub/file.h (grub_file_pread): New prototype.
34319 * include/grub/i18n.h (_): New prototype.
34320 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34322 * kern/misc.c (grub_gettext_dummy): New function.
34323 * normal/menu_text.c: Include <grub/i18n.h>.
34324 * normal/menu_text.c (print_timeout): Gettexttize string.
34325 * normal/menu_text.c (print_message): Gettexttize string.
34326 * po/POTFILES: Add `normal/menu_text.c'.
34327 * po/ca.po: Add new translations.
34328 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34329 gettext module and defines locale_dir and lang in grub.cfg.
34330 * NEWS: Add gettext support.
34332 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34334 * util/hostdisk.c: Include `<grub/i18n.h>'.
34335 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34336 (make_device_name): Rewrite using asprintf.
34337 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34338 (find_system_device): If a device is not found, generate one just
34339 by reusing the OS path name.
34340 (read_device_map): Make it permissible for device.map not to exist.
34342 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34344 * script/sh/execute.c: Move from here ...
34345 * script/execute.c: ... to here. Update all users.
34346 * script/sh/function.c: Move from here ...
34347 * script/function.c: ... to here. Update all users.
34348 * script/sh/lexer.c: Move from here ...
34349 * script/lexer.c: ... to here. Update all users.
34350 * script/sh/main.c: Move from here ...
34351 * script/main.c: ... to here. Update all users.
34352 * script/sh/parser.y: Move from here ...
34353 * script/parser.y: ... to here. Update all users.
34354 * script/sh/script.c: Move from here ...
34355 * script/script.c: ... to here. Update all users.
34357 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34359 * configure.ac: Detect all `emu' platforms. Define
34360 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34361 --enable-grub-emu logic. Disable include/grub/machine
34362 symlink on `emu' platforms.
34364 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34365 * gensymlist.sh.in: Likewise.
34367 * include/grub/i386/coreboot/machine.h: Remove file.
34368 * include/grub/i386/efi/machine.h: Likewise.
34369 * include/grub/i386/ieee1275/machine.h: Likewise.
34370 * include/grub/i386/pc/machine.h: Likewise.
34371 * include/grub/i386/qemu/machine.h: Likewise.
34372 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34373 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34374 * include/grub/x86_64/efi/machine.h: Likewise.
34376 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34377 * commands/halt.c: Likewise.
34378 * commands/reboot.c: Likewise.
34379 * include/grub/autoefi.h: Likewise.
34380 * include/grub/i386/at_keyboard.h: Likewise.
34381 * include/grub/i386/kernel.h: Likewise.
34382 * include/grub/i386/loader.h: Likewise.
34383 * include/grub/i386/pc/memory.h: Likewise.
34384 * kern/dl.c: Likewise.
34385 * kern/i386/coreboot/init.c: Likewise.
34386 * loader/i386/bsd.c: Likewise.
34387 * loader/i386/linux.c: Likewise.
34388 * loader/multiboot_loader.c: Likewise.
34389 * term/i386/pc/serial.c: Likewise.
34390 * term/usb_keyboard.c: Likewise.
34392 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34393 `<grub/machine/machine.h>'
34394 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34395 * util/misc.c: Remove `<grub/machine/machine.h>' and
34396 `<grub/machine/time.h>'.
34398 * Makefile.in (enable_grub_emu): Remove variable.
34399 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34401 * conf/any-emu.rmk: New file.
34402 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34403 (grub_emu_init.c): Move from here ...
34404 * conf/any-emu.rmk: ... to here.
34406 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34407 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34408 * conf/any-emu.rmk: ... to here.
34410 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34412 * include/grub/parser.h (grub_parser_register): Document need
34413 of `name' parameter.
34414 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34415 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34418 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34420 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34422 * include/grub/i18n.h (N_): New macro.
34423 * util/mkisofs/mkisofs.h: Likewise.
34424 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34426 (usage): Use gettext() to translate help strings when printing them.
34428 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34430 Based on patch from Bean
34431 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34433 * video/efi_fb.c: New file.
34434 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34435 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34437 * conf/x86_64-efi.rmk: Likewise.
34439 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34441 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34442 * util/i386/pc/grub-setup.c: Likewise.
34444 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34446 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34448 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34449 file_get_storage_info to implement grub_guess_root_device.
34451 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34453 * Makefile.in (target): Use make's builtin $(shell) function
34454 instead of calling directly $(SHELL) to create the locale directories,
34455 inside the $(foreach) function.
34457 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34459 * util/grub-mkrescue.in: Print an error and usage if output option
34460 has not been given.
34462 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34464 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34465 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34466 root and /boot are on different devices.
34468 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34470 Fix build for srcdir != objdir.
34472 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34473 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34475 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34476 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34477 reference for input.
34479 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34481 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34482 or hardlinking it). Remove -J option, Joliet is not compatible with
34483 multiple source directories.
34485 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34486 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34488 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34489 (process_input_dir): New function. Process an arbitrary input
34491 Misc adjustments to support both "override mode" and system-wide mode.
34493 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34495 * configure.ac (UNIFONT_BDF): Rename to ...
34496 (FONT_SOURCE): ... this. Update all users.
34498 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34500 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34501 to the list of unifont files to look for.
34503 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34505 Patch from Joe Auricchio <jauricchio@gmail.com>
34506 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34507 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34508 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34510 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34512 * Makefile.in (install-local): Add a missing backslash.
34514 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34516 * include/grub/x86_64/io.h: New file.
34518 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34520 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34521 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34522 Include `"progname.h"'.
34523 (main): Initialize gettext.
34524 * util/i386/pc/grub-setup.c: Gettexttize.
34525 * util/i386/pc/grub-mkimage.c: Likewise.
34527 * Makefile.in (po/*.po): Redefine as ...
34528 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34530 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34532 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34534 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34535 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34536 (program_name): Remove.
34537 (main): Initialize gettext support.
34538 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34539 Include `<libintl.h>'.
34542 * util/mkisofs/eltorito.c: Gettexttize.
34543 * util/mkisofs/joliet.c: Likewise.
34544 * util/mkisofs/mkisofs.c: Likewise.
34545 * util/mkisofs/multi.c: Likewise.
34546 * util/mkisofs/rock.c: Likewise.
34547 * util/mkisofs/tree.c: Likewise.
34548 * util/mkisofs/write.c: Likewise.
34550 * po/POTFILES: Update with new files.
34552 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34554 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34555 * util/mkisofs/iso9660.h: Likewise.
34556 * util/mkisofs/joliet.c: Likewise.
34557 * util/mkisofs/mkisofs.c: Likewise.
34558 * util/mkisofs/mkisofs.h: Likewise.
34559 * util/mkisofs/rock.c: Likewise.
34560 * util/mkisofs/tree.c: Likewise.
34561 * util/mkisofs/write.c: Likewise.
34563 * util/mkisofs/eltorito.c (rcsid): Remove.
34564 * util/mkisofs/hash.c: Likewise.
34565 * util/mkisofs/joliet.c: Likewise.
34566 * util/mkisofs/name.c: Likewise.
34567 * util/mkisofs/rock.c: Likewise.
34568 * util/mkisofs/tree.c: Likewise.
34569 * util/mkisofs/write.c: Likewise.
34571 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34573 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34574 instead of static allocation.
34575 * util/mkisofs/match.h: Likewise.
34577 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34579 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34580 and `util/grub.d/10_linux.in'.
34581 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34582 translatable Shell files.
34584 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34586 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34588 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34590 * INSTALL: Document Automake is needed for bootstrap.
34591 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34592 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34593 Add gettext initialization.
34594 (kfreebsd_entry): Make menuentry output translatable.
34596 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34598 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34599 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34600 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34601 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34602 (LINGUAS): Auto-generate using `po/LINGUAS'.
34603 * po/LINGUAS: New file.
34605 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34607 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34609 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34610 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34611 bindtextdomain() calls for gettext initialization.
34613 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34615 * gnulib/progname.c: New file (imported from Gnulib).
34616 * gnulib/progname.h: Likewise.
34617 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34618 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34619 (usage): Replace `progname' with `program_name'.
34620 (main): Use set_program_name() for program name initialization.
34622 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34624 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34626 * Makefile.in (CPPFLAGS): ... to here.
34628 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34630 * aclocal.m4: Move from here ...
34631 * acinclude.m4: ... to here.
34632 * autogen.sh: Add call to `aclocal'.
34633 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34635 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34637 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34638 (LINGUAS): New variable.
34639 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34640 (install-local): Install MO files.
34641 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34642 * include/grub/i18n.h: New file.
34643 * po/POTFILES: New file.
34644 * po/ca.po: New file.
34645 * util/grub.d/10_linux.in (bindir): New variable.
34646 Add gettext initialization.
34647 (linux_entry): Make menuentry output translatable.
34648 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34649 (usage): Make --help output translatable.
34650 (main): Initialize gettext.
34652 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34654 * import_gcry.py: New file (written by Vladimir with minor
34656 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34658 * INSTALL: Document that Python is required for bootstrap.
34660 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34662 Import ciphers from libgcrypt 1.4.4.
34664 * lib/libgcrypt/cipher/ChangeLog
34665 * lib/libgcrypt/cipher/ac.c
34666 * lib/libgcrypt/cipher/arcfour.c
34667 * lib/libgcrypt/cipher/bithelp.h
34668 * lib/libgcrypt/cipher/blowfish.c
34669 * lib/libgcrypt/cipher/camellia-glue.c
34670 * lib/libgcrypt/cipher/camellia.c
34671 * lib/libgcrypt/cipher/camellia.h
34672 * lib/libgcrypt/cipher/cast5.c
34673 * lib/libgcrypt/cipher/cipher.c
34674 * lib/libgcrypt/cipher/crc.c
34675 * lib/libgcrypt/cipher/des.c
34676 * lib/libgcrypt/cipher/dsa.c
34677 * lib/libgcrypt/cipher/ecc.c
34678 * lib/libgcrypt/cipher/elgamal.c
34679 * lib/libgcrypt/cipher/hash-common.c
34680 * lib/libgcrypt/cipher/hash-common.h
34681 * lib/libgcrypt/cipher/hmac-tests.c
34682 * lib/libgcrypt/cipher/md.c
34683 * lib/libgcrypt/cipher/md4.c
34684 * lib/libgcrypt/cipher/md5.c
34685 * lib/libgcrypt/cipher/primegen.c
34686 * lib/libgcrypt/cipher/pubkey.c
34687 * lib/libgcrypt/cipher/rfc2268.c
34688 * lib/libgcrypt/cipher/rijndael-tables.h
34689 * lib/libgcrypt/cipher/rijndael.c
34690 * lib/libgcrypt/cipher/rmd.h
34691 * lib/libgcrypt/cipher/rmd160.c
34692 * lib/libgcrypt/cipher/rsa.c
34693 * lib/libgcrypt/cipher/seed.c
34694 * lib/libgcrypt/cipher/serpent.c
34695 * lib/libgcrypt/cipher/sha1.c
34696 * lib/libgcrypt/cipher/sha256.c
34697 * lib/libgcrypt/cipher/sha512.c
34698 * lib/libgcrypt/cipher/tiger.c
34699 * lib/libgcrypt/cipher/twofish.c
34700 * lib/libgcrypt/cipher/whirlpool.c
34702 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34704 Fix build for systems without error().
34706 * gnulib/error.c: New file (imported from Gnulib).
34707 * gnulib/error.h: Likewise.
34708 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34709 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34710 (this variable is now used by error()).
34712 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34714 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34715 instead of relying that char is signed.
34717 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34719 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34720 blocksize different from specified.
34721 (grub_pxefs_read): Likewise.
34723 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34725 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34727 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34728 (grub_ata_readwrite): Likewise. Update 2 format strings.
34729 (grub_atapi_read): Likewise.
34731 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34732 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34733 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34734 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34735 (ata_mod_LDFLAGS): Move from here ...
34736 * conf/i386.rmk: ... to here ...
34737 * conf/x86_64-efi.rmk: ... and here.
34738 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34739 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34741 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34743 Relicense multiboot.h, with RMS' blessing.
34745 * include/multiboot.h: Change to X11 license.
34747 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34749 Support --version in grub-mkisofs.
34751 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34752 (OPTION_VERSION): New macro.
34753 (ld_options): Recognize --version.
34754 (usage): Move `program_name' from here ...
34755 (program_name): ... to here. Add `static' qualifier.
34756 (main): Recognize `OPTION_VERSION'.
34758 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34760 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34761 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34763 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34765 Fix help2man generation for mkisofs.
34767 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34768 (usage): Send output to stdout (rather than stderr).
34770 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34772 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34773 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34774 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34775 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34776 (bin_SCRIPTS): Add `grub-mkfloppy'.
34777 (grub_mkfloppy_SOURCES): New variable.
34779 * util/grub-mkrescue.in: New file.
34780 * util/i386/pc/grub-mkfloppy.in: New file.
34782 * util/i386/coreboot/grub-mkrescue.in: Remove.
34783 * util/i386/pc/grub-mkrescue.in: Remove.
34785 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34787 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34789 * include/multiboot.h (struct multiboot_header): ... to here. Update
34791 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34793 * include/multiboot.h (struct multiboot_info): ... to here. Update
34795 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34797 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34799 * include/grub/multiboot.h (struct grub_mod_list): Move
34801 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34804 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34806 * include/multiboot2.h (multiboot_word): Rename from this ...
34807 (multiboot2_word): ... to this. Update all users.
34808 (multiboot_header): Rename from this ...
34809 (multiboot2_header): ... to this. Update all users.
34810 (multiboot_tag_header): Rename from this ...
34811 (multiboot2_tag_header): ... to this. Update all users.
34812 (multiboot_tag_start): Rename from this ...
34813 (multiboot2_tag_start): ... to this. Update all users.
34814 (multiboot_tag_name): Rename from this ...
34815 (multiboot2_tag_name): ... to this. Update all users.
34816 (multiboot_tag_module): Rename from this ...
34817 (multiboot2_tag_module): ... to this. Update all users.
34818 (multiboot_tag_memory): Rename from this ...
34819 (multiboot2_tag_memory): ... to this. Update all users.
34820 (multiboot_tag_unused): Rename from this ...
34821 (multiboot2_tag_unused): ... to this. Update all users.
34822 (multiboot_tag_end): Rename from this ...
34823 (multiboot2_tag_end): ... to this. Update all users.
34825 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34827 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34828 this platform we should support Multiboot1 first.
34830 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34831 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34832 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34834 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34836 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34837 of write calls (converting them to fwrite() if they aren't already).
34838 (get_torito_desc): Likewise.
34839 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34841 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34843 * util/i386/pc/grub-install.in: Move from here ...
34844 * util/grub-install.in: ... to here. Update all users.
34846 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34848 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34850 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34852 Support for El Torito without floppy emulation.
34854 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34855 (init_boot_catalog): Improve error handling.
34856 (get_torito_desc): Don't use floppy emulation unless requested by
34857 user. Patch boot information table when requested via
34858 `-boot-info-table'.
34859 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34860 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34861 (use_boot_info_table): New variables.
34862 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34863 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34864 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34865 `--eltorito-emul-floppy'.
34866 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34867 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34868 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34869 (use_boot_info_table, get_731): New prototypes.
34870 * util/mkisofs/write.c (get_731): New function.
34872 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34874 Fix the generation of the man page.
34876 * util/pc/i386/grub-install.in: Source
34877 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34879 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34881 Large file support for grub-mkisofs.
34883 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34884 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34885 (session_start): Upgrade type to `uint64_t'. Update all users.
34886 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34887 (struct directory_entry): Upgrade type of `starting_block' and
34888 `size' to `uint64_t'. Update all users.
34889 (struct deferred): Remove unused structure.
34890 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34892 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34893 file is larger than `UINT32_MAX'.
34894 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34895 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34897 (struct deferred_write): Upgrade type of `extent' and `size' to
34898 `uint64_t'. Update all users.
34899 (last_extent_written): Upgrade type to `uint64_t'. Update all
34901 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34902 Update all users. Upgrade type of `remain' to `int64_t' and
34903 `use' to `size_t'. Use error() to handle fread() errors.
34904 (write_files): Rely on write_one_file() rather than calling
34905 xfwrite() directly.
34907 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34909 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34911 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34913 * util/mkisofs/fnmatch.c: Remove.
34914 * util/mkisofs/getopt1.c: Likewise.
34915 * util/mkisofs/getopt.c: Likewise.
34916 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34917 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34918 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34919 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34920 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34922 * configure.ac: Detect `mingw32msvc' host_os.
34923 Check for lstat(), getuid() and getgid().
34925 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34926 instances of `u_char' with `uint8_t'.
34928 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34929 [!HAVE_GETUID] (getuid): New function (stub).
34930 [!HAVE_GETGID] (getgid): Likewise.
34931 [!HAVE_LSTAT] (lstat): Likewise.
34932 [!S_IROTH] (S_IROTH): New macro (dummy).
34933 [!S_IRGRP] (S_IRGRP): Likewise.
34935 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34937 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34938 conditional expression).
34940 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34942 Import from Gnulib.
34944 * gnulib/fnmatch.c: New file.
34945 * gnulib/fnmatch.h: Likewise.
34946 * gnulib/fnmatch_loop.c: Likewise.
34947 * gnulib/getopt.c: Likewise.
34948 * gnulib/getopt.h: Likewise.
34949 * gnulib/getopt1.c: Likewise.
34950 * gnulib/getopt_int.h: Likewise.
34951 * gnulib/gettext.h: Likewise.
34953 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34955 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34956 * normal/handler.c (read_handler_list): Likewise.
34958 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34962 * kern/command.c (grub_register_command_prio): Use
34963 grub_zalloc() instead of explicitly zeroing data.
34964 * kern/list.c: Include `<grub/mm.h>'.
34965 (grub_named_list_find): Replace `0' with `NULL'.
34966 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34967 (fs_module_list): Change type to `grub_named_list_t'. Update all
34969 * normal/dyncmd.c (read_command_list): Add space between function
34970 call and parenthesis.
34971 * normal/handler.c (read_handler_list): Likewise.
34973 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34975 * normal/auth.c (punishment_delay): Moved from here ...
34976 (grub_auth_strcmp): ... to here (inside function).
34978 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34980 * include/grub/list.h (struct grub_named_list): Remove `const'
34981 qualifier from `name'.
34982 (struct grub_prio_list): Likewise.
34984 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34986 * normal/auth.c: Include `<grub/time.h>'.
34987 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34989 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34991 * normal/auth.c (punishment_delay): New variable.
34992 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34993 (grub_auth_check_authentication): Punish failed login attempts with
34994 an incremental (2^N) delay.
34996 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34998 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34999 path with $(srcdir).
35001 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
35003 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
35005 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
35007 * util/i386/coreboot/grub-mkrescue.in: New file.
35008 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
35011 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
35012 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
35013 * configure.ac: Add header and function checks to satisfy grub-mkisofs
35015 * util/mkisofs/defaults.h: New file.
35016 * util/mkisofs/eltorito.c: Likewise.
35017 * util/mkisofs/exclude.h: Likewise.
35018 * util/mkisofs/fnmatch.c: Likewise.
35019 * util/mkisofs/getopt.c: Likewise.
35020 * util/mkisofs/getopt1.c: Likewise.
35021 * util/mkisofs/hash.c: Likewise.
35022 * util/mkisofs/include/fctldefs.h: Likewise.
35023 * util/mkisofs/include/mconfig.h: Likewise.
35024 * util/mkisofs/include/prototyp.h: Likewise.
35025 * util/mkisofs/include/statdefs.h: Likewise.
35026 * util/mkisofs/iso9660.h: Likewise.
35027 * util/mkisofs/joliet.c: Likewise.
35028 * util/mkisofs/match.c: Likewise.
35029 * util/mkisofs/match.h: Likewise.
35030 * util/mkisofs/mkisofs.c: Likewise.
35031 * util/mkisofs/mkisofs.h: Likewise.
35032 * util/mkisofs/multi.c: Likewise.
35033 * util/mkisofs/name.c: Likewise.
35034 * util/mkisofs/rock.c: Likewise.
35035 * util/mkisofs/tree.c: Likewise.
35036 * util/mkisofs/write.c: Likewise.
35038 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
35040 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
35043 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35045 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
35046 `grub-mkimage' (and use $0 when possible).
35048 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35050 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
35051 error message for excessively large memory map.
35053 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35055 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
35058 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35060 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
35061 message for coreboot users.
35063 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
35065 Fix build with GNU gold.
35067 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
35068 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
35069 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
35071 * aclocal.m4: Likewise.
35073 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
35075 * configure.ac (AC_PREREQ): Bump to 2.59d.
35076 * INSTALL: Make it more clear when Autoconf and Ruby are
35077 needed and when to run `./autogen.sh'.
35079 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
35081 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
35084 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35086 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
35088 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35090 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
35091 giving it to GNU Mach.
35093 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35095 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
35096 GNU partition number to get internal GRUB partition number.
35098 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35100 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
35101 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
35103 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
35105 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
35106 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
35109 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
35111 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
35113 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35117 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
35118 `-isystem=$(srcdir)/include'.
35120 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35122 * util/i386/pc/grub-install.in: Remove hint that device.map should be
35123 checked (grub-install doesn't currently rely on it).
35125 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
35129 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
35130 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35131 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
35132 * conf/i386-ieee1275.rmk: Likewise.
35133 * conf/i386-pc.rmk: Likewise.
35134 * conf/powerpc-ieee1275.rmk: Likewise.
35135 * conf/sparc64-ieee1275.rmk: Likewise.
35136 * conf/x86_64-efi.rmk: Likewise.
35138 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35140 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
35142 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35144 * include/grub/misc.h: Stop checking for APPLE_CC.
35146 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35148 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
35149 doesn't cause an infinite call loop.
35151 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
35153 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
35156 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35158 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
35160 * Makefile.in: Likewise.
35162 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35164 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
35166 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35168 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
35170 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35172 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
35174 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35176 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
35178 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
35180 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35182 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
35183 in $(MAKEINFO) invocation. This makes it clear in output that
35184 errors are being ignored.
35186 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35188 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
35190 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35191 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35192 * conf/i386-ieee1275.rmk: Likewise.
35193 * conf/i386-pc.rmk: Likewise.
35194 * conf/powerpc-ieee1275.rmk: Likewise.
35195 * conf/sparc64-ieee1275.rmk: Likewise.
35196 * conf/x86_64-efi.rmk: Likewise.
35198 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35200 * util/grub-editenv.c (main): If only a command is given, use
35201 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35202 (usage): FILENAME is now optional and has a default.
35204 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35206 Improve grub-mkconfig performance when there are several menu
35207 entries on a single filesystem.
35209 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35210 prepare_grub_to_access_device.
35211 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35212 * util/grub.d/30_os-prober.in: Likewise.
35214 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35216 * util/grub.d/10_freebsd.in: Remove.
35217 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35218 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35220 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35222 * docs/grub.cfg: Fix example usage of *BSD loaders.
35224 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35226 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35227 grub_util_error() call.
35229 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35231 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35232 `reserved_first_sector' member.
35233 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35234 `reserved_first_sector' to 1.
35235 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35236 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35237 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35238 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35239 filesystems which begin at first sector.
35240 (options): New option --skip-fs-probe.
35241 (main): Handle --skip-fs-probe and pass it to setup().
35243 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35245 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35246 (memset): Fix function prototype.
35248 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35249 2009-10-25 Vasily Averin <vvs@parallels.com>
35251 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35252 `dirent.direntlen == 0'.
35254 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35256 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35258 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35260 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35262 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35263 `__trampoline_setup' and `__ucmpdi2'.
35264 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35265 that libgcc provides.
35267 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35269 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35270 * include/grub/sparc64/libgcc.h (memset): Likewise.
35271 * include/grub/misc.h (memset, memcmp): New function prototypes.
35273 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35275 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35277 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35279 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35281 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35282 * docs/grub.cfg: Compensate for recent change in multiboot
35283 loader (since 2009-08-14 it won't pass filename to payload).
35284 * util/grub.d/10_hurd.in: Likewise.
35286 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35288 * config.guess: Update to latest version from config git
35290 * config.sub: Likewise.
35292 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35294 Fix build on sparc64.
35296 * configure.ac: Perform checks for libgcc symbols before
35297 adding `-nostdlib' to LDFLAGS.
35299 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35301 Let user specify OpenBSD root device.
35303 * loader/i386/bsd.c (openbsd_root): New variable.
35304 (openbsd_opts): New option 'root'.
35305 (OPENBSD_ROOT_ARG): New macro.
35306 (grub_openbsd_boot): Use 'openbsd_root'.
35307 (grub_cmd_openbsd): Fill 'openbsd_root'.
35309 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35311 * NEWS: Misc adjustments.
35313 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35315 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35317 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35319 * configure.ac: Bump version to 1.97.
35321 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35323 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35324 -mno-3dnow on x86 architectures. Some toolchains enable these
35325 features by default, but they rely on registers that aren't enabled
35326 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35328 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35330 Make entry text a bit more readable.
35332 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35334 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35336 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35338 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35340 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35343 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35345 * configure.ac: Add missing dollar.
35347 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35349 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35351 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35352 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35354 * include/grub/sparc64/libgcc.h: Likewise. Use
35355 preprocessor conditionals.
35357 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35359 * conf/common.rmk (grub-dumpbios): Remove rule.
35360 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35361 * util/grub-dumpbios.in: Remove file.
35363 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35365 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35366 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35368 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35369 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35372 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35373 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35374 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35375 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35378 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35380 * term/tparm.c: Switch to GPLv3.
35382 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35384 * include/grub/i386/cpuid.h: Add header protection.
35386 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35388 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35390 * include/grub/i386/cpuid.h: New file.
35391 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35392 (has_longmode): Rename to ...
35393 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35394 `static' attribute.
35395 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35396 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35397 on a CPU that doesn't implement AMD64 instruction set.
35399 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35401 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35402 that version.texi is rebuilt on version number changes.
35404 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35406 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35409 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35411 * util/i386/pc/grub-install.in: Source
35412 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35413 that the --grub-probe option will work.
35414 * util/sparc64/ieee1275/grub-install.in: Likewise.
35416 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35418 * configure.ac: Bump version to 1.97~beta4.
35420 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35422 Resync grub-mkdevicemap in x86_64-efi.
35424 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35425 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35426 `util/devicemap.c'.
35428 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35430 * util/grub-editenv.c (create_envblk_file): Write new block with a
35431 .new suffix and then rename it into place, to ensure atomic
35434 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35436 Do not automatically install headers.
35438 * Makefile.in (include_DATA): Remove. Update all users.
35440 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35442 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35443 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35445 * util/osdetect.lua: Remove.
35446 * script/lua/lauxlib.c: Likewise.
35447 * script/lua/ldebug.c: Likewise.
35448 * script/lua/grub_main.c: Likewise.
35449 * script/lua/lauxlib.h: Likewise.
35450 * script/lua/ldebug.h: Likewise.
35451 * script/lua/ltablib.c: Likewise.
35452 * script/lua/liolib.c: Likewise.
35453 * script/lua/lstrlib.c: Likewise.
35454 * script/lua/lualib.h: Likewise.
35455 * script/lua/ldo.c: Likewise.
35456 * script/lua/ldump.c: Likewise.
35457 * script/lua/ldo.h: Likewise.
35458 * script/lua/loslib.c: Likewise.
35459 * script/lua/lundump.c: Likewise.
35460 * script/lua/grub_lib.c: Likewise.
35461 * script/lua/ldblib.c: Likewise.
35462 * script/lua/lundump.h: Likewise.
35463 * script/lua/lmem.c: Likewise.
35464 * script/lua/grub_lib.h: Likewise.
35465 * script/lua/lmathlib.c: Likewise.
35466 * script/lua/lstate.c: Likewise.
35467 * script/lua/ltm.c: Likewise.
35468 * script/lua/lvm.c: Likewise.
35469 * script/lua/lmem.h: Likewise.
35470 * script/lua/lstate.h: Likewise.
35471 * script/lua/ltm.h: Likewise.
35472 * script/lua/ltable.c: Likewise.
35473 * script/lua/lvm.h: Likewise.
35474 * script/lua/llex.c: Likewise.
35475 * script/lua/lgc.c: Likewise.
35476 * script/lua/grub_lua.h: Likewise.
35477 * script/lua/loadlib.c: Likewise.
35478 * script/lua/lfunc.c: Likewise.
35479 * script/lua/lopcodes.c: Likewise.
35480 * script/lua/lparser.c: Likewise.
35481 * script/lua/ltable.h: Likewise.
35482 * script/lua/llex.h: Likewise.
35483 * script/lua/lgc.h: Likewise.
35484 * script/lua/lfunc.h: Likewise.
35485 * script/lua/lbaselib.c: Likewise.
35486 * script/lua/lopcodes.h: Likewise.
35487 * script/lua/lparser.h: Likewise.
35488 * script/lua/lzio.c: Likewise.
35489 * script/lua/linit.c: Likewise.
35490 * script/lua/lobject.c: Likewise.
35491 * script/lua/llimits.h: Likewise.
35492 * script/lua/lstring.c: Likewise.
35493 * script/lua/lzio.h: Likewise.
35494 * script/lua/lapi.c: Likewise.
35495 * script/lua/lcode.c: Likewise.
35496 * script/lua/lua.h: Likewise.
35497 * script/lua/lobject.h: Likewise.
35498 * script/lua/lstring.h: Likewise.
35499 * script/lua/lapi.h: Likewise.
35500 * script/lua/lcode.h: Likewise.
35501 * script/lua/luaconf.h: Likewise.
35503 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35505 * docs/grub.texi (Command-line and menu entry commands): Document
35506 date and echo commands.
35508 2009-09-24 Pavel Roskin <proski@gnu.org>
35510 * include/grub/kernel.h (struct grub_module_header): Remove
35511 `grub_module_header_types'. Make `type' unsigned. Make `size'
35512 32-bit on all platforms.
35513 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35514 8-bit field. Use grub_host_to_target32() for `size'.
35515 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35516 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35517 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35519 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35521 Fix "lost keypress" bug in at_keyboard.
35523 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35524 Checks for readyness of input buffer (without flushing it).
35525 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35526 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35528 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35530 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35531 size check within GRUB_MACHINE_PCBIOS section.
35533 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35535 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35537 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35538 KEYBOARD_ISREADY check.
35539 (grub_at_keyboard_checkkey): Rename to ...
35540 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35541 Remove gratuitous cast.
35543 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35545 * configure.ac: Call AC_PROG_MKDIR_P.
35546 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35547 version.texi in $(builddir) rather than $(srcdir).
35548 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35549 to makeinfo's @include search path.
35551 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35553 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35555 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35557 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35560 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35562 Build info documentation. Some code borrowed from Automake.
35564 * configure.ac: Check for makeinfo.
35565 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35566 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35568 (MOSTLYCLEANFILES): Add vti.tmp.
35569 (docs/version.texi, docs/stamp-vti): Update automatically.
35570 (docs/grub.info): Build info documentation. Use --force and ignore
35572 (all-local): Add $(INFOS).
35573 (install-local): Install info files.
35574 (uninstall): Uninstall info files.
35575 * docs/version.texi: Remove from revision control. This file is
35576 automatically generated on build now.
35577 * gendistlist.sh: Add `*.info'.
35579 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35581 * kern/term.c: Fix indentation.
35583 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35585 * util/hostdisk.c: Fix a comment.
35587 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35589 Fix regression introduced in r2539.
35591 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35594 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35596 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35597 os-prober. Under normal operation, it does not print anything to
35598 stderr; if it does, we need to debug it, and throwing away stderr
35599 makes that excessively difficult.
35601 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35603 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35605 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35607 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35608 AC_LANG_PROGRAM from autoconf.
35609 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35610 prototypes (fixes warning).
35612 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35613 `--disable-werror' was used.
35615 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35617 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35618 uninitialized `lastaddr'.
35620 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35622 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35624 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35626 * commands/test.c (get_fileinfo): Return immediately if
35627 grub_fs_probe fails.
35629 2009-09-14 José Martínez <xosemp@gmail.com>
35631 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35633 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35635 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35638 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35640 * configure.ac: Remove --enable-grub-pe2elf. Only build
35641 grub-pe2elf when needed by the build system itself.
35642 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35644 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35646 * configure.ac: Bump version to 1.97~beta3.
35647 * docs/version.texi: Likewise.
35649 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35651 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35652 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35654 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35655 (grub_linux_setup_video): ... to here (with some adjustments).
35657 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35659 Fix memory corruption issue (spotted by Colin Watson).
35661 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35662 causing returned size to be stored in an incorrect memory location.
35663 Fix use of uninitialized value when storing the returned size.
35665 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35667 Change clean rules to properly remove files
35669 * genmk.rb: add new clean rules
35670 * Makefile.in (clean): add the new targets
35671 (mostlyclean): likewise
35673 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35675 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35677 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35678 non-resident files.
35680 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35682 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35683 part of bug #27349.
35685 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35687 * util/grub-mkconfig.in: Make the created config mode 400 and
35688 print a warning if it fails.
35690 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35692 * util/grub.d/40_custom.in: Ask user to type custom entries below
35693 comment, rather than below 'exec tail' line.
35695 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35697 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35698 visible in grub.cfg.
35700 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35702 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35705 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35707 * docs/grub.cfg: Add an example menu entry for memtest86+.
35709 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35711 * config.guess: Update to latest version from config git.
35712 * config.sub: Likewise.
35714 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35716 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35717 unknown-command case. Fixes bug #27320.
35719 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35721 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35722 `help' if the command exists.
35724 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35726 * INSTALL: Require GCC 4.1.3 or later.
35728 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35730 * Makefile.in (RMKFILES): add i386-qemu.rmk
35731 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35732 $(srcdir)/stamp-h.in
35734 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35736 * util/grub-probe.c (probe): Comment out buggy codepath, which
35737 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35738 should be re-enabled after 1.97.
35740 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35742 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35745 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35747 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35748 unnecessary calls to grub_error.
35750 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35752 * NEWS: Mention `keystatus' and Unicode fonts.
35754 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35756 * configure.ac: Bump version to 1.97~beta2.
35757 * docs/version.texi: Likewise.
35759 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35761 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35762 containing unwind information in some cases where it previously did
35763 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35764 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35767 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35769 Embedding loadenv module into grub-emu
35771 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35773 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35774 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35775 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35776 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35777 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35778 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35780 2009-09-03 Magnus Granberg <zorry@ume.nu>
35782 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35783 include -fPIE in the default specs.
35784 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35787 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35789 * INSTALL: Note that GNU Bison 2.3 or later is required.
35791 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35793 * kern/i386/pc/startup.S: Fix typo.
35795 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35797 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35800 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35802 * docs/grub.texi (Naming convention): Describe one-based partition
35804 (Device syntax): Likewise.
35805 (File name syntax): Likewise.
35806 (Block list syntax): Likewise.
35807 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35809 (File name syntax): Likewise.
35810 (Command-line and menu entry commands): Document acpi, blocklist,
35811 crc, export, insmod, keystatus, ls, set, and unset commands.
35813 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35815 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35816 to avoid implying that only one of --shift, --ctrl, or --alt may be
35819 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35821 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35822 rather than comparing against S_IFREG, which will almost never work.
35824 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35826 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35827 (write_blocklists): Likewise.
35829 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35831 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35832 argument to grub_printf.
35834 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35836 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35839 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35841 * kern/file.c (grub_file_read): Spelling fix
35843 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35845 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35846 loading of headers in some cases.
35848 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35850 * configure.ac: Bump version to 1.97~beta1.
35851 * docs/version.texi: Likewise.
35853 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35855 * include/grub/i386/xnu.h: Add license header.
35856 include grub/err.h explicitly.
35858 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35860 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35861 to `ufs' in the vfs.root.mountfrom kernel parameter.
35863 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35865 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35867 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35868 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35870 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35871 `ARRAY_SIZE' macro.
35873 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35875 * kern/file.c (grub_file_read): Check offset.
35876 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35877 * fs/jfs.c (grub_jfs_read_file): Likewise.
35878 * fs/ntfs.c (grub_ntfs_read): Likewise.
35879 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35880 * fs/minix.c (grub_minix_read_file): Correct offset check.
35881 * fs/ufs.c (grub_ufs_read_file): Likewise.
35883 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35885 * term/i386/pc/console.c (bios_data_area): Cast
35886 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35888 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35890 1-bit optimised blitters.
35892 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35894 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35895 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35896 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35897 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35898 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35899 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35900 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35902 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35903 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35904 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35905 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35906 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35907 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35908 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35910 * video/video.c (grub_video_get_blit_format): Return
35911 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35913 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35915 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35916 the first argument to grub_printf.
35918 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35919 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35921 Add `getkeystatus' terminal method. Add a new `keystatus' command
35924 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35925 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35926 modifier key bitmasks.
35927 (struct grub_term_input): Add `getkeystatus' member.
35928 (grub_getkeystatus): Add prototype.
35929 * kern/term.c (grub_getkeystatus): New function.
35931 * include/grub/i386/pc/memory.h
35932 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35933 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35935 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35936 (grub_console_term_input): Set `getkeystatus' member.
35937 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35939 (grub_usb_keyboard_getreport): Likewise.
35940 (grub_usb_keyboard_checkkey): Likewise.
35941 (grub_usb_keyboard_getkeystatus): New function.
35942 (grub_usb_keyboard_term): Set `getkeystatus' member.
35944 * commands/keystatus.c: New file.
35945 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35946 (keystatus_mod_SOURCES): New variable.
35947 (keystatus_mod_CFLAGS): Likewise.
35948 (keystatus_mod_LDFLAGS): Likewise.
35949 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35950 commands/keystatus.c.
35951 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35952 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35953 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35954 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35955 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35956 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35958 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35960 Split befs.mod and afs.mod into *_be.mod and *.mod
35962 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35963 (grub_fstest_SOURCES): Likewise.
35964 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35965 (afs_be_mod_SOURCES): New variable.
35966 (afs_be_mod_CFLAGS): Likewise.
35967 (afs_be_mod_LDFLAGS): Likewise.
35968 (befs_be_mod_SOURCES): Likewise.
35969 (befs_be_mod_CFLAGS): Likewise.
35970 (befs_be_mod_LDFLAGS): Likewise.
35971 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35972 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35973 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35974 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35975 (grub_emu_SOURCES): Likewise.
35976 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35977 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35978 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35979 * fs/afs_be.c: New file.
35980 * fs/befs_be.c: New file.
35981 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35982 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35983 (U16): Replaced with ...
35984 (grub_afs_to_cpu16): ...this. All users updated.
35985 (U32): Replaced with ...
35986 (grub_afs_to_cpu32): ...this. All users updated.
35987 (U64): Replaced with ...
35988 (grub_afs_to_cpu64): ...this. All users updated.
35989 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35990 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35991 (grub_afs_validate_sblock): Check only one endianness.
35992 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35993 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35994 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35995 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35996 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35997 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35998 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35999 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
36001 2009-08-26 Bean <bean123ch@gmail.com>
36003 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
36005 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
36006 (grub_xfs_inode_block): Change return type to grub_uint64_t.
36007 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
36009 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36011 NetBSD memory map support.
36013 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
36014 (grub_netbsd_btinfo_mmap_header): New structure.
36015 (grub_netbsd_btinfo_mmap_entry): Likewise.
36016 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
36018 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36020 Enable bsd.mod on coreboot.
36022 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
36023 (bsd_mod_SOURCES): New variable.
36024 (bsd_mod_CFLAGS): Likewise.
36025 (bsd_mod_LDFLAGS): Likewise.
36026 (bsd_mod_ASFLAGS): Likewise.
36027 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
36028 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
36030 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36032 Cleanup NetBSD root support.
36034 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
36035 grub_bsd_get_device.
36038 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
36040 * util/grub.d/00_header.in: Move check for the video backend of
36041 gfxterm from here ...
36042 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
36043 a suitable video backend.
36045 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36047 Fix breakage in grub-setup.
36049 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
36050 "msdos_partition_map".
36052 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36054 Fix breakage in normal/auth.c.
36056 * normal/auth.c (grub_iswordseparator): New function.
36058 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36060 Authentication support.
36062 * commands/password.c: New file.
36063 * conf/common.rmk (pkglib_MODULES): Add password.mod.
36064 (password_mod_SOURCES): New variable.
36065 (password_mod_CFLAGS): Likewise.
36066 (password_mod_LDFLAGS): Likewise.
36067 (normal_mod_SOURCES): Add normal/auth.c.
36068 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
36070 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36071 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36072 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36073 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36074 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36075 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36076 * include/grub/auth.h: New file.
36077 * include/grub/err.h (grub_err_t): New enum value
36078 GRUB_ERR_ACCESS_DENIED.
36079 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
36081 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
36082 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
36084 * normal/auth.c: New file.
36085 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
36086 (grub_cmdline_run): Don't allow to go to command line without
36088 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
36089 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
36090 menuentry without superuser rights.
36091 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
36092 user isn't a superuser.
36094 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36096 Save space by inlining misc.c functions.
36098 * kern/misc.c (grub_iswordseparator): Made static.
36099 * kern/misc.c (grub_strcat): Moved from here ...
36100 * include/grub/misc.h (grub_strcat): ... here. Inlined.
36101 * kern/misc.c (grub_strncat): Moved from here ...
36102 * include/grub/misc.h (grub_strncat): ... here. Inlined.
36103 * kern/misc.c (grub_strcasecmp): Moved from here ...
36104 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
36105 * kern/misc.c (grub_strncasecmp): Moved from here ...
36106 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
36107 * kern/misc.c (grub_isalpha): Moved from here ...
36108 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
36109 * kern/misc.c (grub_isdigit): Moved from here ...
36110 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
36111 * kern/misc.c (grub_isgraph): Moved from here ...
36112 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
36113 * kern/misc.c (grub_tolower): Moved from here ...
36114 * include/grub/misc.h (grub_tolower): ... here. Inlined.
36116 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36118 * script/sh/function.c (grub_script_function_find): Cut error message
36119 not to flood terminal.
36120 * script/sh/lexer.c (grub_script_yylex): Remove command line length
36122 * script/sh/script.c (grub_script_arg_add): Duplicate string.
36124 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
36126 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
36127 `report' grub_uint8_t *.
36128 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
36129 Use a 50-millisecond timeout rather than just repeating
36130 grub_usb_keyboard_getreport 50 times.
36131 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
36133 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36135 Rename *_partition_map to part_*
36137 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
36138 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
36139 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
36140 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
36142 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
36144 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
36145 * util/grub-probe.c (probe_partmap): Don't transform partition name
36146 to get module name.
36148 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36150 Fix OpenBSD and NetBSD support.
36152 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
36153 memory address conflict.
36154 (OPENBSD_MMAP_ACPI): New definition.
36155 (OPENBSD_MMAP_NVS): Likewise.
36156 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
36157 and OPENBSD_MMAP_NVS.
36158 Add memory map terminator
36159 Explicit cast when calling grub_unix_real_boot.
36160 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
36162 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36164 Let user specify NetBSD root device.
36166 * loader/i386/bsd.c (netbsd_root): New variable.
36167 (netbsd_opts): New option 'root'.
36168 (NETBSD_ROOT_ARG): New macro.
36169 (grub_netbsd_boot): Use 'netbsd_root'.
36170 (grub_bsd_unload): Free 'netbsd_root'.
36171 (grub_cmd_netbsd): Fill 'netbsd_root'.
36173 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36175 Support for 64-bit NetBSD.
36177 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
36178 point when booting non-FreeBSD.
36180 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36182 Support --no-smp and --no-acpi for NetBSD.
36184 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
36185 (NETBSD_AB_NOACPI): Likewise.
36186 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
36187 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
36189 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36191 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36193 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36194 errors. Call grub_error when needed.
36196 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36198 * commands/search.c (search_fs): Try searching without autoload first.
36199 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36200 filesystem module explicitly for faster booting.
36202 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36204 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36206 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36208 * util/grub.d/30_os-prober.in: Disable os-prober if
36209 `GRUB_DISABLE_OS_PROBER' was set to true.
36211 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36213 * partmap/pc.c: Rename to ...
36214 * partmap/msdos.c: ... this. Update all users.
36215 (grub_pc_partition_map): Rename to ...
36216 (grub_msdos_partition_map): ... this. Update all users.
36218 * parttool/pcpart.c: Rename to ...
36219 * parttool/msdospart.c: ... this. Update all users.
36221 * include/grub/pc_partition.h: Rename to ...
36222 * include/grub/msdos_partition.h: ... this. Update all users.
36223 (grub_pc_partition_bsd_entry): Rename to ...
36224 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36225 (grub_pc_partition_disk_label): Rename to ...
36226 (grub_msdos_partition_disk_label): ... this. Update all users.
36227 (grub_pc_partition_entry): Rename to ...
36228 (grub_msdos_partition_entry): ... this. Update all users.
36229 (grub_pc_partition_mbr): Rename to ...
36230 (grub_msdos_partition_mbr): ... this. Update all users.
36231 (grub_pc_partition): Rename to ...
36232 (grub_msdos_partition): ... this. Update all users.
36233 (grub_pc_partition_is_empty): Rename to ...
36234 (grub_msdos_partition_is_empty): ... this. Update all users.
36235 (grub_pc_partition_is_extended): Rename to ...
36236 (grub_msdos_partition_is_extended): ... this. Update all users.
36237 (grub_pc_partition_is_bsd): Rename to ...
36238 (grub_msdos_partition_is_bsd): ... this. Update all users.
36240 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36241 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36242 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36243 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36244 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36245 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36246 (gpt_mod_LDFLAGS): Rename to ...
36247 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36248 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36249 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36250 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36251 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36252 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36253 (part_gpt_mod_LDFLAGS): ... this.
36254 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36255 `pcpart.mod' to `msdospart.mod'.
36256 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36258 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36259 (msdospart_mod_LDFLAGS): ... this.
36261 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36263 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36264 (openbsd_opts): Likewise.
36265 (netbsd_opts): Likewise.
36266 (freebsd_flags): Added 0 terminator.
36267 (openbsd_flags): Likewise.
36268 (netbsd_flags): Likewise.
36269 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36270 (grub_cmd_freebsd): Transformed into extended command.
36271 (grub_cmd_openbsd): Likewise.
36272 (grub_cmd_netbsd): Likewise.
36273 (cmd_freebsd): Changed type to grub_extcmd_t.
36274 (cmd_openbsd): Likewise.
36275 (cmd_netbsd): Likewise.
36276 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36277 grub_cmd_openbsd as extended commands.
36278 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36279 cmd_netbsd and cmd_openbsd
36281 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36283 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36285 2009-08-21 Pavel Roskin <proski@gnu.org>
36287 * Makefile.in (install-local): When checking if a file is in the
36288 build directory, use "test -e" to detect symlinks.
36290 * Makefile.in (install-local): Remove all files in
36291 $(DESTDIR)$(pkglibdir) before installing new files there.
36293 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36295 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36298 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36300 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36301 explicitly specified by the user.
36303 2009-08-18 Pavel Roskin <proski@gnu.org>
36305 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36306 grub_uint8_t pointer for data.
36307 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36309 * video/fb/fbutil.c: Remove unnecessary casts.
36311 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36315 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36316 (grub_vbe_set_video_mode): Save active mode info
36317 only after setting the mode.
36318 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36321 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36323 Rename variables for clarity.
36325 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36326 (active_vbe_mode_info): ... this. All users updated.
36327 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36329 (initial_mode): Rename to ...
36330 (initial_vbe_mode): ... this. All users updated.
36331 (mode_in_use): Rename to ..
36332 (vbe_mode_in_use): ... this. All users updated.
36333 (mode_list): Rename to ..
36334 (vbe_mode_list): ... this. All users updated.
36335 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36336 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36337 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36338 'mode_list_size' to 'vbe_mode_list_size'.
36339 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36340 'best_mode_info' to 'best_vbe_mode_info' and
36341 'best_mode' to 'best_vbe_mode'
36343 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36345 Remove duplicate grub_video_fb_get_video_ptr.
36347 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36348 (grub_video_fb_get_video_ptr): ... this.
36349 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36350 * video/fb/fbutil.c: Add comment about addressing.
36351 (get_data_ptr): Rename to ...
36352 (grub_video_fb_get_video_ptr): ... this. All users updated.
36353 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36355 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36357 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36358 grub_dprintf() that was just added.
36360 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36362 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36363 (DEFAULT_VIDEO_MODE): Remove macros.
36364 (grub_linux_boot): Remove assumption that Linux has FB support,
36365 and use "text" as default video mode.
36367 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36369 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36371 * fs/fat.c (grub_fat_read_data): Likewise.
36373 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36375 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36377 (grub_module): Likewise.
36379 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36381 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36382 mbi->cmdline but free playground.
36384 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36386 Handle group offset on UFS1.
36388 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36389 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36391 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36393 Split ufs.mod into ufs1.mod and ufs2.mod.
36395 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36396 (grub_fstest_SOURCES): Likewise.
36397 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36398 (ufs_mod_SOURCES): Remove.
36399 (ufs_mod_CFLAGS): Likewise.
36400 (ufs_mod_LDFLAGS): Likewise.
36401 (ufs1_mod_SOURCES): New variable.
36402 (ufs1_mod_CFLAGS): Likewise.
36403 (ufs1_mod_LDFLAGS): Likewise.
36404 (ufs2_mod_SOURCES): New variable.
36405 (ufs2_mod_CFLAGS): Likewise.
36406 (ufs2_mod_LDFLAGS): Likewise.
36407 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36408 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36410 (grub_emu_SOURCES): Likewise.
36411 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36412 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36413 (grub_setup_SOURCES): Likewise.
36414 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36415 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36416 (grub_setup_SOURCES): Likewise.
36417 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36419 * fs/ufs2.c: New file.
36420 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36422 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36426 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36427 subsystem at the end.
36428 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36429 (video_fb_mod_SOURCES): New variable.
36430 (video_fb_mod_CFLAGS): Likewise.
36431 (video_fb_mod_LDFLAGS): Likewise.
36432 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36433 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36434 * video/i386/pc/vbeblit.c: Moved from here ...
36435 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36436 * video/i386/pc/vbefill.c: Moved from here ...
36437 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36438 * video/i386/pc/vbeutil.c: Moved from here ...
36439 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36440 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36441 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36442 * include/grub/i386/pc/vbefill.h: Moved from here ...
36443 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36444 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36445 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36446 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36447 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36448 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36449 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36450 (grub_video_adapter): Added 'get_info_and_fini'.
36451 (grub_video_get_info_and_fini): New prototype.
36452 (grub_video_set_mode): make modestring const char *.
36453 * loader/i386/linux.c (grub_linux_setup_video): Use
36454 grub_video_get_info_and_fini.
36455 (grub_linux_boot): Move modesetting just before booting.
36456 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36457 grub_video_get_info_and_fini.
36458 * video/i386/pc/vbe.c: Moved framebuffer part ...
36459 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36460 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36461 grub_video_fbstd_colors and grub_video_fb_set_palette.
36462 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36463 grub_video_fb_init.
36464 (grub_video_vbe_fini): Use grub_video_fb_fini.
36465 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36466 render_target and use grub_video_fb_set_active_render_target and
36467 grub_video_fb_set_palette.
36468 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36469 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36470 (grub_video_vbe_adapter): Use framebuffer.
36471 * video/video.c (grub_video_get_info_and_fini): New function.
36472 (grub_video_set_mode): Make modestring const char *.
36473 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36474 values are already initialised.
36476 2009-08-14 Pavel Roskin <proski@gnu.org>
36478 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36480 * boot/i386/pc/diskboot.S: Likewise.
36481 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36482 sectors allow compilation on MacOSX.
36483 * conf/i386-pc.rmk: Enable unconditional compilation of
36486 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36488 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36489 * util/grub.d/00_header.in: Enter interruptible sleep if
36490 GRUB_HIDDEN_TIMEOUT is set.
36492 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36494 * include/grub/symbol.h: Add the LOCAL macro.
36495 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36496 starting with "L_".
36498 2009-08-13 Pavel Roskin <proski@gnu.org>
36500 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36501 any modern compilers we support.
36503 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36504 Use local labels starting with "L_" so that Apple assembler
36505 knows they are local.
36507 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36509 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36510 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36511 (bsd_kernel_types): ... this enum.
36513 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36514 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36515 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36517 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36518 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36519 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36522 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36524 * util/grub-dumpdevtree: Moved from here ...
36525 * util/i386/efi/grub-dumpdevtree: ... to here.
36526 (hexify): New function. Converts a string to its hex version.
36527 Generate hex versions of "efi" and "device-properties" by calling
36528 hexify() on the ASCII strings rather than by hardcoding numbers.
36530 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36532 * fs/jfs.c: Update copyright year.
36534 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36536 * util/grub.d/00_header.in: Fix a comment.
36537 * util/grub.d/10_linux.in: Likewise.
36538 * util/grub.d/10_windows.in: Likewise.
36539 * util/grub.d/10_hurd.in: Likewise.
36541 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36543 * util/grub-mkconfig.in: Allow the user to specify the used font
36546 2009-08-08 Pavel Roskin <proski@gnu.org>
36548 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36549 available, xfs.mod needs it now.
36551 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36552 the "g" modifier in sed when the intention is to strip something
36553 once. This fixes comparison of kernels with multiple dashes.
36555 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36556 on it. Add missing space before closing bracket. Fix
36557 misleading formatting.
36559 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36561 * docs/grub.texi: Major overhaul. Remove all sections that are
36562 specific to GRUB Legacy, or mostly composed of Legacy-specific
36565 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36567 * docs/version.texi: New file. Provides version information for
36570 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36572 * docs/grub.texi: Update CVS information to SVN.
36573 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36575 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36577 * util/grub-mkconfig.in: Remove a wrong `fi'.
36579 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36581 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36582 (grub_jfs_uuid): New function.
36583 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36585 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36587 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36589 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36590 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36592 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36594 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36595 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36598 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36599 not just "vmlinu[zx]".
36600 Moved from here ...
36601 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36604 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36605 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36608 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36610 * util/grub.d/10_freebsd.in: Use an absolute device path for
36611 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36613 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36615 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36616 handling of multiple abstraction modules.
36618 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36620 Fix a bug resulting in black screen when loading Linux using a
36623 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36626 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36627 (grub_vbe_bios_getset_dac_palette_width): New function.
36628 (grub_vbe_bios_get_dac_palette_width)
36629 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36630 grub_vbe_bios_getset_dac_palette_width()).
36632 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36633 check for return status.
36634 (grub_vbe_get_video_mode_info): When getting information for a packed
36635 mode (<= 8 bpp), obtain DAC palette width using
36636 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36637 {red,green,blue}_mark_size.
36639 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36641 * commands/search.c (options): Fix help output to match actual code.
36643 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36645 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36648 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36650 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36651 on XFS or ReiserFS.
36653 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36655 Support Apple partition map with sector size different from 512 bytes.
36657 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36658 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36659 and 'apart.partmap_size'.
36661 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36662 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36666 * commands/i386/cpuid.c (options): New variable.
36667 (grub_cmd_cpuid): Return real error.
36668 (GRUB_MOD_INIT(cpuid)): Declare options.
36670 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36672 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36675 2009-07-31 Bean <bean123ch@gmail.com>
36677 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36679 (grub_fshelp_node): Move inode field to the end.
36680 (grub_xfs_data): Remove inode field.
36681 (grub_xfs_inode_block): Calculate inode size using sblock.
36682 (grub_xfs_inode_offset): Likewise.
36683 (grub_xfs_read_inode): Calculate inode size using sblock.
36684 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36685 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36686 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36687 to match inode size.
36688 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36689 not accessible when data is null.
36690 (grub_xfs_open): Likewise.
36692 2009-07-31 Bean <bean123ch@gmail.com>
36694 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36695 Don't change pv->disk if it's already set.
36697 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36698 (grub_raid_register): ... here.
36699 (grub_raid_rescan): Removed.
36701 * include/grub/raid.h (grub_raid_rescan): Removed.
36703 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36704 (fstest): Replace grub_raid_rescan with module fini function followed
36707 * util/grub-probe.c: Add include file <grub/raid.h>.
36708 (probe_raid_level): New function.
36709 (probe): Detect abstraction by walking the disk device, support two
36710 level of abstraction (LVM on RAID) when detecting partition map.
36712 2009-07-31 Pavel Roskin <proski@gnu.org>
36714 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36715 to grub_zalloc(), it was erroneous.
36716 Reported by Bean <bean123ch@gmail.com>
36718 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36720 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36721 embedding zone, not only the first one.
36723 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36725 * term/gfxterm.c (clear_char): New function.
36726 (grub_virtual_screen_setup): Use clear_char.
36727 (scroll_up): Likewise.
36728 (grub_virtual_screen_cls): Likewise.
36730 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36732 * util/deviceiter.c (get_acceleraid_disk_name): New static
36734 (grub_util_iterate_devices): Handle Accelraid devices.
36735 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36737 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36739 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36740 separator for the suggested gfxpayload string (';' collides with the
36741 parser and needs escaping).
36743 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36745 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36746 Clear direction flag before jumping to OS.
36747 (grub_multiboot2_real_boot): Likewise.
36749 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36751 * util/i386/pc/grub-install: Fix parsing of --disk-module
36754 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36756 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36759 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36761 * util/grub-mkconfig.in (package_version): New variable.
36762 Use it do display the version.
36764 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36766 * kern/file.c (grub_file_open): Revert to previous check with
36769 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36771 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36772 from help line. It's out of sync with code.
36774 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36776 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36777 entries on failed boot.
36779 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36781 * kern/file.c (grub_file_open): Fix an error check.
36783 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36785 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36786 partition map couldn't be identified.
36788 2009-07-23 Pavel Roskin <proski@gnu.org>
36790 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36791 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36792 case of little endian words becomes just an optimization.
36793 Respect const modifier.
36794 (md5_final): Use code that doesn't depend on endianness.
36796 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36797 to avoid loss of upper bits if align is unsigned and shorter
36800 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36802 UUID support for UFS
36804 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36805 (grub_ufs_uuid): New function.
36806 (grub_ufs_fs): add .uuid
36808 2009-07-21 Pavel Roskin <proski@gnu.org>
36810 * kern/dl.c (grub_dl_check_header): Make static.
36812 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36814 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36815 add drivemap for Vista. It breaks Windows 7.
36817 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36819 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36822 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36826 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36827 (grub_fstest_SOURCES): Likewise.
36828 (pkglib_MODULES): Add befs.mod.
36829 (befs_mod_SOURCES): New variable.
36830 (befs_mod_CFLAGS): Likewise.
36831 (befs_mod_LDFLAGS): Likewise.
36832 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36833 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36834 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36835 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36836 (grub_setup_SOURCES): Likewise.
36837 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36838 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36839 (grub_setup_SOURCES): Likewise.
36840 * fs/befs.c: New file.
36841 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36842 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36843 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36844 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36845 (B_KEY_INDEX_ALIGN): New declaration.
36846 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36847 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36848 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36849 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36850 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36851 (grub_afs_mount) [MODE_BFS]: Likewise.
36852 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36853 (grub_afs_fs): Use GRUB_AFS_FSNAME
36854 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36855 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36856 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36857 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36859 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36861 * util/getroot.c (find_root_device): Add support for MacOSX.
36862 * util/hostdisk.c: Likewise.
36864 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36866 * font/font.c (find_glyph): Check whether a font is present to avoid
36867 segmentation fault.
36869 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36871 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36873 2009-07-20 Pavel Roskin <proski@gnu.org>
36875 * configure.ac: Trim excessively wordy excuses.
36877 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36879 Add symlink, mtime and label support to AtheFS.
36881 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36882 (grub_afs_iterate_dir): Handle symlinks.
36883 (grub_afs_open): Use grub_afs_read_symlink.
36884 (grub_afs_dir): Likewise.
36886 (grub_afs_label): New function.
36887 (grub_afs_fs): Add grub_afs_label.
36888 (grub_afs_read_symlink): New function.
36890 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36892 Fix AtheFS support.
36894 * fs/afs.c: Fix comments style.
36895 (grub_afs_blockrun): Declare as packed.
36896 (grub_afs_datastream): Likewise.
36897 (grub_afs_bnode): Likewise.
36898 (grub_afs_btree): Likewise.
36899 (grub_afs_sblock): Likewise.
36900 Declare `name' as char.
36901 (grub_afs_inode): Declare as packed.
36902 Change void *vnode to grub_uint32_t unused.
36903 (grub_afs_iterate_dir): Check that key_size is positive.
36904 (grub_afs_mount): Don't read superblock twice.
36905 (grub_afs_dir): Don't free node in case of error,
36906 grub_fshelp_find_file already handles this.
36907 (grub_afs_open): Likewise.
36909 2009-07-19 Pavel Roskin <proski@gnu.org>
36911 * Makefile.in: Remove LIBLZO and enable_lzo.
36912 * conf/i386-pc.rmk: Remove lzo support.
36913 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36914 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36916 * kern/i386/pc/lzo1x.S: Remove.
36917 * kern/i386/pc/startup.S: Remove lzo support.
36918 * util/i386/pc/grub-mkimage.c: Likewise.
36920 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36922 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36923 * fs/xfs.c (grub_xfs_dir): Likewise.
36924 * fs/afs.c (grub_afs_dir): Likewise.
36925 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36926 (grub_iso9660_open): Likewise.
36927 * fs/jfs.c (grub_jfs_open): Likewise.
36928 * fs/ext2.c (grub_ext2_dir): Likewise.
36929 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36930 * script/sh/lexer.c (grub_script_yylex): Likewise.
36932 2009-07-16 Pavel Roskin <proski@gnu.org>
36934 * configure.ac: Never add "-c" to CFLAGS.
36936 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36938 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36939 grub_cv_cc_efiemu should be used.
36941 * configure.ac: Typo fixes.
36943 * kern/mm.c (grub_zalloc): New function.
36944 (grub_debug_zalloc): Likewise.
36945 * include/grub/mm.h: Declare grub_zalloc() and
36946 grub_debug_zalloc().
36947 * util/misc.c (grub_zalloc): New function.
36948 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36949 instead of grub_malloc(), remove unneeded initializations.
36950 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36951 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36952 * commands/parttool.c (grub_cmd_parttool): Likewise.
36953 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36954 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36955 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36956 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36957 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36958 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36959 (grub_cmd_efiemu_pnvram): Likewise.
36960 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36961 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36962 (grub_iso9660_iterate_dir): Likewise.
36963 * fs/jfs.c (grub_jfs_opendir): Likewise.
36964 * fs/ntfs.c (list_file): Likewise.
36965 (grub_ntfs_mount): Likewise.
36966 * kern/disk.c (grub_disk_open): Likewise.
36967 * kern/dl.c (grub_dl_load_core): Likewise.
36968 * kern/elf.c (grub_elf_file): Likewise.
36969 * kern/env.c (grub_env_context_open): Likewise.
36970 (grub_env_set): Likewise.
36971 (grub_env_set_data_slot): Likewise.
36972 * kern/file.c (grub_file_open): Likewise.
36973 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36974 * loader/i386/multiboot.c (grub_module): Likewise.
36975 * loader/xnu.c (grub_xnu_create_key): Likewise.
36976 (grub_xnu_create_value): Likewise.
36977 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36978 (read_config_file): Likewise.
36979 * normal/menu_entry.c (make_screen): Likewise.
36980 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36981 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36982 * script/sh/script.c (grub_script_parse): Likewise.
36983 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36984 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36985 * video/readers/png.c (grub_png_output_byte): Likewise.
36986 (grub_video_reader_png): Likewise.
36988 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36990 Enable all targets that can be built by default
36992 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36993 grub-mkfont and grub-fstest if they can be built
36995 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36997 Fix hang and segmentation fault in grub-emu-usb
36999 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
37000 * util/usb.c (grub_libusb_devices): likewise
37001 (grub_libusb_init): rename to ...
37002 (GRUB_MOD_INIT (libusb)):...this
37003 (grub_libusb_fini): rename to ..
37004 (GRUB_MOD_FINI (libusb)):...this
37005 * disk/usbms.c (grub_usbms_transfer): fix retry logic
37006 * include/grub/disk.h (grub_raid_init): removed, it's useless
37007 (grub_raid_fini): likewise
37008 (grub_lvm_init): likewise
37009 (grub_lvm_fini): likewise
37010 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
37013 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
37017 * Makefile.in (LIBUSB): new macro
37018 * genmk.rb (Utility/print_tail): new method
37019 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
37020 (top level): call util.print_tail at the end.
37022 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
37024 Make FreeBSD accept zpool.cache
37026 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
37027 type is /boot/zfs/zpool.cache
37029 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
37033 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
37034 correct wrong typedef
37035 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
37037 2009-07-15 Pavel Roskin <proski@gnu.org>
37039 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
37040 * kern/disk.c (struct grub_disk_cache): Likewise.
37042 * commands/probe.c (options): Typo fix.
37044 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
37045 Increase to 0x5a to accommodate FAT32. Adjust other offsets
37047 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
37049 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
37050 the end of "Error" to make the message more readable.
37052 * boot/i386/pc/boot.S (kernel_segment): Remove.
37053 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
37056 * boot/i386/pc/boot.S (boot_version): Remove.
37057 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
37060 * include/grub/i386/pc/boot.h: Sort all offsets.
37061 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
37062 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
37063 * boot/i386/pc/boot.S: Assert location of every offset listed in
37064 include/grub/i386/pc/boot.h.
37066 2009-07-13 Pavel Roskin <proski@gnu.org>
37068 * include/grub/i386/coreboot/machine.h: Rename
37069 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
37070 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
37071 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
37073 * kern/dl.c: Force native word size to suppress warnings when
37074 compiling grub-emu.
37076 * kern/device.c (grub_device_iterate): Change struct part_ent to
37077 hold the name, not a pointer to it. Use one grub_malloc() per
37078 partition, not two. Free partition_name if grub_malloc() fails.
37079 Set ents to NULL only before grub_partition_iterate() is called.
37081 2009-07-11 Bean <bean123ch@gmail.com>
37083 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
37086 2009-07-10 Bean <bean123ch@gmail.com>
37087 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
37089 * kern/ieee1275/openfw.c (grub_children_iterate)
37090 (grub_devalias_iterate): Fix size evaluation for property or path
37091 strings, which was broken since r2132.
37093 2009-07-07 Pavel Roskin <proski@gnu.org>
37095 * commands/search.c (search_file): Merge into ...
37096 (search_fs): ... this. Accept search type as argument.
37097 (grub_cmd_search): Pass search type to search_fs().
37099 * include/grub/util/console.h: New file.
37100 * util/console.c: Use it instead of grub/machine/console.h.
37101 * util/grub-emu.c: Likewise.
37103 * lib/arg.c (find_long_option): Remove.
37104 (find_long): Add `len' argument, make `s' const char *.
37105 (grub_arg_parse): Parse long options in place, not in a
37108 2009-07-06 Pavel Roskin <proski@gnu.org>
37110 * commands/search.c (search_fs): Fix potential NULL pointer
37113 * commands/search.c (search_fs): Replace QUID macro with quid_fn
37116 2009-07-06 Daniel Mierswa <impulze@impulze.org>
37118 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
37121 2009-07-05 Pavel Roskin <proski@gnu.org>
37123 * include/grub/i386/linux.h (struct linux_kernel_params):
37124 Restore padding3, it's still needed.
37126 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
37128 * util/osdetect.lua: Likewise.
37130 2009-07-05 Bean <bean123ch@gmail.com>
37132 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
37134 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
37135 (grub_lua_getenv): Likewise.
37136 (grub_lua_setenv): Likewise.
37137 (save_errno): New function.
37138 (push_result): Likewise.
37139 (grub_lua_enum_device): Likewise.
37140 (grub_lua_enum_file): Likewise.
37141 (grub_lua_file_open): Likewise.
37142 (grub_lua_file_close): Likewise.
37143 (grub_lua_file_seek): Likewise.
37144 (grub_lua_file_read): Likewise.
37145 (grub_lua_file_getline): Likewise.
37146 (grub_lua_file_getsize): Likewise.
37147 (grub_lua_file_getpos): Likewise.
37148 (grub_lua_file_eof): Likewise.
37149 (grub_lua_file_exist): Likewise.
37150 (grub_lua_add_menu): Likewise.
37152 * script/lua/grub_lua.h (isupper): New inline function.
37153 (islower): Likewise.
37154 (ispunct): Likewise.
37155 (isxdigit): Likewise.
37156 (strcspn): Change to normal function.
37157 (strpbkr): New function declaration.
37158 (memchr): Likewise.
37160 * script/lua/grub_main.c (scan_str): New function.
37161 (strcspn): Likewise.
37162 (strpbrk): Likewise.
37163 (memchr): Likewise.
37165 * script/lua/linit.c (lualibs): Enable the string library.
37167 * util/osdetect.lua: New file.
37169 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
37171 * include/grub/i386/linux.h (struct linux_kernel_params): Add
37172 `capabilities' member.
37174 2009-07-02 Pavel Roskin <proski@gnu.org>
37176 * genparttoollist.sh: Add missing newline at the end.
37178 2009-07-01 Pavel Roskin <proski@gnu.org>
37180 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
37182 * util/hostdisk.c (open_device): Remove `const' from
37183 `sysctl_size', as sysctlbyname() can change it (in this case it
37184 doesn't actually happen).
37186 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
37187 using signed long int constants.
37189 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
37190 constant to avoid a warning on FreeBSD.
37192 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37195 * Makefile.in: Install include/grub/machine symlink.
37197 * Makefile.in: When installing symlinks, use "cp -fR", which
37198 works on FreeBSD and MacOSX.
37199 From Yves Blusseau <cl7m42e02@sneakemail.com>
37201 * kern/dl.c (grub_dl_resolve_symbol): Make static.
37202 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37204 * util/misc.c: Move grub_reboot() and grub_halt() ...
37205 * util/grub-emu.c: ... here. Make main_env static.
37206 * include/grub/util/misc.h: Remove main_env.
37208 * kern/mm.c: Use correct format to print size_t.
37210 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37211 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37212 * kern/powerpc/dl.c: Likewise.
37213 * kern/sparc64/dl.c: Likewise.
37214 * kern/x86_64/dl.c: Likewise.
37216 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37218 Fix grub-emu build on sparc64-ieee1275.
37220 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37221 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37223 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37225 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37226 (grub_reboot, grub_halt): New functions.
37228 * util/i386/pc/misc.c: Delete. Update all users.
37229 * util/sparc64/ieee1275/misc.c: Likewise.
37230 * util/powerpc/ieee1275/misc.c: Likewise.
37232 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37234 * conf/i386.rmk (setjmp_mod_SOURCES)
37235 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37236 * conf/common.rmk (setjmp_mod_SOURCES)
37237 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37238 to use $(target_cpu).
37239 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37240 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37241 * conf/powerpc-ieee1275.rmk: Likewise.
37242 * conf/sparc64-ieee1275.rmk: Likewise.
37244 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37245 $(target_cpu) for kern/$(target_cpu)/dl.c.
37246 * conf/i386-efi.rmk: Likewise.
37247 * conf/i386-ieee1275.rmk: Likewise.
37248 * conf/x86_64-efi.rmk: Likewise.
37249 * conf/i386-coreboot.rmk: Likewise.
37250 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37251 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37252 kern/$(target_cpu)/cache.S.
37253 * conf/sparc64-ieee1275.rmk: Likewise.
37255 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37257 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37258 type to `grub_uint8_t', and adjust `padding9' accordingly.
37260 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37262 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37264 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37265 assembly in final jump, using register constraints.
37267 (grub_linux_boot): For text mode, initialize `have_vga' using
37268 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37270 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37271 right before the final jump.
37273 Set `video_mode' to 0x3.
37275 Document initialization of `video_page', `video_mode' and
37278 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37280 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37281 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37282 and set GRUB_LINUX_FLAG_QUIET appropriately.
37284 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37286 Fix build on Debian / sparc.
37288 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37290 2009-06-28 Pavel Roskin <proski@gnu.org>
37292 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37295 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37297 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37299 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37302 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37306 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37307 file can't be opened. grub_file_open() is already supposed to set
37308 grub_errno / grub_errmsg appropriately.
37309 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37311 2009-06-27 Pavel Roskin <proski@gnu.org>
37312 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37314 * include/grub/dl.h: Include grub/elf.h.
37315 (struct grub_dl): Add symtab field.
37316 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37317 GRUB_MODULES_MACHINE_READONLY.
37318 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37319 of the header for read-only modules.
37320 (grub_dl_unload): Free mod->symtab for read-only modules.
37321 * kern/i386/dl.c: Use mod->symtab.
37322 * kern/powerpc/dl.c: Likewise.
37323 * kern/sparc64/dl.c: Likewise.
37324 * kern/x86_64/dl.c: Likewise.
37326 * conf/i386-qemu.rmk: New file.
37327 * kern/i386/qemu/startup.S: Likewise.
37328 * kern/i386/qemu/mmap.c: Likewise.
37329 * boot/i386/qemu/boot.S: Likewise.
37330 * include/grub/i386/qemu/time.h: Likewise.
37331 * include/grub/i386/qemu/serial.h: Likewise.
37332 * include/grub/i386/qemu/kernel.h: Likewise.
37333 * include/grub/i386/qemu/console.h: Likewise.
37334 * include/grub/i386/qemu/boot.h: Likewise.
37335 * include/grub/i386/qemu/init.h: Likewise.
37336 * include/grub/i386/qemu/machine.h: Likewise.
37337 * include/grub/i386/qemu/loader.h: Likewise.
37338 * include/grub/i386/qemu/memory.h: Likewise.
37340 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37341 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37342 [qemu] (pkglib_IMAGES): Add `boot.img'.
37343 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37344 [qemu] (boot_img_FORMAT): New variables.
37345 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37346 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37347 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37348 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37349 [qemu] (kernel_img_FORMAT): New variables.
37351 * configure.ac: Recognise `i386-qemu'.
37353 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37354 (for no compression).
37355 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37356 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37357 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37358 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37361 2009-06-27 Pavel Roskin <proski@gnu.org>
37363 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37365 * efiemu/prepare32.c: Likewise.
37366 * efiemu/prepare64.c: Likewise.
37368 2009-06-26 Pavel Roskin <proski@gnu.org>
37370 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37371 * include/grub/elf.h: Define symbols without "32" or "64" based
37372 on GRUB_TARGET_WORDSIZE.
37373 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37374 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37376 * efiemu/loadcore64.c: Likewise.
37377 * loader/i386/bsd32.c: Likewise.
37378 * loader/i386/bsd64.c: Likewise.
37379 * kern/dl.c: Remove own ELF definitions.
37380 * util/i386/efi/grub-mkimage.c: Likewise.
37382 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37384 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37385 segment 0x0 unconditionally, because the reference generated by
37386 GAS is an absolute address.
37388 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37390 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37391 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37393 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37395 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37396 indexes. Check for -f explicitly.
37397 (search_file): Improve error message.
37398 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37400 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37402 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37403 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37405 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37407 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37408 * conf/i386-ieee1275.rmk: Likewise.
37409 * conf/i386-coreboot.rmk: Likewise.
37411 * kern/i386/pc/startup.S (grub_stop): Remove function.
37412 * kern/i386/ieee1275/startup.S: Likewise.
37413 * kern/i386/coreboot/startup.S: Likewise.
37414 * kern/i386/misc.S (grub_stop): New function.
37416 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37418 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37419 * kern/i386/realmode.S (real_to_prot): ... to here.
37421 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37423 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37425 (kernel_elf_SOURCES): Rename to ...
37426 (kernel_img_SOURCES): ... this.
37427 (kernel_elf_HEADERS): Rename to ...
37428 (kernel_img_HEADERS): ... this. Update all users.
37429 (kernel_elf_ASFLAGS): Rename to ...
37430 (kernel_img_ASFLAGS): ... this.
37431 (kernel_elf_CFLAGS): Rename to ...
37432 (kernel_img_CFLAGS): ... this.
37433 (kernel_elf_LDFLAGS): Rename to ...
37434 (kernel_img_LDFLAGS): ... this.
37435 * conf/i386-coreboot.rmk: Likewise.
37436 * conf/powerpc-ieee1275.rmk: Likewise.
37438 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37441 2009-06-21 Pavel Roskin <proski@gnu.org>
37443 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37444 to match nested functions.
37445 * loader/sparc64/ieee1275/linux.c: Likewise.
37447 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37449 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37451 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37452 all i386 platforms.
37454 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37456 Fix asm file handling on ELF, and remove workarounds.
37458 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37459 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37460 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37461 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37463 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37465 Load BSD ELF modules
37467 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37468 and loader/i386/bsd64.c
37469 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37470 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37471 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37472 (grub_freebsd_load_elfmodule32): New declaration
37473 (grub_freebsd_load_elfmoduleobj64): Likewise
37474 (grub_freebsd_load_elf_meta32): Likewise
37475 (grub_freebsd_load_elf_meta64): Likewise
37476 (grub_freebsd_add_meta): Likewise
37477 (grub_freebsd_add_meta_module): Likewise
37478 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37479 (grub_freebsd_add_meta_module): Likewise and move module-specific
37480 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37481 (grub_cmd_freebsd): Add elf-kernel specific parts
37482 based on grub_freebsd_add_meta_module
37483 (grub_cmd_freebsd_module): Add type parsing moved from
37484 grub_freebsd_add_meta_module
37485 (grub_cmd_freebsd_module_elf): New function
37486 (cmd_freebsd_module_elf): New variable
37487 (GRUB_MOD_INIT): Register freebsd_module_elf
37488 * loader/i386/bsd32.c: New file
37489 * loader/i386/bsd64.c: Likewise
37490 * loader/i386/bsdXX.c: Likewise
37491 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37492 (grub_elf64_load): Likewise
37493 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37495 (grub_elf64_load_hook_t): Likewise
37497 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37499 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37501 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37502 don't write a menu entry for recovery mode.
37504 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37506 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37507 after it's no longer needed.
37509 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37511 * include/grub/i386/loader.h (grub_linux_prot_size)
37512 (grub_linux_tmp_addr, grub_linux_real_addr)
37513 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37514 GRUB_MACHINE_PCBIOS.
37515 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37516 common grub_util_info() call to ...
37517 (generate_image): ... here.
37518 Fix use of uninitialized memory, comparison of signed with
37519 unsigned integers and memory leak.
37520 Remove bogus module address message.
37522 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37524 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37526 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37528 2009-06-19 Pavel Roskin <proski@gnu.org>
37530 * configure.ac: Remove stray AC_MSG_CHECKING.
37532 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37534 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37536 2009-06-18 Pavel Roskin <proski@gnu.org>
37538 * conf/common.rmk: Add fs_file.mod.
37539 * disk/fs_file.c: New file.
37540 * include/grub/disk.h (enum grub_disk_dev_id): Add
37541 GRUB_DISK_DEVICE_FILE_ID.
37543 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37545 Fix build with Apple's toolchain. Part 2
37547 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37550 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37552 Fix build with Apple's toolchain. Part 1
37554 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37556 * configure.ac: remove a leftover AC_MSG_RESULT
37557 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37560 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37564 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37565 (decomp_block): initialize ch
37566 use grub_memcpy instead of memcpy
37568 2009-06-17 Pavel Roskin <proski@gnu.org>
37570 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37571 version, use declarations needed to use vga_text as the startup
37574 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37575 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37577 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37578 and grub_at_keyboard_fini(), it's done on module load and
37581 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37583 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37584 file can't be found.
37585 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37587 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37589 Fix newline handling
37591 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37592 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37593 (grub_script_yylex): don't segfault on unterminated script
37594 newline terminates command and variable
37596 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37598 avoid double grub_adjust_range call. Bug reported by David Simner
37600 * kern/disk.c (grub_disk_write): change to raw disk access before
37603 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37605 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37606 spaces, for the benefit of help2man.
37607 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37609 2009-06-16 Pavel Roskin <proski@gnu.org>
37611 * kern/i386/halt.c: Include grub/machine/init.h.
37612 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37614 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37616 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37617 drivemap menuentry.
37619 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37621 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37624 2009-06-16 Pavel Roskin <proski@gnu.org>
37626 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37627 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37628 save %dx, we only need %dl and we never change it.
37629 * boot/i386/pc/cdboot.S: Don't set the root drive.
37630 * boot/i386/pc/pxeboot.S: Likewise.
37631 * include/grub/i386/pc/boot.h: Remove
37632 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37633 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37634 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37635 * kern/i386/pc/init.c (make_install_device): Remove references
37636 to grub_root_drive.
37637 * kern/i386/pc/startup.S: Likewise.
37638 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37640 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37644 * commands/xnu_uuid.c: new file
37645 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37646 (xnu_uuid_mod_SOURCES): new variable
37647 (xnu_uuid_mod_CFLAGS): likewise
37648 (xnu_uuid_mod_LDFLAGS): likewise
37649 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37650 * conf/i386-ieee1275.rmk: likewise
37651 * conf/i386-pc.rmk: likewise
37652 * conf/powerpc-ieee1275.rmk: likewise
37653 * conf/sparc64-ieee1275.rmk: likewise
37654 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37656 2009-06-16 Pavel Roskin <proski@gnu.org>
37658 * configure.ac: Avoid '==' in test command, it's not portable.
37660 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37664 * commands/probe.c: new file
37665 * conf/common.rmk (pkglib_MODULES): add probe.mod
37666 (probe_mod_SOURCES): new variable
37667 (probe_mod_CFLAGS): likewise
37668 (probe_mod_LDFLAGS): likewise
37669 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37670 * conf/i386-ieee1275.rmk: likewise
37671 * conf/i386-pc.rmk: likewise
37672 * conf/powerpc-ieee1275.rmk: likewise
37673 * conf/sparc64-ieee1275.rmk: likewise
37675 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37677 Fix handling of string like \"hello\" and "a
37680 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37681 (grub_script_yylex): fix parsing of quoting, escaping and newline
37683 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37685 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37688 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37690 * util/grub-mkconfig.in: Fix parsing of --output option.
37692 2009-06-12 Pavel Roskin <proski@gnu.org>
37694 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37695 genmk.rb don't need to be generated or installed.
37697 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37699 * commands/i386/pc/drivemap_int13h.S: add more comments
37701 2009-06-11 Pavel Roskin <proski@gnu.org>
37703 * Makefile.in (uninstall): Uninstall manuals.
37705 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37706 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37707 and update-grub_lib in two places.
37708 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37710 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37711 a compiler warning.
37713 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37714 `entry_lo' to fix variable shadowing.
37716 2009-06-11 Christian Franke <franke@computer.org>
37718 * kern/misc.c (__enable_execute_stack): Add missing return type
37719 to prevent gcc warning.
37721 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37723 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37725 2009-06-11 Pavel Roskin <proski@gnu.org>
37727 * Makefile.in: Don't rely on any scripts being executable.
37728 Always use $(SHELL) to run shell scripts.
37730 * configure.ac: Always define ___main if using -nostdlib. This
37731 fixes tests on Cygwin.
37733 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37737 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37738 is in bytes and not in blocks
37740 2009-06-11 Pavel Roskin <proski@gnu.org>
37742 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37745 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37747 * util/grub.d/30_os-prober.in: Fix a comment. Source
37748 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37749 to set the root device. Place drivemap command in the generated
37752 2009-06-11 Pavel Roskin <proski@gnu.org>
37754 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37755 have long been resolved.
37757 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37759 * util/grub.d/10_linux.in: Capitalise "Linux".
37761 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37763 2009-06-11 Pavel Roskin <proski@gnu.org>
37765 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37766 fix a gcc warning and ensure that the function won't ever exit.
37768 * kern/i386/ieee1275/init.c: Add missing prototype for
37769 grub_stop_floppy().
37771 * loader/ieee1275/multiboot2.c [__i386__]: Include
37772 grub/cpu/multiboot.h.
37774 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37775 casts to short - they are not portable and cause warnings. Fix
37776 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37778 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37782 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37784 (grub_get_root_biosnumber_saved): new variable
37785 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37786 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37787 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37788 %dx after the call if necessary
37789 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37790 (boot_mod_SOURCES): remove
37791 (boot_mod_CFLAGS): remove
37792 (boot_mod_LDFLAGS): remove
37793 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37794 (boot_mod_SOURCES): new variable
37795 (boot_mod_CFLAGS): likewise
37796 (boot_mod_LDFLAGS): likewise
37797 * conf/i386-efi.rmk: likewise
37798 * conf/i386-ieee1275.rmk: likewise
37799 * conf/i386-pc.rmk: likewise
37800 * conf/powerpc-ieee1275.rmk: likewise
37801 * conf/sparc64-ieee1275.rmk: likewise
37802 * conf/x86_64-efi.rmk: likewise
37803 * include/grub/i386/pc/biosnum.h: new file
37804 * lib/i386/pc/biosnum.c: likewise
37805 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37806 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37807 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37809 2009-06-10 Pavel Roskin <proski@gnu.org>
37811 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37812 Use separate variables. Read only the file size at the end, but
37813 not the checksum that we don't use.
37815 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37816 Adjust all callers.
37818 * kern/ieee1275/openfw.c: Remove libc includes.
37819 * kern/ieee1275/cmain.c: Likewise.
37820 * include/grub/ieee1275/ieee1275.h: Likewise.
37822 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37825 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37827 * Makefile.in: Remove all trailing whitespace.
37828 * conf/i386-pc.rmk: Likewise.
37829 * conf/powerpc-ieee1275.rmk: Likewise.
37830 * conf/sparc64-ieee1275.rmk: Likewise.
37831 * docs/grub.texi: Likewise.
37832 * docs/texinfo.tex: Likewise.
37833 * disk/fs_uuid.c: Likewise.
37834 * disk/lvm.c: Likewise.
37835 * disk/scsi.c: Likewise.
37836 * disk/ata.c: Likewise.
37837 * disk/ieee1275/ofdisk.c: Likewise.
37838 * disk/i386/pc/biosdisk.c: Likewise.
37839 * disk/host.c: Likewise.
37840 * disk/raid.c: Likewise.
37841 * disk/efi/efidisk.c: Likewise.
37842 * disk/usbms.c: Likewise.
37843 * disk/memdisk.c: Likewise.
37844 * disk/loopback.c: Likewise.
37845 * kern/powerpc/dl.c: Likewise.
37846 * kern/device.c: Likewise.
37847 * kern/dl.c: Likewise.
37848 * kern/sparc64/dl.c: Likewise.
37849 * kern/ieee1275/ieee1275.c: Likewise.
37850 * kern/term.c: Likewise.
37851 * kern/fs.c: Likewise.
37852 * kern/i386/dl.c: Likewise.
37853 * kern/i386/pc/startup.S: Likewise.
37854 * kern/i386/pc/init.c: Likewise.
37855 * kern/i386/pc/mmap.c: Likewise.
37856 * kern/i386/pc/lzo1x.S: Likewise.
37857 * kern/i386/ieee1275/init.c: Likewise.
37858 * kern/i386/realmode.S: Likewise.
37859 * kern/i386/tsc.c: Likewise.
37860 * kern/partition.c: Likewise.
37861 * kern/corecmd.c: Likewise.
37862 * kern/file.c: Likewise.
37863 * kern/efi/efi.c: Likewise.
37864 * kern/efi/init.c: Likewise.
37865 * kern/efi/mm.c: Likewise.
37866 * kern/main.c: Likewise.
37867 * kern/err.c: Likewise.
37868 * kern/env.c: Likewise.
37869 * kern/disk.c: Likewise.
37870 * kern/generic/millisleep.c: Likewise.
37871 * kern/generic/rtc_get_time_ms.c: Likewise.
37872 * kern/misc.c: Likewise.
37873 * kern/parser.c: Likewise.
37874 * genmk.rb: Likewise.
37875 * configure.ac: Likewise.
37876 * boot/i386/pc/diskboot.S: Likewise.
37877 * boot/i386/pc/pxeboot.S: Likewise.
37878 * boot/i386/pc/boot.S: Likewise.
37879 * boot/i386/pc/lnxboot.S: Likewise.
37880 * boot/i386/pc/cdboot.S: Likewise.
37881 * parttool/pcpart.c: Likewise.
37882 * video/readers/tga.c: Likewise.
37883 * video/video.c: Likewise.
37884 * video/bitmap.c: Likewise.
37885 * lib/envblk.c: Likewise.
37886 * lib/i386/setjmp.S: Likewise.
37887 * fs/xfs.c: Likewise.
37888 * fs/afs.c: Likewise.
37889 * fs/fat.c: Likewise.
37890 * fs/ntfs.c: Likewise.
37891 * fs/udf.c: Likewise.
37892 * fs/affs.c: Likewise.
37893 * fs/iso9660.c: Likewise.
37894 * fs/hfs.c: Likewise.
37895 * fs/fshelp.c: Likewise.
37896 * fs/ext2.c: Likewise.
37897 * fs/jfs.c: Likewise.
37898 * fs/reiserfs.c: Likewise.
37899 * fs/hfsplus.c: Likewise.
37900 * fs/minix.c: Likewise.
37901 * fs/cpio.c: Likewise.
37902 * fs/sfs.c: Likewise.
37903 * fs/ufs.c: Likewise.
37904 * efiemu/prepare.c: Likewise.
37905 * efiemu/loadcore_common.c: Likewise.
37906 * efiemu/runtime/efiemu.sh: Likewise.
37907 * efiemu/runtime/efiemu.S: Likewise.
37908 * efiemu/runtime/efiemu.c: Likewise.
37909 * efiemu/pnvram.c: Likewise.
37910 * efiemu/main.c: Likewise.
37911 * efiemu/i386/pc/cfgtables.c: Likewise.
37912 * efiemu/i386/loadcore64.c: Likewise.
37913 * efiemu/i386/loadcore32.c: Likewise.
37914 * efiemu/loadcore.c: Likewise.
37915 * efiemu/symbols.c: Likewise.
37916 * efiemu/mm.c: Likewise.
37917 * include/grub/autoefi.h: Likewise.
37918 * include/grub/datetime.h: Likewise.
37919 * include/grub/term.h: Likewise.
37920 * include/grub/hfs.h: Likewise.
37921 * include/grub/lvm.h: Likewise.
37922 * include/grub/i386/tsc.h: Likewise.
37923 * include/grub/i386/linux.h: Likewise.
37924 * include/grub/i386/xnu.h: Likewise.
37925 * include/grub/i386/efiemu.h: Likewise.
37926 * include/grub/i386/pc/biosdisk.h: Likewise.
37927 * include/grub/i386/pc/memory.h: Likewise.
37928 * include/grub/i386/pc/vbe.h: Likewise.
37929 * include/grub/parttool.h: Likewise.
37930 * include/grub/video.h: Likewise.
37931 * include/grub/memory.h: Likewise.
37932 * include/grub/fs.h: Likewise.
37933 * include/grub/partition.h: Likewise.
37934 * include/grub/xnu.h: Likewise.
37935 * include/grub/efi/api.h: Likewise.
37936 * include/grub/efi/pe32.h: Likewise.
37937 * include/grub/efi/memory.h: Likewise.
37938 * include/grub/multiboot.h: Likewise.
37939 * include/grub/usbdesc.h: Likewise.
37940 * include/grub/multiboot2.h: Likewise.
37941 * include/grub/acpi.h: Likewise.
37942 * include/grub/efiemu/efiemu.h: Likewise.
37943 * include/grub/disk.h: Likewise.
37944 * include/grub/ieee1275/ieee1275.h: Likewise.
37945 * include/grub/net.h: Likewise.
37946 * include/grub/machoload.h: Likewise.
37947 * include/grub/macho.h: Likewise.
37948 * include/multiboot.h: Likewise.
37949 * genmoddep.awk: Likewise.
37950 * normal/main.c: Likewise.
37951 * normal/menu_entry.c: Likewise.
37952 * normal/menu_viewer.c: Likewise.
37953 * normal/completion.c: Likewise.
37954 * normal/cmdline.c: Likewise.
37955 * normal/misc.c: Likewise.
37956 * normal/datetime.c: Likewise.
37957 * bus/usb/usbtrans.c: Likewise.
37958 * bus/usb/ohci.c: Likewise.
37959 * bus/usb/uhci.c: Likewise.
37960 * bus/usb/usb.c: Likewise.
37961 * mmap/efi/mmap.c: Likewise.
37962 * mmap/i386/pc/mmap_helper.S: Likewise.
37963 * mmap/i386/pc/mmap.c: Likewise.
37964 * mmap/i386/mmap.c: Likewise.
37965 * mmap/i386/uppermem.c: Likewise.
37966 * mmap/mmap.c: Likewise.
37967 * commands/acpi.c: Likewise.
37968 * commands/echo.c: Likewise.
37969 * commands/blocklist.c: Likewise.
37970 * commands/loadenv.c: Likewise.
37971 * commands/usbtest.c: Likewise.
37972 * commands/boot.c: Likewise.
37973 * commands/parttool.c: Likewise.
37974 * commands/search.c: Likewise.
37975 * commands/cat.c: Likewise.
37976 * commands/i386/pc/play.c: Likewise.
37977 * commands/i386/pc/drivemap.c: Likewise.
37978 * commands/i386/pc/vbeinfo.c: Likewise.
37979 * commands/i386/pc/acpi.c: Likewise.
37980 * commands/i386/pc/vbetest.c: Likewise.
37981 * commands/ls.c: Likewise.
37982 * commands/cmp.c: Likewise.
37983 * commands/test.c: Likewise.
37984 * commands/efi/acpi.c: Likewise.
37985 * commands/gptsync.c: Likewise.
37986 * commands/help.c: Likewise.
37987 * partmap/amiga.c: Likewise.
37988 * partmap/apple.c: Likewise.
37989 * partmap/acorn.c: Likewise.
37990 * partmap/pc.c: Likewise.
37991 * partmap/sun.c: Likewise.
37992 * partmap/gpt.c: Likewise.
37993 * script/sh/lexer.c: Likewise.
37994 * script/sh/function.c: Likewise.
37995 * font/font.c: Likewise.
37996 * font/font_cmd.c: Likewise.
37997 * loader/powerpc/ieee1275/linux.c: Likewise.
37998 * loader/efi/chainloader.c: Likewise.
37999 * loader/multiboot_loader.c: Likewise.
38000 * loader/macho.c: Likewise.
38001 * loader/i386/multiboot.c: Likewise.
38002 * loader/i386/linux.c: Likewise.
38003 * loader/i386/pc/linux.c: Likewise.
38004 * loader/i386/pc/multiboot2.c: Likewise.
38005 * loader/i386/pc/chainloader.c: Likewise.
38006 * loader/i386/pc/xnu.c: Likewise.
38007 * loader/i386/bsd_trampoline.S: Likewise.
38008 * loader/i386/efi/linux.c: Likewise.
38009 * loader/i386/multiboot_elfxx.c: Likewise.
38010 * loader/i386/bsd_helper.S: Likewise.
38011 * loader/i386/bsd.c: Likewise.
38012 * loader/i386/linux_trampoline.S: Likewise.
38013 * loader/i386/xnu_helper.S: Likewise.
38014 * loader/i386/xnu.c: Likewise.
38015 * loader/i386/bsd_pagetable.c: Likewise.
38016 * loader/i386/multiboot_helper.S: Likewise.
38017 * loader/xnu.c: Likewise.
38018 * loader/xnu_resume.c: Likewise.
38019 * io/gzio.c: Likewise.
38020 * term/efi/console.c: Likewise.
38021 * term/terminfo.c: Likewise.
38022 * term/ieee1275/ofconsole.c: Likewise.
38023 * term/i386/pc/serial.c: Likewise.
38024 * term/i386/pc/vesafb.c: Likewise.
38025 * term/i386/pc/vga.c: Likewise.
38026 * term/usb_keyboard.c: Likewise.
38027 * term/gfxterm.c: Likewise.
38028 * aclocal.m4: Likewise.
38029 * util/lvm.c: Likewise.
38030 * util/grub.d/30_os-prober.in: Likewise.
38031 * util/grub.d/10_hurd.in: Likewise.
38032 * util/console.c: Likewise.
38033 * util/grub-macho2img.c: Likewise.
38034 * util/grub-probe.c: Likewise.
38035 * util/hostfs.c: Likewise.
38036 * util/i386/pc/grub-mkimage.c: Likewise.
38037 * util/i386/pc/grub-setup.c: Likewise.
38038 * util/i386/efi/grub-mkimage.c: Likewise.
38039 * util/grub-mkconfig.in: Likewise.
38040 * util/raid.c: Likewise.
38041 * util/resolve.c: Likewise.
38042 * util/grub-mkdevicemap.c: Likewise.
38043 * util/grub-emu.c: Likewise.
38044 * util/getroot.c: Likewise.
38045 * util/hostdisk.c: Likewise.
38046 * util/usb.c: Likewise.
38047 * util/grub-editenv.c: Likewise.
38048 * util/misc.c: Likewise.
38050 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
38052 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
38053 `genparttoollist.sh'.
38054 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
38055 Add `*.sh' to the list find searches for and change `mdate.sh'
38058 2009-06-10 Pavel Roskin <proski@gnu.org>
38060 * include/grub/multiboot2.h: Provide compatibility defines for
38062 * include/multiboot2.h: Include stdint.h only if needed, using
38064 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
38066 * loader/ieee1275/multiboot2.c: Likewise.
38067 * loader/multiboot2.c: Likewise.
38068 * loader/multiboot_loader.c: Likewise.
38070 * configure.ac: Use -nostdlib when probing for the target. It
38071 should not be required to have libc for the target.
38073 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
38074 they fail without libc headers for the target.
38075 * include/grub/powerpc/libgcc.h: Use weak attribute for all
38077 * include/grub/sparc64/libgcc.h: Likewise. Don't use
38078 preprocessor conditionals.
38080 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
38081 build system doesn't need to be aware of the tar.c internals.
38083 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
38085 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
38087 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
38089 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
38090 disk limit to 26 for IDE, Virtio, Xen and SCSI.
38092 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
38094 * util/i386/pc/grub-install.in: Change the error message if UUIDs
38095 aren't available if ata.mod gets used.
38097 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
38099 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
38100 initialising controller.
38101 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38103 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38105 * util/i386/pc/grub-install.in: Add a parameter --disk-module
38106 to choose between ata and biosdisk module on i386-pc.
38108 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
38110 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
38111 Subclass and Programming Interface fields in terms of the 3 byte
38112 Class Code register.
38113 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38115 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
38116 interface is OHCI. Add grub_dprintf for symmetry with
38118 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
38119 interface is UHCI. Add interf variable for programming
38120 interface. Print interface with class/subclass.
38122 * bus/usb/ohci.c: Set interf with correct field.
38124 * bus/usb/uhci.c: Remove unneeded doubled lines.
38125 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
38126 Remove whitespace inside comment.
38128 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
38130 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
38131 as fallback an equivalent option without depth.
38133 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38135 Not fail if unable to retrieve C/H/S on LBA disks
38137 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
38138 if unable to retrieve C/H/S on LBA disks
38140 2009-06-08 Pavel Roskin <proski@gnu.org>
38142 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
38145 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38147 * Makefile.in (uninstall): Remove all $lib_DATA files.
38149 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38151 Bugfix: install on partitionless device
38153 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
38156 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38158 * Makefile.in (uninstall): Remove all $include_DATA files.
38160 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38162 * commands/true.c: New file. Implement the true and false commands.
38163 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
38164 (true_mod_SOURCES): New variable.
38165 (true_mod_CFLAGS): Likewise.
38166 (true_mod_LDFLAGS): Likewise.
38168 2009-06-05 Colin D Bennett <colin@gibibit.com>
38170 Optimized font character lookup using binary search instead of linear
38171 search. Fonts now are required to have the character index ordered by
38174 * font/font.c (load_font_index): Verify that fonts have ordered
38176 (find_glyph): Use binary search instead of linear search to find a
38177 character in a font.
38179 2009-06-05 Michael Scherer <misc@mandriva.org>
38181 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
38182 uses case sensitive btree.
38183 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
38184 only for case insensitive filesystems.
38186 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
38188 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
38189 * conf/common.rmk (search_mod_CFLAGS): likewise
38191 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38193 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
38194 compensate a compiler bug
38196 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38198 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
38201 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38203 Definitions for creating asm symbols with Apple's CC
38205 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38206 [APPLE_CC] (VARIABLE): likewise
38208 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38210 Disable lnxboot.img when compiled
38213 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38214 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38215 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38216 [! APPLE_CC] (CODE_LENG): skip
38217 [! APPLE_CC] (setup_sects): likewise
38218 [! APPLE_CC]: skip filling
38220 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38222 Address in trampolines based on 32-bit registers when compiled
38225 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38227 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38229 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38231 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38233 * kern/misc.c [APPLE_CC] (memcpy): new function
38234 [APPLE_CC] (memmove): likewise
38235 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38236 (memcpy): define alias conditionally on !APPLE_CC
38239 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38240 APPLE_CC are defined
38241 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38242 (grub_assert_fail): make prototype conditional
38244 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38246 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38248 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38250 (CLEANFILES): add grub-macho2img
38251 (grub_macho2img_SOURCES): new variable
38252 * kern/i386/pc/startup.S (bss_start): new variable
38253 (bss_end): likewise
38254 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38255 * util/grub-macho2img.c: new file
38257 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38259 Use objconv when compiling with Apple's CC
38261 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38262 (efiemu64.o): likewise
38263 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38264 when compiling with Apple's CC
38265 (efiemu64_s.o): likewise
38266 * configure.ac: check for objconv when compiling with Apple's CC
38267 * genmk.rb: use objconv for modules when compiled with Apple's CC
38269 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38271 Define segment as well as section when compiling with
38274 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38275 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38276 (efiemu_convert_pointer): likewise
38277 (efiemu_set_virtual_address_map): likewise
38278 (efiemu_convert_pointer): likewise
38279 (efiemu_getcrc32): likewise
38280 (init_crc32_table): likewise
38281 (reflect): likewise
38282 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38283 (GRUB_MOD_DEP): likewise
38285 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38287 Allow a compilation without -mcmodel=large
38289 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38290 when compiled without -mcmodel=large
38291 (filter_memory_map): remove memory post 4 GiB when compiled
38292 without -mcmodel=large
38293 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38294 TARGET_CFLAGS when -mcmodel=large isn't supported
38296 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38298 Remove nested functions in efiemu core
38300 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38302 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38304 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38306 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38308 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38310 (grub_cpu_is_tsc_supported): likewise
38311 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38313 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38315 Absolute addressing through constant with Apple's cc
38317 * kern/i386/pc/startup.S: Define necessary constants
38318 and address through it when using ABS with Apple's CC
38319 * boot/i386/pc/diskboot.S: likewise
38320 * boot/i386/pc/boot.S: likewise
38321 * boot/i386/pc/lnxboot.S: likewise
38322 * boot/i386/pc/cdboot.S: likewise
38323 * mmap/i386/pc/mmap_helper.S: likewise
38324 * commands/i386/pc/drivemap_int13h.S: likewise
38326 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38328 Check if compiler is apple cc
38330 * Makefile.in (ASFLAGS): new variable
38331 (TARGET_ASFLAGS): likewise
38332 (TARGET_MODULE_FORMAT): likewise
38333 (TARGET_APPLE_CC): likewise
38334 (OBJCONV): likewise
38335 (TARGET_IMG_CFLAGS): likewise
38336 (TARGET_CPPFLAGS): add includedir
38337 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38338 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38339 Check for linker script only if compiler isn't Apple's CC
38340 (TARGET_MODULE_FORMAT): set
38341 (TARGET_APPLE_CC): likewise
38342 (TARGET_ASFLAGS): likewise
38343 (ASFLAGS): likewise
38344 Check for objcopy only if compiler isn't Apple's CC
38345 Check for BSS symbol only if compiler isn't Apple's CC
38346 * genmk.rb: adapt nm options if we use Apple's utils
38347 * aclocal.m4 (grub_apple_cc): new test
38348 (grub_apple_target_cc): likewise
38350 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38352 Simplify sed expressions and improve awk
38354 * Makefile.in (install-local): simplify sed expression
38355 * gencmdlist.sh: likewise
38356 * genmoddep.awk: avoid adding module as a dependency of itself
38358 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38360 Add missing start symbols
38362 * boot/i386/pc/boot.S: add start
38363 * boot/i386/pc/pxeboot.S: likewise
38365 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38367 Fix wrong assumptions with grub-mkimage on EFI
38369 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38370 (relocate_addresses): consider both r_addend and value at offset
38371 (make_mods_section): zerofill modinfo and header
38372 (convert_elf): write prefix here
38374 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38376 Use .asciz instead of .string
38378 * i386/pc/diskboot.S: use .asciz instead of .string
38379 * i386/pc/boot.S: likewise
38380 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38381 (GRUB_MOD_NAME): likewise
38383 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38387 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38388 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38389 (grub_video_setup): remove
38390 (grub_video_set_mode): new prototype
38391 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38393 (linux_vesafb_res): compile only on PCBIOS
38394 (grub_linux_boot): support gfxpayload
38395 * loader/i386/pc/xnu.c (video_hook): new function
38396 (grub_xnu_set_video): support gfxpayload
38397 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38398 (DEFAULT_VIDEO_HEIGHT): likewise
38399 (DEFAULT_VIDEO_FLAGS): likewise
38400 (DEFAULT_VIDEO_MODE): new definition
38401 (video_hook): new function
38402 (grub_gfxterm_init): use grub_video_set_mode
38403 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38405 * video/video.c (grub_video_setup): removed
38406 (grub_video_set_mode): new function based on grub_gfxterm_init and
38409 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38411 Avoid calling biosdisk in drivemap
38413 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38414 (revparse_biosdisk): likewise
38415 (list_mappings): derive name from id directly
38416 (grub_cmd_drivemap): use tryparse_diskstring
38418 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38422 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38423 (grub_lexer_param): add tokenonhold
38424 (grub_script_create_cmdline): remove cmdline. All callers updated
38425 (grub_script_function_create): make functionname
38426 grub_script_arg. All callers updated
38427 (grub_script_execute_argument_to_string): new prototype
38428 * kern/parser.c (state_transitions): reorder
38429 (grub_parser_cmdline_state): fix a bug and make more compact
38430 * script/sh/execute.c (grub_script_execute_argument_to_string):
38432 (grub_script_execute_cmdline): use new format
38433 * script/sh/function.c (grub_script_function_create): make functionname
38434 grub_script_arg. All callers updated
38435 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38436 (grub_script_yylex): remove
38437 (grub_script_yylex2): renamed to ...
38438 (grub_script_yylex): ...renamed
38439 parse the expressions like a${b}c
38440 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38441 (GRUB_PARSER_TOKEN_VAR): remove
38442 (GRUB_PARSER_TOKEN_NAME): likewise
38443 ("if"): declare as typeless
38444 ("while"): likewise
38445 ("function"): likewise
38450 (argument): likewise
38451 (script): accept empty scripts and make exit on error
38452 (arguments): use GRUB_PARSER_TOKEN_ARG
38453 (function): likewise
38454 (command): move error handling to script
38455 (menuentry): move grub_script_lexer_ref before
38456 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38457 argument. All callers updated
38459 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38461 Prevent GRUB from probing floppies during boot.
38463 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38464 * commands/search.c (options): Add --no-floppy.
38465 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38466 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38467 --no-floppy when searching for UUIDs.
38469 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38471 Simplify the code duplication in commands/search.c.
38473 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38474 (search_fs): ... this. Update all users.
38476 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38478 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38480 2009-05-28 Pavel Roskin <proski@gnu.org>
38482 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38483 Remove the original symlink explicitly.
38485 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38486 just one slash. That's how grub_fshelp_find_file() does it.
38488 2009-05-26 Pavel Roskin <proski@gnu.org>
38490 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38493 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38496 2009-05-25 Christian Franke <franke@computer.org>
38498 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38500 (grub_atapi_identify): Add wait after drive select.
38501 (grub_ata_identify): Do more strict status register check before
38502 calling grub_atapi_identify (). Suppress error message if status
38503 register is 0x00 after command failure. Add status register
38504 check after PIO read to avoid bogus identify due to stuck DRQ.
38505 Thanks to Pavel Roskin for testing.
38506 (grub_device_initialize): Remove unsafe status register check.
38507 Thanks to 'phcoder' for problem report and patch.
38508 Prevent sign extension in debug message.
38510 2009-05-23 Colin D Bennett <colin@gibibit.com>
38512 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38513 definition file, and functions defined in `normal/menu.c' have had
38514 their prototypes moved to `include/grub/menu.h' for consistency.
38516 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
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.
38525 * include/grub/normal.h: Re-ordered and grouped function
38526 prototypes by file that the function is defined in.
38527 (grub_menu_execute_callback): Removed; moved to menu.h.
38528 (grub_menu_get_entry): Likewise.
38529 (grub_menu_get_timeout): Likewise.
38530 (grub_menu_set_timeout): Likewise.
38531 (grub_menu_execute_entry): Likewise.
38532 (grub_menu_execute_with_fallback): Likewise.
38533 (grub_menu_entry_run): Likewise.
38534 (grub_menu_addentry): Renamed from this ...
38535 (grub_normal_add_menu_entry): ... to this.
38537 * normal/main.c (grub_menu_addentry): Renamed from this ...
38538 (grub_normal_add_menu_entry): ... to this.
38540 * script/sh/execute.c (grub_script_execute_menuentry): Update
38541 reference to renamed grub_menu_addentry function.
38543 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38545 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38547 2009-05-22 Pavel Roskin <proski@gnu.org>
38549 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38550 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38551 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38552 compiling for the i386 targets, but not for the utilities.
38554 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38556 (grub_root_drive): Likewise.
38557 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38559 (grub_root_drive): Change size to byte.
38560 (grub_start_addr): Remove.
38561 (grub_end_addr): Likewise.
38562 (grub_apm_bios_info): Likewise.
38564 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38566 * normal/i386: Remove.
38567 * normal/powerpc: Likewise.
38568 * normal/sparc64: Likewise.
38569 * normal/x86_64: Likewise.
38571 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38573 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38574 * loader/i386/linux_trampoline.S: Fix indentation
38575 * loader/i386/xnu_helper.S: Likewise
38577 2009-05-18 Colin D Bennett <colin@gibibit.com>
38579 Display error messages when parsing a Lua statement fails.
38580 Previously, executing a syntactically invalid statement like
38581 ")foo" or "bar;" would silently fail.
38583 * script/lua/grub_main.c (handle_lua_error): New function.
38584 (grub_lua_parse_line): Improved reporting of Lua parser and
38587 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38589 Remove -Werror which causes build to fail on some systems
38591 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38592 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38593 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38595 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38597 trampoline for linux on 64-bit platform
38599 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38600 loader/i386/efi/linux_trampoline.S
38601 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38603 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38605 * loader/i386/linux_trampoline.S: moved here
38606 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38608 (jumpvector): removed
38609 (grub_linux_trampoline_start): new declaration
38610 (grub_linux_trampoline_end): likewise
38611 (grub_linux_boot): use trampoline when on 64-bit platform
38612 * loader/i386/linux.c: likewise
38614 2009-05-16 Pavel Roskin <proski@gnu.org>
38616 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38617 const to avoid a warning.
38618 (grub_lua_setenv): Likewise.
38619 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38620 lmsg to fix a warning.
38622 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38624 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38625 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38626 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38627 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38628 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38629 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38630 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38631 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38633 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38635 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38637 2009-05-16 Bean <bean123ch@gmail.com>
38639 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38640 (lua_mod_SOURCES): New variable.
38641 (lua_mod_CFLAGS): Likewise.
38642 (lua_mod_LDFLAGS): Likewise.
38644 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38645 (setjmp_mod_SOURCES): New variable.
38646 (setjmp_mod_CFLAGS): Likewise.
38647 (setjmp_LDFLAGS): Likewise.
38649 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38650 (setjmp_mod_SOURCES): New variable.
38651 (setjmp_mod_CFLAGS): Likewise.
38652 (setjmp_LDFLAGS): Likewise.
38654 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38655 (setjmp_mod_SOURCES): New variable.
38656 (setjmp_mod_CFLAGS): Likewise.
38657 (setjmp_LDFLAGS): Likewise.
38659 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38660 (setjmp_mod_SOURCES): New variable.
38661 (setjmp_mod_CFLAGS): Likewise.
38662 (setjmp_LDFLAGS): Likewise.
38664 * normal/i386/setjmp.S: Moved from here ...
38665 * lib/i386/setjmp.S: ... Moved here
38666 * normal/x86_64/setjmp.S: Moved from here ...
38667 * lib/x86_64/setjmp.S: ... Moved here
38668 * normal/powerpc/setjmp.S: Moved from here ...
38669 * lib/powerpc/setjmp.S: ... Moved here
38670 * normal/sparc64/setjmp.S: Moved from here ...
38671 * lib/sparc64/setjmp.S: ... Moved here
38673 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38674 returns_twice in mingw.
38676 * script/lua/grub_lib.c: New file.
38677 * script/lua/grub_lib.h: Likewise.
38678 * script/lua/grub_lua.h: Likewise.
38679 * script/lua/grub_main.c: Likewise.
38680 * script/lua/lapi.c: Likewise.
38681 * script/lua/lapi.h: Likewise.
38682 * script/lua/lauxlib.c: Likewise.
38683 * script/lua/lauxlib.h: Likewise.
38684 * script/lua/lbaselib.c: Likewise.
38685 * script/lua/lcode.c: Likewise.
38686 * script/lua/lcode.h: Likewise.
38687 * script/lua/ldblib.c: Likewise.
38688 * script/lua/ldebug.c: Likewise.
38689 * script/lua/ldebug.h: Likewise.
38690 * script/lua/ldo.c: Likewise.
38691 * script/lua/ldo.h: Likewise.
38692 * script/lua/ldump.c: Likewise.
38693 * script/lua/lfunc.c: Likewise.
38694 * script/lua/lfunc.h: Likewise.
38695 * script/lua/lgc.c: Likewise.
38696 * script/lua/lgc.h: Likewise.
38697 * script/lua/linit.c: Likewise.
38698 * script/lua/liolib.c: Likewise.
38699 * script/lua/llex.c: Likewise.
38700 * script/lua/llex.h: Likewise.
38701 * script/lua/llimits.h: Likewise.
38702 * script/lua/lmathlib.c: Likewise.
38703 * script/lua/lmem.c: Likewise.
38704 * script/lua/lmem.h: Likewise.
38705 * script/lua/loadlib.c: Likewise.
38706 * script/lua/lobject.c: Likewise.
38707 * script/lua/lobject.h: Likewise.
38708 * script/lua/lopcodes.c: Likewise.
38709 * script/lua/lopcodes.h: Likewise.
38710 * script/lua/loslib.c: Likewise.
38711 * script/lua/lparser.c: Likewise.
38712 * script/lua/lparser.h: Likewise.
38713 * script/lua/lstate.c: Likewise.
38714 * script/lua/lstate.h: Likewise.
38715 * script/lua/lstring.c: Likewise.
38716 * script/lua/lstring.h: Likewise.
38717 * script/lua/lstrlib.c: Likewise.
38718 * script/lua/ltable.c: Likewise.
38719 * script/lua/ltable.h: Likewise.
38720 * script/lua/ltablib.c: Likewise.
38721 * script/lua/ltm.c: Likewise.
38722 * script/lua/ltm.h: Likewise.
38723 * script/lua/lua.h: Likewise.
38724 * script/lua/luaconf.h: Likewise.
38725 * script/lua/lualib.h: Likewise.
38726 * script/lua/lundump.c: Likewise.
38727 * script/lua/lundump.h: Likewise.
38728 * script/lua/lvm.c: Likewise.
38729 * script/lua/lvm.h: Likewise.
38730 * script/lua/lzio.c: Likewise.
38731 * script/lua/lzio.h: Likewise.
38733 2009-05-16 Bean <bean123ch@gmail.com>
38735 * include/grub/kernel.h (grub_module_header_types): Add type
38738 * kern/main.c (grub_load_config): New function.
38739 (grub_main): Call grub_load_config to read boot config.
38741 * grub-mkimage (generate_image): New parameter config_path.
38742 (options): New option --config.
38743 (main): Parse --config option, and pass it to generate_image.
38745 2009-05-14 Christian Franke <franke@computer.org>
38747 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38748 This fixes build on Cygwin.
38750 2009-05-14 Pavel Roskin <proski@gnu.org>
38752 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38753 jump. This saves two bytes, so the typical case of 2 swapped
38754 drives would fit 32 bytes.
38756 2009-05-13 Pavel Roskin <proski@gnu.org>
38758 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38759 grub_uint32_t to avoid a warning.
38761 * loader/i386/linux.c (allocate_pages): When assigning
38762 real_mode_mem, cast through grub_size_t to fix a warning. The
38763 code already makes sure that the value would fit a pointer.
38764 (grub_linux_setup_video): Cast render_target->data to
38765 grub_size_t to fix a warning.
38767 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38769 * commands/i386/pc/drivemap.c: New file - implement drivemap
38771 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38772 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38774 2009-05-13 Pavel Roskin <proski@gnu.org>
38776 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38777 embedding_area_exists.
38779 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38781 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38782 it easier to understand / work with.
38783 Improve warning messages for cases where there's no embedding area,
38784 or when it is too small (or core.img too large).
38786 2009-05-13 Pavel Roskin <proski@gnu.org>
38788 * loader/i386/pc/multiboot2.c: Add necessary includes for
38789 grub_multiboot2_real_boot().
38791 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38792 PX record is always little-endian. We only need the lower 2
38795 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38796 facilitate code reuse.
38797 (grub_cpio_mount): Use "struct head", not a char buffer. This
38798 fixes a warning reported by gcc 4.4.
38800 * kernel/disk.c (grub_disk_read): Use void pointer for the
38802 (grub_disk_write): Use const void pointer for the buffer.
38803 Adjust all callers. Remove unnecessary casts.
38805 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38807 * util/i386/pc/grub-install.in: Update copyright year.
38809 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38813 * commands/gptsync.c: new file
38814 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38815 (gptsync_mod_SOURCES): new variable
38816 (gptsync_mod_CFLAGS): likewise
38817 (gptsync_mod_LDFLAGS): likewise
38818 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38820 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38821 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38822 * conf/i386-ieee1275.rmk: likewise
38823 * conf/i386-pc.rmk: likewise
38824 * conf/powerpc-ieee1275.rmk: likewise
38826 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38830 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38831 (grub_dl_ref): likewise
38833 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38835 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38836 split in two functions (one for msdos and one for gpt).
38838 2009-05-08 Pavel Roskin <proski@gnu.org>
38840 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38843 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38844 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38845 Initialize them with -1. Add sanity check for bad1. Eliminate
38848 2009-05-08 David S. Miller <davem@davemloft.net>
38850 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38852 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38854 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38857 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38859 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38860 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38862 2009-05-05 David S. Miller <davem@davemloft.net>
38864 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38866 2009-05-05 Pavel Roskin <proski@gnu.org>
38868 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38869 of grub_dl_ref() and grub_dl_unref().
38870 * commands/parttool.c: Remove preprocessor conditionals around
38871 grub_dl_ref() and grub_dl_unref().
38872 * fs/affs.c: Likewise.
38873 * fs/afs.c: Likewise.
38874 * fs/cpio.c: Likewise.
38875 * fs/ext2.c: Likewise.
38876 * fs/fat.c: Likewise.
38877 * fs/hfs.c: Likewise.
38878 * fs/hfsplus.c: Likewise.
38879 * fs/iso9660.c: Likewise.
38880 * fs/jfs.c: Likewise.
38881 * fs/minix.c: Likewise.
38882 * fs/ntfs.c: Likewise.
38883 * fs/reiserfs.c: Likewise.
38884 * fs/sfs.c: Likewise.
38885 * fs/udf.c: Likewise.
38886 * fs/ufs.c: Likewise.
38887 * fs/xfs.c: Likewise.
38888 * include/grub/dl.h: Likewise.
38889 * loader/xnu.c: Likewise.
38891 2009-05-04 Pavel Roskin <proski@gnu.org>
38893 * commands/acpi.c: Remove unused variable my_mod.
38894 * partmap/amiga.c: Likewise.
38895 * partmap/apple.c: Likewise.
38896 * partmap/gpt.c: Likewise.
38897 * partmap/pc.c: Likewise.
38898 * partmap/sun.c: Likewise.
38899 * term/gfxterm.c: Likewise.
38900 * term/i386/pc/vesafb.c: Likewise.
38901 * term/i386/pc/vga.c: Likewise.
38903 2009-05-04 David S. Miller <davem@davemloft.net>
38905 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38906 pointer args to grub_ieee1275_get_property().
38908 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38910 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38911 devices, and do not traverse down under controller nodes.
38913 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38914 (grub_ofdisk_open): Use it to un-escape "," characters.
38915 * kern/disk.c (find_part_sep): New.
38916 (grub_disk_open): Use it to find the first non-escaped ','
38917 character in the disk name.
38918 * util/ieee1275/devicemap.c (escape_of_path): New.
38919 (grub_util_emit_devicemap_entry): Use it.
38920 * util/sparc64/ieee1275/grub-install.in: Update script to
38921 strip partition specifiers properly by not triggering on
38922 '\' escaped ',' characters.
38924 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38926 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38928 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38930 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38931 on documentation from Wikipedia).
38933 2009-05-04 Pavel Roskin <proski@gnu.org>
38935 * disk/ata.c: Spelling fixes.
38936 * disk/raid.c: Likewise.
38937 * disk/usbms.c: Likewise.
38938 * disk/dmraid_nvidia.c: Likewise.
38939 * kern/ieee1275/openfw.c: Likewise.
38940 * kern/ieee1275/init.c: Likewise.
38941 * kern/ieee1275/cmain.c: Likewise.
38942 * boot/i386/pc/cdboot.S: Likewise.
38943 * video/readers/png.c: Likewise.
38944 * video/i386/pc/vbe.c: Likewise.
38945 * fs/udf.c: Likewise.
38946 * fs/hfs.c: Likewise.
38947 * fs/reiserfs.c: Likewise.
38948 * efiemu/runtime/efiemu.c: Likewise.
38949 * efiemu/main.c: Likewise.
38950 * efiemu/mm.c: Likewise.
38951 * include/grub/elf.h: Likewise.
38952 * include/grub/xnu.h: Likewise.
38953 * include/grub/usbdesc.h: Likewise.
38954 * include/grub/usb.h: Likewise.
38955 * include/grub/script_sh.h: Likewise.
38956 * include/grub/lib/LzmaEnc.h: Likewise.
38957 * include/grub/efiemu/efiemu.h: Likewise.
38958 * include/grub/command.h: Likewise.
38959 * normal/menu.c: Likewise.
38960 * normal/main.c: Likewise.
38961 * normal/datetime.c: Likewise.
38962 * bus/usb/uhci.c: Likewise.
38963 * mmap/i386/uppermem.c: Likewise.
38964 * mmap/mmap.c: Likewise.
38965 * commands/acpi.c: Likewise.
38966 * commands/test.c: Likewise.
38967 * partmap/apple.c: Likewise.
38968 * font/font.c: Likewise.
38969 * loader/sparc64/ieee1275/linux.c: Likewise.
38970 * loader/macho.c: Likewise.
38971 * loader/i386/bsd_trampoline.S: Likewise.
38972 * loader/i386/bsd.c: Likewise.
38973 * loader/xnu.c: Likewise.
38974 * term/i386/pc/vesafb.c: Likewise.
38975 * term/usb_keyboard.c: Likewise.
38976 * util/resolve.c: Likewise.
38977 * util/getroot.c: Likewise.
38979 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38981 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38983 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38985 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38988 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38990 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38991 parameter only available on BIOS.
38993 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38995 Removed wrong semicolon in declaration
38997 * grub/misc.h (grub_dprintf): remove semicolon
38999 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
39001 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
39002 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
39003 is done by grub_cmd_linux() now).
39004 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
39005 restore video to text mode.
39006 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
39007 indicates lack of "vga=" parameter. "vga=0" is mapped to
39008 `GRUB_LINUX_VID_MODE_NORMAL'.
39010 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
39012 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
39013 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
39014 and `normal/script.c'. Add `kern/rescue_reader.c',
39015 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
39016 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
39017 `grub_script.tab.c'.
39019 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39020 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39021 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39022 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
39023 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39025 * Makefile.in: Remove duplicated 2008 in Copyright line.
39027 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
39029 * util/misc.c (grub_util_warn): New function. Emits a warning
39031 * include/grub/util/misc.h (grub_util_warn): New declaration.
39033 * util/i386/pc/grub-install.in: Understand --force and pass it down
39036 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
39038 (setup): Improve error messages and add warnings when requested to
39039 install in odd layouts. Refuse to install using blocklists unless
39042 2009-05-04 martin f. krafft <madduck@madduck.net>
39044 * disk/raid.c (grub_raid_scan_device): Improve debug message.
39046 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
39048 Updated copyright year
39050 * fs/hfsplus.c: updated copyright year
39052 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
39056 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
39057 in the space previously used by unused3
39058 (grub_hfsplus_uuid): new function
39059 (grub_hfsplus_fs): added uuid field
39061 2009-05-03 Pavel Roskin <proski@gnu.org>
39063 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
39064 suppress warnings. It's no longer needed.
39065 * disk/host.c: Likewise.
39066 * disk/ata_pthru.c: Likewise.
39067 * disk/loopback.c: Likewise.
39068 * hook/datehook.c: Likewise.
39069 * parttool/pcpart.c: Likewise.
39070 * fs/i386/pc/pxe.c: Likewise.
39071 * fs/ntfscomp.c: Likewise.
39072 * efiemu/main.c: Likewise.
39073 * mmap/mmap.c: Likewise.
39074 * commands/crc.c: Likewise.
39075 * commands/hexdump.c: Likewise.
39076 * commands/hdparm.c: Likewise.
39077 * commands/acpi.c: Likewise.
39078 * commands/echo.c: Likewise.
39079 * commands/minicmd.c: Likewise.
39080 * commands/blocklist.c: Likewise.
39081 * commands/memrw.c: Likewise.
39082 * commands/loadenv.c: Likewise.
39083 * commands/usbtest.c: Likewise.
39084 * commands/lsmmap.c: Likewise.
39085 * commands/boot.c: Likewise.
39086 * commands/parttool.c: Likewise.
39087 * commands/configfile.c: Likewise.
39088 * commands/search.c: Likewise.
39089 * commands/ieee1275/suspend.c: Likewise.
39090 * commands/cat.c: Likewise.
39091 * commands/i386/pc/pxecmd.c: Likewise.
39092 * commands/i386/pc/play.c: Likewise.
39093 * commands/i386/pc/halt.c: Likewise.
39094 * commands/i386/pc/vbeinfo.c: Likewise.
39095 * commands/i386/pc/vbetest.c: Likewise.
39096 * commands/lspci.c: Likewise.
39097 * commands/date.c: Likewise.
39098 * commands/handler.c: Likewise.
39099 * commands/ls.c: Likewise.
39100 * commands/test.c: Likewise.
39101 * commands/cmp.c: Likewise.
39102 * commands/efi/loadbios.c: Likewise.
39103 * commands/efi/fixvideo.c: Likewise.
39104 * commands/halt.c: Likewise.
39105 * commands/help.c: Likewise.
39106 * commands/reboot.c: Likewise.
39107 * hello/hello.c: Likewise.
39108 * script/sh/main.c: Likewise.
39109 * loader/xnu.c: Likewise.
39110 * term/terminfo.c: Likewise.
39111 * term/i386/pc/serial.c: Likewise.
39112 * term/usb_keyboard.c: Likewise.
39114 2009-05-03 David S. Miller <davem@davemloft.net>
39116 * normal/menu.c: Include grub/parser.h
39118 2009-05-03 Pavel Roskin <proski@gnu.org>
39120 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
39122 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
39123 Suggested by Javier Martín <lordhabbit@gmail.com>
39125 * util/i386/pc/grub-mkrescue.in: Allow for the case when
39126 efiemu??.o doesn't exist.
39127 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
39130 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
39132 FreeBSD 64-bit support
39134 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
39135 and loader/i386/bsd_trampoline.S
39136 (bsd_mod_ASFLAGS): new variable
39137 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
39138 (FREEBSD_MODTYPE_KERNEL64): likewise
39139 (grub_bsd64_trampoline_start): likewise
39140 (grub_bsd64_trampoline_end): likewise
39141 (grub_bsd64_trampoline_selfjump): likewise
39142 (grub_bsd64_trampoline_gdt): likewise
39143 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
39144 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
39145 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
39146 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
39147 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39149 * loader/i386/bsd_pagetable.c: new file
39150 * loader/i386/bsd_trampoline.S: likewise
39151 * loader/i386/bsd.c (ALIGN_QWORD): new macro
39152 (ALIGN_VAR): likewise
39153 (entry_hi): new variable
39154 (kern_end_mdofs): likewise
39155 (is_64bit): likewise
39156 (grub_freebsd_add_meta): use ALIGN_VAR
39157 (grub_e820_mmap): new declaration
39158 (grub_freebsd_add_mmap): new function
39159 (grub_freebsd_add_meta_module): support 64 bit kernels
39160 (grub_freebsd_list_modules): use ALIGN_VAR
39161 (gdt_descriptor): new declaration
39162 (grub_freebsd_boot): support 64 bit kernels
39163 (grub_bsd_elf64_hook): new function
39164 (grub_bsd_load_elf): support elf64
39166 2009-05-03 Bean <bean123ch@gmail.com>
39168 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
39169 after we get the result of if statement.
39171 2009-05-03 Bean <bean123ch@gmail.com>
39173 * Makefile.in (enable_efiemu): New variable.
39175 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
39177 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
39179 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
39180 path, add -mno-red-zone option.
39181 (efiemu64_s.o): Likewise.
39182 (efiemu64.o): Use macro $^ for source file.
39184 * configure.ac (--enable-efiemu): New option.
39186 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
39190 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
39191 (pkglib_MODULES): add xnu.mod
39192 (xnu_mod_SOURCES): new variable
39193 (xnu_mod_CFLAGS): likewise
39194 (xnu_mod_LDFLAGS): likewise
39195 (xnu_mod_ASFLAGS): likewise
39196 * conf/i386-pc.rmk: likewise
39197 * conf/x86_64-efi.rmk: likewise
39198 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
39200 * include/grub/i386/macho.h: new file
39201 * include/grub/i386/xnu.h: likewise
39202 * include/grub/macho.h: likewise
39203 * include/grub/machoload.h: likewise
39204 * include/grub/x86_64/macho.h: likewise
39205 * include/grub/x86_64/xnu.h: likewise
39206 * include/grub/xnu.h: likewise
39207 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39208 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39209 * loader/i386/efi/xnu.c: new file
39210 * loader/i386/pc/xnu.c: likewise
39211 * loader/i386/xnu.c: likewise
39212 * loader/i386/xnu_helper.S: likewise
39213 * loader/macho.c: likewise
39214 * loader/xnu.c: likewise
39215 * loader/xnu_resume.c: likewise
39216 * util/grub-dumpdevtree: likewise
39217 * include/grub/i386/pit.h: include grub/err.h
39218 (grub_pit_wait): export
39219 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
39221 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39225 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39226 _linux_efi, linux_efi.
39227 new files in grub-emu
39228 new targets efiemu32.o and efiemu64.o
39229 * loader/linux_normal_efiemu.c: likewise
39230 * loader/i386/efi/linux.c: added preliminary efiemu support
39231 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39233 * include/grub/autoefi.h: new file
39234 * include/grub/i386/efiemu.h: likewise
39235 * include/grub/i386/pc/efiemu.h: likewise
39236 * include/grub/efi/api.h: add LL suffix when necessary
39237 new definitions relating to tables
39238 * include/grub/efiemu/efiemu.h: new file
39239 * include/grub/efiemu/runtime.h: likewise
39240 * efiemu/prepare.c: likewise
39241 * efiemu/loadcore_common.c: likewise
39242 * efiemu/loadcore64.c: likewise
39243 * efiemu/runtime/efiemu.sh: likewise
39244 * efiemu/runtime/efiemu.S: likewise
39245 * efiemu/runtime/efiemu.c: likewise
39246 * efiemu/runtime/config.h: likewise
39247 * efiemu/prepare32.c: likewise
39248 * efiemu/main.c: likewise
39249 * efiemu/modules/pnvram.c: likewise
39250 * efiemu/modules/i386: likewise
39251 * efiemu/modules/i386/pc: likewise
39252 * efiemu/modules/acpi.c: likewise
39253 * efiemu/i386/pc/cfgtables.c: likewise
39254 * efiemu/i386/loadcore64.c: likewise
39255 * efiemu/i386/loadcore32.c: likewise
39256 * efiemu/prepare64.c: likewise
39257 * efiemu/loadcore.c: likewise
39258 * efiemu/symbols.c: likewise
39259 * efiemu/mm.c: likewise
39260 * efiemu/loadcore32.c: likewise
39262 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39266 * commands/acpi.c: new file
39267 * commands/i386/pc/acpi.c: likewise
39268 * commands/efi/acpi.c: likewise
39269 * include/grub/acpi.h: likewise
39270 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39271 (acpi_mod_SOURCES): new variable
39272 (acpi_mod_CFLAGS): likewise
39273 (acpi_mod_LDFLAGS): likewise
39274 * conf/i386-efi.rmk: likewise
39275 * conf/x86_64-efi.rmk: likewise
39277 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39279 Missing part from mmap patch
39281 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39282 (grub_mmap_unregister)
39283 (grub_mmap_free_and_unregister): use grub_mmap_register
39285 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39289 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39290 * loader/i386/linux.c (find_mmap_size): likewise
39291 (allocate_pages): likewise
39292 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39293 (grub_fill_multiboot_mmap): likewise
39294 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39295 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39296 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39297 (OPENBSD_MMAP_RESERVED): likewise
39298 * include/grub/i386/pc/memory.h: include grub/memory.h
39299 (grub_lower_mem): removed
39300 (grub_upper_mem): likewise
39301 (GRUB_MACHINE_MEMORY_ACPI): new definition
39302 (GRUB_MACHINE_MEMORY_NVS): likewise
39303 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39304 (GRUB_MACHINE_MEMORY_HOLE): likewise
39305 (grub_machine_mmap_register): likewise
39306 (grub_machine_mmap_unregister): likewise
39307 (grub_machine_get_upper): likewise
39308 (grub_machine_get_lower): likewise
39309 (grub_machine_get_post64): likewise
39310 * include/grub/i386/efi/memory.h: new file
39311 * include/grub/x86_64/efi/memory.h: likewise
39312 * include/grub/efi/memory.h: likewise
39313 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39314 (mmap_mod_SOURCES): new variable
39315 (mmap_mod_LDFLAGS): likewise
39316 (mmap_mod_ASFLAGS): likewise
39317 * conf/i386-coreboot.rmk: likewise
39318 * conf/i386-ieee1275.rmk: likewise
39319 * conf/i386-efi.rmk: likewise
39320 * conf/x86_64-efi.rmk: likewise
39321 * include/grub/types.h (UINT_TO_PTR): new macro
39322 (PTR_TO_UINT32): likewise
39323 (PTR_TO_UINT64): likewise
39324 * include/grub/memory.h: new file
39325 * mmap/i386/pc/mmap.c: likewise
39326 * mmap/i386/pc/mmap_helper.S: likewise
39327 * mmap/i386/uppermem.c: likewise
39328 * mmap/mmap.c: likewise
39329 * mmap/efi/mmap.c: likewise
39330 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39332 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39333 (grub_upper_mem): likewise
39334 (grub_machine_init): don't use grub_upper_mem,
39335 make grub_lower_mem local
39336 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39337 grub_mmap_iterate and grub_mmap_get_upper
39338 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39340 2009-05-02 Bean <bean123ch@gmail.com>
39342 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39343 script/sh/parser.y.
39344 (pkglib_MODULES): Add normal.mod and sh.mod.
39345 (normal_SOURCES): New variable.
39346 (normal_mod_CFLAGS): Likewise.
39347 (normal_mod_LDFLAGS): Likewise.
39348 (sh_mod_SOURCES): Likewise.
39349 (sh_mod_CFLAGS): Likewise.
39350 (sh_mod_LDFLAGS): Likewise.
39352 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39353 script/sh/lexer.c_DEPENDENCIES.
39354 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39355 kern/rescue_reader.c and kern/rescue_parser.c.
39356 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39357 (grub_emu_SOURCES): Change source files.
39358 (pkglib_MODULES): Remove normal.mod.
39359 (normal_SOURCES): Removed.
39360 (normal_mod_CFLAGS): Likewise.
39361 (normal_mod_LDFLAGS): Likewise.
39362 * conf/i386-coreboot.rmk: Likewise.
39363 * conf/i386-efi.rmk: Likewise.
39364 * conf/i386-ieee1276.rmk: Likewise.
39365 * conf/powerpc-ieee1275.rmk: Likewise.
39366 * conf/sparc64-ieee1275.rmk: Likewise.
39367 * conf/x86_64-efi.rmk: Likewise.
39369 * include/grub/command.h (grub_command_execute): New inline function.
39371 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39373 * include/grub/normal.h: Remove <grub/setjmp.h>.
39374 (grub_fs_module_list): Moved to normal/autofs.c.
39375 (grub_exit_env): Removed.
39376 (grub_command_execute): Likewise.
39377 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39379 (read_command_list): New function declaration.
39380 (read_fs_list): Likewise.
39382 * include/parser.h: Include <grub/reader.h>.
39383 (grub_parser_split_cmdline): Change type of getline parameter.
39384 (grub_parser): New structure.
39385 (grub_parser_class): New variable.
39386 (grub_parser_execute): New function declaration.
39387 (grub_register_rescue_parser): Likewise.
39388 (grub_parser_register): New inline function.
39389 (grub_parser_unregister): Likewise.
39390 (grub_parser_get_current): Likewise.
39391 (grub_parser_set_current): Likewise.
39393 * include/grub/reader.h: New file.
39394 * kern/reader.c: Likewise.
39395 * kern/rescue_parser.c: Likewise.
39396 * kern/rescue_reader.c: Likewise.
39397 * normal/autofs.c: Likewise.
39398 * normal/dyncmd.c: Likewise.
39400 * include/grub/rescue.h: Removed.
39401 * normal/command.h: Likewise.
39403 * include/grub/script.h: Moved to ...
39404 * include/grub/script_sh.h: ... Moved here.
39405 * normal/execute.c: Moved to ...
39406 * script/sh/execute.c: ... Moved here.
39407 * normal/function.c: Moved to ...
39408 * script/sh/function.c: ... Moved here.
39409 * normal/lexer.c: Moved to ...
39410 * script/sh/lexer.c: ... Moved here.
39411 * normal/parser.y: Moved to ...
39412 * script/sh/parser.y: ... Moved here.
39413 * normal/script.c: Moved to ...
39414 * script/sh/script.c: ... Moved here.
39416 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39418 (grub_exit_env): Removed.
39419 (fs_module_list): Moved to normal/autofs.c.
39420 (grub_file_getline): Don't handle comment here.
39421 (free_menu): Skip removed field entry->commands.
39422 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39424 (read_config_file): Removed nested parameter, change getline function.
39425 (grub_enter_normal_mode): Removed.
39426 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39427 (read_command_list): Likewise.
39428 (autoload_fs_module): Moved to normal/autofs.c.
39429 (read_fs_list): Likewise.
39430 (reader_nested): New variable.
39431 (grub_normal_execute): Run parser.sh to switch to sh parser.
39432 (grub_cmd_rescue): Removed.
39433 (cmd_normal): Removed.
39434 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39436 (grub_cmdline_run): New function.
39437 (grub_normal_reader_init): Likewise.
39438 (grub_normal_read_line): Likewise.
39439 (grub_env_write_pager): Likewise.
39440 (cmdline): New variable.
39441 (grub_normal_reader): Likewise.
39442 (GRUB_MOD_INIT): Register normal reader and set as current, register
39443 pager hook, register normal command with grub_register_command_prio,
39444 so that it won't show up in command.lst.
39445 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39446 grub_fs_autoload_hook.
39448 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39449 (grub_menu_execute_entry): Replace grub_script_execute with
39450 grub_parser_execute, change parameter to grub_command_execute.
39452 * normal/menu_text.c: Remove <grub/script.h>.
39454 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39455 and <grub/parser.h>.
39456 (run): Change editor_getline to use new parser interface. Change
39457 parameter to grub_command_execute.
39459 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39460 <grub/reader.h> and <grub/parser.h>.
39461 (grub_load_normal_mode): Execute normal command.
39462 (grub_main): Call grub_register_core_commands,
39463 grub_register_rescue_parser and grub_register_rescue_reader, use
39464 grub_reader_loop to enter input loop.
39466 * kern/parser.c (grub_parser_split_cmdline): Change type of
39468 (grub_parser_class): New variable.
39469 (grub_parser_execute): New function.
39471 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39472 * loader/multiboot2.c: Likewise.
39473 * loader/sparc64/ieee1275/linux.c: Likewise.
39475 * util/grub-emu.c (read_command_list): New dummy function.
39477 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39479 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39480 count to 16 for CCISS and IDA.
39482 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39484 * normal/menu_text.c (grub_wait_after_message): Print a newline
39485 after waiting for user input.
39487 * loader/i386/linux.c: Include `<grub/normal.h>'.
39488 (grub_cmd_linux): Improve the error message about `ask' mode, by
39489 waiting for user input so it's not missed (we can do this, since
39490 user requested interaction).
39492 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39494 Added missing lst to grub-mkrescue
39496 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39497 and ${input_dir}/parttool.lst
39499 2009-04-30 David S. Miller <davem@davemloft.net>
39501 * util/hostdisk.c (device_is_wholedisk): New function.
39502 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39503 zero only if device_is_wholedisk() returns true.
39505 * util/hostdisk.c (convert_system_partition_to_system_disk):
39506 Handle virtual disk devices named /dev/vdiskX as found on sparc
39509 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39510 lettered partition specifier is found, convert to numbered.
39512 2009-04-29 David S. Miller <davem@davemloft.net>
39514 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39515 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39517 * normal/command.c: Add missing newline at end of file.
39519 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39521 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39522 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39523 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39524 ihandles have a 32-bit type but need to be stored in a "void *".
39526 2009-04-28 Pavel Roskin <proski@gnu.org>
39528 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39529 not disk. Adjust all dependencies.
39530 (grub_fs_uuid_close): Use grub_device_close(), not
39533 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39534 parent's partition, don't copy it by reference, as it gets freed
39537 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39539 Preboot hooks support
39541 * commands/boot.c (struct grub_preboot_t): new declaration
39542 (preboots_head): new variable
39543 (preboots_tail): likewise
39544 (grub_loader_register_preboot_hook): new function
39545 (grub_loader_unregister_preboot_hook): likewise
39546 (grub_loader_set): launch preboot hooks
39547 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39548 (grub_loader_register_preboot_hook): new declaration
39549 (grub_loader_unregister_preboot_hook): likewise
39551 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39555 * disk/scsi.c (grub_scsi_open): added missing cast when
39556 calling grub_dprintf
39558 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39560 Bug and warning fixes
39562 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39564 * commands/test.c (test_parse): fixed bug with file tests and corrected
39565 declaration of find_file
39567 2009-04-26 Pavel Roskin <proski@gnu.org>
39569 * Makefile.in: Don't install empty manual pages if help2man is
39570 missing. Use help2man option for output, not shell redirection.
39572 2009-04-26 David S. Miller <davem@davemloft.net>
39574 * util/grub-mkdevicemap.c (make_device_map): Add missing
39575 NESTED_FUNC_ATTR to process_device().
39577 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39581 * commands/test.c: rewritten to use bash-like test
39583 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39585 Parttool autoloading and improvements
39587 * Makefile.in (pkglib_DATA): add parttool.lst
39588 (parttool.lst): new target
39589 * genmk.rb: generate parttool-*
39590 (CLEANFILES): add #{parttool}
39591 (PARTTOOLFILES): new variable
39592 * genparttoollist.sh: new file
39593 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39594 (grub_pcpart_type): likewise
39595 * commands/parttool.c (helpmsg): new variable
39596 (grub_cmd_parttool): output help if not enough arguments are supplied
39598 (GRUB_MOD_INIT(parttool)): use helpmsg
39600 2009-04-24 David S. Miller <davem@davemloft.net>
39602 Avoiding opening same device multiple times in device iterator.
39604 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39605 and use it to build a list of partitions in iterate_disk() and
39606 iterate_partition().
39608 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39611 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39612 grub_devalias_iterate() result instead of unconditional 0.
39613 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39614 Also, capture hook return value, either directly or via
39615 grub_children_iterate(), and propagate to caller.
39616 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39617 grub_children_iterate): Return value is now 'int' instead of
39619 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39620 like a proper iterator, stopping when hooks return non-zero.
39621 (grub_devalias_iterate): Likewise.
39623 2009-04-23 David S. Miller <davem@davemloft.net>
39625 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39627 2009-04-22 David S. Miller <davem@davemloft.net>
39629 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39630 is larger than address_cells, use that value for address_cells too.
39632 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39633 IEEE1275_MAX_PATH_LEN): Define.
39634 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39635 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39636 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39637 'devtype'. Explicitly NULL terminate devalias expansion.
39639 * util/sparc64/ieee1275/misc.c: New file.
39640 * util/sparc64/ieee1275/grub-setup.c: New file.
39641 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39642 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39643 * util/sparc64/ieee1275/grub-install.in: New file.
39644 * util/ieee1275/ofpath.c: New file.
39645 * util/ieee1275/devicemap.c: New file.
39646 * util/devicemap.c: New file.
39647 * util/deviceiter.c: New file.
39648 * kern/sparc64/ieee1275/init.c: New file.
39649 * include/grub/util/ofpath.h: New file.
39650 * include/grub/util/deviceiter.h: New file.
39651 * util/grub-mkdevicemap.c: Include deviceiter.h.
39652 Implement using grub_util_emit_devicemap_entry and
39653 grub_util_iterate_devices.
39654 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39655 util/devicemap.c into grub-mkdevicemap
39656 * conf/i386-efi.rmk: Likewise.
39657 * conf/i386-ieee1275.rmk: Likewise.
39658 * conf/i386-pc.rmk: Likewise.
39659 * conf/powerpc-ieee1275.rmk: Likewise.
39660 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39661 images and installation utilities. Build kernel as image
39662 instead of as elf binary. Use common rules as much as possible.
39664 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39666 Correct GPT definition
39668 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39671 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39673 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39675 2009-04-19 David S. Miller <davem@davemloft.net>
39677 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39678 (grub_rescue_cmd_linux): Rename to...
39679 (grub_cmd_linux): and fix prototype.
39680 (grub_rescue_cmd_initrd): Rename to...
39681 (grub_cmd_initrd): and fix prototype.
39682 (cmd_linux, cmd_initrd): New.
39683 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39684 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39686 2009-04-17 Pavel Roskin <proski@gnu.org>
39688 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39690 (grub_ohci_transfer): Likewise.
39692 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39694 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39695 return without a value. Fix inconsistent indentation.
39697 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39698 match struct grub_fs.
39700 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39701 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39702 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39703 * commands/lspci.c (grub_lspci_iter): Likewise.
39705 2009-04-16 Bean <bean123ch@gmail.com>
39707 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39710 2009-04-15 Pavel Roskin <proski@gnu.org>
39712 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39713 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39714 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39717 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39719 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39720 that no multiple data or metadata areas are supported and `Unknown
39723 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39725 Move loader out of the kernel
39727 * kern/loader.c: moved to ...
39728 * commands/boot.c: ... moved here
39729 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39730 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39731 * include/grub/kernel.h (grub_machine_fini): export
39732 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39733 (grub_loader_set): likewise
39734 (grub_loader_unset): likewise
39735 (grub_loader_boot): likewise
39736 * conf/common.rmk: new module boot.mod
39737 (pkglib_MODULES): add boot.mod
39738 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39739 (grub_emu_SOURCES): likewise
39740 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39741 (grub_emu_SOURCES): likewise
39742 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39743 (grub_emu_SOURCES): likewise
39744 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39745 (grub_emu_SOURCES): likewise
39746 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39747 (grub_emu_SOURCES): likewise
39748 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39749 (grub_emu_SOURCES): likewise
39750 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39751 (grub_emu_SOURCES): likewise
39753 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39755 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39757 * kern/misc.c (grub_itoa): Removed function
39758 (grub_ltoa): likewise
39759 (grub_vsprintf): use grub_lltoa
39761 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39765 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39766 * conf/i386-coreboot.rmk: likewise
39767 * conf/i386-ieee1275.rmk: likewise
39768 * conf/powerpc-ieee1275.rmk: likewise
39770 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39772 * INSTALL: Add that `./autogen.sh' needs to be run before
39775 2009-04-14 Bean <bean123ch@gmail.com>
39777 * Makefile.in (pkglib_DATA): Add handler.lst.
39778 (handler.lst): New rule.
39780 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39781 * conf/i386-coreboot.rmk: Likewise.
39782 * conf/i386-ieee1275.rmk: Likewise.
39783 * conf/i386-efi.rmk: Likewise.
39784 * conf/x86_64-efi.rmk: Likewise.
39785 * conf/powerpc-ieee1275.rmk: Likewise.
39786 * conf/sparc64-ieee1275.rmk: Likewise.
39788 * genhandlerlist.sh: New file.
39790 * genmk.rb: Add rules to generate handler.lst.
39792 * include/grub/normal.h (grub_file_getline): New function definition.
39793 (read_handler_list): Likewise.
39794 (free_handler_list): Likewise.
39796 * include/grub/term.h (grub_term_register_input): Add name parameter
39797 for auto generation of handler.lst.
39798 (grub_term_register_output): Likewise.
39800 * normal/handler.c: New file.
39802 * normal/main.c (get_line): Renamed to grub_file_getline.
39803 (read_config_file): Use the newly renamed grub_file_getline.
39804 (read_command_list): Likewise.
39805 (read_fs_list): Likewise.
39806 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39807 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39809 * term/efi/console.c (grub_console_init): Add name parameter for auto
39810 generation of handler.lst.
39811 * term/gfxterm.c: Likewise.
39812 * term/i386/pc/at_keyboard.c: Likewise.
39813 * term/i386/pc/console.c: Likewise.
39814 * term/i386/pc/serial.c: Likewise.
39815 * term/i386/pc/vesafb.c: Likewise.
39816 * term/i386/pc/vga.c: Likewise.
39817 * term/i386/pc/vga_text.c: Likewise.
39818 * term/ieee1275/ofconsole.c: Likewise.
39819 * term/usb_keyboard.c: Likewise.
39821 2009-04-14 Bean <bean123ch@gmail.com>
39823 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39824 properly with null character.
39826 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39828 * configure: Remove.
39829 * config.h.in: Likewise.
39830 * stamp-h.in: Likewise.
39831 * DISTLIST: Likewise.
39832 * conf/common.mk: Likewise.
39833 * conf/i386-coreboot.mk: Likewise.
39834 * conf/i386-efi.mk: Likewise.
39835 * conf/i386-ieee1275.mk: Likewise.
39836 * conf/i386.mk: Likewise.
39837 * conf/i386-pc.mk: Likewise.
39838 * conf/powerpc-ieee1275.mk: Likewise.
39839 * conf/sparc64-ieee1275.mk: Likewise.
39840 * conf/x86_64-efi.mk: Likewise.
39842 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39845 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39846 David S. Miller <davem@davemloft.net>
39848 * util/hostdisk.c (make_device_name): Fix buffer length
39851 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39853 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39854 <sys/param.h> and <sys/sysctl.h>.
39855 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39856 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39857 opening the device and reset them afterwards.
39859 2009-04-13 Pavel Roskin <proski@gnu.org>
39861 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39862 Reported by John Stanley <jpsinthemix@verizon.net>
39864 2009-04-13 Robert Millan <rmh@aybabtu.com>
39866 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39867 that name for menuentries when appropriate.
39869 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39871 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39873 2009-04-13 Robert Millan <rmh@aybabtu.com>
39875 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39876 to Linux, simply abort telling the user it's no longer supported.
39878 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39880 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39881 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39882 `freebsd_loadenv' only when devices.hints exist.
39884 2009-04-13 Pavel Roskin <proski@gnu.org>
39886 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39888 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39890 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39892 (grub_drive): Likewise.
39894 2009-04-13 David S. Miller <davem@davemloft.net>
39896 * kern/sparc64/ieee1275/ieee1275.c: New file.
39897 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39898 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39899 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39900 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39901 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39902 grub_ieee1275_alloc_physmem): Declare new exported functions.
39904 * include/grub/sparc64/ieee1275/loader.h: New file.
39905 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39906 * include/grub/sparc64/kernel.h: Likewise.
39907 * loader/sparc64/ieee1275/linux.c: Likewise.
39909 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39910 (grub_fstest_SOURCES): Likewise.
39912 * util/hostdisk.c (make_device_name): Do not make any assumptions
39913 about the length of drive names.
39915 * kern/dl.c (grub_dl_load_file): Close file immediately when
39916 we are done using it.
39918 2009-04-12 David S. Miller <davem@davemloft.net>
39920 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39921 values. Noticed by Pavel Roskin.
39923 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39926 * genmk.rb: Add more flexible image type specification, also
39927 pass --strip-unneeded to objcopy.
39928 * conf/i386-pc.rmk: Use *_FORMAT.
39929 * conf/i386-pc.mk: Rebuilt.
39931 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39932 (OFDISK_HASH_SZ): Define.
39933 (ofdisk_hash): New hash table.
39934 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39935 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39936 instead of device phandle which is not unique.
39938 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39939 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39940 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39941 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39942 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39943 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39944 GRUB_KERNEL_MACHINE_DATA_END): Define.
39945 (grub_kernel_image_size, grub_total_module_size): Declare.
39947 2009-04-12 Pavel Roskin <proski@gnu.org>
39949 * configure.ac: Change the logic when we check for target tools.
39950 Do it when the target is specified and it's different from the
39951 specified value of the host.
39953 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39955 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39956 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39957 GNU/kFreeBSD. Check if a device is a character device. Use
39958 DIOCGMEDIASIZE to get the size.
39959 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39960 support for GNU/kFreeBSD.
39961 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39962 is a character device instead of a block device. Add support for
39963 FreeBSD device names.
39965 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39966 is a character device instead of a block device.
39968 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39969 is a character device instead of a block device.
39971 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39973 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39974 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39975 FreeBSD. Check if a device is a character device. Use
39976 DIOCGMEDIASIZE to get the size.
39977 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39978 support for FreeBSD.
39979 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39980 is a character device instead of a block device. Add support for
39981 FreeBSD device names.
39983 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39984 a character device instead of a block device.
39985 (grub_util_check_char_device): New function.
39987 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39988 a character device instead of a block device.
39990 * include/grub/util/getroot.h (grub_util_check_char_device): New
39993 2009-04-11 David S. Miller <davem@davemloft.net>
39995 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39997 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39998 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39999 function, if present.
40000 (__bswapdi2): Likewise.
40002 * include/grub/sparc64/ieee1275/boot.h: New file.
40003 * boot/sparc64/ieee1275/boot.S: Likewise.
40004 * boot/sparc64/ieee1275/diskboot.S: Likewise.
40006 * kern/misc.c (grub_ltoa): New function.
40007 (grub_vsprintf): Use it to format 'long' integers.
40009 2009-04-10 David S. Miller <davem@davemloft.net>
40011 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
40012 slots are of type grub_ieee1275_cell_t.
40013 (grub_nand_read): Likewise.
40014 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
40015 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
40016 macros are used to compare values in arg/ret block of the call.
40017 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
40018 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
40019 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
40020 grub_ieee1275_instance_to_path, grub_ieee1275_write,
40021 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
40022 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
40023 grub_ieee1275_close, grub_ieee1275_set_property,
40024 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
40025 grub_ieee1275_cell_t.
40026 * kern/ieee1275/openfw.c (grub_map): Likewise.
40027 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
40028 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
40030 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
40031 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
40032 (grub_devalias_iterate): Likewise.
40034 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
40038 * fs/ufs.c (INODE_NBLOCKS): new definition
40039 (struct grub_ufs_dirent): added fields for non-BSD dirents
40040 (grub_ufs_get_file_block): fixed double indirect handling
40041 (grub_ufs_lookup_symlink): use more robust way to determine whether
40043 (grub_ufs_find_file): support for non-BSD dirents
40044 (grub_ufs_dir): support for non-BSD dirents
40046 2009-04-10 Bean <bean123ch@gnail.com>
40048 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
40049 attribute, otherwise the size would be wrong for i386 platform.
40051 * include/grub/pci.h (grub_pci_read_word): New inline function.
40052 (grub_pci_read_byte): Likewise.
40053 (grub_pci_write): Likewise.
40054 (grub_pci_write_word): Likewise.
40055 (grub_pci_write_byte): Likewise.
40057 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
40059 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
40060 (find_framebuf): Scan pci to locate the frame buffer address.
40062 * commands/efi/fixvideo.c: New file.
40064 * commands/efi/loadbios.c: Likewise.
40066 * commands/memrw.c: Likewise.
40068 * util/grub-dumpbios.in: Likewise.
40070 * conf/common.rmk (grub-dumpbios): New utility.
40071 (pkglib_MODULES): New module memrw.mod.
40072 (memrw_mod_SOURCE): New macro.
40073 (memrw_mod_CFLAGS): Likewise.
40074 (memrw_mod_LDFLAGS): Likewise.
40076 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
40078 (loadbios_mod_SOURCE): New macro.
40079 (loadbios_mod_CFLAGS): Likewise.
40080 (loadbios_mod_LDFLAGS): Likewise.
40081 (fixvideo_mod_SOURCE): Likewise.
40082 (fixvideo_mod_CFLAGS): Likewise.
40083 (fixvideo_mod_LDFLAGS): Likewise.
40085 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
40087 (loadbios_mod_SOURCE): New macro.
40088 (loadbios_mod_CFLAGS): Likewise.
40089 (loadbios_mod_LDFLAGS): Likewise.
40090 (fixvideo_mod_SOURCE): Likewise.
40091 (fixvideo_mod_CFLAGS): Likewise.
40092 (fixvideo_mod_LDFLAGS): Likewise.
40094 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
40096 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
40098 2009-04-07 David S. Miller <davem@davemloft.net>
40100 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
40101 support for R_SPARC_OLO10 relocations. Fix compile warning for
40102 R_SPARC_WDISP30 case.
40103 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
40105 2009-04-06 Pavel Roskin <proski@gnu.org>
40107 * include/grub/misc.h (ARRAY_SIZE): New macro.
40108 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
40110 * loader/i386/linux.c (allocate_pages): Use free_pages().
40111 (grub_linux_unload): Don't use free_pages().
40112 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
40113 wrong index. Treat all other modes as text modes.
40114 (grub_cmd_linux): Initialize vid_mode unconditionally to
40115 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
40117 * commands/help.c (print_command_help): Use cmd->prio, not
40118 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
40120 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
40124 * parttool/pcpart.c: new file
40125 * commands/parttool.c: likewise
40126 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
40127 (parttool_mod_SOURCES): new variable
40128 (parttool_mod_CFLAGS): likewise
40129 (parttool_mod_LDFLAGS): likewise
40130 (pcpart_mod_SOURCES): likewise
40131 (pcpart_mod_CFLAGS): likewise
40132 (pcpart_mod_LDFLAGS): likewise
40133 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
40134 and parttool/pcpart.c
40135 * conf/i386-efi.rmk: likewise
40136 * conf/i386-ieee1275.rmk: likewise
40137 * conf/i386-pc.rmk: likewise
40138 * conf/powerpc-ieee1275.rmk: likewise
40139 * conf/sparc64-ieee1275.rmk: likewise
40140 * conf/x86_64-ieee1275.rmk: likewise
40142 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40144 Support for mtime and further expandability of dir command
40146 * include/grub/lib/datetime.h: moved to ...
40147 * include/grub/datetime.h: ... moved here and added
40148 declaration of grub_unixtime2datetime. All users updated
40149 * include/grub/fs.h: new syntax for dir and mtime functions in
40151 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
40152 and GRUB_FSHELP_FLAGS_MASK
40153 * commands/ls.c (grub_ls_list_files): Write mtime in long format
40154 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
40155 (grub_ext2_mtime): new function
40156 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
40157 (grub_hfsplus_mtime): new function
40158 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
40159 (GRUB_UFS_ATTR_FILE): likewise
40160 (GRUB_UFS_ATTR_LNK): likewise
40161 (struct grub_ufs_sblock): new fields mtime
40162 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
40164 (grub_ufs_dir): mtime support
40165 (grub_ufs_mtime): new function
40166 * fs/affs.c (grub_affs_dir): use new dir syntax
40167 * fs/afs.c (grub_afs_dir): likewise
40168 * fs/cpio.c (grub_cpio_dir): likewise
40169 * fs/fat.c (grub_fat_find_dir): likewise
40170 * fs/hfs.c (grub_hfs_dir): likewise
40171 * fs/iso9660.c (grub_iso9660_dir): likewise
40172 * fs/jfs.c (grub_jfs_dir): likewise
40173 * fs/minix.c (grub_minix_dir): likewise
40174 * fs/ntfs.c (grub_ntfs_dir): likewise
40175 * fs/reiserfs.c (grub_reiserfs_dir): likewise
40176 * fs/sfs.c (grub_sfs_dir): likewise
40177 * fs/xfs.c (grub_xfs_dir): likewise
40178 * util/hostfs.c (grub_hostfs_dir): likewise
40179 * lib/datetime.c: moved to ...
40180 * normal/datetime.c: ... moved here
40181 (grub_unixtime2datetime): new function
40182 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
40183 * normal/completion.c (iterate_dir): use new dir syntax
40184 * normal/misc.c (grub_normal_print_device_info): tell the
40185 last modification time of a volume
40186 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
40187 * conf/common.rmk: added lib/datetime.c to ls.mod
40188 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
40189 (normal_mod_SOURCES): likewise
40190 (datetime_mod_SOURCES): Removed lib/datetime.c
40191 * conf/i386-efi.rmk: likewise
40192 * conf/i386-ieee1275.rmk: likewise
40193 * conf/i386-pc.rmk: likewise
40194 * conf/powerpc-ieee1275.rmk: likewise
40195 * conf/sparc64-ieee1275.rmk: likewise
40196 * conf/x86_64-efi.rmk: likewise
40198 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40200 Trim trailing spaces in FAT label and support mtools-like labels
40202 * fs/fat.c (grub_fat_iterate_dir): New function based
40203 on grub_fat_find_dir
40204 (grub_fat_find_dir): use grub_fat_iterate_dir
40205 (grub_fat_label): likewise
40207 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40209 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
40211 remove extraneous kernel_elf_HEADERS
40213 2009-04-04 Bean <bean123ch@gnail.com>
40215 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40217 * util/misc.c: Likewise.
40219 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40221 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40222 instead of grub_printf.
40224 2009-04-03 Robert Millan <rmh@aybabtu.com>
40226 * loader/i386/linux.c (grub_linux_setup_video): Fill
40227 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40228 values from `mode info' structure instead of hardcoded
40231 2009-04-01 Pavel Roskin <proski@gnu.org>
40233 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40235 * genmk.rb: Likewise.
40236 * configure.ac: Likewise.
40238 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40240 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40241 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40243 2009-04-01 David S. Miller <davem@davemloft.net>
40245 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40246 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40247 (grub_setjmp): Mark with 'returns_twice' attribute.
40248 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40249 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40250 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40252 2009-04-01 Robert Millan <rmh@aybabtu.com>
40254 Reapply fix from 2008-07-28 which was accidentally reverted; also
40255 perform the same fix to a similar check in same function.
40257 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40258 with the same number are found, just use issue a warning with
40259 grub_dprintf(), as this error has been reported to be non-fatal.
40261 2009-03-31 Pavel Roskin <proski@gnu.org>
40263 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40264 for cross-compilation.
40266 2009-03-30 Robert Millan <rmh@aybabtu.com>
40268 Fix i386-ieee1275 build.
40270 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40271 Remove declaration.
40273 2009-03-30 Pavel Roskin <proski@gnu.org>
40275 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40276 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40277 zero-terminated, rely only on the strlen value. Fix comparison
40278 of strings differing in length.
40280 2009-03-30 Robert Millan <rmh@aybabtu.com>
40282 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40283 checking for abi version. Improve error messages on BIOS to notify
40284 user about `linux16' command.
40286 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40290 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40291 in case of collision
40292 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40294 2009-03-29 Robert Millan <rmh@aybabtu.com>
40296 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40297 set `vid_mode' accordingly.
40298 (grub_linux_boot): Process `vid_mode' and set video mode.
40300 2009-03-29 Robert Millan <rmh@aybabtu.com>
40302 * util/grub.d/10_linux.in (linux_entry): New function.
40303 Factorize generation of Linux boot entries.
40305 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40307 Make the format of Environment Block plain text. The boot loader
40308 part is not tested well yet.
40310 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40312 (envblk): Likewise.
40313 (usage): Remove "info" and "clear". Add "unset". Update the
40314 description of "set", as this does not delete variables any
40316 (create_envblk_file): Complete rewrite.
40317 (open_envblk_file): Likewise.
40318 (cmd_info): Removed.
40319 (cmd_list): Likewise.
40320 (cmd_set): Likewise.
40321 (cmd_clear): Likewise.
40322 (list_variables): New function.
40323 (write_envblk): Likewise.
40324 (set_variables): Likewise.
40325 (unset_variables): Likewise.
40326 (main): Complete rewrite.
40328 * commands/loadenv.c (buffer): Removed.
40329 (envblk): Likewise.
40330 (open_envblk_file): New function.
40331 (read_envblk_file): Complete rewrite.
40332 (grub_cmd_load_env): Likewise.
40333 (grub_cmd_list_env): Likewise.
40334 (struct blocklist): New struct.
40335 (free_blocklists): New function.
40336 (check_blocklists): Likewise.
40337 (write_blocklists): Likewise.
40338 (grub_cmd_save_env): Complete rewrite.
40340 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40341 a plain text signature.
40342 (GRUB_ENVBLK_MAXLEN): Removed.
40343 (struct grub_envblk): Complete rewrite.
40344 (grub_envblk_find): Removed.
40345 (grub_envblk_insert): Likewise.
40346 (grub_envblk_open): New prototype.
40347 (grub_envblk_set): Likewise.
40348 (grub_envblk_delete): Put const to VALUE.
40349 (grub_envblk_iterate): Put const to NAME and VALUE.
40350 (grub_envblk_close): New prototype.
40351 (grub_envblk_buffer): New inline function.
40352 (grub_envblk_size): Likewise.
40354 * lib/envblk.c: Include grub/mm.h.
40355 (grub_env_find): Removed.
40356 (grub_envblk_open): New function.
40357 (grub_envblk_close): Likewise.
40358 (escaped_value_len): Likewise.
40359 (find_next_line): Likewise.
40360 (grub_envblk_insert): Removed.
40361 (grub_envblk_set): New function.
40362 (grub_envblk_delete): Complete rewrite.
40363 (grub_envblk_iterate): Likewise.
40365 2009-03-28 Robert Millan <rmh@aybabtu.com>
40367 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40368 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40369 variables. Use 16-bit loader.
40370 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40372 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40373 (grub_linux16_boot): ... this. Update all users.
40374 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40375 (grub_linux_boot): ... this. Update all users.
40377 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40378 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40379 commands to `linux16' and `initrd16'.
40380 (GRUB_MOD_FINI(linux)): Rename to ...
40381 (GRUB_MOD_FINI(linux16)): ... this.
40383 2009-03-24 Pavel Roskin <proski@gnu.org>
40385 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40386 not just for compilation.
40388 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40390 Move multiboot helper out of kernel
40392 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40393 `loader/i386/multiboot_helper.S'.
40394 * conf/i386-coreboot.rmk: Likewise
40395 * conf/i386-ieee1275.rmk: Likewise
40397 * kern/i386/loader.S: Move multiboot helpers from here...
40398 * loader/i386/multiboot_helper.S: ...moved here
40399 * include/grub/i386/loader.h: Move declarations of multiboot
40400 helpers from here...
40401 * include/grub/i386/multiboot.h: ...moved here
40402 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40404 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40406 * kern/env.c (grub_env_context_open): Added an argument to specify
40407 whether a new context inherits exported variables from current
40408 one. This is useful when making a sandbox to interpret a config
40410 All callers updated.
40412 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40414 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40416 * kern/env.c (grub_env_context_close): Fix memory leaks.
40418 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40420 * normal/main.c (grub_normal_execute): Added an argument
40421 BATCH to specify if an interactive interface should be provided
40422 after reading a config file.
40423 All callers updated.
40424 (read_command_list): Prevent being executed twice.
40425 (read_fs_list): Likewise.
40427 * include/grub/normal.h (grub_normal_execute): Updated the
40430 2009-03-22 Pavel Roskin <proski@gno.org>
40432 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40434 * kern/i386/pc/startup.S: Likewise.
40435 * kern/i386/efi/startup.S: Likewise.
40436 * kern/i386/ieee1275/startup.S: Likewise.
40437 * kern/i386/coreboot/startup.S: Likewise.
40438 * kern/x86_64/efi/startup.S: Likewise.
40440 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40441 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40442 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40444 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40446 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40448 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40450 Use vaddr of correct segment for entry_point.
40452 2009-03-21 Bean <bean123ch@gmail.com>
40454 * commands/blocklist.c: Add include file <grub/command.h>, remove
40455 <grub/normal.h> and <grub/arg.h>.
40456 (grub_cmd_blocklist): Use the new command interface.
40457 (GRUB_MOD_INIT): Likewise.
40458 (GRUB_MOD_FINI): Likewise.
40459 * commands/boot.c: Likewise.
40460 * commands/cat.c: Likewise.
40461 * commands/cmp.c: Likewise.
40462 * commands/configfile.c: Likewise.
40463 * commands/crc.c: Likewise.
40464 * commands/echo.c: Likewise.
40465 * commands/halt.c: Likewise.
40466 * commands/handler.c: Likewise.
40467 * commands/hdparm.c: Likewise.
40468 * commands/help.c: Likewise.
40469 * commands/hexdump.c: Likewise.
40470 * commands/loadenv.c: Likewise.
40471 * commands/ls.c: Likewise.
40472 * commands/lsmmap.c: Likewise.
40473 * commands/lspci.c: Likewise.
40474 * commands/loadenv.c: Likewise.
40475 * commands/read.c: Likewise.
40476 * commands/reboot.c: Likewise.
40477 * commands/search.c: Likewise.
40478 * commands/sleep.c: Likewise.
40479 * commands/test.c: Likewise.
40480 * commands/usbtest.c: Likewise.
40481 * commands/videotest.c: Likewise.
40482 * commands/i386/cpuid.c: Likewise.
40483 * commands/i386/pc/halt.c: Likewise.
40484 * commands/i386/pc/play.c: Likewise.
40485 * commands/i386/pc/pxecmd.c: Likewise.
40486 * commands/i386/pc/vbeinfo.c: Likewise.
40487 * commands/i386/pc/vbetest.c: Likewise.
40488 * commands/ieee1275/suspend.c: Likewise.
40489 * disk/loopback.c: Likewise.
40490 * font/font_cmd.c: Likewise.
40491 * hello/hello.c: Likewise.
40492 * loader/efi/appleloader.c: Likewise.
40493 * loader/efi/chainloader.c: Likewise.
40494 * loader/i386/bsd.c: Likewise.
40495 * loader/i386/efi/linux.c: Likewise.
40496 * loader/i386/ieee1275/linux.c: Likewise.
40497 * loader/i386/linux.c: Likewise.
40498 * loader/i386/pc/chainloader.c: Likewise.
40499 * loader/i386/pc/linux.c: Likewise.
40500 * loader/powerpc/ieee1275/linux.c: Likewise.
40501 * loader/multiboot_loader.c: Likewise.
40502 * term/gfxterm.c: Likewise.
40503 * term/i386/pc/serial.c: Likewise.
40504 * term/terminfo.c: Likewise.
40506 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40507 * term/i386/pc/vga.c: Likewise.
40508 * video/readers/jpeg.c: Likewise.
40509 * video/readers/png.c: Likewise.
40510 * video/readers/tga.c: Likewise.
40512 * util/grub-fstest (cmd_loopback): Removed.
40513 (cmd_blocklist): Likewise.
40514 (cmd_ls): Likewise.
40515 (grub_register_command): Likewise.
40516 (grub_unregister_command): Likewise.
40517 (execute_command): Use grub_command_find to locate command and execute
40520 * include/grub/efi/chainloader.h: Removed.
40521 * loader/efi/chainloader_normal.c: Likewise.
40522 * loader/i386/bsd_normal.c: Likewise.
40523 * loader/i386/pc/chainloader_normal.c: Likewise.
40524 * loader/i386/pc/multiboot_normal.c: Likewise.
40525 * loader/linux_normal.c: Likewise.
40526 * loader/multiboot_loader_normal.c: Likewise.
40527 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40529 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40530 and grub_register_command_p1.
40532 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40533 kern/command.c, lib/arg.c and commands/extcmd.c.
40534 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40535 (minicmd_mod_SOURCES): New variable.
40536 (minicmd_mod_CFLAGS): Likewise.
40537 (minicmd_mod_LDFLAGS): Likewise.
40538 (extcmd_mod_SOURCES): Likewise.
40539 (extcmd_mod_CFLAGS): Likewise.
40540 (extcmd_mod_LDFLAGS): Likewise.
40541 (boot_mod_SOURCES): Removed.
40542 (boot_mod_CFLAGS): Likewise.
40543 (boot_mod_LDFLAGS): Likewise.
40545 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40547 (kernel_img_HEADERS): Add command.h.
40548 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40549 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40551 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40552 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40553 remove the corresponding normal mode command.
40554 (normal_mod_SOURCES): Remove normal/arg.c.
40555 * conf/i386-coreboot.rmk: Likewise.
40556 * conf/i386-efi.rmk: Likewise.
40557 * conf/i386-ieee1275.rmk: Likewise.
40558 * conf/powerpc-ieee1275.rmk: Likewise.
40559 * conf/x86_64-efi.rmk: Likewise.
40561 * include/grub/arg.h: Move from here ...
40562 * include/grub/lib/arg.h: ... to here.
40564 * normal/arg.c: Move from here ...
40565 * lib/arg.c: ... to here.
40567 * commands/extcmd.c: New file.
40568 * commands/minicmd.c: Likewise.
40569 * include/grub/command.h: Likewise.
40570 * include/grub/extcmd.h: Likewise.
40571 * kern/command.c: Likewise.
40572 * kern/corecmd.c: Likewise.
40574 * kern/list.c (grub_list_iterate): Return int instead of void.
40575 (grub_list_insert): New function.
40576 (grub_prio_list_insert): Likewise.
40578 * kern/rescue.c (grub_rescue_command): Removed.
40579 (grub_rescue_command_list): Likewise.
40580 (grub_rescue_register_command): Likewise.
40581 (grub_rescue_unregister_command): Likewise.
40582 (grub_rescue_cmd_boot): Move to minicmd.c
40583 (grub_rescue_cmd_help): Likewise.
40584 (grub_rescue_cmd_info): Likewise.
40585 (grub_rescue_cmd_boot): Likewise.
40586 (grub_rescue_cmd_testload): Likewise.
40587 (grub_rescue_cmd_dump): Likewise.
40588 (grub_rescue_cmd_rmmod): Likewise.
40589 (grub_rescue_cmd_lsmod): Likewise.
40590 (grub_rescue_cmd_exit): Likewise.
40591 (grub_rescue_print_devices): Moved to corecmd.c.
40592 (grub_rescue_print_files): Likewise.
40593 (grub_rescue_cmd_ls): Likewise.
40594 (grub_rescue_cmd_insmod): Likewise.
40595 (grub_rescue_cmd_set): Likewise.
40596 (grub_rescue_cmd_unset): Likewise.
40597 (attempt_normal_mode): Use grub_command_find to get normal module.
40598 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40599 commands, remove grub_rescue_register_command calls.
40601 * normal/command.c (grub_register_command): Removed.
40602 (grub_unregister_command): Likewise.
40603 (grub_command_find): Likewise.
40604 (grub_iterate_commands): Likewise.
40605 (rescue_command): Likewise.
40606 (export_command): Moved to corecmd.c.
40607 (set_command): Removed.
40608 (unset_command): Likewise.
40609 (insmod_command): Likewise.
40610 (rmmod_command): Likewise.
40611 (lsmod_command): Likewise.
40612 (grub_command_init): Likewise.
40614 * normal/completion.c (iterate_command): Use cmd->prio to check for
40616 (complete_arguments): Use grub_extcmd_t structure to find options.
40617 (grub_normal_do_completion): Change function grub_iterate_commands to
40618 grub_command_iterate.
40620 * normal/execute.c (grub_script_execute_cmd): No need to parse
40623 * normal/main.c (grub_dyncmd_dispatcher): New function.
40624 (read_command_list): Register unload commands as dyncmd.
40625 (grub_cmd_normal): Use new command interface, register rescue,
40626 unregister normal at entry, register normal, unregister rescue at exit.
40628 * include/grub/list.h (grub_list_test_t): New type.
40629 (grub_list_iterate): Return int instead of void.
40630 (grub_list_insert): New function.
40631 (GRUB_AS_NAMED_LIST_P): New macro.
40632 (GRUB_AS_PRIO_LIST): Likewise.
40633 (GRUB_AS_PRIO_LIST_P): Likewise.
40634 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40635 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40636 (grub_prio_list): New structure.
40637 (grub_prio_list_insert): New function.
40638 (grub_prio_list_remove): New inline function.
40640 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40641 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40642 (GRUB_COMMAND_FLAG_MENU): Likewise.
40643 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40644 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40645 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40646 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40647 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40648 (grub_command): Likewise.
40649 (grub_register_command): Likewise.
40650 (grub_command_find): Likewise.
40651 (grub_iterate_commands): Likewise.
40652 (grub_command_init): Likewise.
40653 (grub_arg_parse): Likewise.
40654 (grub_arg_show_help): Likewise.
40656 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40657 (grub_rescue_unregister_command): Likewise.
40659 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40660 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40661 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40663 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40664 grub_rescue_cmd_initrd.
40665 * include/grub/i386/loader.h: Likewise.
40666 * include/grub/x86_64/loader.h: Likewise.
40668 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40670 2009-03-21 Bean <bean123ch@gmail.com>
40672 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40673 instead of stat in mingw environment.
40675 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40677 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40679 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40682 2009-03-21 Bean <bean123ch@gmail.com>
40684 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40685 out of range error.
40687 2009-03-18 Michel Dänzer <michel@daenzer.net>
40689 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40690 checking inode flags for EXT4_EXTENTS_FLAG.
40692 2009-03-18 Robert Millan <rmh@aybabtu.com>
40694 * loader/i386/linux.c: Include `<grub/video.h>' and
40695 `<grub/i386/pc/vbe.h>'..
40696 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40697 (grub_linux32_boot): Attempt to configure video settings with
40698 grub_linux_setup_video().
40699 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40700 to avoid grub_console_fini() which would step out of graphical mode
40703 2009-03-14 Robert Millan <rmh@aybabtu.com>
40705 Fix build on powerpc.
40706 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40708 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40710 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40711 background image command.
40713 2009-03-12 Colin D Bennett <colin@gibibit.com>
40715 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40716 (grub_gfxterm_putchar): Extract pairs of identical calls to
40717 draw_cursor out of conditional blocks.
40719 2009-03-11 Pavel Roskin <proski@gnu.org>
40721 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40722 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40724 2009-03-11 Robert Millan <rmh@aybabtu.com>
40726 * loader/i386/multiboot_elfxx.c
40727 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40729 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40731 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40734 2009-03-11 Robert Millan <rmh@aybabtu.com>
40736 * loader/i386/multiboot.c (code_size): New variable.
40737 (grub_multiboot): Define offsets by adding to `code_size' rather
40738 than subtracting from `grub_multiboot_payload_size'. Provide
40739 4-byte alignment to MBI and others by increasing
40740 `boot_loader_name_length' appropriately.
40742 * loader/i386/multiboot_elfxx.c
40743 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40745 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40747 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40750 2009-03-08 Robert Millan <rmh@aybabtu.com>
40752 Make loader/i386/linux.c usable on i386-pc again.
40754 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40756 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40759 2009-03-07 Bean <bean123ch@gmail.com>
40761 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40764 2009-03-06 Robert Millan <rmh@aybabtu.com>
40766 Fix display issue on terminals with screen size other than 80x25
40767 (e.g. gfxterm with resolution higher than 640x480).
40769 * normal/main.c (grub_normal_init_page): Display title text in a
40770 position relative to the center of the terminal instead of relying
40771 on a hardcoded offset.
40773 2009-03-04 Robert Millan <rmh@aybabtu.com>
40775 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40778 * Makefile.in (host_kernel): New variable.
40779 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40780 scripts instead of just the windows one.
40781 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40783 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40785 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40787 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40788 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40789 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40790 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40791 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40792 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40794 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40796 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40797 or if there's no space for the disk label and print the partition number on a
40800 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40802 * util/misc.c: Include <time.h>.
40803 (grub_millisleep): New function.
40805 2009-03-04 Bean <bean123ch@gmail.com>
40807 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40808 another option -mno-red-zone.
40810 * commands/handler.c: Change module description.
40812 * kern/handler.c: Add missing space at the end of description line.
40814 * kern/list.c: Likewise.
40816 2009-03-03 Robert Millan <rmh@aybabtu.com>
40818 Move more components to the relocation area, and fix mbi pointer
40819 handling to use the destination rather than the origin (thanks to
40820 Vladimir Serbinenko for spotting).
40822 * loader/i386/multiboot.c (mbi_dest): New variable.
40823 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40824 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40827 2009-03-01 Bean <bean123ch@gmail.com>
40829 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40830 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40831 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40832 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40834 * loader/i386/efi/linux.c (acpi_guid): New variable.
40835 (acpi_guid): Likewise.
40836 (EBDA_SEG_ADDR): New constant.
40837 (LOW_MEM_ADDR): Likewise.
40838 (FAKE_EBDA_SEG): Likewise.
40839 (fake_bios_data): New function.
40840 (grub_linux_boot): Call fake_bios_data.
40842 2009-03-01 Bean <bean123ch@gmail.com>
40844 * commands/terminal.c: Removed.
40846 * commands/handler.c: New file.
40848 * include/grub/list.h: Likewise.
40850 * include/grub/handler.h: Likewise.
40852 * kern/list.c: Likewise.
40854 * kern/handler.c: Likewise.
40856 * kern/term.h: Include header file <grub/handler.h>.
40857 (grub_term_input): Move next field to the beginning.
40858 (grub_term_output): Likewise.
40859 (grub_term_input_class): New variable.
40860 (grub_term_output_class): Likewise.
40861 (grub_term_register_input): Changed to inline function.
40862 (grub_term_register_output): Likewise.
40863 (grub_term_unregister_input): Likewise.
40864 (grub_term_unregister_output): Likewise.
40865 (grub_term_set_current_input): Likewise.
40866 (grub_term_set_current_output): Likewise.
40867 (grub_term_get_current_input): Likewise.
40868 (grub_term_get_current_output): Likewise.
40869 (grub_term_iterate_input): Removed.
40870 (grub_term_iterate_output): Likewise.
40872 * kern/term.c (grub_term_list_input): Removed.
40873 (grub_term_list_output): Likewise.
40874 (grub_term_input_class): New variable.
40875 (grub_term_output_class): Likewise.
40876 (grub_cur_term_input): Change variable as macro.
40877 (grub_cur_term_output): Likewise.
40878 (grub_term_register_input): Removed.
40879 (grub_term_register_output): Likewise.
40880 (grub_term_unregister_input): Likewise.
40881 (grub_term_unregister_output): Likewise.
40882 (grub_term_set_current_input): Likewise.
40883 (grub_term_set_current_output): Likewise.
40884 (grub_term_iterate_input): Likewise.
40885 (grub_term_iterate_output): Likewise.
40886 (grub_term_get_current_input): Likewise.
40887 (grub_term_get_current_output): Likewise.
40889 * util/grub-editenv.c: Include header file <grub/handler.h>.
40890 (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/grub-fstest.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 * util/grub-probe.c (grub_term_get_current_input): Removed.
40901 (grub_term_get_current_output): Likewise.
40902 (grub_term_input_class): New variable.
40903 (grub_term_output_class): Likewise.
40905 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40906 (grub_term_get_current_output): Likewise.
40907 (grub_term_input_class): New variable.
40908 (grub_term_output_class): Likewise.
40910 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40911 (terminal_mod_SOURCES): Likewise.
40912 (terminal_mod_CFLAGS): Likewise.
40913 (terminal_mod_LDFLAGS): Likewise.
40915 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40917 (kernel_img_SOURCES): Add list.c and handler.c.
40918 (kernel_img_HEADERS): Add list.h and handler.h.
40920 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40922 (kernel_mod_SOURCES): Add list.c and handler.c.
40923 (kernel_mod_HEADERS): Add list.h and handler.h.
40925 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40927 (kernel_elf_SOURCES): Add list.c and handler.c.
40928 (kernel_elf_HEADERS): Add list.h and handler.h.
40930 * conf/i386-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 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40937 (kernel_mod_SOURCES): Add list.c and handler.c.
40938 (kernel_mod_HEADERS): Add list.h and handler.h.
40940 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40942 (kernel_elf_SOURCES): Add list.c and handler.c.
40943 (kernel_elf_HEADERS): Add list.h and handler.h.
40945 2009-02-27 Robert Millan <rmh@aybabtu.com>
40947 Factorize elf32 / elf64 code in Multiboot loader. This will
40948 prevent it from getting out of sync again.
40950 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40951 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40952 grub_multiboot_load_elf64): Move from here ...
40953 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40954 grub_multiboot_load_elf): ... to here (new file).
40956 2009-02-27 Robert Millan <rmh@aybabtu.com>
40958 * util/grub.d/10_linux.in: Rename "single-user mode" to
40961 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40963 Don't leak in SCSI code.
40964 * disk/scsi.c (grub_scsi_close): free `scsi'.
40966 2009-02-27 Robert Millan <rmh@aybabtu.com>
40968 * loader/i386/pc/multiboot.c: Move from here ...
40969 * loader/i386/multiboot.c: ... to here. Update all users.
40971 2009-02-27 Robert Millan <rmh@aybabtu.com>
40973 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40974 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40976 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40978 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40981 2009-02-27 Robert Millan <rmh@aybabtu.com>
40983 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40984 `0x' qualifier as 0 when base is specified as parameter).
40986 2009-02-24 Bean <bean123ch@gmail.com>
40988 * configure.ac: Check for -mcmodel=large in x86_64 target.
40990 * include/grub/efi/api.h (efi_call_10): New macro.
40991 (efi_wrap_10): New function.
40993 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40994 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40995 (GRUB_PE32_REL_BASED_LOW): Likewise.
40996 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40997 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40998 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40999 (GRUB_PE32_REL_BASED_SECTION): Likewise.
41000 (GRUB_PE32_REL_BASED_REL): Likewise.
41001 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
41002 (GRUB_PE32_REL_BASED_DIR64): Likewise.
41003 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
41005 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
41008 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
41009 (efi_wrap_10): New function.
41011 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
41013 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
41014 MB/MBP model (NV chipset).
41015 (devdata_devs): Add devpath_5 to the list.
41017 * load/i386/efi/linux.c (video_base): Remove variable.
41018 (RGB_MASK): New macro.
41019 (RGB_MAGIC): Likewise.
41020 (LINE_MIN): Likewise.
41021 (LINE_MAX): Likewise.
41022 (FBTEST_STEP): Likewise.
41023 (FBTEST_COUNT): Likewise.
41024 (fb_list): New variable.
41025 (grub_find_video_card): Remove function.
41026 (find_framebuf): New function.
41027 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
41030 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
41031 problem for x86_64.
41033 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
41035 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
41037 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
41040 2009-02-22 Robert Millan <rmh@aybabtu.com>
41042 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
41043 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
41044 in our relocation, instead of using it directly from heap. Also
41045 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
41047 2009-02-21 Robert Millan <rmh@aybabtu.com>
41049 Implement USB keyboard support (based on patch by Marco Gerards)
41051 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
41052 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
41053 (usb_keyboard_mod_LDFLAGS): New variables.
41055 * term/usb_keyboard.c: New file.
41057 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
41059 Corrected wrong declaration
41061 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
41063 2009-02-14 Christian Franke <franke@computer.org>
41065 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
41066 (grub_lspci_iter): Print class code and programming interface byte.
41068 2009-02-14 Christian Franke <franke@computer.org>
41070 * gendistlist.sh: Ignore `.svn' directories.
41072 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
41074 * fs/fat.c: Add 2009 to Copyright line.
41076 2009-02-14 Christian Franke <franke@computer.org>
41078 * commands/hdparm.c: New file. Provides `hdparm' command
41079 which sends ATA commands via grub_disk_ata_pass_through ().
41081 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
41083 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
41084 and <grub/cpu/io.h> to include/grub/ata.h.
41085 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
41086 (GRUB_CDROM_SECTOR_SIZE): Remove.
41087 (GRUB_ATA_*): Move to include/grub/ata.h.
41088 (GRUB_ATAPI_*): Likewise.
41089 (enum grub_ata_commands): Likewise.
41090 (enum grub_ata_timeout_milliseconds): Likewise.
41091 (struct grub_ata_device): Likewise.
41092 (grub_ata_regset): Likewise.
41093 (grub_ata_regget): Likewise.
41094 (grub_ata_regset2): Likewise.
41095 (grub_ata_regget2): Likewise.
41096 (grub_ata_check_ready): Likewise.
41097 (grub_ata_wait_not_busy): Remove static, exported in
41098 include/grub/ata.h.
41099 (grub_ata_wait_drq): Likewise.
41100 (grub_ata_pio_read): Likewise.
41102 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
41103 function for hdparm.mod.
41105 * include/grub/ata.h: New file, contains declarations from
41107 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
41109 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
41110 (grub_disk_ata_pass_through): New exported variable.
41112 * kern/disk.c (grub_disk_ata_pass_through): New variable.
41114 2009-02-13 Colin D Bennett <colin@gibibit.com>
41116 Support multiple fallback entries, and provide an API to support
41117 executing default+fallback menu entries. Renamed the `terminal' menu
41120 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
41121 variable declaration.
41122 (grub_menu_execute_callback): New structure declaration.
41123 (grub_menu_execute_callback_t): New typedef.
41124 (grub_menu_execute_with_fallback): New function declaration.
41125 (grub_menu_get_entry): Likewise.
41126 (grub_menu_get_timeout): Likewise.
41127 (grub_menu_set_timeout): Likewise.
41129 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
41131 * normal/menu.c (grub_wait_after_message): Moved to
41132 `normal/menu_text.c'.
41133 (draw_border): Likewise.
41134 (print_message): Likewise.
41135 (print_entry): Likewise.
41136 (print_entries): Likewise.
41137 (grub_menu_init_page): Likewise.
41138 (get_entry_number): Likewise.
41139 (print_timeout): Likewise.
41140 (run_menu): Likewise.
41141 (grub_menu_execute_entry): Likewise.
41142 (show_text_menu): Likewise.
41143 (get_and_remove_first_entry_number): New function.
41144 (grub_menu_execute_with_fallback): Likewise.
41145 (get_entry): Renamed to ...
41146 (grub_menu_get_entry): .. this and made it global.
41147 (get_timeout): Renamed to ...
41148 (grub_menu_get_timeout): ... this and made it global.
41149 (set_timeout): Renamed to ...
41150 (grub_menu_set_timeout): ... this and made it global.
41151 (grub_normal_terminal_menu_viewer): Renamed to ...
41152 (grub_normal_text_menu_viewer): ... this.
41154 * normal/menu_text.c: New file. Extracted text-menu-specific code
41155 from normal/menu.c.
41157 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
41158 (normal_mod_SOURCES): Likewise.
41160 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41161 (normal_mod_SOURCES): Likewise.
41163 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41164 (normal_mod_SOURCES): Likewise.
41166 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
41167 (normal_mod_SOURCES): Likewise.
41169 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41170 (normal_mod_SOURCES): Likewise.
41172 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41173 (normal_mod_SOURCES): Likewise.
41175 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41176 (normal_mod_SOURCES): Likewise.
41178 2009-02-11 Robert Millan <rmh@aybabtu.com>
41180 * util/grub.d/00_header.in: Update old reference to `font' command.
41182 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
41184 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
41186 Based on patch from Javier Martín.
41188 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41190 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
41191 to avoid false positives with FAT.
41192 (grub_fstest_SOURCES): Likewise.
41193 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41194 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41195 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41196 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41197 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41198 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41200 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41202 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
41203 bpb.version_specific.fat12_or_fat16.fstype and
41204 bpb.version_specific.fat32.fstype.
41206 2009-02-08 Robert Millan <rmh@aybabtu.com>
41208 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
41210 2009-02-08 Robert Millan <rmh@aybabtu.com>
41212 * Makefile.in (host_os, host_cpu): New variables.
41213 (target_os): Remove. Update all users.
41215 2009-02-08 Marco Gerards <marco@gnu.org>
41217 * Makefile.in (enable_grub_emu_usb): New variable.
41218 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41219 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41220 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41221 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41222 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41223 `usbtest.mod' and `usbms.mod'.
41224 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41225 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41226 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41227 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41228 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41231 * disk/usbms.c: New file.
41233 * include/grub/usb.h: Likewise.
41235 * include/grub/usbtrans.h: Likewise.
41237 * include/grub/usbdesc.h: Likewise.
41239 * bus/usb/usbtrans.c: Likewise.
41241 * bus/usb/ohci.c: Likewise.
41243 * bus/usb/uhci.c: Likewise.
41245 * bus/usb/usbhub.c: Likewise.
41247 * bus/usb/usb.c: Likewise.
41249 * commands/usbtest.c: Likewise.
41251 * util/usb.c: Likewise.
41253 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41255 * configure.ac: Test for libusb presence.
41257 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41259 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41261 * kern/mm.c: Add more comments.
41263 2009-02-08 Robert Millan <rmh@aybabtu.com>
41265 Patch from Javier Martín.
41266 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41267 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41269 2009-02-08 Robert Millan <rmh@aybabtu.com>
41271 * fs/cpio.c: Split tar functionality to ...
41272 * fs/tar.c: ... here (new file). Update all users.
41274 2009-02-07 Robert Millan <rmh@aybabtu.com>
41276 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41277 backward-incompatible features.
41279 Based on patch from Javier Martín, with some adjustments.
41281 2009-02-07 Michael Scherer <misc@mandriva.org>
41283 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41285 2009-02-07 Robert Millan <rmh@aybabtu.com>
41287 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41288 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41289 after the RAID stuff.
41291 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41293 Fixes problem when running vbetest command as reported by
41294 Vladimir Serbinenko <phcoder@gmail.com>.
41296 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41298 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41300 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41301 /dev/md/NpN style mdraid devices.
41303 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41305 * util/unifont2pff.rb: Remove.
41307 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41309 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41312 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41314 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41315 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41316 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41317 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41318 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41319 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41320 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41322 2009-02-02 Christian Franke <franke@computer.org>
41324 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41326 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41328 * INSTALL: Note that we now require at least autoconf 2.59 and
41329 that LZO is optional.
41331 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41333 Base on patch on bug #24154 created by Tomas Tintera
41334 <trosos@seznam.cz>.
41336 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41338 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41340 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41341 <bero@arklinux.org>.
41343 * normal/parser.y (script_init): Add missing semicolon.
41345 2009-01-31 Colin D Bennett <colin@gibibit.com>
41347 * normal/main.c: Add include to grub/menu_viewer.h.
41348 (free_menu_entry_classes): Added.
41349 (grub_normal_menu_addentry): Added class property handling.
41350 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41351 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41353 * normal/menu_viewer.c: New file.
41355 * normal/menu.c (run_menu_entry): Renamed to ...
41356 (grub_menu_execute_entry): ... this and made it as global.
41357 (grub_menu_run): Renamed to ...
41358 (show_text_menu): ... this and made it local.
41359 (show_text_menu): Adapt to new function names.
41360 (grub_normal_terminal_menu_viewer): New global variable.
41362 * include/grub/menu.h: New file.
41364 * include/grub/menu_viewer.h: New file.
41366 * include/grub/normal.h: Added include to grub/menu.h.
41367 (grub_menu_entry): Moved to include/grub/menu.h.
41368 (grub_menu_entry_t): Likewise.
41369 (grub_menu): Likewise.
41370 (grub_menu_t): Likewise.
41371 (grub_normal_terminal_menu_viewer): Added.
41372 (grub_menu_execute_entry): Likewise.
41373 (grub_menu_run): Removed.
41375 * DISTLIST: Added include/grub/menu.h.
41376 Added include/grub/menu_viewer.h.
41377 Added normal/menu_viewer.c.
41379 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41381 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41382 arglist for menutitle arguments.
41384 * normal/main.c (grub_normal_menu_addentry): Likewise.
41386 * normal/parser.y (menuentry): Likewise.
41388 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41390 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41391 (grub_script_create_cmdmenu): Likewise.
41393 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41395 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41398 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41400 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41402 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41404 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41406 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41408 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41410 2009-01-30 Christian Franke <franke@computer.org>
41412 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41413 in option help text.
41415 2009-01-27 Pavel Roskin <proski@gnu.org>
41417 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41419 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41421 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41423 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41425 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41426 unregister function.
41428 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41430 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41432 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41434 * util/grub-mkfont.c (usage): Fix typo.
41436 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41438 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41440 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41442 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41444 * kern/misc.c (grub_strcasecmp): New function.
41445 (grub_strcasecmp): Use grub_size_t instead of int for length.
41447 * include/grub/misc.h: Update function prototypes.
41449 2009-01-26 Robert Millan <rmh@aybabtu.com>
41451 * configure.ac: Fix cross-compilation check.
41453 2009-01-22 Christian Franke <franke@computer.org>
41455 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41456 (precision) digit string. Allow `.format2' without `format1' (width).
41457 Limit input chars for `%s' output to `format2' if specified. This is
41458 compatible with standard printf ().
41460 2009-01-22 Christian Franke <franke@computer.org>
41462 * disk/ata.c (grub_ata_wait_status): Replace by ...
41463 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41464 other status bits may be invalid while BSY is asserted.
41465 (grub_ata_check_ready): New function.
41466 (grub_ata_cmd): Removed.
41467 (grub_ata_wait_drq): New function.
41468 (grub_ata_strncpy): Remove inline.
41469 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41470 and error check now done by grub_ata_wait_drq ().
41471 (grub_ata_pio_write): Likewise.
41472 (grub_atapi_identify): Set DEV before check for !BSY. Use
41473 grub_ata_wait_drq () to wait for data.
41474 (grub_ata_device_initialize): Add status register check to
41475 detect missing SATA slave devices. Add debug messages.
41476 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41477 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41478 transfer loop by grub_ata_pio_write ().
41479 (grub_ata_identify): Set DEV before check for !BSY. Use
41480 grub_ata_wait_drq () to wait for data.
41481 (grub_ata_setaddress): Set DEV before check for !BSY.
41482 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41483 read/write in one loop. Fix invalid command on write. Fix incomplete
41484 command on (size % batch) == 0. Add missing error check after write of
41485 last block. Add debug messages.
41486 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41488 2009-01-19 Christian Franke <franke@computer.org>
41490 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41491 (GRUB_ATAPI_IREASON_*): Likewise.
41492 (grub_ata_pio_write): Fix timeout error return.
41493 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41494 (grub_atapi_wait_drq): New function.
41495 (grub_atapi_packet): New parameter `size'.
41496 Use grub_atapi_wait_drq () and direct write instead of
41497 grub_ata_pio_write ().
41498 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41499 reads the number of bytes requested by the device for each DRQ
41501 (grub_atapi_write): Remove old implementation, return not
41502 implemented instead.
41504 2009-01-19 Christian Franke <franke@computer.org>
41506 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41507 of 512 to calculate data size.
41508 (grub_scsi_read12): Likewise.
41509 (grub_scsi_write10): Likewise.
41510 (grub_scsi_write12): Likewise.
41511 (grub_scsi_read): Adjust size according to blocksize.
41512 Add checks for invalid blocksize and unaligned transfer.
41514 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41516 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41518 * term/gfxterm.c (write_char): Fix background rendering for wide
41521 2009-01-19 Robert Millan <rmh@aybabtu.com>
41523 * config.guess: Update to latest version from config git.
41524 * config.sub: Likewise.
41526 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41528 * Makefile.in: Change font compilation to use new grub-mkfont instead
41531 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41532 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41533 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41534 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41535 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41536 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41537 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41538 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41539 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41541 2009-01-16 Christian Franke <franke@computer.org>
41543 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41544 (enum grub_ata_timeout_milliseconds): New enum.
41545 (grub_ata_wait_status): Add parameter milliseconds.
41546 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41547 recovery from timed-out commands.
41548 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41549 return grub_errno instead of REG_ERROR.
41550 (grub_ata_pio_write): Add parameter milliseconds.
41551 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41552 Pass milliseconds to grub_ata_wait_status () and
41553 grub_ata_pio_read ().
41554 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41555 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41556 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41557 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41558 It is not suitable for device detection, because DEV bit is ignored,
41559 the command may run too long, and not all devices set the signature
41561 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41562 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41563 Fix device selection, DEV bit must be set first to address the registers
41564 of the correct device.
41565 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41566 grub_ata_pio_read/write ().
41567 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41568 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41570 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41572 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41574 2009-01-13 Bean <bean123ch@gmail.com>
41576 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41578 2009-01-13 Bean <bean123ch@gmail.com>
41580 * Makefile.in: (enable_grub_mkfont): New variable.
41581 (freetype_cflags): Likewise.
41582 (freetype_libs): Likewise.
41584 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41585 (grub_mkfont_SOURCES): New variable.
41586 (grub_mkfont_CFLAGS): Likewise.
41587 (grub_mkfont_LDFLAGS): Likewise.
41589 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41590 library if `--enable-grub-mkfont' is requested.
41591 (enable_grub_mkfont): New variable.
41592 (freetype_cflags): Likewise.
41593 (freetype_libs): Likewise.
41595 * util/grub-mkfont.c: New file.
41597 2009-01-12 Christian Franke <franke@computer.org>
41599 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41600 mode check. Fix setting of compat_use[].
41602 2009-01-10 Robert Millan <rmh@aybabtu.com>
41604 Update a few copyright years which we forgot to do in 2008 (only for
41605 files whose changes made in 2008 were copyright-significant)
41607 * Makefile.in: Add 2008 to Copyright line.
41608 * disk/ieee1275/ofdisk.c: Likewise.
41609 * disk/efi/efidisk.c: Likewise.
41610 * kern/dl.c: Likewise.
41611 * kern/sparc64/ieee1275/init.c: Likewise.
41612 * kern/mm.c: Likewise.
41613 * kern/efi/mm.c: Likewise.
41614 * boot/i386/pc/boot.S: Likewise.
41615 * genfslist.sh: Likewise.
41616 * fs/iso9660.c: Likewise.
41617 * fs/hfs.c: Likewise.
41618 * fs/jfs.c: Likewise.
41619 * fs/minix.c: Likewise.
41620 * fs/ufs.c: Likewise.
41621 * gensymlist.sh.in: Likewise.
41622 * genkernsyms.sh.in: Likewise.
41623 * include/grub/misc.h: Likewise.
41624 * include/grub/types.h: Likewise.
41625 * include/grub/symbol.h: Likewise.
41626 * include/grub/elf.h: Likewise.
41627 * include/grub/kernel.h: Likewise.
41628 * include/grub/disk.h: Likewise.
41629 * include/grub/dl.h: Likewise.
41630 * include/grub/i386/linux.h: Likewise.
41631 * include/grub/i386/pc/biosdisk.h: Likewise.
41632 * include/grub/efi/api.h: Likewise.
41633 * include/grub/efi/pe32.h: Likewise.
41634 * include/grub/util/misc.h: Likewise.
41635 * normal/execute.c: Likewise.
41636 * normal/arg.c: Likewise.
41637 * normal/completion.c: Likewise.
41638 * normal/lexer.c: Likewise.
41639 * normal/parser.y: Likewise.
41640 * normal/misc.c: Likewise.
41641 * commands/i386/pc/vbeinfo.c: Likewise.
41642 * commands/hexdump.c: Likewise.
41643 * commands/terminal.c: Likewise.
41644 * commands/ls.c: Likewise.
41645 * commands/help.c: Likewise.
41646 * partmap/pc.c: Likewise.
41647 * loader/efi/chainloader.c: Likewise.
41648 * loader/multiboot_loader.c: Likewise.
41649 * loader/i386/pc/multiboot2.c: Likewise.
41650 * term/efi/console.c: Likewise.
41651 * term/i386/pc/serial.c: Likewise.
41652 * util/lvm.c: Likewise.
41653 * util/console.c: Likewise.
41654 * util/i386/efi/grub-mkimage.c: Likewise.
41655 * util/raid.c: Likewise.
41657 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41659 * commands/videotest.c: Removed include to grub/machine/memory.h.
41661 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41662 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41663 (video_mod_SOURCES): Removed.
41664 (video_mod_CFLAGS): Likewise.
41665 (video_mod_LDFLAGS): Likewise.
41666 (gfxterm_mod_SOURCES): Likewise.
41667 (gfxterm_mod_CFLAGS): Likewise.
41668 (gfxterm_mod_LDFLAGS): Likewise.
41669 (videotest_mod_SOURCES): Likewise.
41670 (videotest_mod_CFLAGS): Likewise.
41671 (videotest_mod_LDFLAGS): Likewise.
41672 (bitmap_mod_SOURCES): Likewise.
41673 (bitmap_mod_CFLAGS): Likewise.
41674 (bitmap_mod_LDFLAGS): Likewise.
41675 (tga_mod_SOURCES): Likewise.
41676 (tga_mod_CFLAGS): Likewise.
41677 (tga_mod_LDFLAGS): Likewise.
41678 (jpeg_mod_SOURCES): Likewise.
41679 (jpeg_mod_CFLAGS): Likewise.
41680 (jpeg_mod_LDFLAGS): Likewise.
41681 (png_mod_SOURCES): Likewise.
41682 (png_mod_CFLAGS): Likewise.
41683 (png_mod_LDFLAGS): Likewise.
41685 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41686 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41687 (video_mod_SOURCES): Added.
41688 (video_mod_CFLAGS): Likewise.
41689 (video_mod_LDFLAGS): Likewise.
41690 (videotest_mod_SOURCES): Likewise.
41691 (videotest_mod_CFLAGS): Likewise.
41692 (videotest_mod_LDFLAGS): Likewise.
41693 (bitmap_mod_SOURCES): Likewise.
41694 (bitmap_mod_CFLAGS): Likewise.
41695 (bitmap_mod_LDFLAGS): Likewise.
41696 (tga_mod_SOURCES): Likewise.
41697 (tga_mod_CFLAGS): Likewise.
41698 (tga_mod_LDFLAGS): Likewise.
41699 (jpeg_mod_SOURCES): Likewise.
41700 (jpeg_mod_CFLAGS): Likewise.
41701 (jpeg_mod_LDFLAGS): Likewise.
41702 (png_mod_SOURCES): Likewise.
41703 (png_mod_CFLAGS): Likewise.
41704 (png_mod_LDFLAGS): Likewise.
41705 (gfxterm_mod_SOURCES): Likewise.
41706 (gfxterm_mod_CFLAGS): Likewise.
41707 (gfxterm_mod_LDFLAGS): Likewise.
41709 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41710 grub/machine/console.h.
41712 2009-01-04 Jerone Young <jerone@gmail.com>
41714 Make on screen instructions clearer
41716 Based on patch created by Jidanni <jidanni@jidanni.org>
41718 * normal/menu.c: print clearer instructions on the screen
41720 2009-01-02 Colin D Bennett <colin@gibibit.com>
41724 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41725 build system and fixed gfxterm.c to work with different sized fonts.
41727 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41729 * configure: Re-generated.
41731 * DISTLIST: Removed font/manager.c.
41733 Added font/font_cmd.c.
41735 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41738 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41740 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41742 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41744 * normal/menu.c: Likewise.
41746 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41747 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41749 * include/grub/font.h: Replaced with new file.
41751 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41752 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41753 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41754 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41755 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41756 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41757 fg_red, fg_green, fg_blue, fg_alpha.
41758 (grub_video_adapter): Removed blit_glyph.
41759 (grub_video_blit_glyph): Removed.
41761 * font/manager.c: Removed file.
41763 * font/font.c: New file.
41765 * font/font_cmd.c: Likewise.
41767 * video/video.c (grub_video_blit_glyph): Removed.
41769 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41770 (grub_video_vbe_map_rgba): Likewise.
41771 (grub_video_vbe_unmap_color_int): Likewise.
41772 (grub_video_vbe_blit_glyph): Removed.
41773 (grub_video_vbe_adapter): Removed blit_glyph.
41775 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41776 (get_pixel): Likewise.
41777 (set_pixel): Likewise.
41779 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41781 * term/gfxterm.c: Adapted to new font engine.
41783 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41785 * term/i386/pc/vga.c: Likewise.
41787 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41789 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41791 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41793 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41795 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41797 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41799 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41801 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41803 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41805 * util/grub.d/00_header.in: Changed to use new loadfont command.
41807 * util/grub-mkconfig_lib.in: Changed font extension.
41809 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41811 * util/getroot.c (grub_util_get_grub_dev): Add support for
41812 /dev/md/dNNpNN style partitionable mdraid devices.
41814 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41816 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41817 at a time limit of the PXE TFTP API correctly.
41818 (grub_pxefs_close): Likewise.
41820 2008-11-29 Robert Millan <rmh@aybabtu.com>
41822 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41823 grub_ata_device_initialize() calls.
41825 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41827 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41829 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41831 2008-11-28 Robert Millan <rmh@aybabtu.com>
41833 Fix build on powerpc-ieee1275. Based on patch created by
41834 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41835 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41836 `kern/ieee1275/mmap.c'.
41837 * include/grub/powerpc/ieee1275/memory.h: New file.
41839 Provide grub-install on coreboot.
41840 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41841 (grub_install_SOURCES): New variable.
41842 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41843 usable on coreboot.
41845 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41847 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41848 to `grub_term_input_t'.
41849 (grub_term_get_current_output): Change return type to
41850 `grub_term_output_t'.
41852 2008-11-22 Robert Millan <rmh@aybabtu.com>
41854 Fix breakage on coreboot due to declaration mismatch.
41855 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41856 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41857 grub_vga_text_cls().
41859 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41860 comments. Avoid copying one more byte than necessary (just in case).
41862 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41863 to 0x200000 (avoids trouble with some OFW implementations, and matches
41864 with the one in Yaboot).
41865 Reported by Manoel Abranches
41867 2008-11-20 Robert Millan <rmh@aybabtu.com>
41869 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41870 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41872 * util/grub-mkconfig_lib.in (grub_warn): New function.
41873 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41874 warnings, to obtain consistent formatting.
41875 * util/grub.d/00_header.in: Likewise.
41876 * util/update-grub_lib.in: Likewise.
41878 * loader/i386/linux.c (allocate_pages): Fix a warning.
41879 Move comment text to `#error' stanza.
41881 Harmonize ieee1275's grub_available_iterate() with the generic
41882 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41883 build problem on i386-ieee1275):
41884 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41885 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41886 parameter `type'. Update all users of this function.
41887 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41888 `kern/ieee1275/mmap.c'.
41889 * kern/ieee1275/init.c
41890 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41892 (grub_machine_mmap_iterate): ... this.
41893 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41894 return type to `grub_err_t'. Update all implementations of this
41895 function prototype.
41896 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41899 Add `lsmmap' command (lists firmware-provided memory map):
41900 * commands/lsmmap.c: New file.
41901 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41902 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41904 * conf/powerpc-ieee1275.rmk: Likewise.
41905 * conf/i386-coreboot.rmk: Likewise.
41906 * conf/i386-ieee1275.rmk: Likewise.
41908 2008-11-19 Robert Millan <rmh@aybabtu.com>
41910 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41911 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41912 constraints to initrd allocation (based on code from
41913 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41914 for Linux to find it.
41916 2008-11-14 Robert Millan <rmh@aybabtu.com>
41918 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41919 order to cope with duplicate slashes.
41921 2008-11-14 Robert Millan <rmh@aybabtu.com>
41923 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41924 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41925 don't want to mess with lower memory, because it is used in the Linux
41928 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41929 an appropriate place in lower memory, between 0x10000 and 0x90000,
41930 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41931 is in our heap (probably as a result of it being corrupted during
41932 decompression). Add #error instance with comment to explain why this
41933 loader isn't currently usable on PC/BIOS.
41935 2008-11-14 Robert Millan <rmh@aybabtu.com>
41937 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41938 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41940 2008-11-12 Robert Millan <rmh@aybabtu.com>
41942 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41944 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41945 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41947 * include/grub/i386/pc/memory.h: ... to here.
41949 2008-11-12 Robert Millan <rmh@aybabtu.com>
41951 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41954 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41955 (grub_console_cur_color, grub_console_real_putchar)
41956 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41957 (grub_console_setcolorstate, grub_console_setcolor)
41958 (grub_console_getcolor): Move from here ...
41959 * include/grub/i386/vga_common.h: ... to here (new file).
41961 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41962 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41963 `<grub/i386/io.h>'.
41964 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41965 `<grub/i386/vga_common.h>'.
41967 2008-11-12 Robert Millan <rmh@aybabtu.com>
41969 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41970 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41971 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41973 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41974 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41976 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41977 grub_console_init() with call to grub_vga_text_init().
41978 (grub_machine_fini): Replace call to
41979 grub_console_fini() with call to grub_vga_text_fini() and
41980 grub_at_keyboard_fini().
41982 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41983 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41984 (grub_console_setcolorstate, grub_console_setcolor)
41985 (grub_console_getcolor): New function prototypes.
41987 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41988 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41989 (grub_vga_text_setcursor): Static-ize.
41990 (grub_vga_text_term): New structure.
41991 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41993 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41994 (grub_console_cur_color, grub_console_standard_color)
41995 (grub_console_normal_color, grub_console_highlight_color)
41996 (map_char, grub_console_putchar, grub_console_getcharwidth)
41997 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41998 (grub_console_getcolor): Move from here ...
41999 * term/i386/vga_common.c: ... to here (same function names).
42001 2008-11-12 Robert Millan <rmh@aybabtu.com>
42003 Use newly-added Multiboot support in coreboot.
42005 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
42006 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
42008 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
42009 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
42010 (codestart): Store the MBI in `startup_multiboot_info' when we're
42011 being loaded using Multiboot.
42013 * kern/i386/coreboot/init.c (grub_machine_init): Move
42014 grub_at_keyboard_init() call to beginning of function (useful for
42015 debugging). Call grub_machine_mmap_init() before attempting to use
42016 grub_machine_mmap_iterate().
42017 (grub_lower_mem, grub_upper_mem): Move from here ...
42018 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
42021 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
42022 function prototype.
42024 2008-11-12 Robert Millan <rmh@aybabtu.com>
42026 Fix a regression introduced by the at_keyboard.mod split. Because
42027 some terminals are default on some platforms and non-default on
42028 others, the first terminal being registered determines which is
42029 going to be default.
42031 * kern/term.c (grub_term_register_input): If this is the first
42032 terminal being registered, set it as the current one.
42033 (grub_term_register_output): Likewise.
42035 * term/efi/console.c (grub_console_init): Do not call
42036 grub_term_set_current_output() or grub_term_set_current_input().
42037 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
42038 * term/i386/pc/console.c (grub_console_init): Likewise.
42039 (grub_console_fini): Do not call grub_term_set_current_input()
42040 (but leave grub_term_set_current_output() to restore text mode).
42042 2008-11-10 Robert Millan <rmh@aybabtu.com>
42044 * util/grub.d/00_header.in: Add backward compatibility check for
42045 versions of terminal.mod that don't understand `terminal_input' or
42048 2008-11-09 Robert Millan <rmh@aybabtu.com>
42050 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
42051 `terminal_input' / `terminal_output', not `terminal'.
42053 2008-11-08 Robert Millan <rmh@aybabtu.com>
42055 * Makefile.in (include_DATA): Fix srcdir=. assumption.
42056 (DISTCLEANFILES): Add `build_env.mk'.
42058 2008-11-08 Robert Millan <rmh@aybabtu.com>
42060 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
42061 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42062 members. Update all users.
42063 * util/console.c (grub_ncurses_term): Split in ...
42064 (grub_ncurses_term_input): ... this, and ...
42065 (grub_ncurses_term_output): ... this. Update all users.
42066 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
42068 2008-11-08 Robert Millan <rmh@aybabtu.com>
42070 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
42071 (PKGDATA): Add $(pkgdata_SRCDIR).
42072 (pkglib_BUILDDIR): New variable.
42073 (pkgdata_SRCDIR): New variable.
42074 (build_env.mk): New target.
42075 (include_DATA): New variable.
42076 (install-local): Install $(include_DATA) files in $(includedir).
42078 2008-11-07 Pavel Roskin <proski@gnu.org>
42080 * gendistlist.sh: Use C locale for sorting to ensure consistent
42081 output on all systems.
42083 * util/grub.d/00_header.in: Remove incorrect space before
42086 2008-11-07 Robert Millan <rmh@aybabtu.com>
42088 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
42090 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
42091 * loader/multiboot_loader.c (find_multi_boot2_header): New function
42092 (based on find_multi_boot1_header).
42093 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
42094 using find_multi_boot2_header(), and abort if neither Multiboot or
42095 Multiboot headers were found.
42097 2008-11-07 Robert Millan <rmh@aybabtu.com>
42099 Modularize at_keyboard.mod:
42101 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
42102 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
42103 (at_keyboard_mod_LDFLAGS): New variables.
42105 Actual terminal split:
42107 * include/grub/term.h (struct grub_term): Split in ...
42108 (struct grub_term_input): ... this, and ...
42109 (struct grub_term_output): ... this. Update all users.
42110 (grub_term_set_current): Split in ...
42111 (grub_term_set_current_input): ... this, and ...
42112 (grub_term_set_current_output): ... this.
42113 (grub_term_get_current): Split in ...
42114 (grub_term_get_current_input): ... this, and ...
42115 (grub_term_get_current_output): ... this.
42116 (grub_term_register): Split in ...
42117 (grub_term_register_input): ... this, and ...
42118 (grub_term_register_output): ... this.
42119 (grub_term_unregister): Split in ...
42120 (grub_term_unregister_input): ... this, and ...
42121 (grub_term_unregister_output): ... this.
42122 (grub_term_iterate): Split in ...
42123 (grub_term_iterate_input): ... this, and ...
42124 (grub_term_iterate_output): ... this.
42126 * kern/term.c (grub_term_list): Split in ...
42127 (grub_term_list_input): ... this, and ...
42128 (grub_term_list_output): ... this. Update all users.
42129 (grub_cur_term): Split in ...
42130 (grub_cur_term_input): ... this, and ...
42131 (grub_cur_term_output): ... this. Update all users.
42132 (grub_term_set_current): Split in ...
42133 (grub_term_set_current_input): ... this, and ...
42134 (grub_term_set_current_output): ... this.
42135 (grub_term_get_current): Split in ...
42136 (grub_term_get_current_input): ... this, and ...
42137 (grub_term_get_current_output): ... this.
42138 (grub_term_register): Split in ...
42139 (grub_term_register_input): ... this, and ...
42140 (grub_term_register_output): ... this.
42141 (grub_term_unregister): Split in ...
42142 (grub_term_unregister_input): ... this, and ...
42143 (grub_term_unregister_output): ... this.
42144 (grub_term_iterate): Split in ...
42145 (grub_term_iterate_input): ... this, and ...
42146 (grub_term_iterate_output): ... this.
42148 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
42149 a check for input and one for output (and only attempt to get keys
42150 from user when input works).
42152 * util/grub-probe.c (grub_term_get_current): Split in ...
42153 (grub_term_get_current_input): ... this, and ...
42154 (grub_term_get_current_output): ... this.
42155 * util/grub-fstest.c: Likewise.
42156 * util/i386/pc/grub-setup.c: Likewise.
42157 * util/grub-editenv.c: Likewise.
42159 Portability adjustments:
42161 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
42162 `term/i386/pc/at_keyboard.c'.
42163 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
42164 grub_keyboard_controller_init() (now handled by terminal .init).
42165 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
42166 grub_at_keyboard_init().
42167 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
42168 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
42169 at_keyboard.mod via input terminal interface).
42170 * include/grub/i386/coreboot/console.h: Convert into a stub for
42171 `<grub/i386/pc/console.h>'.
42173 Migrate full terminals to new API:
42175 * term/efi/console.c (grub_console_term): Split into ...
42176 (grub_console_term_input): ... this, and ...
42177 (grub_console_term_output): ... this. Update all users.
42178 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
42179 (grub_ofconsole_init): Split into ...
42180 (grub_ofconsole_init_input): ... this, and ...
42181 (grub_ofconsole_init_output): ... this.
42182 (grub_ofconsole_term): Split into ...
42183 (grub_ofconsole_term_input): ... this, and ...
42184 (grub_ofconsole_term_output): ... this. Update all users.
42185 * term/i386/pc/serial.c (grub_serial_term): Split into ...
42186 (grub_serial_term_input): ... this, and ...
42187 (grub_serial_term_output): ... this. Update all users.
42188 * term/i386/pc/console.c (grub_console_term): Split into ...
42189 (grub_console_term_input): ... this, and ...
42190 (grub_console_term_output): ... this. Update all users.
42191 (grub_console_term_input): Only enable it on PC/BIOS platform.
42192 (grub_console_init): Remove grub_keyboard_controller_init() call.
42194 Migrate input terminals to new API:
42196 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42197 `i386' and `i386/pc' to enable build on x86_64 (this driver is
42198 i386-specific anyway).
42199 (grub_console_checkkey): Rename to ...
42200 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
42202 (grub_keyboard_controller_orig): New variable.
42203 (grub_console_getkey): Rename to ...
42204 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42206 (grub_keyboard_controller_init): Static-ize. Save original
42207 controller value so that it can be restored ...
42208 (grub_keyboard_controller_fini): ... here (new function).
42209 (grub_at_keyboard_term): New structure.
42210 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42213 Migrate output terminals to new API:
42215 * term/i386/pc/vga.c (grub_vga_term): Change type to
42216 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42217 members. Update all users.
42218 * term/gfxterm.c (grub_video_term): Change type to
42219 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42220 members. Update all users.
42221 * include/grub/i386/pc/console.h (grub_console_checkkey)
42222 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42225 Migrate `terminal' command and userland tools to new API:
42227 * commands/terminal.c (grub_cmd_terminal): Split into ...
42228 (grub_cmd_terminal_input): ... this, and ...
42229 (grub_cmd_terminal_output): ... this.
42230 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42231 `terminal_input' and `terminal_output'.
42232 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42233 `terminal_input' / `terminal_output' API.
42234 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42235 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42236 provided ${GRUB_TERMINAL}, convert it).
42238 2008-11-04 Robert Millan <rmh@aybabtu.com>
42240 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42242 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42244 2008-11-03 Bean <bean123ch@gmail.com>
42246 * kern/elf.c (grub_elf32_load): Revert to previous code.
42247 (grub_elf64_load): Likewise.
42249 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42251 2008-11-01 Robert Millan <rmh@aybabtu.com>
42253 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42254 (TARGET_CPPFLAGS): Likewise.
42255 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42257 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42259 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42261 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42263 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42264 addition of objects until the code is not going to be able to fail.
42266 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42268 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42269 (add a missing NULL check, and correct them by moving the pointer
42270 operations after the actual check).
42272 2008-10-29 Robert Millan <rmh@aybabtu.com>
42274 * util/i386/pc/grub-install.in: Handle empty string as output from
42275 make_system_path_relative_to_its_root().
42277 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42279 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42280 circular metadata worst case scenario. If the metadata is circular
42281 then copy the wrap in place.
42282 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42283 project lib/format_text/layout.h
42284 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42286 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42288 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42290 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42292 * util/update-grub_lib.in: Mention filename in warning message.
42294 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42296 * NEWS: Update for rename of update-grub to grub-mkconfig.
42298 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42300 * util/update-grub_lib.in: Copy to ...
42301 * util/grub-mkconfig_lib.in: ... this. Update all users.
42302 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42303 * util/update-grub.in: Rename to ...
42304 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42305 option. Add `--output' option to allow users to specify the generated
42306 configuration file. Default to stdout.
42307 (update_grub_dir): Rename to ...
42308 (grub_mkconfig_dir): ... this.
42309 (grub_cfg): Default to an empty string.
42310 * conf/common.rmk (update-grub): Rename to ...
42311 (grub-mkconfig): ... this.
42312 (update-grub_lib): Copy to ...
42313 (grub-mkconfig_lib): ... this.
42314 (update-grub_SCRIPTS): Copy to ...
42315 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42316 (update-grub_DATA): Rename to ...
42317 (grub-mkconfig_DATA): ... this.
42319 2008-09-28 Robert Millan <rmh@aybabtu.com>
42321 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42322 to `modified'. Add the real `created' field.
42323 (grub_iso9660_uuid): Use `modified' rather than `created' for
42324 constructing the UUID.
42326 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42328 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42329 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42331 2008-09-28 Bean <bean123ch@gmail.com>
42333 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42334 Thanks to Christian Franke for finding this bug.
42336 2008-09-25 Robert Millan <rmh@aybabtu.com>
42338 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42339 instances of grub_util_get_disk_name() (see previous commit).
42341 2008-09-25 Robert Millan <rmh@aybabtu.com>
42343 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42344 `util/i386/get_disk_name.c'.
42345 * conf/i386-efi.rmk: Likewise.
42346 * conf/x86_64-efi.rmk: Likewise.
42347 * conf/i386-coreboot.rmk: Likewise.
42348 * conf/i386-ieee1275.rmk: Likewise.
42349 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42350 `util/ieee1275/get_disk_name.c'.
42351 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42352 * util/ieee1275/get_disk_name.c: Remove file.
42353 * util/i386/get_disk_name.c: Remove file.
42354 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42355 "hd%d" for device.map entries, rather than using
42356 grub_util_get_disk_name().
42358 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42360 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42362 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42364 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42366 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42368 (GRUB_TERM_PPAGE): Changed to 0x4900.
42370 2008-09-24 Robert Millan <rmh@aybabtu.com>
42372 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42373 macros (they were i386-pc specific).
42374 * include/grub/sparc64/ieee1275/console.h: Likewise.
42375 * include/grub/efi/console.h: Likewise.
42377 2008-09-22 Bean <bean123ch@gmail.com>
42379 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42380 resident and in attribute list.
42382 * include/grub/ntfs.h (BMP_LEN): Removed.
42384 2008-09-22 Bean <bean123ch@gmail.com>
42386 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42387 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42389 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42390 error occurs, as grub_disk_open will call grub_disk_close, which will
42391 call p->close (scsi).
42393 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42395 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42396 (AC_PREREQ): Bumped to 2.59.
42397 (AC_TRY_COMPILE): Replace obsolete macro with ...
42398 (AC_COMPILE_IFELSE): ... this.
42399 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42400 (AC_LINK_IFELSE): ... this.
42402 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42404 * autogen.sh: Add a call to `gendistlist.sh'.
42406 2008-09-19 Christian Franke <franke@computer.org>
42408 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42409 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42410 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42411 Export __enable_execute_stack() to modules.
42412 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42415 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42417 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42420 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42422 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42423 #include <grub/util/hostdisk.h>.
42425 2008-09-08 Robert Millan <rmh@aybabtu.com>
42427 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42428 segments when their filesz is zero (grub_file_read() interprets
42429 zero-size as "read until EOF", which results in memory corruption).
42430 Use `lowest_segment' rather than 0 for calculating the current
42431 segment load address.
42433 2008-09-08 Robert Millan <rmh@aybabtu.com>
42435 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42436 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42437 clobbered useful information.
42439 2008-09-08 Robert Millan <rmh@aybabtu.com>
42441 * include/grub/util/biosdisk.h: Move to ...
42442 * include/grub/util/hostdisk.h: ... here. Update all users.
42443 * util/biosdisk.c: Move to ...
42444 * util/hostdisk.c: ... here. Update all users.
42446 2008-09-07 Robert Millan <rmh@aybabtu.com>
42448 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42450 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42451 and length can be stored directly in the `mbi->mmap_addr' and
42452 `mbi->mmap_length' struct fields.
42454 2008-09-07 Robert Millan <rmh@aybabtu.com>
42456 * conf/i386.rmk: New file. Provides declaration for building
42458 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42459 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42461 Include `conf/i386.mk'.
42462 * conf/i386-efi.rmk: Likewise.
42463 * conf/x86_64-efi.rmk: Likewise.
42464 * conf/i386-coreboot.rmk: Likewise.
42465 * conf/i386-ieee1275.rmk: Likewise.
42467 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42469 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42470 Adds optimization support for BGR based modes.
42472 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42473 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42474 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42475 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42476 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42477 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42478 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42479 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42480 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42481 (grub_video_i386_vbeblit_index_index): Likewise.
42482 (grub_video_i386_vbeblit_replace_directN): Added.
42483 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42484 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42485 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42486 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42487 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42488 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42489 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42490 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42491 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42492 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42493 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42494 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42495 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42497 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42498 (grub_video_i386_vbefill_R8G8B8): Likewise.
42499 (grub_video_i386_vbefill_index): Likewise.
42500 (grub_video_i386_vbefill_direct32): Added.
42501 (grub_video_i386_vbefill_direct24): Likewise.
42502 (grub_video_i386_vbefill_direct16): Likewise.
42503 (grub_video_i386_vbefill_direct8): Likewise.
42505 * include/grub/video.h (grub_video_blit_format): Removed
42506 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42507 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42508 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42509 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42510 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42512 * video/video.c (grub_video_get_blit_format): Updated to use new
42513 blit formats. Added handling for 16 bit color modes.
42515 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42517 (common_blitter): Updated to use new blitters.
42519 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42521 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42522 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42523 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42524 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42525 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42526 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42527 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42528 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42529 (grub_video_i386_vbeblit_index_index): Likewise.
42530 (grub_video_i386_vbeblit_replace_directN): Added.
42531 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42532 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42533 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42534 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42535 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42536 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42537 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42538 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42539 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42540 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42541 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42542 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42543 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42545 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42546 (grub_video_i386_vbefill_R8G8B8): Likewise.
42547 (grub_video_i386_vbefill_index): Likewise.
42548 (grub_video_i386_vbefill_direct32): Added.
42549 (grub_video_i386_vbefill_direct24): Likewise.
42550 (grub_video_i386_vbefill_direct16): Likewise.
42551 (grub_video_i386_vbefill_direct8): Likewise.
42553 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42556 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42559 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42562 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42565 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42567 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42570 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42572 * fs/iso9660.c (grub_iso9660_date): New structure.
42573 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42574 (grub_iso9660_uuid): New function.
42576 2008-09-05 Bean <bean123ch@gmail.com>
42578 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42580 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42581 insensitive bit for names in Win32 and Win32 & DOS namespace.
42583 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42585 * include/grub/types.h (LONG_MAX): Likewise.
42587 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42589 * util/getroot.c: Include <config.h>.
42590 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42591 add support for /dev/md/N devices and handle LVM double dash escaping.
42593 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42595 * config.guess: Update to latest version from config git.
42596 * config.sub: Likewise.
42598 2008-09-03 Robert Millan <rmh@aybabtu.com>
42600 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42601 `disk->total_sectors'.
42603 2008-09-01 Colin D Bennett <colin@gibibit.com>
42605 * include/grub/normal.h: Fixed incorrect comment for
42606 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42608 2008-09-01 Colin D Bennett <colin@gibibit.com>
42610 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42611 values with defines.
42613 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42614 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42615 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42616 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42617 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42618 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42619 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42620 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42621 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42622 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42623 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42624 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42625 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42626 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42627 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42628 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42629 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42630 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42631 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42633 2008-08-31 Robert Millan <rmh@aybabtu.com>
42635 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42637 (grub_multiboot): Fix a few warnings.
42639 2008-08-31 Robert Millan <rmh@aybabtu.com>
42641 * loader/i386/pc/multiboot.c: Update comment not to say that
42642 boot_device support is unimplemented.
42644 2008-08-31 Robert Millan <rmh@aybabtu.com>
42646 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42647 or memory map support are unimplemented.
42649 2008-08-31 Colin D Bennett <colin@gibibit.com>
42651 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42653 2008-08-31 Colin D Bennett <colin@gibibit.com>
42655 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42656 total video memory in 'vbeinfo' output; show color format details for
42659 2008-08-30 Pavel Roskin <proski@gnu.org>
42661 * util/genmoddep.c: Remove for real this time.
42662 * DISTLIST: Remove util/genmoddep.c.
42664 2008-08-30 Robert Millan <rmh@aybabtu.com>
42666 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42667 as required by Multiboot spec (it was already 4-byte aligned, but
42670 2008-08-29 Pavel Roskin <proski@gnu.org>
42672 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42673 * kern/powerpc/ieee1275/startup.S: ... this.
42674 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42675 * DISTLIST: Likewise.
42677 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42678 grub/cpu/kernel.h. Add start label for consistency with other
42679 platforms. Add grub_prefix immediately after start. Add jump
42680 to the code after grub_prefix.
42681 * include/grub/powerpc/kernel.h: Provide valid values for
42682 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42684 2008-08-29 Bean <bean123ch@gmail.com>
42686 * configure.ac: Change host_os to cygwin for mingw.
42687 (asprintf): New check for function.
42689 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42690 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42692 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42693 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42694 sync, sleep and grub_util_get_disk_size for mingw.
42696 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42697 to get size in mingw.
42698 (open_device): Use flag O_BINARY if it's defined.
42699 (find_root_device): Add dummy code for mingw.
42701 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42702 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42703 (get_scsi_disk_name): Return 0 for mingw.
42705 * util/hostfs.c: #include <grub/util/misc.h>.
42706 (grub_hostfs_open): Use "rb" flag to open file, use
42707 grub_util_get_disk_size to get disk size for mingw.
42709 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42710 (asprintf): New function if HAVE_ASPRINTF is not set.
42711 (sync): New function for mingw.
42713 (grub_util_get_disk_size): Likewise.
42715 2008-08-28 Pavel Roskin <proski@gnu.org>
42717 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42720 2008-08-28 Robert Millan <rmh@aybabtu.com>
42722 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42724 2008-08-28 Robert Millan <rmh@aybabtu.com>
42726 Change find_grub_drive() syntax so it doesn't prevent it from
42727 detecting NULL names as errors.
42729 * util/biosdisk.c (find_grub_drive): Move free slot search code
42731 (find_free_slot): ... to here.
42732 (read_device_map): Use find_free_slot() to search for free slots.
42734 2008-08-27 Marco Gerards <marco@gnu.org>
42736 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42737 (scsi_mod_SOURCES): New variable.
42738 (scsi_mod_CFLAGS): Likewise
42739 (scsi_mod_LDFLAGS): Likewise.
42741 * disk/scsi.c: New file.
42743 * include/grub/scsi.h: Likewise.
42745 * include/grub/scsicmd.h: Likewise.
42747 * disk/ata.c: Include <grub/scsi.h>.
42748 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42750 (grub_ata_iterate): Skip ATAPI devices.
42751 (grub_ata_open): Only handle ATAPI devices.
42752 (struct grub_atapi_read): Removed.
42753 (grub_atapi_readsector): Likewise.
42754 (grub_ata_read): No longer handle ATAPI devices.
42755 (grub_ata_write): Likewise.
42756 (grub_atapi_iterate): New function.
42757 (grub_atapi_read): Likewise.
42758 (grub_atapi_write): Likewise.
42759 (grub_atapi_open): Likewise.
42760 (grub_atapi_close): Likewise.
42761 (grub_atapi_dev): New variable.
42762 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42763 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42765 * include/grub/disk.h (enum grub_disk_dev_id): Add
42766 `GRUB_DISK_DEVICE_SCSI_ID'.
42768 2008-08-26 Robert Millan <rmh@aybabtu.com>
42770 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42771 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42774 2008-08-23 Bean <bean123ch@gmail.com>
42776 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42777 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42778 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42779 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42781 (raid5rec_mod_SOURCES): New macro.
42782 (raid5rec_mod_CFLAGS): Likewise.
42783 (raid5rec_mod_LDFLAGS): Likewise.
42784 (raid6rec_mod_SOURCES): Likewise.
42785 (raid6rec_mod_CFLAGS): Likewise.
42786 (raid6rec_mod_LDFLAGS): Likewise.
42787 (mdraid_mod_SOURCES): Likewise.
42788 (mdraid_mod_CFLAGS): Likewise.
42789 (mdraid_mod_LDFLAGS): Likewise.
42790 (dm_nv_mod_SOURCES): Likewise.
42791 (dm_nv_mod_CFLAGS): Likewise.
42792 (dm_nv_mod_LDFLAGS): Likewise.
42794 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42795 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42796 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42798 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42799 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42801 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42803 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42805 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42807 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42809 * disk/raid5_recover.c: New file.
42811 * disk/raid6_recover.c: Likewise.
42813 * disk/mdraid_linux.c: Likewise.
42815 * disk/dmraid_nvidia.c: Likewise.
42817 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42820 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42821 calculate the size of raid device.
42822 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42823 different layout of raid5.
42824 (grub_raid_scan_device): Remove code specific to mdraid.
42825 (grub_raid_list): New variable.
42826 (free_array): New function.
42827 (grub_raid_register): Likewise.
42828 (grub_raid_unregister): Likewise.
42829 (grub_raid_rescan): Likewise.
42830 (GRUB_MOD_INIT): Don't iterate device here.
42831 (GRUB_MOD_FINI): Use free_array to release resource.
42833 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42834 (grub_raid5_recover_func_t): New function variable type.
42835 (grub_raid6_recover_func_t): Likewise.
42836 (grub_raid5_recover_func): New variable.
42837 (grub_raid6_recover_func): Likewise.
42838 (grub_raid_register): New function.
42839 (grub_raid_unregister): Likewise.
42840 (grub_raid_rescan): Likewise.
42841 (grub_raid_block_xor): Likewise.
42843 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42844 (CMD_CRC): New macro.
42846 (read_file): Handle device as well as file.
42847 (cmd_crc): New function.
42848 (fstest): Handle multiple disks.
42849 (options): Remove part, raw and long, add root and diskcount.
42850 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42851 (main): Find the first non option entry and ignore subsequent options,
42852 add handling for the new options, support multiple disks.
42854 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42856 2008-08-23 Bean <bean123ch@gmail.com>
42858 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42860 * genfslist.sh: Ignore kernel.mod.
42862 * genpartmaplist.sh: Likewise.
42864 2008-08-23 Robert Millan <rmh@aybabtu.com>
42866 * util/getroot.c (find_root_device): Skip anything that starts with
42867 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42869 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42871 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42872 * util/grub.d/00_header.in: Allow the administrator to change default
42873 gfxmode via ${GRUB_GFXMODE}.
42875 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42877 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42879 2008-08-21 Robert Millan <rmh@aybabtu.com>
42881 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42883 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42884 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42886 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42888 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42889 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42891 2008-08-19 Robert Millan <rmh@aybabtu.com>
42893 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42894 (struct grub_virtual_screen): Remove `cursor_color'.
42895 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42897 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42899 2008-08-18 Robert Millan <rmh@aybabtu.com>
42901 Unify (identical) linux_normal.c files.
42902 * loader/i386/efi/linux_normal.c: Move from here ...
42903 * loader/linux_normal.c: ... to here. Update all users.
42904 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42905 * loader/i386/ieee1275/linux_normal.c: Likewise.
42907 2008-08-18 Robert Millan <rmh@aybabtu.com>
42909 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42910 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42911 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42912 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42913 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42915 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42916 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42917 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42918 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42919 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42920 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42921 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42922 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42923 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42924 portably using grub_getxy().
42925 Replace `-EFI' with `-bzImage' in boot message.
42927 2008-08-17 Robert Millan <rmh@aybabtu.com>
42929 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42931 2008-08-17 Robert Millan <rmh@aybabtu.com>
42933 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42935 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42936 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42937 (grub_machine_mmap_iterate): New function declaration.
42938 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42940 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42943 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42944 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42945 Move e820 parsing from here ...
42946 * kern/i386/pc/mmap.c: New file.
42947 (grub_machine_mmap_iterate): ... to here.
42949 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42950 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42951 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42952 (grub_available_iterate): Redeclare to return `void', and redeclare
42953 its hook to use grub_uint64_t as addr and size parameters, and rename
42955 (grub_machine_mmap_iterate): ... this. Update all users.
42957 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42958 to make it more readable. Rename to ...
42959 (grub_machine_mmap_iterate): ... this.
42961 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42962 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42963 (grub_multiboot): Allocate an extra region after the payload, and fill
42964 it with a Multiboot memory map. Adjust a.out loader to calculate size
42965 with the extra space.
42966 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42967 with the extra space.
42969 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42971 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42973 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42975 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42976 mdate-sh to the list `find' searches for.
42977 * DISTLIST: Regenerated.
42979 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42981 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42982 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42983 genmoddep.awk, gensymlist.sh.in.
42984 (DISTDIRS): Add bus, docs, hook, lib.
42985 * DISTLIST: Regenerated.
42986 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42988 2008-08-16 Robert Millan <rmh@aybabtu.com>
42990 * disk/raid.c (grub_raid_init): Handle/report errors set by
42991 grub_device_iterate().
42992 * disk/lvm.c (grub_lvm_init): Likewise.
42994 2008-08-15 Bean <bean123ch@gmail.com>
42996 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42998 (datetime_mod_SOURCES): New macro.
42999 (datetime_mod_CFLAGS): Likewise.
43000 (datetime_mod_LDFLAGS): Likewise.
43001 (date_mod_SOURCES): Likewise.
43002 (date_mod_CFLAGS): Likewise.
43003 (date_mod_LDFLAGS): Likewise.
43004 (datehook_mod_SOURCES): Likewise.
43005 (datehook_mod_CFLAGS): Likewise.
43006 (datehook_mod_LDFLAGS): Likewise.
43008 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
43010 (datetime_mod_SOURCES): New macro.
43011 (datetime_mod_CFLAGS): Likewise.
43012 (datetime_mod_LDFLAGS): Likewise.
43013 (date_mod_SOURCES): Likewise.
43014 (date_mod_CFLAGS): Likewise.
43015 (date_mod_LDFLAGS): Likewise.
43016 (datehook_mod_SOURCES): Likewise.
43017 (datehook_mod_CFLAGS): Likewise.
43018 (datehook_mod_LDFLAGS): Likewise.
43020 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
43022 (datetime_mod_SOURCES): New macro.
43023 (datetime_mod_CFLAGS): Likewise.
43024 (datetime_mod_LDFLAGS): Likewise.
43025 (date_mod_SOURCES): Likewise.
43026 (date_mod_CFLAGS): Likewise.
43027 (date_mod_LDFLAGS): Likewise.
43028 (datehook_mod_SOURCES): Likewise.
43029 (datehook_mod_CFLAGS): Likewise.
43030 (datehook_mod_LDFLAGS): Likewise.
43032 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
43034 (datetime_mod_SOURCES): New macro.
43035 (datetime_mod_CFLAGS): Likewise.
43036 (datetime_mod_LDFLAGS): Likewise.
43037 (date_mod_SOURCES): Likewise.
43038 (date_mod_CFLAGS): Likewise.
43039 (date_mod_LDFLAGS): Likewise.
43040 (datehook_mod_SOURCES): Likewise.
43041 (datehook_mod_CFLAGS): Likewise.
43042 (datehook_mod_LDFLAGS): Likewise.
43044 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
43046 (datetime_mod_SOURCES): New macro.
43047 (datetime_mod_CFLAGS): Likewise.
43048 (datetime_mod_LDFLAGS): Likewise.
43049 (date_mod_SOURCES): Likewise.
43050 (date_mod_CFLAGS): Likewise.
43051 (date_mod_LDFLAGS): Likewise.
43052 (datehook_mod_SOURCES): Likewise.
43053 (datehook_mod_CFLAGS): Likewise.
43054 (datehook_mod_LDFLAGS): Likewise.
43056 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
43058 * commands/date.c: New file.
43060 * hook/datehook.c: Likewise.
43062 * include/grub/lib/datetime.h: Likewise.
43064 * include/grub/i386/cmos.h: Likewise.
43066 * lib/datetime.c: Likewise.
43068 * lib/i386/datetime.c: Likewise.
43070 * lib/efi/datetime.c: Likewise.
43072 2008-08-14 Robert Millan <rmh@aybabtu.com>
43074 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
43075 (grub_mkelfimage_SOURCES): New variable.
43076 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
43078 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
43079 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
43080 * conf/powerpc-ieee1275.rmk: Likewise.
43081 * conf/i386-ieee1275.rmk: Likewise.
43083 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
43084 * kern/i386/coreboot/init.c: Likewise.
43086 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
43087 with `<grub/cpu/kernel.h>'.
43088 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
43090 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
43091 * kern/i386/coreboot/startup.S: Likewise.
43093 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
43094 (GRUB_MOD_GAP): Remove.
43095 * include/grub/powerpc/kernel.h: New file.
43096 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
43097 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
43098 * include/grub/i386/kernel.h: New file.
43099 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
43100 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
43101 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
43103 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
43105 Use --directory when invoking grub_mkimage.
43107 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
43108 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
43109 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
43110 and GRUB_KERNEL_CPU_PREFIX.
43112 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
43114 * include/grub/err.h (grub_err_printf): New function prototype.
43115 * util/misc.c (grub_err_printf): New function.
43116 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
43118 * kern/err.c (grub_print_error): Use grub_err_printf.
43120 2008-08-13 Robert Millan <rmh@aybabtu.com>
43122 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
43124 2008-08-13 Robert Millan <rmh@aybabtu.com>
43126 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
43129 2008-08-12 Robert Millan <rmh@aybabtu.com>
43131 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
43132 of the relocation code from here ...
43133 (grub_multiboot): ... to here.
43134 (forward_relocator, backward_relocator): Move from here ...
43135 * kern/i386/loader.S (grub_multiboot_forward_relocator)
43136 (grub_multiboot_backward_relocator): ... to here.
43137 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
43138 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
43139 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
43140 (grub_multiboot_forward_relocator_end)
43141 (grub_multiboot_backward_relocator)
43142 (grub_multiboot_backward_relocator_end): New variables.
43144 2008-08-12 Bean <bean123ch@gmail.com>
43146 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
43148 2008-08-11 Robert Millan <rmh@aybabtu.com>
43150 * kern/i386/linuxbios/startup.S: Move from here ...
43151 * kern/i386/coreboot/startup.S: ... to here.
43153 * kern/i386/linuxbios/init.c: Move from here ...
43154 * kern/i386/coreboot/init.c: ... to here.
43156 * kern/i386/linuxbios/table.c: Move from here ...
43157 * kern/i386/coreboot/mmap.c: ... to here.
43159 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
43161 2008-08-11 Robert Millan <rmh@aybabtu.com>
43163 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
43164 errors. Leave it to the upper layer to handle them.
43166 2008-08-09 Christian Franke <franke@computer.org>
43168 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
43169 * conf/common.rmk: Install `grub-pe2elf' only if requested.
43170 Install `grub.d/10_windows' only on Cygwin.
43171 * configure.ac: Add subst of `target_os'.
43172 Check `target_os' also before setting TARGET_OBJ2ELF.
43173 Add `--enable-grub-pe2elf'.
43175 2008-08-08 Robert Millan <rmh@aybabtu.com>
43177 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43178 (grub_last_time): Change type to grub_uint64_t.
43179 (grub_disk_open): Migrate code from to using grub_get_time_ms().
43180 (grub_disk_close): Likewise.
43182 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43183 (run_menu): Migrate code from to using grub_get_time_ms().
43185 * util/misc.c (grub_get_time_ms): New function.
43187 2008-08-08 Marco Gerards <marco@gnu.org>
43189 * disk/ata.c (grub_ata_regget): Change return type to
43191 (grub_ata_regget2): Likewise.
43192 (grub_ata_wait_status): New function.
43193 (grub_ata_wait_busy): Removed function, updated all users to use
43194 `grub_ata_wait_status'.
43195 (grub_ata_wait_drq): Likewise.
43196 (grub_ata_cmd): New function.
43197 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
43199 (grub_ata_pio_write): Add error handling.
43200 (grub_atapi_identify): Likewise.
43201 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43203 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43204 handling. Actually use the detected registers. Reorder the
43205 detection logic such that it is easier to read.
43206 (grub_ata_pciinit): Do not assign the same ID to each controller.
43207 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43209 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43211 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43213 2008-08-08 Marco Gerards <marco@gnu.org>
43217 2008-08-07 Bean <bean123ch@gmail.com>
43219 * include/grub/x86_64/pci.h: New file.
43221 2008-08-07 Christian Franke <franke@computer.org>
43223 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43224 (TIMER2_GATE): Likewise.
43225 (grub_pit_wait): Add enable/disable of the timer2 gate
43226 bit of port 0x61. This fixes a possible infinite loop.
43228 2008-08-07 Bean <bean123ch@gmail.com>
43230 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43231 kern/i386/tsc.c and kern/i386/pit.c.
43233 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43236 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43239 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43241 2008-08-07 Bean <bean123ch@gmail.com>
43243 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43245 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43247 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43248 multiple inclusion. Add #include <grub/types.h>.
43250 2008-08-06 Christian Franke <franke@computer.org>
43252 * conf/common.rmk: Build and install `10_windows'.
43253 * util/grub.d/10_windows.in: New script.
43255 2008-08-06 Pavel Roskin <proski@gnu.org>
43257 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43259 2008-08-06 Robert Millan <rmh@aybabtu.com>
43261 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43262 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43264 2008-08-06 Bean <bean123ch@gmail.com>
43266 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43267 (grub_pxefs_fs_int): Remove dummy definition.
43268 (grub_pxefs_open): Use data->block_size to store the current block
43270 (grub_pxefs_read): Use block size stored in data->block_size. As the
43271 value of grub_pxe_blksize can be changed after the file is opened.
43273 2008-08-06 Bean <bean123ch@gmail.com>
43275 * fs/i386/pc/pxe.c (curr_file): new variable.
43276 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43277 require the dummy internal file system anymore.
43278 (grub_pxefs_read): Removed.
43279 (grub_pxefs_close): Likewise.
43280 (grub_pxefs_fs_int): Likewise.
43281 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43282 connection when we switch file.
43283 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43285 2008-08-06 Robert Millan <rmh@aybabtu.com>
43287 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43289 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43290 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43292 * kern/i386/halt.c: New file.
43293 * kern/i386/reboot.c: Likewise.
43294 * include/grub/i386/reboot.h: Likewise.
43295 * include/grub/i386/halt.h: Likewise.
43297 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43298 Include `<grub/cpu/halt.h>'.
43299 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43300 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43302 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43303 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43304 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43305 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43306 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43307 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43309 * include/grub/i386/at_keyboard.h: ... to here.
43311 2008-08-05 Robert Millan <rmh@aybabtu.com>
43313 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43314 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43315 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43316 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43317 `kern/generic/millisleep.c'.
43319 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43320 instead of grub_get_rtc().
43321 (grub_tsc_init): Initialize `tsc_boot_time'.
43323 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43324 (grub_machine_init): Use grub_tsc_init() rather than
43325 installing an RTC-based handler via grub_install_get_time_ms().
43327 * kern/i386/pit.c: New file.
43328 * include/grub/i386/pit.h: Likewise.
43330 2008-08-05 Bean <bean123ch@gmail.com>
43332 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43334 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43335 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43336 (pxe_mod_SOURCES): New macro.
43337 (pxe_mod_CFLAGS): Likewise.
43338 (pxe_mod_LDFLAGS): Likewise.
43339 (pxecmd_mod_SOURCES): Likewise.
43340 (pxecmd_mod_CFLAGS): Likewise.
43341 (pxecmd_mod_LDFLAGS): Likewise.
43343 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43344 (grub_pxe_call): Likewise.
43346 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43348 * commands/i386/pc/pxecmd.c: New file.
43350 * fs/i386/pc/pxe.c: Likewise.
43352 * include/grub/i386/pc/pxe.h: Likewise.
43354 2008-08-05 Bean <bean123ch@gmail.com>
43356 * util/console.c (grub_console_cur_color): New variable.
43357 (grub_console_standard_color): Likewise.
43358 (grub_console_normal_color): Likewise.
43359 (grub_console_highlight_color): Likewise.
43360 (color_map): Likewise.
43361 (use_color): Likewise.
43362 (NUM_COLORS): New macro.
43363 (grub_ncurses_setcolorstate): Handle color properly.
43364 (grub_ncurses_setcolor): Don't change color here, just remember the
43365 settings, color will be set in grub_ncurses_setcolorstate.
43366 (grub_ncurses_getcolor): New function.
43367 (grub_ncurses_init): Initialize color pairs.
43368 (grub_ncurses_term): New member grub_ncurses_getcolor.
43370 2008-08-05 Colin D Bennett <colin@gibibit.com>
43372 High resolution timer support. Implemented for x86 CPUs using TSC.
43373 Extracted generic grub_millisleep() so it's linked in only as needed.
43374 This requires a Pentium compatible CPU; if the RDTSC instruction is
43375 not supported, then it falls back on the generic grub_get_time_ms()
43376 implementation that uses the machine's RTC.
43378 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43379 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43380 `kern/generic/millisleep.c'.
43382 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43383 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43385 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43386 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43388 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43390 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43391 `kern/generic/millisleep.c'.
43393 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43395 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43397 * kern/generic/rtc_get_time_ms.c: New file.
43399 * kern/generic/millisleep.c: New file.
43401 * kern/misc.c: Don't include
43402 <kern/time.h> anymore.
43403 (grub_millisleep_generic): Removed.
43405 * commands/sleep.c (grub_interruptible_millisleep): Uses
43406 grub_get_time_ms() instead of grub_get_rtc().
43408 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43410 (grub_cpu_is_cpuid_supported): New inline function.
43411 (grub_cpu_is_tsc_supported): New inline function.
43412 (grub_tsc_init): New function prototype.
43413 (grub_tsc_get_time_ms): New function prototype.
43415 * kern/i386/tsc.c (grub_get_time_ms): New file.
43417 * include/grub/time.h: Include <grub/types.h.
43418 (grub_millisleep_generic): Removed.
43419 (grub_get_time_ms): New prototype.
43420 (grub_install_get_time_ms): New prototype.
43421 (grub_rtc_get_time_ms): New prototype.
43423 * kern/time.c (grub_get_time_ms): New function.
43424 (grub_install_get_time_ms): New function.
43426 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43427 <grub/time.h> anymore.
43428 (grub_millisleep): Removed.
43429 (grub_machine_init): Call grub_tsc_init.
43431 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43432 get_time_ms() implementation.
43434 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43435 (ieee1275_get_time_ms): New function.
43436 (grub_machine_init): Install get_time_ms() implementation.
43438 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43439 (grub_machine_init): Call grub_tsc_init().
43440 (grub_millisleep): Removed.
43442 * kern/ieee1275/init.c (grub_millisleep): Removed.
43443 (grub_machine_init): Install ieee1275_get_time_ms()
43445 (ieee1275_get_time_ms): New function.
43446 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43449 2008-08-05 Marco Gerards <marco@gnu.org>
43451 * disk/ata.c: Include <grub/pci.h>.
43452 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43453 (grub_ata_initialize): Rewritten.
43454 (grub_ata_device_initialize): New function.
43456 2008-08-04 Pavel Roskin <proski@gnu.org>
43458 * kern/main.c: Include grub/mm.h.
43460 2008-08-04 Robert Millan <rmh@aybabtu.com>
43462 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43463 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43464 corruption problem).
43466 2008-08-04 Robert Millan <rmh@aybabtu.com>
43468 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43469 warnings introduced in my last commit.
43471 2008-08-03 Robert Millan <rmh@aybabtu.com>
43473 Make PCI available on all i386 architectures.
43475 * include/grub/i386/pc/pci.h: Move from here ...
43476 * include/grub/i386/pci.h: ... to here.
43478 * include/grub/i386/pc/pci.h: Remove.
43479 * include/grub/i386/efi/pci.h: Remove.
43480 * include/grub/x86_64/efi/pci.h: Remove.
43482 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43483 `<grub/cpu/pci.h>'.
43485 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43486 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43487 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43489 * conf/i386-ieee1275.rmk: Likewise.
43491 2008-08-03 Robert Millan <rmh@aybabtu.com>
43493 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43494 (grub_console_setcursor): Make it possible to set cursor off.
43496 2008-08-03 Robert Millan <rmh@aybabtu.com>
43498 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43499 of modules instead of assuming which platform provides what.
43500 * util/update-grub.in: Likewise.
43502 2008-08-03 Robert Millan <rmh@aybabtu.com>
43504 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43505 instead of `grub_install_dos_part' to determine whether a drive needs
43506 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43507 because it can be overridden when loading GRUB via Multiboot).
43509 2008-08-02 Robert Millan <rmh@aybabtu.com>
43511 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43513 2008-08-02 Robert Millan <rmh@aybabtu.com>
43515 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43516 of informational grub_dprintf() calls.
43518 2008-08-02 Robert Millan <rmh@aybabtu.com>
43520 * disk/memdisk.c (memdisk_size): Don't initialize.
43521 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43523 * include/grub/i386/pc/kernel.h
43524 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43525 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43526 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43527 (grub_arch_memdisk_size): Remove.
43529 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43530 field (was only used to transfer a constant). Add `type' field to
43531 support multiple module types.
43532 (grub_module_iterate): New function.
43534 * kern/device.c (grub_device_open): Do not hide error messages
43535 when grub_disk_open() fails. Use grub_print_error() instead.
43537 * kern/i386/pc/init.c (grub_arch_modules_addr)
43538 (grub_arch_memdisk_size): Remove functions.
43539 (grub_arch_modules_addr): Return the module address in high memory
43540 (now that it isn't copied anymore).
43542 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43543 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43544 decompression routine (grub_total_module_size already includes that
43545 now). Don't copy modules back to low memory.
43547 * kern/main.c: Include `<grub/mm.h>'.
43548 (grub_load_modules): Split out (and use) ...
43549 (grub_module_iterate): ... this function, which iterates through
43550 module objects and runs a hook.
43551 Comment out grub_mm_init_region() call, as it would cause non-ELF
43552 modules to be overwritten.
43554 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43555 the memdisk image in its own region, make it part of the module list.
43556 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43557 (main): Parse --memdisk|-m option, and pass user-provided path as
43558 parameter to generate_image().
43559 (add_segments): Pass `memdisk_path' down to load_modules().
43560 (load_modules): Embed memdisk image in module section when requested.
43561 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43562 `header.type' instead of `header.offset'.
43564 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43565 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43566 (memdisk_mod_LDFLAGS): New variables.
43567 * conf/i386-coreboot.rmk: Likewise.
43568 * conf/i386-ieee1275.rmk: Likewise.
43570 2008-08-02 Robert Millan <rmh@aybabtu.com>
43572 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43573 (backward_relocator): New variables. Used to allocate and relocate
43574 the payload, respectively.
43575 (grub_multiboot_load_elf32): Load into heap instead of requested
43576 address, install the appropriate relocator code in each bound of
43577 the payload, and set the entry point such that
43578 grub_multiboot_real_boot() will jump to one of them.
43580 * kern/i386/loader.S (grub_multiboot_payload_size)
43581 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43582 (grub_multiboot_payload_entry_offset): New variables.
43583 (grub_multiboot_real_boot): Set cpu context to what the relocator
43584 expects, and jump to the relocator instead of the payload.
43586 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43587 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43588 (grub_multiboot_payload_entry_offset): Export.
43590 2008-08-01 Bean <bean123ch@gmail.com>
43592 * normal/menu_entry.c (editor_getline): Don't return the original
43593 string as result, as it will be released by lexer once it has done
43596 2008-08-01 Robert Millan <rmh@aybabtu.com>
43598 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43599 within menuentries, not before them.
43600 util/grub.d/10_hurd.in: Likewise.
43602 2008-08-01 Bean <bean123ch@gmail.com>
43604 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43605 (bufio_mod_SOURCES): New macro.
43606 (bufio_mod_CFLAGS): Likewise.
43607 (bufio_mod_LDFLAGS): Likewise.
43609 * include/grub/bufio.h: New file.
43611 * io/bufio.c: Likewise.
43613 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43614 (grub_video_reader_png): Use grub_buffile_open to open file.
43616 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43617 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43619 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43620 (grub_video_reader_tga): Use grub_buffile_open to open file.
43622 * font/manager.c: Include <grub/bufio.h>.
43623 (add_font): Use grub_buffile_open to open file.
43625 2008-07-31 Robert Millan <rmh@aybabtu.com>
43627 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43628 ELF segments, use a macro for arbitrarily accessing any of them instead
43629 of preparing a pointer that allows access to one at a time.
43630 (grub_multiboot_load_elf64): Likewise.
43632 2008-07-31 Bean <bean123ch@gmail.com>
43634 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43635 GRUB_KERNEL_MACHINE_DATA_END.
43637 2008-07-30 Robert Millan <rmh@aybabtu.com>
43639 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43640 Increase from 0x50 to 0x60.
43641 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43642 use UUIDs to identify the root drive for them. If that's not
43644 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43645 check, for cross-disk installs.
43647 2008-07-30 Robert Millan <rmh@aybabtu.com>
43649 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43650 is non-empty, use it to set the `prefix' environment variable instead
43651 of the usual approach.
43652 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43653 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43654 environment variable instead of dummy make_install_device().
43656 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43657 (start): Insert a data section, with `grub_prefix' variable.
43658 * kern/i386/linuxbios/startup.S: Likewise.
43660 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43661 New variable reference.
43662 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43663 New macro. Defines offset of `grub_prefix' within startup.S (relative
43665 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43666 section within startup.S (relative to `start').
43667 * include/grub/i386/coreboot/kernel.h: Likewise.
43669 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43670 Overwrite grub_prefix with its contents, at the beginning of the
43672 (main): Understand -p|--prefix.
43674 2008-07-30 Robert Millan <rmh@aybabtu.com>
43676 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43678 2008-07-30 Robert Millan <rmh@aybabtu.com>
43680 * term/i386/pc/vga_text.c (grub_console_cls): Use
43681 grub_console_gotoxy() to go back to beginning of the screen.
43682 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43684 2008-07-29 Christian Franke <franke@computer.org>
43686 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43687 Add conversion of emulated mount points on Cygwin.
43689 2008-07-29 Christian Franke <franke@computer.org>
43691 * util/update-grub.in: Add a check for admin
43693 Remove old `grub.cfg.new' before creation.
43694 Add `-f' to `mv' to handle the different filesystem
43695 semantics of Windows.
43697 2008-07-29 Bean <bean123ch@gmail.com>
43699 * normal/main.c (get_line): Fix buffer overflow bug.
43701 2008-07-28 Robert Millan <rmh@aybabtu.com>
43703 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43704 (struct grub_apple_header): New struct. Describes the layout of
43705 the partmap header.
43706 (apple_partition_map_iterate): Check the header magic as well as the
43707 partition magic (which was already being checked).
43709 2008-07-28 Pavel Roskin <proski@gnu.org>
43711 * genmk.rb: Add a warning to the beginning of the output that
43712 it's a generated file and should not be edited.
43714 2008-07-28 Robert Millan <rmh@aybabtu.com>
43716 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43717 with the same number are found, just use issue a warning with
43718 grub_dprintf(), as this error has been reported to be non-fatal.
43720 2008-07-27 Robert Millan <rmh@aybabtu.com>
43722 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43725 2008-07-27 Bean <bean123ch@gmail.com>
43727 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43728 (grub_fat_find_dir): Ignore case when comparing filename.
43730 2008-07-27 Bean <bean123ch@gmail.com>
43732 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43733 smallino, as it's more descriptive, and i8count can be confused with
43734 the other field count.
43735 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43738 2008-07-27 Bean <bean123ch@gmail.com>
43740 * commands/crc.c: New file.
43742 * lib/crc.c: Likewise.
43744 * include/grub/lib/crc.h: Likewise.
43746 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43748 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43749 (hexdump): Move this function to ...
43751 * lib/hexdump.c: ... here.
43753 * include/grub/hexdump.h: Renamed to ...
43755 * include/grub/lib/hexdump.h: ... this.
43757 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43759 * util/grub-editenv.c: Likewise.
43761 * include/envblk.h: Renamed to ...
43763 * include/lib/envblk.h: ... this.
43765 * util/envblk.c: Renamed to ...
43767 * lib/envblk.c: ... this.
43769 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43771 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43772 (pkglib_MODULES): Add crc.mod.
43773 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43774 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43775 (crc_mod_SOURCES): New macro.
43776 (crc_mod_CFLAGS): Likewise.
43777 (crc_mod_LDFLAGS): Likewise.
43779 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43781 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43783 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43785 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43787 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43789 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43791 * commands/help.c: Include <grub/term.h>.
43792 (TERM_WIDTH): Removed. Updated all users.
43794 2008-07-27 Pavel Roskin <proski@gnu.org>
43796 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43797 spurious warnings about a comment within a comment.
43799 2008-07-25 Robert Millan <rmh@aybabtu.com>
43801 * util/getroot.c (find_root_device): Skip devices that match
43802 /dev/dm-[0-9]. This lets the real device be found for any type of
43803 abstraction (LVM, EVMS, RAID..).
43804 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43805 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43806 device is found first, find_root_device() will now skip it.
43808 2008-07-24 Pavel Roskin <proski@gnu.org>
43810 * include/grub/types.h: Use __builtin_bswap32() and
43811 __builtin_bswap64() with gcc 4.3 and newer.
43813 2008-07-24 Christian Franke <franke@computer.org>
43815 * util/i386/pc/grub-install.in: If `--debug' is specified,
43816 pass `--verbose' to grub-setup.
43817 Abort script if make_system_path_relative_to_its_root() fails.
43819 2008-07-24 Bean <bean123ch@gmail.com>
43821 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43822 variable `target_platform' should be `platform'.
43824 2008-07-24 Bean <bean123ch@gmail.com>
43826 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43827 (grub_png_init_fixed_block): New function.
43828 (grub_png_decode_image_data): Handle fixed huffman code compression.
43830 2008-07-24 Bean <bean123ch@gmail.com>
43832 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43833 (grub_pe2elf_SOURCES): New macro.
43834 (CLEANFILES): Add grub-pe2elf.
43836 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43837 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43838 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43839 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43840 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43841 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43842 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43843 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43844 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43845 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43846 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43847 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43848 (GRUB_PE32_DT_FUNCTION): Likewise.
43849 (GRUB_PE32_REL_I386_DIR32): Likewise.
43850 (GRUB_PE32_REL_I386_REL32): Likewise.
43851 (grub_pe32_symbol): New structure.
43852 (grub_pe32_reloc): Likewise.
43854 * util/grub-pe2elf.c: New file.
43856 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43857 start symbol in non pc platform.
43859 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43861 The following patches are from Christian Franke.
43863 * include/grub/dl.h: Remove .previous, gas supports this only
43866 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43867 Remove .type, gas supports this only for ELF format.
43869 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43870 nullbytes in symbol table. This fixes an infinite loop if table is
43873 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43874 TARGET_IMG_LDFLAGS and EXEEXT.
43876 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43877 TARGET_IMG_LDFLAGS_AC.
43878 (grub_CHECK_STACK_ARG_PROBE): New function.
43880 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43882 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43884 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43885 to set TARGET_IMG_LD* accordingly.
43886 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43887 Add call to grub_CHECK_STACK_ARG_PROBE.
43888 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43890 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43892 * genmk.rb: Add EXEEXT to CLEANFILES.
43894 2008-07-23 Robert Millan <rmh@aybabtu.com>
43896 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43897 define the codes for arrows and lines used for the menu).
43898 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43901 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43902 fonts, because the latter are too slow.
43904 2008-07-21 Bean <bean123ch@gmail.com>
43906 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43907 a20. Run keyboard test last, as it will cause macbook to halt.
43909 2008-07-18 Pavel Roskin <proski@gnu.org>
43911 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43912 load foreign architecture modules correctly anyway. Keep
43913 support for loading host architecture modules, whether we
43914 compile them or not.
43916 2008-07-17 Pavel Roskin <proski@gnu.org>
43918 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43919 change target_cpu. The compiler default can mismatch target_cpu
43922 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43923 * kern/efi/efi.c: Likewise.
43925 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43926 target compiler is functional.
43927 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43930 * configure.ac: Default to efi platform for x86_64-apple. Allow
43931 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43932 adjustments from the rest, only do them if target is not
43933 explicitly given. Merge other adjustments with the final sanity
43934 check. Remove an extraneous check for supported CPU. Be
43935 specific which CPU and which platform is not supported.
43937 * configure.ac: Default to pc platform for x86_64.
43939 2008-07-17 Robert Millan <rmh@aybabtu.com>
43941 Partial LinuxBIOS -> Coreboot rename.
43943 * conf/i386-linuxbios.rmk: Renamed to ...
43944 * conf/i386-coreboot.rmk: ... this.
43945 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43946 * configure.ac: Accept "coreboot" as input platform (but maintain
43947 compatibility with "linuxbios").
43948 * include/grub/i386/linuxbios: Renamed to ...
43949 * include/grub/i386/coreboot: ... this.
43951 2008-07-17 Bean <bean123ch@gmail.com>
43953 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43954 (appleldr_mod_SOURCE): New variable.
43955 (appleldr_mod_CFLAGS): Likewise.
43956 (appleldr_mod_LDFLAGS): Likewise.
43957 (pci_mod_SOURCES): Likewise.
43958 (pci_mod_CFLAGS): Likewise.
43959 (pci_mod_LDFLAGS): Likewise.
43960 (lspci_mod_SOURCES): Likewise.
43961 (lspci_mod_CFLAGS): Likewise.
43962 (lspci_mod_LDFLAGS): Likewise.
43964 * conf/x86_64-efi.rmk: New file.
43966 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43968 (grub_efidisk_write): Likewise.
43970 * include/efi/api.h (efi_call_0): New macro.
43971 (efi_call_1): Likewise.
43972 (efi_call_2): Likewise.
43973 (efi_call_3): Likewise.
43974 (efi_call_4): Likewise.
43975 (efi_call_5): Likewise.
43976 (efi_call_6): Likewise.
43978 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43979 grub_rescue_cmd_chainloader.
43981 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43982 (grub_pe32_optional_header): Change some fields based on i386 or
43984 (GRUB_PE32_PE32_MAGIC): Likewise.
43986 * include/grub/efi/uga_draw.h: New file.
43988 * include/grub/elf.h (STN_ABS): New constant.
43989 (R_X86_64_NONE): Relocation constant for x86_64.
43990 (R_X86_64_64): Likewise.
43991 (R_X86_64_PC32): Likewise.
43992 (R_X86_64_GOT32): Likewise.
43993 (R_X86_64_PLT32): Likewise.
43994 (R_X86_64_COPY): Likewise.
43995 (R_X86_64_GLOB_DAT): Likewise.
43996 (R_X86_64_JUMP_SLOT): Likewise.
43997 (R_X86_64_RELATIVE): Likewise.
43998 (R_X86_64_GOTPCREL): Likewise.
43999 (R_X86_64_32): Likewise.
44000 (R_X86_64_32S): Likewise.
44001 (R_X86_64_16): Likewise.
44002 (R_X86_64_PC16): Likewise.
44003 (R_X86_64_8): Likewise.
44004 (R_X86_64_PC8): Likewise.
44006 * include/grub/i386/efi/pci.h: New file.
44008 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
44009 Change it value based on platform.
44010 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
44011 (GRUB_E820_RAM): Likewise.
44012 (GRUB_E820_RESERVED): Likewise.
44013 (GRUB_E820_ACPI): Likewise.
44014 (GRUB_E820_NVS): Likewise.
44015 (GRUB_E820_EXEC_CODE): Likewise.
44016 (GRUB_E820_MAX_ENTRY): Likewise.
44017 (grub_e820_mmap): New structure.
44018 (linux_kernel_header): Change the efi field according to different
44019 kernel version, also field from linux_kernel_header.
44021 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
44023 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
44024 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
44025 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
44026 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
44027 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
44028 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
44029 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
44030 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
44031 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
44032 (GRUB_PCI_ADDR_IO_MASK): Likewise.
44034 * include/grub/x86_64/efi/kernel.h: New file.
44036 * include/grub/x86_64/efi/loader.h: Likewise.
44038 * include/grub/x86_64/efi/machine.h: Likewise.
44040 * include/grub/x86_64/efi/pci.h: Likewise.
44042 * include/grub/x86_64/efi/time.h: Likewise.
44044 * include/grub/x86_64/linux.h: Likewise.
44046 * include/grub/x86_64/setjmp.h: Likewise.
44048 * include/grub/x86_64/time.h: Likewise.
44050 * include/grub/x86_64/types.h: Likewise.
44052 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
44053 GRUB_TARGET_SIZEOF_VOID_P.
44055 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
44056 (grub_efi_locate_handle): Likewise.
44057 (grub_efi_open_protocol): Likewise.
44058 (grub_efi_set_text_mode): Likewise.
44059 (grub_efi_stall): Likewise.
44060 (grub_exit): Likewise.
44061 (grub_reboot): Likewise.
44062 (grub_halt): Likewise.
44063 (grub_efi_exit_boot_services): Likewise.
44064 (grub_get_rtc): Likewise.
44066 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
44067 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
44068 (grub_efi_allocate_pages): Wrap efi calls.
44069 (grub_efi_free_pages): Wrap efi calls.
44070 (grub_efi_get_memory_map): Wrap efi calls.
44072 * kern/x86_64/dl.c: New file.
44074 * kern/x86_64/efi/callwrap.S: Likewise.
44076 * kern/x86_64/efi/startup.S: Likewise.
44078 * loader/efi/appleloader.c: Likewise.
44080 * loader/efi/chainloader.c (cmdline): New variable.
44081 (grub_chainloader_unload): Wrap efi calls.
44082 (grub_chainloader_boot): Likewise.
44083 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
44086 * loader/efi/chainloader_normal.c (chainloader_command):
44087 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
44090 * loader/i386/efi/linux.c (allocate_pages): Change allocation
44092 (grub_e820_add_region): New function.
44093 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
44095 (grub_find_video_card): New function.
44096 (grub_linux_setup_video): New function.
44097 (grub_rescue_cmd_linux): Probe for video information.
44099 * normal/x86_64/setjmp.S: New file.
44101 * term/efi/console.c (map_char): New function.
44102 (grub_console_putchar): Map unicode char.
44103 (grub_console_checkkey): Wrap efi calls.
44104 (grub_console_getkey): Likewise.
44105 (grub_console_getwh): Likewise.
44106 (grub_console_gotoxy): Likewise.
44107 (grub_console_cls): Likewise.
44108 (grub_console_setcolorstate): Likewise.
44109 (grub_console_setcursor): Likewise.
44111 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
44113 2008-07-16 Pavel Roskin <proski@gnu.org>
44115 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
44118 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
44119 pointer, not an integer. This fixes a warning and prevents
44120 precision loss on 64-bit systems.
44121 (relocate_addresses): Remove unneeded cast.
44123 2008-07-15 Pavel Roskin <proski@gnu.org>
44125 * kern/i386/ieee1275/init.c: Include grub/cache.h.
44127 * term/ieee1275/ofconsole.c: Disable code unused on i386.
44129 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
44130 Fix comparison between signed and unsigned.
44132 * include/grub/i386/ieee1275/console.h: Declare
44133 grub_console_init() and grub_console_fini().
44135 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
44136 It's empty and unused.
44138 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
44139 beginning to avoid warnings with some compilers.
44141 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
44142 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
44144 2008-07-14 Pavel Roskin <proski@gnu.org>
44146 * kern/env.c (grub_register_variable_hook): Don't copy empty
44147 string, it leaks memory. Pass "" to grub_env_set(), it should
44148 handle constant strings.
44150 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
44151 * commands/cmp.c (grub_cmd_cmp): Likewise.
44152 * kern/dl.c (grub_dl_flush_cache): Likewise.
44153 (grub_dl_load_core): Likewise.
44154 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
44155 (grub_elf64_load_phdrs): Likewise.
44157 2008-07-13 Pavel Roskin <proski@gnu.org>
44159 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
44160 between signed and unsigned.
44161 (LzmaEnc_Finish): Fix warning about an unused parameter.
44163 2008-07-13 Bean <bean123ch@gmail.com>
44165 * Makefile.in (enable_lzo): New rule.
44167 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
44169 * configure.ac (ENABLE_LZO): New option --enable-lzo.
44171 * boot/i386/pc/lnxboot.S: #include <config.h>.
44173 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
44174 its value according to the compression algorithm used, lzo or lzma.
44176 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
44177 compression algorithm according to configure macro.
44179 * kern/i386/pc/startup.S (codestart): Likewise.
44181 * kern/i386/pc/lzma_decode.S: New file.
44183 * include/grub/lib/LzFind.h: Likewise.
44185 * include/grub/lib/LzHash.h: Likewise.
44187 * include/grub/lib/LzmaDec.h: Likewise.
44189 * include/grub/lib/LzmaEnc.h: Likewise.
44191 * include/grub/lib/LzmaTypes.h: Likewise.
44193 * lib/LzFind.c: Likewise.
44195 * lib/LzmaDec.c: Likewise.
44197 * lib/LzmaEnc.c: Likewise.
44199 2008-07-13 Bean <bean123ch@gmail.com>
44201 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44202 (grub_ext4_extent_header): New structure.
44203 (grub_ext4_extent): Likewise.
44204 (grub_ext4_extent_idx): Likewise.
44205 (grub_ext4_find_leaf): New function.
44206 (grub_ext2_read_block): Handle extents.
44208 2008-07-12 Robert Millan <rmh@aybabtu.com>
44210 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44212 2008-07-11 Robert Millan <rmh@aybabtu.com>
44214 * util/grub.d/40_custom.in: New file. Example on how to add custom
44215 entries to /etc/grub.d.
44216 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44217 40_custom (implicitly, by merging all the grub.d rules).
44219 2008-07-11 Pavel Roskin <proski@gnu.org>
44221 * commands/read.c (grub_getline): Fix invalid memory access.
44222 Don't add newline to the variable value.
44224 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44225 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44226 (serial_hw_get_port): Check validity of the port number.
44227 (grub_cmd_serial): Check return value of serial_hw_get_port().
44229 2008-07-07 Pavel Roskin <proski@gnu.org>
44231 * boot/i386/pc/diskboot.S (notification_string): Replace
44232 "Loading kernel" with just "loading". This is shorter, less
44233 confusing and saves a few bytes for possible future changes.
44235 2008-07-05 Pavel Roskin <proski@gnu.org>
44237 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44238 size for ATAPI devices, they are undefined. Output sector
44239 number in decimal form.
44241 * disk/ata.c: Use named constants for status bits.
44243 2008-07-04 Pavel Roskin <proski@gnu.org>
44245 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44246 grub_addr_t before casting it to the void pointer to fix a
44247 warning. Non-addressable regions are discarded earlier.
44248 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44249 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44250 (check_signature): Don't shadow table_header.
44251 (grub_linuxbios_table_iterate): Cast numeric constants to
44252 grub_linuxbios_table_header_t.
44253 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44256 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44259 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44260 pointer, which can cause warnings. Support 64-bit addresses.
44262 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44263 of sizeof(long). This fixes PowerPC image generation on x86_64.
44265 2008-07-04 Robert Millan <rmh@aybabtu.com>
44267 This fixes a performance issue when pc & gpt partmap iterators
44268 didn't abort iteration even after our hook found what it was
44269 looking for (often causing expensive probes of non-existent drives).
44271 Some callers relied on previous buggy behaviour, since they would
44272 raise an error when their own hooks caused early abortion of its
44275 * kern/device.c (grub_device_open): Improve error message.
44276 * disk/lvm.c (grub_lvm_open): Likewise.
44277 * disk/raid.c (grub_raid_open): Likewise.
44279 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44280 when hook requests it, independently of grub_errno.
44281 (pc_partition_map_probe): Do not fail when find_func() caused
44282 early abortion of pc_partition_map_iterate().
44284 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44285 when hook requests it, independently of grub_errno.
44286 (gpt_partition_map_probe): Do not fail when find_func() caused
44287 early abortion of gpt_partition_map_iterate().
44289 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44290 when hook requests it, independently of grub_errno. Do not fail when
44291 part_map_iterate_hook() caused early abortion of p->iterate().
44293 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44294 when grub_partition_iterate() returned with non-zero.
44296 2008-07-03 Pavel Roskin <proski@gnu.org>
44298 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44299 like we do in grub_ata_pio_read().
44300 (grub_ata_readwrite): Always write individual sectors. Fix the
44301 sector count for the remainder.
44302 (grub_ata_write): Enable writing to ATA devices. Correctly
44303 report error for ATAPI devices.
44305 2008-07-02 Pavel Roskin <proski@gnu.org>
44307 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44310 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44311 for every read sector, we already increment it for the whole
44312 batch. This fixes reading more than 256 sectors at once.
44314 * util/grub-editenv.c (cmd_info): Cast argument to long
44315 explicitly. ptrdiff_t reduces to int on i386.
44317 * util/grub-editenv.c (main): Be specific which parameter is
44320 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44321 (memdisk): Make memdisk_orig_addr a pointer.
44323 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44324 for file offsets, use grub_off_t instead. Fix printf format
44327 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44328 there. Real unexpected warnings should not drown in the noise
44329 about known problems.
44331 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44332 grub_disk_addr_t for memory addresses.
44334 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44335 explicitly to fix a warning.
44337 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44339 * Makefile.in (MODULE_LDFLAGS): New variable.
44340 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44341 the linker accepts --build-id=none.
44342 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44344 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44346 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44347 those in Linux XFS code. Provide a way to access 64-bit parent
44349 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44350 the end of struct grub_xfs_dir_header.
44352 2008-07-02 Bean <bean123ch@gmail.com>
44354 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44355 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44356 and GRUB_IEEE1275_FLAG_NO_ANSI.
44358 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44359 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44360 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44362 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44363 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44365 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44366 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44368 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44369 esc sequence on non ANSI terminal.
44370 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44372 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44375 2008-07-02 Bean <bean123ch@gmail.com>
44377 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44378 (grub_editenv_SOURCES): New variable.
44379 (pkglib_MODULES): Add loadenv.mod.
44380 (loadenv_mod_SOURCES): New variable.
44381 (loadenv_mod_CFLAGS): Likewise.
44382 (loadenv_mod_LDFLAGS): Likewise.
44384 * include/grub/envblk.h: New file.
44386 * util/envblk.c: New file.
44388 * util/grub-editenv.c: New file.
44390 * commands/loadenv.c: New file.
44392 2008-07-01 Pavel Roskin <proski@gnu.org>
44394 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44395 not unsigned char. This fixes warnings and is consistent with
44398 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44400 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44402 * term/tparm.c (analyze): Always set *popcount.
44404 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44405 cast to fix a warning.
44407 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44408 cast to suppress a warning.
44410 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44411 grub_fshelp_read_file() expects.
44413 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44414 write uuid as a 32-bit value in CPU byte order, so declare and
44417 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44418 long if the format specifier expects it.
44419 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44420 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44421 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44422 long to fix a warning.
44423 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44424 grub_dprintf() arguments to fix warnings.
44426 2008-06-30 Pavel Roskin <proski@gnu.org>
44428 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44429 install_bsd_part immediately before core.img is embedded or
44430 modified on disk. This fixes core.img verification if core.img
44431 cannot be embedded.
44433 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44434 core_path to calculate the blocklist.
44435 Patch from Javier Martín <lordhabbit@gmail.com>
44437 2008-06-29 Robert Millan <rmh@aybabtu.com>
44439 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44440 block to disk block.
44441 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44442 Patch from Niels Böhm <bitbucket@arcor.de>
44444 2008-06-29 Robert Millan <rmh@aybabtu.com>
44446 * util/update-grub_lib.in (font_path): Search for fonts in
44447 /boot/grub first, which is more likely to be readable (we aren't
44448 deciding where fonts live, just looking for them).
44450 2008-06-26 Pavel Roskin <proski@gnu.org>
44452 * util/biosdisk.c (read_device_map): Don't leave dead map
44453 entries for devices failing stat() check.
44455 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44456 core_path_dev for the core.img path on the target device.
44458 2008-06-26 Robert Millan <rmh@aybabtu.com>
44460 * disk/fs_uuid.c: New file.
44461 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44462 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44463 (fs_uuid_mod_LDFLAGS): New variables.
44464 * include/grub/disk.h (grub_disk_dev_id): Add
44465 `GRUB_DISK_DEVICE_UUID_ID'.
44466 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44467 implement iterate().
44469 2008-06-26 Robert Millan <rmh@aybabtu.com>
44471 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44472 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44473 Linux image includes no initrd.
44475 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44477 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44478 call to resolve the core image location that effectively appended the
44481 2008-06-21 Robert Millan <rmh@aybabtu.com>
44483 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44486 * util/grub.d/10_hurd.in: ... to here ...
44487 * util/grub.d/10_linux.in: ... and here.
44489 2008-06-19 Robert Millan <rmh@aybabtu.com>
44491 * kern/main.c (grub_main): Export `prefix' variable immediately
44492 after it has been set by grub_machine_set_prefix().
44494 2008-06-19 Robert Millan <rmh@aybabtu.com>
44496 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44497 search result when not saving to variable, not the other way around.
44498 When saving to variable, abort iteration as soon as a match is found.
44500 2008-06-19 Robert Millan <rmh@aybabtu.com>
44502 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44503 check for partition that provides /boot/grub. Its logic is flawed,
44504 as it prevents prepare_grub_to_access_device() from being called
44507 2008-06-19 Robert Millan <rmh@aybabtu.com>
44509 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44510 "insmod" command directly when abstraction modules are needed,
44511 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44512 since it had already been processed).
44514 2008-06-19 Pavel Roskin <proski@gnu.org>
44516 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44517 changed. This is needed in case GRUB_LIBDIR changes.
44518 * conf/i386-ieee1275.rmk: Likewise.
44519 * conf/i386-linuxbios.rmk: Likewise.
44520 * conf/i386-pc.rmk: Likewise.
44521 * conf/powerpc-ieee1275.rmk: Likewise.
44523 2008-06-18 Pavel Roskin <proski@gnu.org>
44525 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44526 kernel_elf_symlist.c to symlist.c for consistency with other
44527 architectures. Update all users.
44528 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44530 2008-06-18 Robert Millan <rmh@aybabtu.com>
44532 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44535 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44536 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44537 a RAID device, run setup() for all members independently on whether
44538 LVM abstraction is being used.
44539 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44540 If grub-mkimage has set `*install_dos_part == -2', don't override this
44542 Perform *install_dos_part adjustments independently on whether
44543 we're embedding or not.
44544 Clarify error message when image is too big for embedding.
44545 Remove duplicate *install_dos_part stanza.
44547 2008-06-17 Robert Millan <rmh@aybabtu.com>
44549 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44550 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44552 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44553 values in grub_ofconsole_normal_color and
44554 grub_ofconsole_highlight_color (they're not directly related to
44555 background and foreground).
44556 (grub_ofconsole_setcolorstate): Extract background and foreground
44557 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44559 2008-06-17 Robert Millan <rmh@aybabtu.com>
44561 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44562 /boot/grub for the check in last commit, not /boot (they could be
44563 different partitions).
44565 2008-06-16 Robert Millan <rmh@aybabtu.com>
44567 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44568 asked to setup access for the same partition that provides /boot,
44569 don't bother using UUIDs since our root already has the value we
44572 2008-06-16 Robert Millan <rmh@aybabtu.com>
44574 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44576 Patch from Sven Mueller <sven@debian.org>.
44578 2008-06-16 Robert Millan <rmh@aybabtu.com>
44580 * util/update-grub.in: Check for $EUID instead of $UID.
44581 Reported by Vincent Zweije.
44583 2008-06-16 Bean <bean123ch@gmail.com>
44585 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44586 (grub_ext2_read_block): Likewise.
44587 (grub_ext2_read_inode): Likewise.
44588 (grub_ext2_mount): Likewise.
44589 (grub_ext2_close): Likewise.
44590 (grub_ext3_get_journal): Removed.
44592 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44593 (grub_reiserfs_read_symlink): Likewise.
44594 (grub_reiserfs_mount): Likewise.
44595 (grub_reiserfs_open): Likewise.
44596 (grub_reiserfs_read): Likewise.
44597 (grub_reiserfs_close): Likewise.
44598 (grub_reiserfs_get_journal): Removed.
44600 * fs/fshelp.c (grub_fshelp_read): Removed.
44601 (grub_fshelp_map_block): Likewise.
44603 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44604 (grub_fshelp_journal): Likewise.
44605 (grub_fshelp_read): Likewise.
44606 (grub_fshelp_map_block): Likewise.
44608 2008-06-16 Pavel Roskin <proski@gnu.org>
44610 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44611 floating point anymore.
44612 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44614 2008-06-15 Pavel Roskin <proski@gnu.org>
44616 * commands/ls.c (grub_ls_list_files): Use integer calculations
44617 for human readable format, avoid floating point use.
44618 * kern/misc.c (grub_ftoa): Remove.
44619 (grub_vsprintf): Remove floating point support.
44621 2008-06-15 Robert Millan <rmh@aybabtu.com>
44623 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44625 Reported by Max Vozeler.
44627 2008-06-15 Robert Millan <rmh@aybabtu.com>
44629 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44630 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44632 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44633 the beginning of the prefix.
44635 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44636 It is assumed that if we have a memdisk, grub-mkimage has set
44637 grub_prefix to include the "(memdisk)" drive in it.
44639 2008-06-15 Robert Millan <rmh@aybabtu.com>
44641 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44642 Initialize keyboard controller after registering the terminal, so that
44643 grub_printf() can be called from grub_keyboard_controller_init().
44645 2008-06-15 Robert Millan <rmh@aybabtu.com>
44647 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44648 extent-btree which is written as big endian on disk.
44649 Reported by Alain Greppin <al@chilibi.org>.
44651 2008-06-14 Robert Millan <rmh@aybabtu.com>
44653 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44654 * util/i386/pc/grub-install.in (modules): Likewise.
44656 2008-06-13 Pavel Roskin <proski@gnu.org>
44658 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44660 2008-06-13 Bean <bean123ch@gmail.com>
44662 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44664 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44666 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44667 to indicate sparse block.
44669 2008-06-12 Pavel Roskin <proski@gnu.org>
44671 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44672 number, grub_fshelp_read() does it for us.
44674 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44675 linear disk read with journal translation.
44676 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44677 * include/grub/fshelp.h: Declare grub_fshelp_read().
44679 2008-06-09 Pavel Roskin <proski@gnu.org>
44681 * fs/minix.c (grub_minix_mount): Handle error reading
44684 2008-06-08 Robert Millan <rmh@aybabtu.com>
44686 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44687 don't append the RAID prefix afterwards.
44688 Reported by Clint Adams.
44690 2008-06-08 Robert Millan <rmh@aybabtu.com>
44692 Based on description from Pavel:
44693 * kern/disk.c (grub_disk_check_range): Rename to ...
44694 (grub_disk_adjust_range): ... this. Add a comment explaining the
44695 tasks performed by this function.
44697 2008-06-08 Robert Millan <rmh@aybabtu.com>
44699 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44700 `num_serial' (for consistency with other variables).
44701 (struct grub_ntfs_data): Add `uuid' member.
44702 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44703 (grub_ntfs_uuid): New function.
44704 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44706 2008-06-07 Pavel Roskin <proski@gnu.org>
44708 * util/biosdisk.c (open_device): Revert last change to the
44709 function, it broke installation. The sector needs to be
44710 different dependent on which device is opened.
44712 2008-06-06 Robert Millan <rmh@aybabtu.com>
44714 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44715 rest of GRUB, and breakage doesn't happen if its value were modified.
44717 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44718 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44719 a constant (same value).
44720 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44721 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44723 2008-06-06 Robert Millan <rmh@aybabtu.com>
44725 * util/biosdisk.c (open_device): Do not modify sector offset when
44726 accessing a partition. kern/disk.c already handles this for us.
44728 2008-06-06 Robert Millan <rmh@aybabtu.com>
44730 * util/grub-emu.c (grub_machine_init): Move code in this function from
44732 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44733 segfault in case grub_printf() is called).
44735 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44736 grub_probe. Update all users not to explicitly add it again.
44737 (grub_device): New variable; contains corresponding device for grubdir.
44738 (fs_module, partmap_module, devabstraction_module): Pass
44739 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44742 2008-06-05 Robert Millan <rmh@aybabtu.com>
44744 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44745 is found, print it (same layout as with labels).
44747 2008-06-04 Robert Millan <rmh@aybabtu.com>
44749 * util/biosdisk.c (get_drive): Rename to ...
44750 (find_grub_drive): ... this. Update all users.
44752 (get_os_disk): Rename to ...
44753 (convert_system_partition_to_system_disk): ... this. Update all users.
44755 (find_drive): Rename to ...
44756 (find_system_device): ... this. Update all users.
44758 2008-06-04 Robert Millan <rmh@aybabtu.com>
44760 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44761 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44762 (make_device_map): Likewise.
44764 2008-06-01 Robert Millan <rmh@aybabtu.com>
44766 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44767 before dereferencing it.
44769 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44770 union with fat12/fat16-specific ones. Add some new fields, including
44771 `num_serial' for both versions.
44772 (struct grub_fat_data): Add `uuid' member.
44773 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44774 names. Initialize `data->uuid' using `num_serial'.
44775 (grub_fat_uuid): New function.
44776 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44778 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44779 (grub_reiserfs_uuid): New function.
44780 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44783 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44784 (grub_xfs_uuid): New function.
44785 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44787 2008-06-01 Robert Millan <rmh@aybabtu.com>
44789 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44790 code that is backward compatible with pre-uuid search command.
44792 2008-05-31 Robert Millan <rmh@aybabtu.com>
44794 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44795 floppies after everything else, to ensure floppy drive isn't accessed
44796 unnecessarily (patch from Bean).
44798 2008-05-31 Robert Millan <rmh@aybabtu.com>
44800 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44801 not print device names when we were asked to set a variable.
44803 2008-05-31 Robert Millan <rmh@aybabtu.com>
44805 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44806 using "cursor-on" and "cursor-off" commands (understood at least by
44807 the Open Firmware flavour on OLPC).
44809 2008-05-31 Michael Gorven <michael@gorven.za.net>
44811 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44812 on and off sequences.
44814 2008-05-31 Robert Millan <rmh@aybabtu.com>
44816 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44817 * util/update-grub.in: Likewise.
44819 2008-05-30 Pavel Roskin <proski@gnu.org>
44821 * util/biosdisk.c (linux_find_partition): Simplify logic and
44822 make the code more universal. Keep special processing for
44823 devfs, but use a simple rule for all other devices. If the
44824 device ends with a number, append 'p' and the partition number.
44825 Otherwise, append only the partition number.
44827 2008-05-30 Robert Millan <rmh@aybabtu.com>
44829 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44830 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44831 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44832 the `root' parameter to Linux.
44834 2008-05-30 Robert Millan <rmh@aybabtu.com>
44836 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44837 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44838 --fs_uuid with --fs-uuid.
44839 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44840 all filesystems support them).
44842 2008-05-30 Robert Millan <rmh@aybabtu.com>
44844 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44845 grub_printf() flags, since we're printing in units of 2 bytes.
44847 2008-05-30 Robert Millan <rmh@aybabtu.com>
44849 * util/grub.d/00_header.in: Remove obsolete comment referencing
44850 convert_system_path_to_grub_path().
44851 * util/update-grub.in: Likewise.
44852 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44853 (convert_system_path_to_grub_path): Add a warning message explaining
44854 that this function is deprecated. Rely on is_path_readable_by_grub()
44855 for the readability checks.
44856 (font_path): Use is_path_readable_by_grub() for the readability
44857 check rather than convert_system_path_to_grub_path().
44859 2008-05-30 Robert Millan <rmh@aybabtu.com>
44861 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44862 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44863 converting it first.
44864 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44865 grub.cfg for access to font file, and afterwards call it again to set
44868 2008-05-30 Robert Millan <rmh@aybabtu.com>
44870 * commands/search.c (options): Add --fs_uuid option.
44871 (search_fs_uuid): New function.
44872 (grub_cmd_search): Fix --set argument passing.
44873 Use search_fs_uuid() when requested via --fs_uuid.
44874 (grub_search_init): Update help message.
44875 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44876 and redeclare it as an array of 16-bit words.
44877 (grub_ext2_uuid): New function.
44878 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44879 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44880 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44881 (GRUB_DEVICE_BOOT_UUID): New variables.
44882 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44883 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44885 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44886 just assume `root' variable has the right value.
44887 * util/grub.d/10_linux.in: Likewise.
44888 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44890 (main): Recognise `-t fs_uuid' argument.
44892 2008-05-30 Robert Millan <rmh@aybabtu.com>
44894 * util/biosdisk.c (map): Redefine structure to hold information
44895 about GRUB drive name.
44896 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44898 (call_hook): Remove.
44899 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44900 member. Assume drive has partitions.
44901 (grub_util_biosdisk_open): Access device names via `.device' struct
44903 (open_device): Likewise.
44904 (find_drive): Likewise.
44905 (read_device_map): Adjust map[] usage to match the new struct
44906 definition. Don't check for duplicates (still possible, but not cheap
44908 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44909 (make_device_name): Remove assumption of BIOS-like drive names.
44911 2008-05-30 Pavel Roskin <proski@gnu.org>
44913 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44914 compiling execute.c doesn't need grub_script.tab.h anymore.
44915 (normal/command.c_DEPENDENCIES): Likewise.
44916 (normal/function.c_DEPENDENCIES): Likewise.
44917 * conf/i386-ieee1275.rmk: Likewise.
44918 * conf/i386-linuxbios.rmk: Likewise.
44919 * conf/i386-pc.rmk: Likewise.
44920 * conf/powerpc-ieee1275.rmk: Likewise.
44921 * conf/sparc64-ieee1275.rmk: Likewise.
44923 2008-05-29 Pavel Roskin <proski@gnu.org>
44925 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44926 when scanning metadata for volume group name.
44928 * include/grub/script.h: Don't include grub_script.tab.h. It's
44929 a generated file, which may only be included from the files with
44930 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44931 use union YYSTYPE, as the later allows forward declaration.
44932 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44934 2008-05-29 Robert Millan <rmh@aybabtu.com>
44936 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44937 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44938 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44939 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44942 2008-05-29 Robert Millan <rmh@aybabtu.com>
44944 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44945 control key combinations.
44947 2008-05-29 Robert Millan <rmh@aybabtu.com>
44949 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44950 * util/ieee1275/grub-install.in: ... to here.
44951 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44952 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44953 (grub_install_SOURCES): Likewise.
44955 2008-05-29 Robert Millan <rmh@aybabtu.com>
44957 * fs/affs.c: Update copyright year.
44958 * fs/ext2.c: Likewise.
44959 * fs/fshelp.c: Likewise.
44960 * fs/hfsplus.c: Likewise.
44961 * fs/ntfs.c: Likewise.
44962 * fs/xfs.c: Likewise.
44963 * include/grub/fshelp.h: Likewise.
44964 * util/grub-mkdevicemap.c: Likewise.
44966 2008-05-28 Robert Millan <rmh@aybabtu.com>
44968 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44969 might need to be fatfs to support some firmware implementations
44972 2008-05-28 Robert Millan <rmh@aybabtu.com>
44974 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44976 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44977 (make_device_map): Likewise.
44979 2008-05-20 Bean <bean123ch@gmail.com>
44981 * fs/fshelp.c (grub_fshelp_map_block): New function.
44982 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44983 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44985 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44986 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44987 (grub_fshelp_journal): New structure.
44988 (grub_fshelp_map_block): New function prototype.
44989 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44990 (grub_fshelp_map_block): Likewise.
44992 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44993 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44994 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44995 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44996 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44997 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44998 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44999 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
45000 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
45001 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
45002 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
45003 (grub_ext2_sblock): New members for journal support.
45004 (grub_ext3_journal_header): New structure.
45005 (grub_ext3_journal_revoke_header): Likewise.
45006 (grub_ext3_journal_block_tag): Likewise.
45007 (grub_ext3_journal_sblock): Likewise.
45008 (grub_fshelp_node): New members logfile and journal.
45009 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
45010 grub_fshelp_map_block to get real block number.
45011 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
45013 (grub_ext2_read_inode): Likewise.
45014 (grub_ext3_get_journal): New function.
45015 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
45016 (grub_ext2_close): Release memory used by journal.
45018 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
45019 (REISERFS_MAGIC_DESC_BLOCK): New macro.
45020 (grub_reiserfs_transaction_header): Renamed to
45021 grub_reiserfs_description_block, replace field data with real_blocks.
45022 (grub_reiserfs_commit_block): New structure.
45023 (grub_reiserfs_data): New member journal.
45024 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
45026 (grub_reiserfs_read_symlink): Likewise.
45027 (grub_reiserfs_iterate_dir): Likewise.
45028 (grub_reiserfs_open): Likewise.
45029 (grub_reiserfs_read): Likewise.
45030 (grub_reiserfs_get_journal): New function.
45031 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
45032 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
45033 using grub_reiserfs_get_journal.
45034 (grub_reiserfs_close): Release memory used by journal.
45036 * fs/affs.c (grub_affs_read_block): Change block type to
45037 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
45039 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
45041 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
45043 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
45045 * fs/udf.c (grub_udf_read_block): Change block type to
45046 grub_disk_addr_t. Use type cast to avoid warning.
45048 * fs/xfs.c (grub_xfs_read_block): Likewise.
45050 2008-05-16 Christian Franke <franke@computer.org>
45052 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
45053 to ensure that break with ESC will always work.
45054 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
45055 Remove ESC from keyboard queue.
45057 2008-05-16 Christian Franke <franke@computer.org>
45059 * util/biosdisk.c: [__CYGWIN__] Add includes.
45060 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
45061 (get_os_disk): Move variable declarations to OS specific
45062 parts to avoid warning.
45063 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
45064 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
45065 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
45067 * util/getroot.c: [__CYGWIN__] Add includes.
45068 (strip_extra_slashes): Fix "/" case.
45069 [__CYGWIN__] (get_win32_path): New function.
45070 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
45071 [__CYGWIN__] (find_root_device): Disable.
45072 [__CYGWIN__] (get_bootsec_serial): New function.
45073 [__CYGWIN__] (find_cygwin_root_device): Likewise.
45074 [__linux__] (grub_guess_root_device): Add early returns to simplify
45076 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
45077 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
45078 check for Linux only.
45080 2008-05-15 Bean <bean123ch@gmail.com>
45082 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
45083 keyboard hang problem in apple's intel mac.
45085 2008-05-09 Robert Millan <rmh@aybabtu.com>
45087 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
45089 * util/grub-mkdevicemap.c (get_virtio_disk_name)
45090 (make_device_map): Likewise.
45091 Reported by Aurelien Jarno <aurel32@debian.org>
45093 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
45095 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
45096 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
45097 (make_device_map): Output entries for xvd type disks.
45099 2008-05-07 Robert Millan <rmh@aybabtu.com>
45101 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
45103 * util/grub-mkdevicemap.c (get_cciss_disk_name)
45104 (make_device_map): Likewise.
45105 Reported by Roland Dreier <rdreier@cisco.com>
45107 2008-05-07 Robert Millan <rmh@aybabtu.com>
45109 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
45110 grub_strstr() call. Correct a few mistakes in failure path handling.
45112 2008-05-06 Robert Millan <rmh@aybabtu.com>
45114 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
45115 Do not print a trailing slash (therefore, the root directory is an
45117 (convert_system_path_to_grub_path): Do not remove trailing slash
45118 from make_system_path_relative_to_its_root() output.
45120 * util/i386/pc/grub-install.in: Add trailing slash to output from
45121 make_system_path_relative_to_its_root().
45123 2008-05-06 Robert Millan <rmh@aybabtu.com>
45125 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
45126 ensures that output lines aren't intermangled with those sent to
45127 stderr (via grub_util_info()).
45128 * util/grub-probe.c (grub_refresh): Likewise.
45129 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
45131 2008-05-05 Christian Franke <franke@computer.org>
45133 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
45134 Add Cygwin device names.
45135 (get_ide_disk_name) [__CYGWIN__]: Likewise.
45136 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
45137 (check_device): Return error instead of success on empty name.
45138 (make_device_map): Move label inside linux specific code to
45139 prevent compiler warning.
45141 2008-04-30 Robert Millan <rmh@aybabtu.com>
45143 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
45144 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
45146 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
45148 2008-04-29 Robert Millan <rmh@aybabtu.com>
45150 * docs/grub.cfg: New file (example GRUB configuration).
45152 2008-04-26 Robert Millan <rmh@aybabtu.com>
45154 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
45155 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
45156 and `disk/ieee1275/nand.c'.
45158 2008-04-25 Bean <bean123ch@gmail.com>
45160 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
45163 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
45164 change the buffer size to 4096 for cdrom device.
45166 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
45168 (_linux_mod_SOURCES): New variable.
45169 (_linux_mod_CFLAGS): Likewise.
45170 (_linux_mod_LDFLAGS): Likewise.
45171 (linux_mod_SOURCES): Likewise.
45172 (linux_mod_CFLAGS): Likewise.
45173 (linux_mod_LDFLAGS): Likewise.
45174 (nand_mod_SOURCES): Likewise.
45175 (nand_mod_CFLAGS): Likewise.
45176 (nand_mod_LDFLAGS): Likewise.
45178 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
45179 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
45180 type property. (nand device in olpc don't have this property)
45182 * include/grub/disk.h (grub_disk_dev_id): New macro
45183 GRUB_DISK_DEVICE_NAND_ID.
45185 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
45186 function prototype.
45187 (grub_rescue_cmd_initrd): Likewise.
45189 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
45190 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
45191 ofw_cif_handler and ofw_idt, adjust padding number.
45193 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45194 GRUB_MACHINE_IEEE1275 is defined.
45196 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45197 Use NESTED_FUNC_ATTR attribute on the hook parameter.
45199 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45200 on nested function heap_init.
45201 (grub_upper_mem): New variable for i386-ieee1275.
45202 (grub_get_extended_memory): New function for i386-ieee1275.
45203 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45205 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45206 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45209 * loader/i386/ieee1275/linux.c: New file.
45211 * loader/i386/ieee1275/linux_normal.c: New file.
45213 * disk/ieee1275/nand.c: New file.
45215 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45217 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45219 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45221 2008-04-18 Robert Millan <rmh@aybabtu.com>
45223 Restructures early code path on ieee1275 to unify grub_main() as
45224 the first C function that is executed in every platform.
45226 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45227 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45229 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45230 * kern/ieee1275/cmain.c (cmain): Rename to ...
45231 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45232 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45235 2008-04-18 Robert Millan <rmh@aybabtu.com>
45237 * util/update-grub.in: Fix syntax error when setting
45238 `GRUB_PRELOAD_MODULES'.
45239 Reported by Stephane Chazelas <stephane@artesyncp.com>
45241 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45243 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45244 section into account, newer toolchains generate unique build ids
45245 * configure.ac: remove the test for --build-id=none acceptance,
45246 we want build ids to be preserved
45247 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45248 far from other sections don't cause the raw binary images grow
45251 2008-04-15 Robert Millan <rmh@aybabtu.com>
45253 * disk/lvm.c: Update copyright year.
45254 * kern/misc.c: Likewise.
45256 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45258 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45259 there is no memory left for physical volume name.
45261 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45263 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45264 volume name mapping to support bigger than 9 character names properly.
45266 2008-04-13 Robert Millan <rmh@aybabtu.com>
45268 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45269 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45271 2008-04-13 Christian Franke <franke@computer.org>
45273 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45274 to create a floppy emulation boot CD when non emulation mode
45276 Enable Joliet CD filesystem extension.
45278 2008-04-13 Robert Millan <rmh@aybabtu.com>
45280 * kern/misc.c (grub_strncat): Fix off-by-one error.
45281 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45283 * kern/env.c (grub_env_context_close): Clear current context, not
45285 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45287 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45289 2008-04-13 Robert Millan <rmh@aybabtu.com>
45291 Improve robustness when handling LVM.
45293 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45294 (and leave `*p' unmodified).
45295 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45297 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45298 iterating through it.
45299 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45301 (grub_lvm_scan_device): Check the return value (and fail gracefully
45302 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45303 Don't assume `vg->pvs != NULL' when iterating through it.
45305 2008-04-13 Robert Millan <rmh@aybabtu.com>
45307 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45308 * genmk.rb (partmap): New variable.
45309 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45310 (#{partmap}): New target rule.
45311 * genpartmaplist.sh: New file.
45312 * Makefile.in (pkglib_DATA): Add partmap.lst.
45313 (partmap.lst): New target rule.
45314 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45315 modules (including all partition maps), instead of preloading them.
45317 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45319 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45320 `linux-boot-prober' (if installed) to detect other operating
45321 systems which are installed on the computer and add them to
45323 * conf/common.rmk: Build and install 30_os-prober.
45325 2008-04-12 Robert Millan <rmh@aybabtu.com>
45327 * kern/powerpc/ieee1275/init.c: Move from here ...
45328 * kern/ieee1275/init.c: ... to here. Update all users.
45330 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45331 * kern/ieee1275/cmain.c: ... to here. Update all users.
45333 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45334 * kern/ieee1275/openfw.c: ... to here. Update all users.
45336 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45337 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45339 2008-04-10 Pavel Roskin <proski@gnu.org>
45341 * configure.ac: Always use "_cv_" in cache variables for
45342 compatibility with Autoconf 2.62.
45344 2008-04-07 Robert Millan <rmh@aybabtu.com>
45346 Revert grub/machine/init.h addition by Pavel (since it breaks on
45347 i386-ieee1275 and others):
45348 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45349 * util/powerpc/ieee1275/misc.c: Likewise.
45351 2008-04-07 Robert Millan <rmh@aybabtu.com>
45353 * util/grub-probe.c (probe): Improve error message.
45355 2008-04-07 Robert Millan <rmh@aybabtu.com>
45357 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45358 (this prevents the presence of a bogus entry from ruining the whole
45361 2008-04-06 Pavel Roskin <proski@gnu.org>
45363 * util/biosdisk.c: Include grub/util/biosdisk.h.
45364 * util/grub-fstest.c (execute_command): Make static.
45365 * util/grub-mkdevicemap.c (check_device): Likewise.
45366 * util/i386/pc/misc.c: Include grub/machine/init.h.
45367 * util/powerpc/ieee1275/misc.c: Likewise.
45368 * util/lvm.c: Include grub/util/lvm.h.
45369 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45371 * util/raid.c: Include grub/util/raid.h.
45372 (grub_util_getdiskname): Make static.
45374 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45375 grub_hostfs_fini(), as they are called from grub_init_all() and
45376 grub_fini_all() respectively. This fixes an infinite loop in
45377 grub-fstest due to double registration of hostfs.
45378 Reported by Christian Franke <Christian.Franke@t-online.de>
45380 2008-04-05 Pavel Roskin <proski@gnu.org>
45382 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45383 all 8 functions. Otherwise, probe function 0 only.
45385 2008-04-04 Pavel Roskin <proski@gnu.org>
45387 * commands/lspci.c (grub_lspci_iter): Print the bus number
45390 * commands/lspci.c (grub_pci_classes): Fix typos.
45391 (grub_lspci_iter): Don't print func twice. Print vendor ID
45392 before device ID, as it's normally done.
45394 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45395 Fix signedness warnings.
45396 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45398 * util/ieee1275/get_disk_name.c: Include config.h so that
45399 _GNU_SOURCE is defined and getline() is declared. Mark an
45400 unused argument as such. Fix a signedness warning.
45402 2008-04-02 Pavel Roskin <proski@gnu.org>
45404 * genkernsyms.sh.in: Use more robust assignments for CC and
45405 srcdir. Quote srcdir.
45406 * gensymlist.sh.in: Likewise. Assert at the compile time that
45407 the symbol table is not empty.
45409 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45410 * fs/cpio.c (grub_cpio_read): Likewise.
45412 2008-04-01 Pavel Roskin <proski@gnu.org>
45414 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45415 * disk/host.c (grub_host_open): Likewise.
45416 * disk/loopback.c (grub_loopback_open): Likewise.
45417 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45418 disk->id as in disk/host.c, not a multi-character constant.
45420 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45421 later is obsolete, potentially dangerous and sets a bad example.
45422 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45423 * util/misc.c (grub_util_get_image_size): Likewise.
45425 * disk/loopback.c (options): Improve help for "--partitions".
45427 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45428 options to align them with the short options, e.g. "echo -e".
45430 2008-03-31 Bean <bean123ch@gmail.com>
45432 * video/reader/png.c (grub_png_data): New member is_16bit and
45434 (grub_png_decode_image_header): Detect 16 bit png image.
45435 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45436 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45437 (grub_video_reader_png): Release memory occupied by image_data.
45439 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45441 (grub_nfs_mount): Skip the test for sector per cluster.
45443 * include/grub/ntfs.h (MAX_SPC): Removed.
45445 2008-03-31 Bean <bean123ch@gmail.com>
45447 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45448 (grub_probe_SOURCES): Add fs/afs.c.
45449 (grub_fstest_SOURCES): Likewise.
45450 (afs_mod_SOURCES): New variable.
45451 (afs_mod_CFLAGS): Likewise.
45452 (afs_mod_LDFLAGS): Likewise.
45454 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45455 (grub_emu_SOURCES): Likewise.
45457 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45459 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45461 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45463 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45465 * fs/afs.c: New file.
45467 2008-03-30 Pavel Roskin <proski@gnu.org>
45469 * disk/host.c: Include grub/misc.h to fix a warning.
45470 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45471 warnings about implicit declarations.
45473 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45475 * include/grub/i386/loader.h: Change declaration of
45476 grub_linux_boot() to match what grub_loader_set() expects.
45477 * util/getroot.c (grub_guess_root_device): Return const char* to
45479 * util/grub-probe.c (probe): Fix a warning about uninitialized
45480 abstraction_name variable.
45481 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45482 second argument as unused to fix a warning.
45484 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45485 missing grub_error() call.
45487 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45488 2.60 and newer uses it to define datadir.
45490 * commands/sleep.c: Fix warning about implicit declaration.
45491 * disk/memdisk.c: Likewise.
45492 * loader/aout.c: Likewise.
45493 * loader/i386/bsd_normal.c: Likewise.
45494 * util/grub-probe.c: Likewise.
45496 * commands/i386/cpuid.c (has_longmode): Make static.
45497 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45498 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45500 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45501 GDT. This is more robust, as %ds can change.
45502 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45503 calling real_to_prot().
45504 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45506 2008-03-28 Pavel Roskin <proski@gnu.org>
45508 * kern/i386/pc/startup.S: Assert that uncompressed functions
45509 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45510 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45511 code, as they push parts of the code (error handlers) beyond
45512 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45513 code as correctness and size.
45515 2008-03-28 Pavel Roskin <proski@gnu.org>
45517 * kern/i386/pc/startup.S
45518 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45519 data block address to the real mode, keep offset minimal. This
45520 works around a bug in AWARD BIOS on old Athlon systems, which
45521 makes CD detection hang.
45523 2008-03-26 Pavel Roskin <proski@gnu.org>
45525 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45527 * include/grub/normal.h: Add grub_parse_color_name_pair()
45530 2008-03-24 Bean <bean123ch@gmail.com>
45532 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45533 (cd_count): Removed.
45534 (cd_drive): New variable.
45535 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45536 (grub_biosdisk_call_hook): Likewise.
45537 (grub_biosdisk_iterate): Change cdrom detection method.
45538 (grub_biosdisk_open): Replace cd_start with cd_drive.
45539 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45540 detect cdrom device.
45542 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45544 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45545 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45546 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45547 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45548 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45549 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45550 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45551 (grub_biosdisk_cdrp): New structure.
45552 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45554 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45556 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45559 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45562 2008-03-20 Robert Millan <rmh@aybabtu.com>
45564 Remove 2 TiB limit in ata.mod.
45565 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45566 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45567 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45568 grub_uint64_t instead of grub_uint32_t.
45570 2008-03-05 Bean <bean123ch@gmail.com>
45572 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45573 (grub_multiboot): Set boot device.
45575 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45577 2008-03-02 Bean <bean123ch@gmail.com>
45579 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45582 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45584 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45587 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45590 * docs/fdl.texi: New file.
45592 * docs/mdate-sh: New file. Copied from gnulib.
45593 * docs/texinfo.tex: Likewise.
45595 * config.guess: Updated from gnulib.
45596 * install-sh: Likewise.
45598 2008-02-28 Robert Millan <rmh@aybabtu.com>
45600 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45601 (aout_mod_SOURCES): New variable.
45602 (aout_mod_CFLAGS): Likewise.
45603 (aout_mod_LDFLAGS): Likewise.
45605 * conf/i386-ieee1275.rmk: Likewise.
45607 2008-02-28 Robert Millan <rmh@aybabtu.com>
45609 * util/update-grub.in: Reorganise terminal validity check. Accept
45610 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45611 Based on suggestion by Franklin PIAT.
45613 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45615 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45617 * util/getroot.c (grub_util_check_block_device): New function that
45618 returns the given argument if it is a block device and returns NULL else.
45619 * util/grub-probe.c (argument_is_device): New variable.
45620 (probe): Promote device_name from a variable to an argument. Receive
45621 device_name from grub_util_check_block_device() if path is NULL and from
45622 grub_guess_root_device() else. Do not free() device_name anymore.
45623 (options): Introduce new parameter '-d, --device'.
45624 (main): Add description of the new parameter to the help screen.
45625 Rename path variable to argument. Set argument_is_device if the '-d'
45626 option is given. Pass argument to probe() depending on
45627 argument_is_device.
45629 2008-02-24 Bean <bean123ch@gmail.com>
45631 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45632 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45633 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45634 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45635 (GRUB_ISO9660_VOLDESC_END): Likewise.
45636 (grub_iso9660_primary_voldesc): New member escape.
45637 (grub_iso9660_data): New member joliet.
45638 (grub_iso9660_convert_string): New function.
45639 (grub_iso9660_mount): Detect joliet extension.
45640 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45641 (grub_iso9660_iso9660_label): Likewise.
45643 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45644 (grub_setup_SOURCES): Add fs/udf.c.
45645 (grub_fstest_SOURCES): Likewise.
45646 (udf_mod_SOURCES): New variable.
45647 (udf_mod_CFLAGS): Likewise.
45648 (udf_mod_LDFLAGS): Likewise.
45650 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45651 (grub_emu_SOURCES): Likewise.
45653 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45655 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45657 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45659 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45661 * fs/udf.c: New file.
45663 2008-02-24 Robert Millan <rmh@aybabtu.com>
45665 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45666 (normal/lexer.c_DEPENDENCIES): New variables.
45667 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45668 (normal/lexer.c_DEPENDENCIES): Likewise.
45669 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45670 (normal/lexer.c_DEPENDENCIES): Likewise.
45671 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45672 (normal/lexer.c_DEPENDENCIES): Likewise.
45673 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45674 (normal/lexer.c_DEPENDENCIES): Likewise.
45675 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45676 (normal/lexer.c_DEPENDENCIES): Likewise.
45678 2008-02-23 Robert Millan <rmh@aybabtu.com>
45680 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45681 since they were intended to be in hex. This didn't break previously
45682 because of a bug in gpt_partition_map_iterate() (see below).
45684 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45685 when checking the validity of GPT header.
45686 Remove `partno', since it always provides the same information as `i'.
45688 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45690 * include/grub/efi/time.h: Fix a wrong comment.
45692 2008-02-19 Pavel Roskin <proski@gnu.org>
45694 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45697 2008-02-19 Bean <bean123ch@gmail.com>
45699 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45700 (aout_mod_SOURCES): New variable.
45701 (aout_mod_CFLAGS): Likewise.
45702 (aout_mod_LDFLAGS): Likewise.
45703 (_bsd_mod_SOURCES): New variable.
45704 (_bsd_mod_CFLAGS): Likewise.
45705 (_bsd_mod_LDFLAGS): Likewise.
45706 (bsd_mod_SOURCES): New variable.
45707 (bsd_mod_CFLAGS): Likewise.
45708 (bsd_mod_LDFLAGS): Likewise.
45710 * include/grub/aout.h: New file.
45712 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45714 * include/grub/i386/bsd.h: New file.
45716 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45719 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45720 function is called, so that it's possible to change it inside the hook.
45721 (grub_elf64_load): Likewise.
45722 (grub_elf_file): Don't close the file if elf header is not found.
45723 (grub_elf_close): Close the file if grub_elf_file fails (The new
45724 grub_elf_file won't close it).
45725 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45726 (grub_elf64_size): Likewise.
45728 * kern/i386/loader.S (grub_unix_real_boot): New function.
45730 * loader/aout.c: New file.
45732 * loader/i386/bsd.c: New file.
45734 * loader/i386/bsd_normal.c: New file.
45736 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45738 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45739 can test other formats.
45741 2008-02-19 Robert Millan <rmh@aybabtu.com>
45743 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45744 (grub_gpt_partition_type_empty): Redefine with macro from
45745 `<grub/gpt_partition.h>'.
45746 (gpt_partition_map_iterate): Adjust partition type comparison.
45748 Export `entry' as partmap-specific `part.data' struct.
45749 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45751 * include/grub/gpt_partition.h (grub_gpt_header)
45752 (grub_gpt_partentry): ... to here (new file).
45754 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45756 (grub_gpt_partition_type_bios_boot): New const variable, defined
45757 with macro from `<grub/gpt_partition.h>'.
45759 (setup): Replace `first_start' with `embed_region', which keeps
45760 track of the embed region (and is partmap-agnostic).
45762 Replace find_first_partition_start() with find_usable_region(),
45763 which finds a usable region for embedding using partmap-specific
45764 knowledge (supports PC/MSDOS and GPT).
45766 Fix all assumptions that the embed region start at sector 1, using
45767 `embed_region.start' from now on. Similarly, use `embed_region.end'
45768 rather than `first_start' to calculate available size.
45770 In grub_util_info() message, replace "into after the MBR" with an
45771 indication of the specific sector our embed region starts at.
45773 2008-02-19 Robert Millan <rmh@aybabtu.com>
45775 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45776 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45777 `commands/reboot.c'.
45778 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45779 (halt_mod_SOURCES): Likewise.
45780 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45781 (halt_mod_SOURCES): Likewise.
45783 2008-02-17 Christian Franke <franke@computer.org>
45785 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45787 2008-02-17 Robert Millan <rmh@aybabtu.com>
45789 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45790 set `first_start' to 0 for non-PC/MSDOS partition maps.
45792 2008-02-16 Robert Millan <rmh@aybabtu.com>
45794 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45795 do not assume partition map is PC/MSDOS before performing checks that
45796 are specific to that layout.
45798 2008-02-13 Robert Millan <rmh@aybabtu.com>
45800 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45801 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45802 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45804 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45806 * configure.ac: Only a cosmetic change on the handling of
45807 -fno-stack-protector.
45809 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45811 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45812 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45814 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45815 (halt_mod_SOURCES): New variable.
45816 (halt_mod_CFLAGS): Likewise.
45817 (halt_mod_LDFLAGS): Likewise.
45818 (reboot_mod_SOURCES): Likewise.
45819 (reboot_mod_CFLAGS): Likewise.
45820 (reboot_mod_LDFLAGS): Likewise.
45822 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45823 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45825 (halt_mod_SOURCES): Likewise.
45826 (reboot_mod_SOURCES): Likewise.
45828 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45829 commands/i386/pc/reboot.c by commands/reboot.c.
45830 (reboot_mod_SOURCES): Likewise.
45832 * commands/i386/pc/reboot.c: merge this file ...
45834 * commands/ieee1275/reboot.c: ... and this file ...
45836 * commands/reboot.c: ... to this file.
45837 Add some precompiler directive to include the correct header for
45840 * commands/ieee1275/halt.c: move this file ...
45842 * commands/halt.c: ... to here.
45843 Add some precompiler directive to include the correct header for
45846 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45847 (grub_halt): Likewise.
45849 * kern/efi/efi.c (grub_reboot): New function.
45850 (grub_halt): Likewise.
45852 2008-02-12 Robert Millan <rmh@aybabtu.com>
45854 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45855 /dev (like it is done for /dev/mapper). This doesn't provide support
45856 for EVMS, but at least it is now easy to identify the problem when it
45859 2008-02-11 Robert Millan <rmh@aybabtu.com>
45861 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45862 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45863 comparing it with -1, not 0.
45865 2008-02-10 Robert Millan <rmh@aybabtu.com>
45867 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45869 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45870 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45872 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45873 `disk/lvm.c' to the end of the list.
45874 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45875 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45877 2008-02-10 Robert Millan <rmh@aybabtu.com>
45879 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45880 grub_print_error() instead. This will let user know why we're entering
45882 Based on suggestions from Sam Morris.
45884 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45886 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45887 on remaining N args, instead of "--" arg N times.
45889 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45891 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45892 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45893 pattern for unknown glyphs.
45895 2008-02-09 Robert Millan <rmh@aybabtu.com>
45897 * configure.ac: Probe for `help2man'.
45898 * Makefile.in (builddir): New variable.
45899 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45900 or otherwise add a few flags/options to it.
45901 (install-local): For every executable utility or script that is
45902 installed, invoke $(HELP2MAN) to install a manpage based on --help
45905 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45906 that it doesn't prevent --help from working in build tree.
45908 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45909 with `bug-grub@gnu.org'.
45910 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45911 * util/update-grub.in (usage): New function.
45912 Implement proper argument check, with support for --help and --version
45913 (as well as existing -y).
45915 2008-02-09 Christian Franke <franke@computer.org>
45917 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45918 avoid overwriting previous output.
45919 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45921 2008-02-09 Robert Millan <rmh@aybabtu.com>
45923 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45926 2008-02-09 Robert Millan <rmh@aybabtu.com>
45928 * commands/sleep.c: New file.
45929 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45930 (sleep_mod_SOURCES): New variable.
45931 (sleep_mod_CFLAGS): Likewise.
45932 (sleep_mod_LDFLAGS): Likewise.
45934 2008-02-09 Robert Millan <rmh@aybabtu.com>
45936 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45937 situations in which we can deduce the RAID size and the superblock
45940 2008-02-09 Robert Millan <rmh@aybabtu.com>
45942 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45943 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45944 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45946 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45947 and return a grub_diskmemberlist_t composed of physical array members.
45948 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45950 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45952 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45953 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45954 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45956 * util/grub-probe.c (probe): Move partmap probing code from here ...
45957 (probe_partmap): ... to here.
45958 (probe): Use probe_partmap() once for the disk we're probing, and
45959 additionally, when such disk contains a memberlist() struct member,
45960 once for each disk that is contained in the structure returned by
45963 2008-02-09 Robert Millan <rmh@aybabtu.com>
45965 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45966 environment variable to 'all' in order to obtain debug output from
45968 * util/i386/pc/grub-setup.c (main): Likewise.
45970 2008-02-08 Robert Millan <rmh@aybabtu.com>
45972 * disk/raid.c (grub_raid_scan_device): Check for
45973 `array->device[sb.this_disk.number]' rather than for
45974 `array->device[sb.this_disk.number]->name', since the latter is not
45975 guaranteed to be accessible.
45977 2008-02-08 Robert Millan <rmh@aybabtu.com>
45979 * disk/raid.c: Update copyright.
45980 * fs/cpio.c: Likewise.
45981 * include/grub/raid.h: Likewise.
45982 * loader/i386/pc/multiboot.c: Likewise.
45983 * util/hostfs.c: Likewise.
45985 2008-02-08 Robert Millan <rmh@aybabtu.com>
45987 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45988 to a grub_disk_t array.
45989 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45991 (grub_raid_scan_device): Replace `device[x].name' accesses with
45992 `device[x]->name'. Simplify initialization of `array->device[x]'.
45994 2008-02-08 Robert Millan <rmh@aybabtu.com>
45996 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45997 grub_dprintf() calls.
45998 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
46001 2008-02-07 Christian Franke <franke@computer.org>
46003 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
46004 instead of fseek and ftell to support large files.
46005 (grub_hostfs_read): Likewise.
46007 2008-02-07 Robert Millan <rmh@aybabtu.com>
46009 Patch from Jeroen Dekkers.
46010 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
46011 failure, since successfully reading all array members might not be
46014 2008-02-06 Robert Millan <rmh@aybabtu.com>
46016 * util/grub-probe.c (probe): Simplify partmap probing (with the
46017 assumption that the first word up to the underscore equals to
46020 2008-02-06 Christian Franke <franke@computer.org>
46022 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
46023 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
46024 last block of a cpio or tar stream.
46025 Check for "TRAILER!!!" instead of any empty data
46026 block to detect last block of a cpio stream.
46027 (grub_cpio_dir): Fix constness of variable np.
46028 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
46029 cpio or tar trailer is detected. This fixes a crash
46030 on open of a non existing file.
46032 2008-02-05 Bean <bean123ch@gmail.com>
46034 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
46036 (grub_multiboot_load_elf64): Likewise.
46037 (grub_multiboot): Initialize mbi structure.
46039 * util/grub-fstest.c: Don't include unused header file script.h.
46041 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
46043 (grub_fstest_SOURCES): Likewise.
46045 2008-02-05 Robert Millan <rmh@aybabtu.com>
46047 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
46048 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
46049 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
46050 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
46052 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
46053 (translation_table): Replace hardcoded values with macros
46054 provided by `<grub/term.h>'.
46056 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
46057 (keyboard_map): Correct/add a few values, with macros provided
46058 by `<grub/term.h>'.
46059 (keyboard_map_shift): Zero values that don't differ from their
46060 `keyboard_map' equivalents.
46061 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
46062 Discard the second scan code that is always sent by Caps lock.
46063 Only use `keyboard_map_shift' when it provides a non-zero value,
46064 otherwise fallback to `keyboard_map'.
46066 2008-02-04 Bean <bean123ch@gmail.com>
46068 * Makefile.in (enable_grub_fstest): New variable.
46070 * conf/common.rmk (grub_fstest_init.lst): New rule.
46071 (grub_fstest_init.h): Likewise.
46072 (grub_fstest_init.c): Likewise.
46073 (util/grub-fstest.c_DEPENDENCIES): New variable.
46074 (grub_fstest_SOURCES): Likewise.
46076 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
46078 * util/grub-fstest.c: New file.
46080 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46082 Make grub-setup handle a separate root device.
46084 * util/i386/pc/grub-setup.c (setup): Always open the root device,
46085 so that the root device can be compared with the destination
46087 When embedding the core image, if the root and destination devices
46088 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
46090 When not embedding, set ROOT_DRIVE to 0xFF.
46092 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46094 Add support for having a grub directory in a different drive. This
46095 is still only the data handling part.
46097 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
46098 (codestart): Save %dh in GRUB_ROOT_DRIVE.
46099 (grub_root_drive): New variable.
46101 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
46102 instead of GRUB_BOOT_DRIVE to construct a device name. Set
46103 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
46106 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
46108 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
46110 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
46112 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
46113 is bogus, because PXE booting does not specify any drive
46116 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
46117 am not sure if this is really correct.
46119 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
46120 is always identical to the boot drive when booting from a CD.
46122 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
46124 (root_drive): New variable.
46125 (real_start): Unconditionally set %dh to ROOT_DRIVE.
46126 (setup_sectors): Push %dx right after popping it, because %dh will
46128 (copy_buffer): Restore %dx.
46130 2008-02-03 Robert Millan <rmh@aybabtu.com>
46132 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
46133 use `cdboot.img' for cdrom images.
46135 2008-02-03 Robert Millan <rmh@aybabtu.com>
46137 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
46138 only setup gfxterm when `font' command has succeeded.
46140 2008-02-03 Robert Millan <rmh@aybabtu.com>
46142 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
46143 (grub_rescue_cmd_multiboot_loader)
46144 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
46146 2008-02-03 Pavel Roskin <proski@gnu.org>
46148 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
46149 %edx and %esi from stack only after grub_gate_a20() is called.
46150 grub_gate_a20() clobbers %edx.
46152 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46154 * configure.ac (AC_INIT): Bumped to 1.96.
46156 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
46157 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
46158 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
46159 video/readers/png.c.
46161 2008-02-03 Bean <bean123ch@gmail.com>
46163 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
46164 (cdboot_img_SOURCES): New variable.
46165 (cdboot_img_ASFLAGS): New variable.
46166 (cdboot_img_LDFLAGS): New variable.
46168 * boot/i386/pc/cdboot.S: New file.
46170 * disk/i386/pc/biosdisk.c (cd_start): New variable.
46171 (cd_count): Likewise.
46172 (grub_biosdisk_get_drive): Add support for cd device.
46173 (grub_biosdisk_call_hook): Likewise.
46174 (grub_biosdisk_iterate): Likewise.
46175 (grub_biosdisk_open): Likewise.
46176 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
46177 (grub_biosdisk_rw): Support reading from cd device.
46178 (GRUB_MOD_INIT): Iterate cd devices.
46180 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
46181 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
46182 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
46184 * kern/i386/pc/init.c (make_install_device): Check for cd device.
46186 2008-02-02 Robert Millan <rmh@aybabtu.com>
46188 * commands/read.c: New file.
46189 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
46190 (read_mod_SOURCES): New variable.
46191 (read_mod_CFLAGS): Likewise.
46192 (read_mod_LDFLAGS): Likewise.
46194 2008-02-02 Robert Millan <rmh@aybabtu.com>
46196 * normal/main.c (grub_normal_execute): Check for `menu->size' when
46197 determining whether menu has to be displayed.
46199 2008-02-02 Marco Gerards <marco@gnu.org>
46201 * bus/pci.c: New file.
46203 * include/grub/pci.h: Likewise.
46205 * include/grub/i386/pc/pci.h: Likewise.
46207 * commands/lspci.c: Likewise.
46209 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46211 (pci_mod_SOURCES): New variable.
46212 (pci_mod_CFLAGS): Likewise.
46213 (pci_mod_LDFLAGS): Likewise.
46214 (lspci_mod_SOURCES): Likewise.
46215 (lspci_mod_CFLAGS): Likewise.
46216 (lspci_mod_LDFLAGS): Likewise.
46218 2008-02-02 Bean <bean123ch@gmail.com>
46220 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46221 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46223 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46224 (grub_xfs_btree_node): New structure.
46225 (grub_xfs_btree_root): New structure.
46226 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46227 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46228 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46229 (GRUB_XFS_EXTENT_SIZE): Likewise.
46230 (grub_xfs_read_block): Support btree format type.
46231 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46232 Use directory block as basic unit.
46234 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46236 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46237 __attribute__ ((__regparm__ (1))).
46239 2008-02-01 Robert Millan <rmh@aybabtu.com>
46241 Correct a mistake in previous commit.
46243 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46245 (normal/command.c_DEPENDENCIES): New variable.
46247 2008-02-01 Robert Millan <rmh@aybabtu.com>
46249 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46251 (normal/command.c_DEPENDENCIES): New variable.
46252 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46253 * conf/i386-ieee1275.rmk: Likewise.
46254 * conf/i386-linuxbios.rmk: Likewise.
46255 * conf/i386-pc.rmk: Likewise.
46256 * conf/sparc64-ieee1275.rmk: Likewise.
46257 * conf/powerpc-ieee1275.rmk: Likewise.
46258 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46260 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46262 2008-02-01 Robert Millan <rmh@aybabtu.com>
46264 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46265 call at beginning of function.
46267 2008-01-31 Pavel Roskin <proski@gnu.org>
46269 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46270 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46271 (grub_mkrescue_SOURCES): Likewise.
46272 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46274 2008-01-30 Robert Millan <rmh@aybabtu.com>
46276 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46277 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46278 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46279 (grub_probe_SOURCES): ... to here.
46281 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46282 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46283 * conf/i386-ieee1275.rmk: Likewise.
46284 * conf/i386-linuxbios.rmk: Likewise.
46285 * conf/powerpc-ieee1275.rmk: Likewise.
46287 2008-01-30 Tristan Gingold <gingold@free.fr>
46289 * kern/rescue.c: Silently accept empty lines.
46291 2008-01-29 Bean <bean123ch@gmail.com>
46293 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46294 (real_code_2): Code cleanup and change comment style.
46295 (move_memory): Avoid using 32-bit address mode.
46297 2008-01-29 Bean <bean123ch@gmail.com>
46299 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46300 (png_mod_SOURCES): New variable.
46301 (png_mod_CFLAGS): Likewise.
46302 (png_mod_LDFLAGS): Likewise.
46304 * video/readers/png.c: New file.
46306 2008-01-28 Robert Millan <rmh@aybabtu.com>
46308 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46309 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46310 `ifndef GRUB_MOD_GAP' hack.
46311 * util/elf/grub-mkimage.c (add_segments): Likewise.
46313 2008-01-27 Robert Millan <rmh@aybabtu.com>
46315 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46316 `GRUB_MOD_GAP' for platforms in which it's not defined.
46317 * util/elf/grub-mkimage.c (add_segments): Likewise.
46319 2008-01-27 Robert Millan <rmh@aybabtu.com>
46321 Get grub-emu to build again (including parallel builds).
46323 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46325 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46326 (normal/execute.c_DEPENDENCIES): ... this, ...
46327 (grub-emu_DEPENDENCIES): ... and this.
46329 * conf/i386-efi.rmk: Likewise.
46330 * conf/i386-linuxbios.rmk: Likewise.
46331 * conf/i386-ieee1275.rmk: Likewise.
46332 * conf/powerpc-ieee1275.rmk: Likewise.
46333 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46335 2008-01-27 Robert Millan <rmh@aybabtu.com>
46337 * NEWS: Add a few items.
46339 2008-01-27 Robert Millan <rmh@aybabtu.com>
46341 Fix parallel builds with grub-emu. Based on earlier commit for
46342 grub-probe and grub-setup.
46344 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46345 (util/grub-emu.c_DEPENDENCIES): ... this.
46346 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46347 (util/grub-emu.c_DEPENDENCIES): ... this.
46348 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46349 (util/grub-emu.c_DEPENDENCIES): ... this.
46350 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46351 (util/grub-emu.c_DEPENDENCIES): ... this.
46352 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46353 (util/grub-emu.c_DEPENDENCIES): ... this.
46355 2008-01-27 Pavel Roskin <proski@gnu.org>
46357 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46358 to create a gap between _end and the modules added to the image
46359 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46360 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46361 * util/elf/grub-mkimage.c (add_segments): Likewise.
46363 2008-01-26 Pavel Roskin <proski@gnu.org>
46365 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46366 just return an error.
46368 2008-01-26 Bean <bean123ch@gmail.com>
46370 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46371 (grub_reiserfs_get_item): Save offset of the next item.
46372 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46374 2008-01-25 Robert Millan <rmh@aybabtu.com>
46376 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46377 make all filesystem sources appear together (possibly fixing omissions
46379 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46380 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46381 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46382 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46384 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46386 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46387 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46388 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46389 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46391 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46392 (probe): Add a sanity check to make sure of our ability to read
46393 requested files when probing for filesystem type.
46395 * genmk.rb: Update copyright year (2007).
46397 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46398 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46399 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46400 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46401 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46402 : Remove function prototypes.
46404 2008-01-25 Robert Millan <rmh@aybabtu.com>
46406 Revert my previous commits (based on wrong assumption of how grub_errno
46409 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46410 * kern/file.c (grub_file_open): Likewise.
46412 2008-01-24 Pavel Roskin <proski@gnu.org>
46414 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46415 that hang if GRUB tries to setup colors.
46416 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46417 colors for firmwares that don't support it.
46418 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46419 Recognize Open Hack'Ware, set flags to work around its
46422 2008-01-24 Robert Millan <rmh@aybabtu.com>
46424 * kern/file.c (grub_file_open): Do not account previous failures of
46425 unrelated functions when grub_errno is checked for.
46426 Reported by Oleg Strikov.
46428 2008-01-24 Bean <bean123ch@gmail.com>
46430 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46431 (grub_ufs_sblock): New member volume name.
46432 (grub_ufs_find_file): Fix string copy bug.
46433 (grub_ufs_label): Implement this function properly.
46435 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46436 (grub_hfs_iterate_records): Use the correct file number for extents
46437 and catalog file. Fix problem in next index calculation.
46438 (grub_hfs_find_node): Replace recursive function call with loop.
46439 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46441 2008-01-23 Robert Millan <rmh@aybabtu.com>
46443 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46444 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46445 (grub_multiboot2_real_boot): New function prototype.
46447 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46448 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46450 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46451 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46453 2008-01-23 Robert Millan <rmh@aybabtu.com>
46455 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46456 #ifdef'ed out grub_printf().
46458 2008-01-23 Robert Millan <rmh@aybabtu.com>
46460 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46461 grub_dprintf calls, since they make "debug=all" mode unusable.
46462 (grub_console_checkkey): Likewise.
46464 2008-01-23 Robert Millan <rmh@aybabtu.com>
46466 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46467 `term/i386/pc/at_keyboard.c'.
46468 (pkglib_MODULES): Add `serial.mod'.
46469 (serial_mod_SOURCES): New variable.
46470 (serial_mod_CFLAGS): Likewise.
46471 (serial_mod_LDFLAGS): Likewise.
46473 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46474 `<grub/powerpc/ieee1275/console.h>'.
46475 (grub_keyboard_controller_init): New function prototype.
46476 (grub_console_checkkey): Likewise.
46477 (grub_console_getkey): Likewise.
46479 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46482 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46483 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46485 2008-01-23 Robert Millan <rmh@aybabtu.com>
46487 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46488 present, "(memdisk)/boot/grub" becomes the default prefix.
46490 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46491 a memdisk tarball with all the modules. Add --overlay=DIR option that
46492 allows users to overlay additional files into the image.
46494 2008-01-23 Robert Millan <rmh@aybabtu.com>
46496 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46497 and `machine/memory.h'.
46498 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46499 (_multiboot_mod_SOURCES): New variable.
46500 (_multiboot_mod_CFLAGS): Likewise.
46501 (_multiboot_mod_LDFLAGS): Likewise.
46502 (multiboot_mod_SOURCES): Likewise.
46503 (multiboot_mod_CFLAGS): Likewise.
46504 (multiboot_mod_LDFLAGS): Likewise.
46506 * include/grub/i386/ieee1275/loader.h: New file.
46508 * include/grub/i386/ieee1275/machine.h: Likewise.
46510 * include/grub/i386/ieee1275/memory.h: Likewise.
46512 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46513 variable declaration.
46514 (grub_os_area_size): Likewise.
46516 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46517 (grub_lower_mem, grub_upper_mem): New variables.
46518 (grub_stop_floppy): New function (just to make
46519 grub_multiboot2_real_boot() happy).
46521 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46522 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46523 (grub_stop): New function.
46524 Include `"../realmode.S"' and `"../loader.S"'.
46526 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46527 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46529 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46530 rely on grub_multiboot2_real_boot() for final boot.
46532 2008-01-22 Robert Millan <rmh@aybabtu.com>
46534 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46535 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46536 device that doesn't look like an SD card.
46537 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46538 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46539 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46540 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46543 2008-01-22 Robert Millan <rmh@aybabtu.com>
46545 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46546 avoid claiming over our own code.
46548 2008-01-22 Bean <bean123ch@gmail.com>
46550 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46551 (jpeg_mod_SOURCES): New variable.
46552 (jpeg_mod_CFLAGS): Likewise.
46553 (jpeg_mod_LDFLAGS): Likewise.
46555 * video/readers/jpeg.c : New file.
46557 2008-01-22 Bean <bean123ch@gmail.com>
46559 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46560 there are no more items.
46562 2008-01-21 Robert Millan <rmh@aybabtu.com>
46564 * kern/mm.c (grub_mm_init_region): Improve debug message.
46566 2008-01-21 Robert Millan <rmh@aybabtu.com>
46568 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46569 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46571 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46573 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46574 Indicates start of upper memory.
46575 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46576 (generate_image): Abort when image size is big enough to corrupt
46579 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46580 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46581 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46582 instead of hardcoding 0xA0000.
46583 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46584 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46585 instead of hardcoding 0xA0000.
46587 2008-01-21 Robert Millan <rmh@aybabtu.com>
46589 * disk/memdisk.c (memdisk_size): New variable.
46590 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46592 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46593 image to dynamic memory.
46594 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46595 `memdisk_size'. Free memdisk block.
46597 2008-01-21 Robert Millan <rmh@aybabtu.com>
46599 Fix detection of very small filesystems (like tar).
46601 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46602 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46603 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46604 a problem with this disk).
46606 2008-01-21 Robert Millan <rmh@aybabtu.com>
46608 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46609 on grub_biosdisk_rw_standard() error.
46611 2008-01-21 Robert Millan <rmh@aybabtu.com>
46613 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46615 * kern/elf.c: Likewise.
46616 * kern/ieee1275/ieee1275.c: Likewise.
46617 * kern/powerpc/ieee1275/openfw.c: Likewise.
46618 * term/ieee1275/ofconsole.c: Likewise.
46620 2008-01-21 Robert Millan <rmh@aybabtu.com>
46622 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46624 * include/grub/kernel.h (grub_arch_memdisk_addr)
46625 (grub_arch_memdisk_size): Moved from here ...
46627 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46628 (grub_arch_memdisk_size): ... to here.
46630 2008-01-21 Robert Millan <rmh@aybabtu.com>
46632 Mostly based on bugfix from Bean.
46634 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46635 attribute with hook() parameter.
46636 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46638 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46639 attribute with hook() parameter.
46640 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46643 2008-01-21 Robert Millan <rmh@aybabtu.com>
46645 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46646 (pkglib_MODULES): Add `memdisk.mod'.
46647 (memdisk_mod_SOURCES): New variable.
46648 (memdisk_mod_CFLAGS): Likewise.
46649 (memdisk_mod_LDFLAGS): Likewise.
46651 * disk/memdisk.c: New file.
46653 * include/grub/disk.h (grub_disk_dev_id): Add
46654 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46656 * include/grub/i386/pc/kernel.h
46657 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46658 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46659 (grub_kernel_image_size): New variable declaration.
46660 (grub_total_module_size): Likewise.
46661 (grub_memdisk_image_size): Likewise.
46663 * include/grub/i386/pc/memory.h
46664 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46666 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46667 (grub_arch_memdisk_addr): New variable declaration.
46668 (grub_arch_memdisk_size): Likewise.
46670 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46671 (grub_arch_memdisk_size): Likewise.
46673 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46674 (codestart): Replace hardcoded `0x100000' with
46675 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46677 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46678 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46679 not NULL, append the contents of the file it refers to, at the end of
46680 the compressed kernel image. Initialize `grub_memdisk_image_size'
46681 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46682 (options): Add "memdisk"|'m' option.
46683 (main): Parse --memdisk|-m option, and pass user-provided path as
46684 parameter to generate_image().
46686 2008-01-20 Robert Millan <rmh@aybabtu.com>
46688 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46689 grub_dprintf() calls from here ...
46690 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46692 2008-01-20 Robert Millan <rmh@aybabtu.com>
46694 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46696 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46698 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46699 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46700 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46701 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46703 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46704 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46706 2008-01-19 Robert Millan <rmh@aybabtu.com>
46708 Get rid of confusing function (superseded by
46709 `grub_ieee1275_get_integer_property')
46710 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46712 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46714 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46715 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46716 in native endianness from grub_ieee1275_get_integer_property().
46718 2008-01-19 Robert Millan <rmh@aybabtu.com>
46720 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46721 command after "shut-down", since implementations differ on which
46722 the command for halt is.
46724 2008-01-19 Robert Millan <rmh@aybabtu.com>
46726 * include/grub/i386/linuxbios/console.h: Add header protection.
46727 (grub_keyboard_controller_init): New function prototype.
46728 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46729 (KEYBOARD_COMMAND_READ): Likewise.
46730 (KEYBOARD_COMMAND_WRITE): Likewise.
46731 (KEYBOARD_SCANCODE_SET1): Likewise.
46732 (grub_keyboard_controller_write): New function.
46733 (grub_keyboard_controller_read): Likewise.
46734 (grub_keyboard_controller_init): Likewise.
46736 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46737 (grub_console_init): On coreboot/LinuxBIOS, call
46738 grub_keyboard_controller_init().
46740 2008-01-19 Robert Millan <rmh@aybabtu.com>
46742 PowerPC changes provided by Pavel Roskin.
46744 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46745 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46746 don't rely on cmain() doing it.
46747 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46748 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46750 2008-01-16 Robert Millan <rmh@aybabtu.com>
46752 * include/grub/i386/linuxbios/memory.h
46753 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46754 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46755 receive `table_header' as argument. Instead, probe for it in the
46756 known memory ranges where it can be present.
46757 (grub_available_iterate): Do not pass a fixed `table_header' address
46758 to grub_linuxbios_table_iterate().
46760 2008-01-15 Robert Millan <rmh@aybabtu.com>
46762 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46763 * conf/i386-ieee1275.rmk: New file.
46764 * include/grub/i386/ieee1275/console.h: Likewise.
46765 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46766 * include/grub/i386/ieee1275/kernel.h: Likewise.
46767 * include/grub/i386/ieee1275/time.h: Likewise.
46768 * kern/i386/ieee1275/init.c: Likewise.
46769 * kern/i386/ieee1275/startup.S: Likewise.
46771 2008-01-15 Robert Millan <rmh@aybabtu.com>
46773 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46774 when pointers are 32-bit (but still do set it to one when they are
46777 2008-01-15 Robert Millan <rmh@aybabtu.com>
46779 * include/grub/ieee1275/ieee1275.h
46780 (grub_ieee1275_get_integer_property): New function prototype.
46782 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46783 (grub_ieee1275_get_integer_property): New function. Wraps around
46784 grub_ieee1275_get_property() to handle endianness.
46786 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46787 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46789 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46790 (grub_map): Likewise.
46791 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46793 2008-01-15 Bean <bean123ch@gmail.com>
46795 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46796 (grub_script_execute_cmdline): Reset grub_errno.
46798 * normal/main.c (read_config_file): Reset grub_errno.
46800 * normal/parse.y (script_init): New.
46801 (script): Move function and menuentry here.
46803 (command): Add delimiter at the end of command.
46804 (commands): Adjust to match the new command.
46805 (commandblock): Remove grub_script_lexer_record_start.
46806 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46807 (if): Use the new commands.
46809 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46811 2008-01-15 Robert Millan <rmh@aybabtu.com>
46813 * normal/menu.c (run_menu): Move timeout message from here ...
46814 (print_timeout): ... to here.
46815 (run_menu): Use print_timeout() once during initial draw to print
46816 the whole message, and again in every clock tick to update only
46817 the number of seconds.
46819 2008-01-15 Robert Millan <rmh@aybabtu.com>
46821 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46822 actual size of `available' from grub_ieee1275_get_property(), and
46823 restrict parsing to that bound.
46825 2008-01-15 Christian Franke <franke@computer.org>
46827 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46828 (argp_program_version): Remove variable.
46829 (argp_program_bug_address): Likewise.
46830 (options): Convert from struct argp_option to struct option.
46831 (struct arguments): Remove.
46832 (parse_opt): Remove.
46833 (usage): New function.
46834 (main): Replace struct args members by simple variables.
46835 Replace argp_parse() by getopt_long().
46836 Add switch to evaluate options.
46837 Add missing "(...)" around root_dev in prefix string.
46839 2008-01-14 Robert Millan <rmh@aybabtu.com>
46841 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46842 for grub_ieee1275_exit(), in order to improve portability.
46844 2008-01-14 Robert Millan <rmh@aybabtu.com>
46846 * util/grub.d/10_linux.in (prefix): Define.
46847 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46849 2008-01-13 Pavel Roskin <proski@gnu.org>
46851 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46852 grub_errno if no errors have been detected.
46854 2008-01-12 Robert Millan <rmh@aybabtu.com>
46856 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46857 (grub_util_get_dev_abstraction): New function prototype.
46859 * util/getroot.c: Include `<grub/util/getroot.h>'
46860 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46861 (grub_util_get_dev_abstraction): ... here (new function).
46863 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46864 `PRINT_ABSTRACTION'.
46865 (probe): Probe for abstraction type when requested.
46866 (main): Understand `--target=abstraction'.
46868 * util/i386/efi/grub-install.in: Add abstraction module to core
46869 image when it is found to be necessary.
46870 * util/i386/pc/grub-install.in: Likewise.
46871 * util/powerpc/ieee1275/grub-install.in: Likewise.
46873 * util/update-grub_lib.in (font_path): Return system path without
46874 converting to GRUB path.
46875 * util/update-grub.in: Convert system path returned by font_path()
46876 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46877 abstraction module is needed for loading fonts (if any). Export
46878 that as `GRUB_PRELOAD_MODULES'.
46879 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46882 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46884 Remove some unused code from reiserfs.
46886 * fs/reiserfs.c (struct grub_reiserfs_key)
46887 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46888 (struct grub_reiserfs_node_body): Removed.
46889 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46891 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46893 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46895 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46897 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46899 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46901 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46902 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46903 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46905 2008-01-10 Robert Millan <rmh@aybabtu.com>
46907 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46908 Determines if a file is garbage left by packaging systems, etc.
46909 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46910 for processing /etc/grub.d scripts.
46911 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46912 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46913 as a condition for processing Linux images.
46915 2008-01-10 Pavel Roskin <proski@gnu.org>
46917 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46918 to compile reiserfs.c on PowerPC.
46920 2008-01-10 Robert Millan <rmh@aybabtu.com>
46922 * kern/device.c (grub_device_iterate): Do not abort device iteration
46923 when one of the devices cannot be opened.
46924 * kern/disk.c (grub_disk_open): Do not account previous failures of
46925 unrelated functions when grub_errno is checked for.
46927 2008-01-08 Robert Millan <rmh@aybabtu.com>
46929 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46930 `! grub_linux_is_bzimage', change order of address comparison to make
46931 it more intuitive, and improve "too big zImage" error message.
46933 2008-01-08 Robert Millan <rmh@aybabtu.com>
46935 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46936 `$(update-grub_DATA)'.
46937 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46940 2008-01-07 Robert Millan <rmh@aybabtu.com>
46942 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46943 which instruction is modified by grub-setup during installation
46944 (since it wasn't obvious by only looking at this file).
46946 2008-01-07 Robert Millan <rmh@aybabtu.com>
46948 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46949 listing actual TODO items.
46951 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46953 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46955 (grub_reiserfs_get_key_offset): Likewise.
46956 (grub_reiserfs_set_key_offset): Likewise.
46957 (grub_reiserfs_set_key_type): Likewise.
46958 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46960 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46961 better to remove the bitfield version completely.
46963 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46965 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46966 allocated from the heap, due to the fshelp implementation.
46967 (grub_reiserfs_dir): Free NODE, due to the same reason.
46969 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46971 Mostly from Vincent Pelletier:
46973 * fs/reiserfs.c: New file.
46975 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46976 (reiserfs_mod_SOURCES): New variable.
46977 (reiserfs_mod_CFLAGS): Likewise.
46978 (reiserfs_mod_LDFLAGS): Likewise.
46980 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46981 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46982 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46985 2008-01-06 Robert Millan <rmh@aybabtu.com>
46987 * normal/color.c: Remove `<grub/env.h>'.
46989 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46991 * include/grub/normal.h: Include <grub/env.h>.
46993 2008-01-05 Robert Millan <rmh@aybabtu.com>
46995 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46996 usage example with `(hd0,1)'.
46997 Reported by Samuel Thibault.
46999 2008-01-05 Robert Millan <rmh@aybabtu.com>
47001 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
47002 (grub_linux_boot_zimage): Rename to ...
47003 (grub_linux_boot): ... this.
47004 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
47005 (grub_linux_boot_zimage): Conditionalize zImage copy.
47007 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
47008 (grub_linux_boot_bzimage): Remove prototype.
47009 (grub_linux_boot_zimage): Rename to ...
47010 (grub_linux_boot): ... this.
47012 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
47013 (grub_linux_boot): Remove function.
47015 2008-01-05 Robert Millan <rmh@aybabtu.com>
47017 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
47018 (grub_env_write_color_highlight): Likewise.
47019 (grub_wait_after_message): Likewise.
47021 * normal/color.c: New file.
47023 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
47024 (normal_mod_DEPENDENCIES): Likewise.
47026 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
47027 (normal_mod_DEPENDENCIES): Likewise.
47029 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
47030 (normal_mod_DEPENDENCIES): Likewise.
47032 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
47033 (normal_mod_DEPENDENCIES): Likewise.
47035 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
47036 for waiting after a message is printed.
47037 * normal/main.c (read_config_file): Likewise.
47038 (grub_normal_init): Register grub_env_write_color_normal() and
47039 grub_env_write_color_highlight() hooks. Mark `color_normal' and
47040 `color_highlight' variables as global.
47042 * normal/menu.c (grub_wait_after_message): New function.
47043 (grub_color_menu_normal): New variable. Replaces ...
47044 (GRUB_COLOR_MENU_NORMAL): ... this macro.
47045 (grub_color_menu_highlight): New variable. Replaces ...
47046 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
47047 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
47048 `GRUB_TERM_COLOR_STANDARD'.
47049 (print_message): Use `grub_setcolorstate' to reload colors. Rename
47050 `normal_code' and `highlight_code' to `old_color_normal' and
47051 `old_color_highlight', respectively.
47052 (grub_menu_init_page): Update colors when drawing the menu, based on
47053 `menu_color_normal' and `menu_color_highlight' variables.
47054 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
47055 a message is printed.
47057 2008-01-05 Robert Millan <rmh@aybabtu.com>
47059 * kern/env.c (grub_env_context_open): Propagate hooks for global
47060 variables to new context.
47062 * kern/main.c (grub_set_root_dev): Export `root' variable.
47064 2008-01-05 Robert Millan <rmh@aybabtu.com>
47066 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
47067 discs unconditionally, since udev and others have options to provide
47070 2008-01-05 Robert Millan <rmh@aybabtu.com>
47072 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
47074 2008-01-04 Christian Franke <franke@computer.org>
47076 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
47079 2008-01-03 Pavel Roskin <proski@gnu.org>
47081 * kern/i386/linuxbios/init.c: Put "void" to all function
47082 declarations with no arguments.
47083 * kern/powerpc/ieee1275/init.c: Likewise.
47084 * term/i386/pc/at_keyboard.c: Likewise.
47085 * term/i386/pc/vga_text.c: Likewise.
47086 * util/grub-mkdevicemap.c: Likewise.
47088 2008-01-02 Robert Millan <rmh@aybabtu.com>
47090 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
47091 message when loaded image is out of bounds.
47092 (grub_multiboot_load_elf64): Likewise.
47094 2008-01-02 Pavel Roskin <proski@gnu.org>
47096 * util/grub.d/10_linux.in: Try version without ".old" when
47097 looking for initrd. It's better to use initrd from the newer
47098 kernel of the same version than no initrd at all.
47100 2008-01-01 Robert Millan <rmh@aybabtu.com>
47102 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
47104 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
47106 * include/grub/video.h: Added grub_video_unmap_color and
47107 grub_video_get_active_render_target.
47108 (grub_video_adapter): Added unmap_color and get_active_render_target.
47110 * video/video.c: Added grub_video_unmap_color and
47111 grub_video_get_active_render_target.
47112 (grub_video_get_info): Changed method to accept NULL pointer as an
47113 argument to allow detection of active video adapter.
47115 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
47116 grub_video_vbe_unmap_color_int.
47117 Added grub_video_vbe_unmap_color and
47118 grub_video_vbe_get_active_render_target.
47119 (grub_video_vbe_adapter): Added unmap_color and
47120 get_active_render_target.
47122 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
47123 with grub_video_vbe_unmap_color_int.
47125 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
47126 (DEFAULT_NORMAL_COLOR): Likewise.
47127 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
47128 (DEFAULT_FG_COLOR): Removed.
47129 (DEFAULT_BG_COLOR): Likewise.
47130 (DEFAULT_CURSOR_COLOR): Changed value.
47131 (grub_virtual_screen): Added standard_color_setting,
47132 normal_color_setting, highlight_color_setting and term_color.
47133 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
47134 (bitmap_width): Added.
47135 (bitmap_height): Likewise.
47136 (bitmap): Likewise.
47137 (set_term_color): Likewise.
47138 (grub_virtual_screen_setup): Changed to use new terminal coloring
47140 (grub_gfxterm_init): Added init for bitmap.
47141 (grub_gfxterm_fini): Added destroy for bitmap.
47142 (redraw_screen_rect): Updated to use background bitmap and new
47144 (scroll_up): Added optimization for case when there is no bitmap.
47145 (grub_gfxterm_cls): Fixed to use correct background color.
47146 (grub_virtual_screen_setcolorstate): Changed to use new terminal
47148 (grub_virtual_screen_setcolor): Likewise.
47149 (grub_virtual_screen_getcolor): Added.
47150 (grub_gfxterm_background_image_cmd): Likewise.
47151 (grub_video_term): Added setcolor and getcolor.
47152 (MOD_INIT): Added registration of background_image command.
47153 (MOD_TERM): Added unregistration for background_image command.
47155 2007-12-30 Pavel Roskin <proski@gnu.org>
47157 * loader/multiboot_loader.c: Fix multiboot command
47158 unregistration. Fix all typos in the word "multiboot".
47160 2007-12-29 Pavel Roskin <proski@gnu.org>
47162 * util/grub.d/10_linux.in: Refactor search for initrd. Add
47163 support for initrd names used in Fedora.
47165 2007-12-26 Bean <bean123ch@gmail.com>
47167 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
47168 (cpio_mod_SOURCES): New variable.
47169 (cpio_mod_CFLAGS): Likewise.
47170 (cpio_mod_LDFLAGS): Likewise.
47172 * fs/cpio.c: New file.
47174 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
47176 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
47178 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
47180 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47182 2007-12-25 Robert Millan <rmh@aybabtu.com>
47184 * include/grub/term.h (struct grub_term): Add `getcolor' function.
47185 (grub_getcolor): New function.
47187 * kern/term.c (grub_getcolor): New function.
47188 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
47189 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
47190 (print_entry): Set normal and highlight colors to
47191 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47192 respectively, before printing and restore them to old
47194 (grub_menu_init_page): Likewise. Fill an additional colored space
47195 that would otherwise be left blank.
47197 * term/efi/console.c (grub_console_getcolor): New function.
47198 (struct grub_console_term.getcolor): New variable.
47199 * term/i386/pc/console.c (grub_console_getcolor): New function.
47200 (struct grub_console_term.getcolor): New variable.
47201 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47202 (struct grub_console_term.getcolor): New variable.
47204 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47205 (struct grub_console_term.setcolor): Remove variable.
47206 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47207 (struct grub_console_term.setcolor): Remove variable.
47208 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47209 (struct grub_console_term.setcolor): Remove variable.
47210 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47211 (struct grub_console_term.setcolor): Remove variable.
47213 2007-12-25 Robert Millan <rmh@aybabtu.com>
47215 * configure.ac: Search for possible unifont.hex locations, and
47216 define UNIFONT_HEX if found.
47218 * Makefile.in (UNIFONT_HEX): Define variable.
47219 (DATA): Rename to ...
47220 (PKGLIB): ... this. Update all users.
47221 (PKGDATA): New variable.
47222 (pkgdata_IMAGES): Rename to ...
47223 (pkglib_IMAGES): ... this. Update all users.
47224 (pkgdata_MODULES): Rename to ...
47225 (pkglib_MODULES): ... this. Update all users.
47226 (pkgdata_PROGRAMS): Rename to ...
47227 (pkglib_PROGRAMS): ... this. Update all users.
47228 (pkgdata_DATA): Rename to ...
47229 (pkglib_DATA): ... this. Update all users.
47230 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47231 (unicode.pff, ascii.pff): New rules.
47232 (all-local): Add `$(PKGDATA)' dependency.
47233 (install-local): Process `$(PKGDATA)'.
47235 * util/update-grub_lib.in (font_path): Search for *.pff files in
47236 a few more locations, including `${pkgdata}'.
47238 2007-12-23 Robert Millan <rmh@aybabtu.com>
47240 Patch from Bean <bean123ch@gmail.com>:
47241 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47244 2007-12-21 Bean <bean123ch@gmail.com>
47246 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47247 (ntfscomp_mod_SOURCES): New variable.
47248 (ntfscomp_mod_CFLAGS): Likewise.
47249 (ntfscomp_mod_LDFLAGS): Likewise.
47251 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47252 (grub_probe_SOURCES): Likewise.
47253 (grub_emu_SOURCES): Likewise.
47255 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47256 (grub_emu_SOURCES): Likewise.
47258 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47259 (grub_emu_SOURCES): Likewise.
47261 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47262 (grub_emu_SOURCES): Likewise.
47264 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47265 (read_run_list): Renamed to grub_ntfs_read_run_list.
47266 (decomp_nextvcn): Moved to ntfscomp.c.
47267 (decomp_getch): Likewise.
47268 (decomp_get16): Likewise.
47269 (decomp_block): Likewise.
47270 (read_block): Likewise.
47271 (read_data): Partially moved to ntfscomp.c.
47272 (fixup): Change unsigned to grub_uint16_t.
47273 (read_mft): Change unsigned long to grub_uint32_t.
47274 (read_attr): Likewise.
47275 (read_data): Likewise.
47276 (read_run_data): Likewise.
47277 (read_run_list): Likewise.
47278 (read_mft): Likewise.
47280 * fs/ntfscomp.c: New file.
47282 * include/grub/ntfs.h: New file.
47284 2007-12-16 Robert Millan <rmh@aybabtu.com>
47286 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47287 IDE disk check, since Linux is known to support 20 IDE disks.
47288 Reported by Colin Watson.
47290 2007-12-15 Bean <bean123ch@gmail.com>
47292 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47293 (lnxboot_img_SOURCES): New variable.
47294 (lnxboot_img_ASFLAGS): Likewise.
47295 (lnxboot_img_LDFLAGS): Likewise.
47297 * boot/i386/pc/lnxboot.S: New file.
47299 2007-11-24 Pavel Roskin <proski@gnu.org>
47301 * configure.ac: Test if '--build-id=none' is supported by the
47302 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47303 objcopy to generate incorrect binary files (binutils
47304 2.17.50.0.18-1 as shipped by Fedora 8).
47305 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47306 linking, so that build ID doesn't break the test.
47308 2007-11-24 Pavel Roskin <proski@gnu.org>
47310 * include/grub/i386/time.h: use "void" in the argument list
47311 of grub_cpu_idle().
47312 * include/grub/powerpc/time.h: Likewise.
47313 * include/grub/sparc64/time.h: Likewise.
47315 2007-11-18 Christian Franke <franke@computer.org>
47317 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47318 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47319 This fixes the problem that function keys did not work in grub-emu.
47321 2007-11-18 Christian Franke <franke@computer.org>
47323 * disk/host.c (grub_host_open): Remove attribute unused from
47324 name parameter. Add check for "host". This fixes the problem
47325 that grub-emu does not find partitions.
47327 2007-11-18 Christian Franke <franke@computer.org>
47329 * util/hostfs.c (is_dir): New function.
47330 (grub_hostfs_dir): Handle missing dirent.d_type case.
47331 (grub_hostfs_read): Add missing fseek().
47332 (grub_hostfs_label): Clear label pointer. This fixes a crash
47333 of grub-emu on "ls (host)".
47335 2007-11-18 Christian Franke <franke@computer.org>
47337 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47338 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47339 to 64 bit boundary by default.
47341 2007-11-18 Bean <bean123ch@gmail.com>
47343 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47344 (hexdump_mod_SOURCES): New variable.
47345 (hexdump_mod_CFLAGS): Likewise.
47346 (hexdump_mod_LDFLAGS): Likewise.
47348 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47350 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47352 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47354 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47356 * include/grub/hexdump.h: New file.
47358 * commands/hexdump.c: New file.
47360 2007-11-10 Robert Millan <rmh@aybabtu.com>
47362 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47363 in grub_outb() calls.
47364 (beep_on): Likewise.
47366 2007-11-10 Christian Franke <franke@computer.org>
47368 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47369 (grub_menu_run): Likewise.
47371 2007-11-10 Robert Millan <rmh@aybabtu.com>
47373 * include/grub/i386/efi/machine.h: New file.
47374 * include/grub/i386/linuxbios/machine.h: Likewise.
47375 * include/grub/i386/pc/machine.h: Likewise.
47376 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47377 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47379 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47380 (serial_hw_io_addr): New variable.
47381 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47382 instead of `(unsigned short *) 0x400'.
47384 2007-11-10 Bean <bean123ch@gmail.com>
47386 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47388 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47390 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47391 (vga_mod_SOURCES): Added.
47392 (vga_mod_CFLAGS): Likewise.
47393 (vga_mod_LDFLAGS): Likewise.
47395 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47397 (set_map_mask): Likewise.
47398 (set_read_map): Likewise.
47399 (set_read_address): Likewise.
47400 (vga_font): Removed variable.
47401 (get_vga_glyph): Removed function.
47402 (invalidate_char): Likewise.
47403 (write_char): Changed to use grub_font_get_glyph() for font
47405 (grub_vga_putchar): Likewise.
47406 (grub_vga_getcharwidth): Likewise.
47408 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47410 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47412 (pxeboot_img_LDFLAGS): Likewise.
47413 (diskboot_img_LDFLAGS): Likewise.
47414 (kernel_img_LDFLAGS): Likewise.
47416 2007-11-06 Robert Millan <rmh@aybabtu.com>
47418 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47419 in grub_outb() calls.
47420 (serial_hw_init): Likewise.
47422 2007-11-05 Robert Millan <rmh@aybabtu.com>
47424 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47425 spaces. Skip non-regular files.
47427 2007-11-05 Robert Millan <rmh@aybabtu.com>
47429 * kern/disk.c (grub_disk_firmware_fini)
47430 (grub_disk_firmware_is_tainted): New variables.
47432 * include/grub/disk.h (grub_disk_firmware_fini)
47433 (grub_disk_firmware_is_tainted): Likewise.
47435 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47436 (grub_disk_biosdisk_fini): ... to here.
47437 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47438 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47439 is set. Register grub_disk_biosdisk_fini() in
47440 `grub_disk_firmware_fini'.
47442 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47443 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47444 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47445 to finish existing firmware disk interface.
47447 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47448 (ata_mod_SOURCES): New variable.
47449 (ata_mod_CFLAGS): Likewise.
47450 (ata_mod_LDFLAGS): Likewise.
47452 2007-11-05 Robert Millan <rmh@aybabtu.com>
47454 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47455 (grub_ata_wait): Reimplement using grub_millisleep().
47457 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47458 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47460 2007-11-03 Marco Gerards <marco@gnu.org>
47462 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47463 (CRTC_ADDR_PORT): New macro.
47464 (CRTC_DATA_PORT): Likewise.
47465 (CRTC_CURSOR): Likewise.
47466 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47467 (CRTC_CURSOR_ADDR_LOW): Likewise.
47468 (update_cursor): New function.
47469 (grub_console_real_putchar): Call `update_cursor'.
47470 (grub_console_gotoxy): Likewise.
47471 (grub_console_cls): Set the default color when clearing the
47473 (grub_console_setcursor): Implemented.
47475 2007-11-03 Marco Gerards <marco@gnu.org>
47477 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47479 (grub_ata_pio_write): Likewise.
47481 (grub_atapi_identify): Wait after issuing an ATA command.
47482 (grub_atapi_packet): Likewise.
47483 (grub_ata_identify): Likewise.
47484 (grub_ata_readwrite): Likewise.
47486 2007-11-03 Marco Gerards <marco@gnu.org>
47488 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47489 (grub_ata_pio_write): Likewise.
47490 (grub_ata_readwrite): Use `grub_error', instead of
47491 returning `grub_errno'.
47493 2007-11-03 Marco Gerards <marco@gnu.org>
47495 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47496 grub_ata_pio_write once for every single sector, instead of for
47499 2007-10-31 Robert Millan <rmh@aybabtu.com>
47501 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47503 * conf/i386-linuxbios.rmk: New file.
47505 * kern/i386/pc/hardware.c: Likewise.
47506 * term/i386/pc/at_keyboard.c: Likewise.
47507 * term/i386/pc/vga_text.c: Likewise.
47509 * include/grub/i386/linuxbios/boot.h: Likewise.
47510 * include/grub/i386/linuxbios/console.h: Likewise.
47511 * include/grub/i386/linuxbios/init.h: Likewise.
47512 * include/grub/i386/linuxbios/kernel.h: Likewise.
47513 * include/grub/i386/linuxbios/loader.h: Likewise.
47514 * include/grub/i386/linuxbios/memory.h: Likewise.
47515 * include/grub/i386/linuxbios/serial.h: Likewise.
47516 * include/grub/i386/linuxbios/time.h: Likewise.
47518 * kern/i386/linuxbios/init.c: Likewise.
47519 * kern/i386/linuxbios/startup.S: Likewise.
47520 * kern/i386/linuxbios/table.c: Likewise.
47522 2007-10-31 Marco Gerards <marco@gnu.org>
47524 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47525 (ata_mod_SOURCES): New variable.
47526 (ata_mod_CFLAGS): Likewise.
47527 (ata_mod_LDFLAGS): Likewise.
47529 * disk/ata.c: New file.
47531 * include/grub/disk.h (grub_disk_dev_id): Add
47532 `GRUB_DISK_DEV_ATA_ID'.
47534 2007-10-31 Robert Millan <rmh@aybabtu.com>
47536 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47537 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47539 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47540 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47542 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47545 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47547 2007-10-27 Robert Millan <rmh@aybabtu.com>
47549 * include/grub/types.h (ULONG_MAX): Define macro.
47551 2007-10-22 Robert Millan <rmh@aybabtu.com>
47553 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47555 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47557 2007-10-22 Robert Millan <rmh@aybabtu.com>
47559 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47560 (pkgdata_MODULES): Add `biosdisk.mod'.
47561 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47564 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47565 (grub_biosdisk_init): Replace with ...
47566 (GRUB_MOD_INIT(biosdisk)): ... this.
47567 (grub_biosdisk_fini): Replace with ...
47568 (GRUB_MOD_FINI(biosdisk)): ... this.
47570 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47571 (grub_machine_init): Remove call to grub_biosdisk_init().
47572 (grub_machine_fini): Remove call to grub_machine_fini().
47574 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47576 2007-10-22 Robert Millan <rmh@aybabtu.com>
47578 * include/grub/time.h: New file.
47579 * include/grub/i386/time.h: Likewise.
47580 * include/grub/powerpc/time.h: Likewise.
47581 * include/grub/sparc64/time.h: Likewise.
47583 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47585 (KERNEL_MACHINE_TIME_HEADER): ... this.
47586 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47588 (KERNEL_MACHINE_TIME_HEADER): ... this.
47589 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47591 (KERNEL_MACHINE_TIME_HEADER): ... this.
47593 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47594 (grub_millisleep): New function.
47595 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47596 (grub_millisleep): New function.
47597 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47598 Remove `grub/machine/time.h' include.
47599 (grub_millisleep): New function.
47600 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47601 Remove `grub/machine/time.h' include.
47602 (grub_millisleep): New function.
47604 * include/grub/misc.h (grub_div_roundup): New function.
47606 * kern/misc.c: Include `<grub/time.h>'.
47607 (grub_millisleep_generic): New function.
47609 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47611 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47613 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47614 `machine/time.h'. Add `time.h'.
47615 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47617 2007-10-21 Robert Millan <rmh@aybabtu.com>
47619 * include/grub/misc.h (grub_max): New function.
47621 2007-10-21 Robert Millan <rmh@aybabtu.com>
47623 * util/misc.c (grub_util_info): Call fflush() before returning.
47625 2007-10-20 Robert Millan <rmh@aybabtu.com>
47627 * genmk.rb (Image): Copy `extra_flags' from here ...
47628 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47630 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47631 to `argc' and `args' arguments.
47633 2007-10-17 Robert Millan <rmh@aybabtu.com>
47635 * kern/i386/loader.S: New file.
47637 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47638 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47639 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47640 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47641 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47642 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47643 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47644 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47645 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47646 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47647 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47648 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47649 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47650 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47652 * kern/i386/realmode.S: New file.
47654 * kern/i386/pc/startup.S (protstack): Moved from here ...
47655 * kern/i386/realmode.S (protstack)... to here.
47656 * kern/i386/pc/startup.S (gdt): Moved from here ...
47657 * kern/i386/realmode.S (gdt)... to here.
47658 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47659 * kern/i386/realmode.S (prot_to_real)... to here.
47661 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47662 `kern/i386/realmode.S'.
47664 2007-10-17 Robert Millan <rmh@aybabtu.com>
47666 * include/grub/i386/loader.h: New file.
47668 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47669 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47670 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47671 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47672 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47673 * include/grub/i386/loader.h (grub_linux_prot_size)
47674 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47675 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47676 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47677 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47679 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47681 2007-10-15 Robert Millan <rmh@aybabtu.com>
47683 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47684 filesystem when dev->disk is unset.
47685 Do probe for filesystem even when dev->disk->has_partitions is set.
47686 In case a filesystem is found, always report it.
47687 In case it isn't, if dev->disk->has_partitions is set, report that
47688 a partition table was found instead of reporting that no filesystem
47689 could be identified.
47691 2007-10-12 Robert Millan <rmh@aybabtu.com>
47693 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47694 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47696 * include/grub/types.h (grub_host_to_target16): New macro.
47697 (grub_host_to_target32): Likewise.
47698 (grub_host_to_target64): Likewise.
47699 (grub_target_to_host16): Likewise.
47700 (grub_target_to_host32): Likewise.
47701 (grub_target_to_host64): Likewise.
47703 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47704 Renamed from to ...
47705 (GRUB_MOD_ALIGN): ...this. Update all users.
47707 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47708 grub_host_to_target32.
47709 Replace grub_be_to_cpu32 with grub_target_to_host32.
47710 (load_modules): Likewise.
47711 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47712 Replace grub_be_to_cpu32 with grub_target_to_host32.
47713 Replace grub_cpu_to_be16 with grub_host_to_target16.
47714 Replace grub_cpu_to_be32 grub_host_to_target32.
47716 2007-10-12 Robert Millan <rmh@aybabtu.com>
47718 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47719 * util/elf/grub-mkimage.c: ... here.
47721 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47722 `util/powerpc/ieee1275/grub-mkimage.c'.
47724 2007-10-07 Robert Millan <rmh@aybabtu.com>
47726 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47727 and make it easier to figure out.
47728 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47729 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47730 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47731 leave us with less than HEAP_MIN_SIZE total heap.
47732 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47734 2007-10-03 Robert Millan <rmh@aybabtu.com>
47736 * include/grub/i386/io.h: New file.
47737 * commands/i386/pc/play.c (inb): Removed.
47739 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47741 * term/i386/pc/serial.c (inb): Removed.
47743 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47745 * term/i386/pc/vga.c (inb): Removed.
47747 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47750 2007-10-02 Robert Millan <rmh@aybabtu.com>
47752 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47753 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47754 Reported by Marcin Kurek.
47756 2007-09-07 Robert Millan <rmh@aybabtu.com>
47758 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47759 SmartFirmware version updates (as released by Sven Luther), and avoid
47760 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47761 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47764 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47766 From Hitoshi Ozeki:
47767 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47768 when merging two regions.
47770 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47772 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47773 * normal/completion.c (grub_normal_do_completion): Likewise.
47774 Reported by Hitoshi Ozeki.
47776 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47778 Do not use devices at boot in chainloading.
47780 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47781 (boot_part_addr): Likewise.
47782 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47783 with BOOT_DRIVE and BOOT_PART_ADDR.
47784 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47785 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47787 2007-08-29 Robert Millan <rmh@aybabtu.com>
47789 Patch from Simon Peter <dn.tlp@gmx.net>:
47790 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47791 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47792 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47793 util/i386/pc/grub-setup.c_DEPENDENCIES.
47794 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47795 util/grub-probe.c_DEPENDENCIES.
47796 * conf/powerpc-ieee1275.rmk: Likewise.
47798 2007-08-28 Robert Millan <rmh@aybabtu.com>
47800 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47801 to tell grub-mkdevicemap how to name devices.
47802 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47805 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47806 util/i386/get_disk_name.c.
47807 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47808 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47809 util/ieee1275/get_disk_name.c.
47811 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47813 * DISTLIST: Add util/i386/get_disk_name.c and
47814 util/ieee1275/get_disk_name.c.
47816 * util/grub-mkdevicemap.c: Replace device naming logic with
47817 grub_util_get_disk_name() calls.
47819 2007-08-20 Robert Millan <rmh@aybabtu.com>
47821 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47822 (so that it works for both plural and singular quantities).
47824 2007-08-05 Robert Millan <rmh@aybabtu.com>
47826 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47827 so that [xz] isn't taken into account when determining order.
47829 2007-08-02 Marco Gerards <marco@gnu.org>
47831 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47832 `include/multiboot2.h', `include/grub/elfload.h',
47833 `include/multiboot.h', `include/grub/multiboot.h',
47834 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47835 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47836 `kern/elf.c', `loader/multiboot_loader.c',
47837 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47838 `loader/i386/pc/multiboot2.c',
47839 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47840 `util/i386/pc/grub-mkrescue.in'. Remove
47841 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47842 `include/grub/i386/pc/util/biosdisk.h' and
47843 `include/grub/powerpc/ieee1275/multiboot.h'.
47845 2007-08-02 Bean <bean123ch@gmail.com>
47847 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47848 (ntfs_mod_SOURCES): New variable.
47849 (ntfs_mod_CFLAGS): Likewise.
47850 (ntfs_mod_LDFLAGS): Likewise.
47852 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47853 (grub_probe_SOURCES): Likewise.
47854 (grub_emu_SOURCES): Likewise.
47856 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47857 (grub_emu_SOURCES): Likewise.
47859 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47860 (grub_emu_SOURCES): Likewise.
47862 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47864 * fs/ntfs.c: New file.
47866 2007-08-02 Bean <bean123ch@gmail.com>
47868 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47870 * file.h (grub_file): Likewise.
47872 * fshelp.h (grub_fshelp_read_file): Likewise.
47874 * util/i386/pc/grub-setup.c (setup): Likewise.
47875 (save_first_sector): Likewise.
47876 (save_blocklists): Likewise.
47878 * fs/affs.c (grub_affs_read_file): Likewise.
47880 * fs/ext2.c (grub_ext2_read_file): Likewise.
47882 * fs/fat.c (grub_fat_read_data): Likewise.
47884 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47886 * fs/hfs.c (grub_hfs_read_file): Likewise.
47888 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47890 * fs/jfs.c (grub_jfs_read_file): Likewise.
47892 * fs/minix.c (grub_minix_read_file): Likewise.
47894 * fs/sfs.c (grub_sfs_read_file): Likewise.
47896 * fs/ufs.c (grub_ufs_read_file): Likewise.
47898 * fs/xfs.c (grub_xfs_read_file): Likewise.
47900 * command/blocklist.c (read_blocklist): Likewise.
47901 (print_blocklist): Likewise.
47903 2007-08-02 Marco Gerards <marco@gnu.org>
47905 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47908 * disk/host.c: New file.
47910 * util/hostfs.c: Likewise.
47912 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47913 return `GRUB_ERR_BAD_FS'.
47914 * fs/sfs.c (grub_sfs_mount): Likewise.
47915 * fs/xfs.c (grub_xfs_mount): Likewise.
47917 * include/grub/disk.h (enum grub_disk_dev_id): Add
47918 `GRUB_DISK_DEVICE_HOST_ID'.
47920 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47922 2007-07-24 Jerone Young <jerone@gmail.com>
47924 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47925 modules for compilation.
47926 * conf/powerpc-ieee1275.rmk: Likewise.
47928 * include/multiboot.h: Move multiboot definitions to one file. Rename
47929 many definitions to not get grub specific.
47930 * include/multiboot2.h: Create header with multiboot 2 definitions.
47931 * include/grub/multiboot.h: Header for grub specific function
47932 prototypes and definitions.
47933 * include/grub/multiboot2.h: Likewise.
47934 * include/grub/multiboot_loader.h: Likewise.
47935 * include/grub/i386/pc/multiboot.h: Removed.
47936 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47938 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47939 and 2 to allow for one multiboot and module commands.
47940 * loader/multiboot2.c: Add multiboot2 functionality.
47941 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47942 and definition names.
47943 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47945 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47946 ieee1275 specific multiboot2 code.
47948 * kern/i386/pc/startup.S: Change headers and definition names for
47949 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47951 2007-07-22 Robert Millan <rmh@aybabtu.com>
47953 * geninitheader.sh: Process file specified in first parameter rather
47954 than hardcoding grub_modules_init.lst.
47955 * geninit.sh: Likewise. Also, construct header name dynamically rather
47956 than hardcoding grub_modules_init.h.
47958 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47959 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47960 grub_probe_init.[ch] and grub_setup_init.[ch].
47962 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47963 grub_modules_init.h with grub_emu_init.h.
47964 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47965 grub_probe_init.[ch] files.
47966 * conf/i386-efi.rmk: Likewise.
47967 * conf/i386-pc.rmk: Likewise.
47968 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47969 grub_setup_init.[ch] files.
47971 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47972 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47973 to initialize modules rather than a list of hardcoded functions.
47974 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47975 grub_init_all() to initialize modules rather than a list of hardcoded
47978 2007-07-22 Robert Millan <rmh@aybabtu.com>
47980 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47981 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47983 2007-07-22 Robert Millan <rmh@aybabtu.com>
47985 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47986 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47987 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47988 flag when running on SmartFirmware.
47989 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47990 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47993 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47994 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47995 rather than decreasing it.
47997 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47998 there's not enough space to do it, fail in the same way as when it
47999 can't be done because there are no partitions.
48001 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
48002 when nvsetenv failed.
48004 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
48006 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
48007 because this rule is automatically generated.
48008 (grub-mkrescue): Removed for the same reason as above.
48010 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
48012 Migrate to GNU General Public License Version 3.
48014 * COPYING: Replaced with the plain text version of GPLv3.
48016 * config.guess: Updated from gnulib.
48017 * config.sub: Likewise.
48019 * geninit.sh: Output a GPLv3 copyright notice.
48020 * geninitheader.sh: Likewise.
48021 * genmodsrc.sh: Likewise.
48022 * gensymlist.sh.in: Likewise.
48024 * boot/i386/pc/boot.S: Upgraded to GPLv3.
48025 * boot/i386/pc/diskboot.S: Likewise.
48026 * boot/i386/pc/pxeboot.S: Likewise.
48027 * commands/blocklist.c: Likewise.
48028 * commands/boot.c: Likewise.
48029 * commands/cat.c: Likewise.
48030 * commands/cmp.c: Likewise.
48031 * commands/configfile.c: Likewise.
48032 * commands/echo.c: Likewise.
48033 * commands/help.c: Likewise.
48034 * commands/ls.c: Likewise.
48035 * commands/search.c: Likewise.
48036 * commands/terminal.c: Likewise.
48037 * commands/test.c: Likewise.
48038 * commands/videotest.c: Likewise.
48039 * commands/i386/cpuid.c: Likewise.
48040 * commands/i386/pc/halt.c: Likewise.
48041 * commands/i386/pc/play.c: Likewise.
48042 * commands/i386/pc/reboot.c: Likewise.
48043 * commands/i386/pc/vbeinfo.c: Likewise.
48044 * commands/i386/pc/vbetest.c: Likewise.
48045 * commands/ieee1275/halt.c: Likewise.
48046 * commands/ieee1275/reboot.c: Likewise.
48047 * commands/ieee1275/suspend.c: Likewise.
48048 * disk/loopback.c: Likewise.
48049 * disk/lvm.c: Likewise.
48050 * disk/raid.c: Likewise.
48051 * disk/efi/efidisk.c: Likewise.
48052 * disk/i386/pc/biosdisk.c: Likewise.
48053 * disk/ieee1275/ofdisk.c: Likewise.
48054 * font/manager.c: Likewise.
48055 * fs/affs.c: Likewise.
48056 * fs/ext2.c: Likewise.
48057 * fs/fat.c: Likewise.
48058 * fs/fshelp.c: Likewise.
48059 * fs/hfs.c: Likewise.
48060 * fs/hfsplus.c: Likewise.
48061 * fs/iso9660.c: Likewise.
48062 * fs/jfs.c: Likewise.
48063 * fs/minix.c: Likewise.
48064 * fs/sfs.c: Likewise.
48065 * fs/ufs.c: Likewise.
48066 * fs/xfs.c: Likewise.
48067 * hello/hello.c: Likewise.
48068 * include/grub/acorn_filecore.h: Likewise.
48069 * include/grub/arg.h: Likewise.
48070 * include/grub/bitmap.h: Likewise.
48071 * include/grub/boot.h: Likewise.
48072 * include/grub/cache.h: Likewise.
48073 * include/grub/device.h: Likewise.
48074 * include/grub/disk.h: Likewise.
48075 * include/grub/dl.h: Likewise.
48076 * include/grub/elfload.h: Likewise.
48077 * include/grub/env.h: Likewise.
48078 * include/grub/err.h: Likewise.
48079 * include/grub/file.h: Likewise.
48080 * include/grub/font.h: Likewise.
48081 * include/grub/fs.h: Likewise.
48082 * include/grub/fshelp.h: Likewise.
48083 * include/grub/gzio.h: Likewise.
48084 * include/grub/hfs.h: Likewise.
48085 * include/grub/kernel.h: Likewise.
48086 * include/grub/loader.h: Likewise.
48087 * include/grub/lvm.h: Likewise.
48088 * include/grub/misc.h: Likewise.
48089 * include/grub/mm.h: Likewise.
48090 * include/grub/net.h: Likewise.
48091 * include/grub/normal.h: Likewise.
48092 * include/grub/parser.h: Likewise.
48093 * include/grub/partition.h: Likewise.
48094 * include/grub/pc_partition.h: Likewise.
48095 * include/grub/raid.h: Likewise.
48096 * include/grub/rescue.h: Likewise.
48097 * include/grub/script.h: Likewise.
48098 * include/grub/setjmp.h: Likewise.
48099 * include/grub/symbol.h: Likewise.
48100 * include/grub/term.h: Likewise.
48101 * include/grub/terminfo.h: Likewise.
48102 * include/grub/tparm.h: Likewise.
48103 * include/grub/types.h: Likewise.
48104 * include/grub/video.h: Likewise.
48105 * include/grub/efi/api.h: Likewise.
48106 * include/grub/efi/chainloader.h: Likewise.
48107 * include/grub/efi/console.h: Likewise.
48108 * include/grub/efi/console_control.h: Likewise.
48109 * include/grub/efi/disk.h: Likewise.
48110 * include/grub/efi/efi.h: Likewise.
48111 * include/grub/efi/pe32.h: Likewise.
48112 * include/grub/efi/time.h: Likewise.
48113 * include/grub/i386/linux.h: Likewise.
48114 * include/grub/i386/setjmp.h: Likewise.
48115 * include/grub/i386/types.h: Likewise.
48116 * include/grub/i386/efi/kernel.h: Likewise.
48117 * include/grub/i386/efi/loader.h: Likewise.
48118 * include/grub/i386/efi/time.h: Likewise.
48119 * include/grub/i386/pc/biosdisk.h: Likewise.
48120 * include/grub/i386/pc/boot.h: Likewise.
48121 * include/grub/i386/pc/chainloader.h: Likewise.
48122 * include/grub/i386/pc/console.h: Likewise.
48123 * include/grub/i386/pc/init.h: Likewise.
48124 * include/grub/i386/pc/kernel.h: Likewise.
48125 * include/grub/i386/pc/loader.h: Likewise.
48126 * include/grub/i386/pc/memory.h: Likewise.
48127 * include/grub/i386/pc/multiboot.h: Likewise.
48128 * include/grub/i386/pc/serial.h: Likewise.
48129 * include/grub/i386/pc/time.h: Likewise.
48130 * include/grub/i386/pc/vbe.h: Likewise.
48131 * include/grub/i386/pc/vbeblit.h: Likewise.
48132 * include/grub/i386/pc/vbefill.h: Likewise.
48133 * include/grub/i386/pc/vbeutil.h: Likewise.
48134 * include/grub/i386/pc/vga.h: Likewise.
48135 * include/grub/ieee1275/ieee1275.h: Likewise.
48136 * include/grub/ieee1275/ofdisk.h: Likewise.
48137 * include/grub/powerpc/libgcc.h: Likewise.
48138 * include/grub/powerpc/setjmp.h: Likewise.
48139 * include/grub/powerpc/types.h: Likewise.
48140 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
48141 * include/grub/powerpc/ieee1275/console.h: Likewise.
48142 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
48143 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
48144 * include/grub/powerpc/ieee1275/loader.h: Likewise.
48145 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
48146 * include/grub/powerpc/ieee1275/time.h: Likewise.
48147 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
48148 * include/grub/sparc64/libgcc.h: Likewise.
48149 * include/grub/sparc64/setjmp.h: Likewise.
48150 * include/grub/sparc64/types.h: Likewise.
48151 * include/grub/sparc64/ieee1275/console.h: Likewise.
48152 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48153 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48154 * include/grub/sparc64/ieee1275/time.h: Likewise.
48155 * include/grub/util/biosdisk.h: Likewise.
48156 * include/grub/util/getroot.h: Likewise.
48157 * include/grub/util/lvm.h: Likewise.
48158 * include/grub/util/misc.h: Likewise.
48159 * include/grub/util/raid.h: Likewise.
48160 * include/grub/util/resolve.h: Likewise.
48161 * io/gzio.c: Likewise.
48162 * kern/device.c: Likewise.
48163 * kern/disk.c: Likewise.
48164 * kern/dl.c: Likewise.
48165 * kern/elf.c: Likewise.
48166 * kern/env.c: Likewise.
48167 * kern/err.c: Likewise.
48168 * kern/file.c: Likewise.
48169 * kern/fs.c: Likewise.
48170 * kern/loader.c: Likewise.
48171 * kern/main.c: Likewise.
48172 * kern/misc.c: Likewise.
48173 * kern/mm.c: Likewise.
48174 * kern/parser.c: Likewise.
48175 * kern/partition.c: Likewise.
48176 * kern/rescue.c: Likewise.
48177 * kern/term.c: Likewise.
48178 * kern/efi/efi.c: Likewise.
48179 * kern/efi/init.c: Likewise.
48180 * kern/efi/mm.c: Likewise.
48181 * kern/i386/dl.c: Likewise.
48182 * kern/i386/efi/init.c: Likewise.
48183 * kern/i386/efi/startup.S: Likewise.
48184 * kern/i386/pc/init.c: Likewise.
48185 * kern/i386/pc/lzo1x.S: Likewise.
48186 * kern/i386/pc/startup.S: Likewise.
48187 * kern/ieee1275/ieee1275.c: Likewise.
48188 * kern/powerpc/cache.S: Likewise.
48189 * kern/powerpc/dl.c: Likewise.
48190 * kern/powerpc/ieee1275/cmain.c: Likewise.
48191 * kern/powerpc/ieee1275/crt0.S: Likewise.
48192 * kern/powerpc/ieee1275/init.c: Likewise.
48193 * kern/powerpc/ieee1275/openfw.c: Likewise.
48194 * kern/sparc64/cache.S: Likewise.
48195 * kern/sparc64/dl.c: Likewise.
48196 * kern/sparc64/ieee1275/init.c: Likewise.
48197 * kern/sparc64/ieee1275/openfw.c: Likewise.
48198 * loader/efi/chainloader.c: Likewise.
48199 * loader/efi/chainloader_normal.c: Likewise.
48200 * loader/i386/efi/linux.c: Likewise.
48201 * loader/i386/efi/linux_normal.c: Likewise.
48202 * loader/i386/pc/chainloader.c: Likewise.
48203 * loader/i386/pc/chainloader_normal.c: Likewise.
48204 * loader/i386/pc/linux.c: Likewise.
48205 * loader/i386/pc/linux_normal.c: Likewise.
48206 * loader/i386/pc/multiboot.c: Likewise.
48207 * loader/i386/pc/multiboot_normal.c: Likewise.
48208 * loader/powerpc/ieee1275/linux.c: Likewise.
48209 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48210 * normal/arg.c: Likewise.
48211 * normal/cmdline.c: Likewise.
48212 * normal/command.c: Likewise.
48213 * normal/completion.c: Likewise.
48214 * normal/execute.c: Likewise.
48215 * normal/function.c: Likewise.
48216 * normal/lexer.c: Likewise.
48217 * normal/main.c: Likewise.
48218 * normal/menu.c: Likewise.
48219 * normal/menu_entry.c: Likewise.
48220 * normal/misc.c: Likewise.
48221 * normal/parser.y: Likewise.
48222 * normal/script.c: Likewise.
48223 * normal/i386/setjmp.S: Likewise.
48224 * normal/powerpc/setjmp.S: Likewise.
48225 * normal/sparc64/setjmp.S: Likewise.
48226 * partmap/acorn.c: Likewise.
48227 * partmap/amiga.c: Likewise.
48228 * partmap/apple.c: Likewise.
48229 * partmap/gpt.c: Likewise.
48230 * partmap/pc.c: Likewise.
48231 * partmap/sun.c: Likewise.
48232 * term/gfxterm.c: Likewise.
48233 * term/terminfo.c: Likewise.
48234 * term/efi/console.c: Likewise.
48235 * term/i386/pc/console.c: Likewise.
48236 * term/i386/pc/serial.c: Likewise.
48237 * term/i386/pc/vesafb.c: Likewise.
48238 * term/i386/pc/vga.c: Likewise.
48239 * term/ieee1275/ofconsole.c: Likewise.
48240 * util/biosdisk.c: Likewise.
48241 * util/console.c: Likewise.
48242 * util/genmoddep.c: Likewise.
48243 * util/getroot.c: Likewise.
48244 * util/grub-emu.c: Likewise.
48245 * util/grub-mkdevicemap.c: Likewise.
48246 * util/grub-probe.c: Likewise.
48247 * util/lvm.c: Likewise.
48248 * util/misc.c: Likewise.
48249 * util/raid.c: Likewise.
48250 * util/resolve.c: Likewise.
48251 * util/update-grub.in: Likewise.
48252 * util/update-grub_lib.in: Likewise.
48253 * util/grub.d/00_header.in: Likewise.
48254 * util/grub.d/10_hurd.in: Likewise.
48255 * util/grub.d/10_linux.in: Likewise.
48256 * util/i386/efi/grub-install.in: Likewise.
48257 * util/i386/efi/grub-mkimage.c: Likewise.
48258 * util/i386/pc/grub-install.in: Likewise.
48259 * util/i386/pc/grub-mkimage.c: Likewise.
48260 * util/i386/pc/grub-mkrescue.in: Likewise.
48261 * util/i386/pc/grub-setup.c: Likewise.
48262 * util/i386/pc/misc.c: Likewise.
48263 * util/powerpc/ieee1275/grub-install.in: Likewise.
48264 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48265 * util/powerpc/ieee1275/misc.c: Likewise.
48266 * video/bitmap.c: Likewise.
48267 * video/video.c: Likewise.
48268 * video/i386/pc/vbe.c: Likewise.
48269 * video/i386/pc/vbeblit.c: Likewise.
48270 * video/i386/pc/vbefill.c: Likewise.
48271 * video/i386/pc/vbeutil.c: Likewise.
48272 * video/readers/tga.c: Likewise.
48274 2007-07-02 Robert Millan <rmh@aybabtu.com>
48276 * conf/i386-efi.rmk: Replace obsolete reference to
48277 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48278 with util/getroot.c.
48279 * conf/powerpc-ieee1275.rmk: Likewise.
48280 * conf/sparc64-ieee1275.rmk: Likewise.
48282 * util/grub-emu.c (main): Fix unchecked pointer handling.
48284 2007-07-02 Robert Millan <rmh@aybabtu.com>
48286 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48287 invocation to fail, in order to support partition-less media.
48289 * util/i386/pc/grub-install.in: Likewise.
48291 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48292 which fs or partmap modules are needed (akin to its sister scripts).
48294 Also use grub-probe to get rid of unportable /proc/mounts check.
48296 Print the same informational message that the other scripts do, before
48299 2007-06-23 Robert Millan <rmh@aybabtu.com>
48301 * util/update-grub_lib.in (font_path): New function. Determine whether
48302 a font file can be found and, if so, echo the GRUB path to it.
48304 * util/update-grub.in: Handle multiple terminals depending on user
48305 input, platform availability and font file presence. Propagate
48306 variables of our findings to /etc/grub.d/ children.
48308 * util/grub.d/00_header.in: Handle multiple terminals, based on
48309 environment setup by update-grub.
48311 2007-06-23 Robert Millan <rmh@aybabtu.com>
48313 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48315 2007-06-21 Robert Millan <rmh@aybabtu.com>
48317 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48318 indicate end of data section in kernel image.
48319 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48320 GRUB_KERNEL_MACHINE_DATA_END.
48322 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48324 * kern/i386/efi/startup.S: Likewise.
48326 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48327 during image generation. Implement --prefix option to override this
48329 * util/i386/efi/grub-mkimage.c: Likewise.
48331 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48332 code to make path relative to its root into a separate function.
48334 * util/i386/pc/grub-install.in: Use newly provided
48335 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48336 pass the result to grub-install --prefix.
48338 2007-06-13 Robert Millan <rmh@aybabtu.com>
48340 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48341 DEFAULT_DEVICE_MAP.
48342 * util/grub-emu.c: Use above definitions from misc.h instead of
48344 * util/grub-mkdevicemap.c: Likewise.
48345 * util/i386/pc/grub-setup.c: Likewise.
48346 * util/grub-probe.c: Likewise.
48347 (probe): Abort with grub_util_error() when either
48348 grub_guess_root_device or grub_util_get_grub_dev fails.
48350 2007-06-12 Robert Millan <rmh@aybabtu.com>
48352 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48353 "pager" assignment.
48354 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48356 * util/grub-probe.c (probe): Likewise for "drive_name".
48358 2007-06-11 Robert Millan <rmh@aybabtu.com>
48360 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48361 not just the cdrom one.
48363 2007-06-11 Robert Millan <rmh@aybabtu.com>
48365 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48366 Add --pkglibdir=DIR option to override pkglibdir.
48367 Mention --image-type=TYPE in help output.
48368 Fix --grub-mkimage (it was a no-op).
48369 Abort gracefully when no parameter is given.
48371 2007-06-11 Robert Millan <rmh@aybabtu.com>
48373 * util/i386/pc/grub-mkrescue.in: New file.
48374 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48375 * Makefile.in: Handle bin_SCRIPTS.
48377 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48379 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48380 list of video modes.
48382 2007-06-06 Robert Millan <rmh@aybabtu.com>
48384 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48385 file doesn't exist, or if it is in a filesystem grub can't read.
48387 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48388 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48389 header comment to fit in 80 columns when the variables are resolved.
48391 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48392 could be identified by update-grub. Remove redundant check for
48393 unifont.pff existence (since convert_system_path_to_grub_path now
48396 2007-06-04 Robert Millan <rmh@aybabtu.com>
48398 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48400 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48402 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48404 2007-06-04 Robert Millan <rmh@aybabtu.com>
48406 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48408 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48409 grub_apple_partition_map_fini.
48412 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48413 to access >2 TiB disks).
48415 Print disk->total_sectors with %llu instead of %lu, since this
48416 variable is always 64-bit (prevents wrong disk size from being displayed
48417 on either >2 TiB disk or big-endian CPU).
48419 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48420 into a generic case that supports all (sane) partition maps.
48422 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48425 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48426 and grub_apple_partition_map_fini() after that.
48428 2007-06-01 Robert Millan <rmh@aybabtu.com>
48430 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48432 * util/grub.d/00_header.in: Only enable gfxterm when
48433 convert_system_path_to_grub_path() succeeds.
48435 2007-05-20 Robert Millan <rmh@aybabtu.com>
48437 * util/update-grub_lib.in: New file.
48438 * DISTLIST: Add update-grub_lib.in.
48439 * conf/common.rmk: Generate update-grub_lib and install it in
48441 * Makefile.in: Add install routine for $(lib_DATA).
48443 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48444 function provided by update-grub_lib to support arbitrary paths of
48446 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48447 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48449 2007-05-19 Robert Millan <rmh@aybabtu.com>
48451 * commands/i386/cpuid.c: New module.
48452 * DISTLIST: Add it.
48453 * conf/i386-efi.rmk: Enable cpuid.mod.
48454 * conf/i386-pc.rmk: Likewise.
48456 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48458 * kern/disk.c (grub_disk_read): Check return value of
48461 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48463 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48465 * disk/raid.c (grub_raid_open): Likewise.
48467 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48469 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48470 stack instead of on the heap.
48472 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48473 before doing a read on it.
48475 * configure.ac: Only use -fno-stack-protector for the target
48478 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48480 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48481 __attribute_ ((unused)) to mode_type argument.
48483 * util/getroot.c (grub_guess_root_device): Fix #endif.
48485 * kern/misc.c (memcmp): Fix prototype.
48487 * include/grub/partition.h [GRUB_UTIL]
48488 (grub_gpt_partition_map_init): Add prototype.
48489 (grub_gpt_partition_map_fini): Likewise.
48491 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48492 at the right place.
48494 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48495 (grub_fat_read_data): Likewise.
48496 (grub_fat_find_dir): Likewise.
48498 * font/manager.c (find_glyph): Make table a const.
48499 (grub_font_get_glyph): Remove bitmap from if statement.
48501 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48503 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48504 code, first search for device in /dev/mapper, then in /dev.
48505 (grub_util_get_grub_dev): New function.
48506 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48508 * util/grub-probe.c (probe): Remove check for RAID, call
48509 grub_util_get_grub_dev() instead of
48510 grub_util_biosdisk_get_grub_dev().
48511 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48512 grub_util_biosdisk_get_grub_dev().
48513 * util/i386/pc/grub-setup.c (main): Likewise.
48515 2007-05-16 Robert Millan <rmh@aybabtu.com>
48517 * DISTLIST: Update for the latest changes.
48518 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48519 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48520 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48521 grub/util/biosdisk.h.
48522 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48523 grub/util/biosdisk.h.
48525 2007-05-16 Robert Millan <rmh@aybabtu.com>
48527 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48529 2007-05-16 Robert Millan <rmh@aybabtu.com>
48531 * util/i386/efi/grub-install.in: New.
48532 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48533 newly added grub-install.
48534 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48536 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48537 grub/util/biosdisk.h.
48538 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48539 grub/util/biosdisk.h.
48541 2007-05-16 Robert Millan <rmh@aybabtu.com>
48543 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48544 * include/grub/util/biosdisk.h: ... here.
48545 * util/i386/pc/biosdisk.c: Moved to ...
48546 * util/biosdisk.c: ... here.
48547 * util/i386/pc/getroot.c: Moved to ...
48548 * util/getroot.c: ... here.
48549 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48550 * util/grub-mkdevicemap.c: ... here.
48551 * util/i386/pc/grub-probe.c: Moved to ...
48552 * util/grub-probe.c: ... here.
48554 2007-05-15 Robert Millan <rmh@aybabtu.com>
48556 * util/update-grub.in: Remove duplicated line in grub.cfg header
48559 2007-05-13 Robert Millan <rmh@aybabtu.com>
48561 * util/update-grub.in: Fix a few assumptions about the devices holding
48562 /, /boot and /boot/grub being the same.
48563 * util/grub.d/00_header.in: Likewise.
48564 * util/grub.d/10_hurd.in: Likewise.
48565 * util/grub.d/10_linux.in: Likewise.
48567 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48568 patterns. Use that to define the `.old' suffix as older than `'.
48570 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48572 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48573 the grub.cfg header message.
48575 2007-05-11 Robert Millan <rmh@aybabtu.com>
48577 * util/update-grub.in: Create device.map if it doesn't already exist,
48578 before attempting to run grub-probe.
48579 Check for grub-probe and grub-mkdevicemap with the same code
48580 grub-install is using.
48583 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48585 * Makefile.in: Add the datarootdir autoconf variable.
48587 2007-05-09 Robert Millan <rmh@aybabtu.com>
48589 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48590 fail gracefully if dev->disk->partition == NULL.
48592 2007-05-07 Robert Millan <rmh@aybabtu.com>
48594 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48595 determine partition map module.
48596 * util/i386/pc/grub-install.in: Use this feature to decide which
48597 partition module to load, instead of hardcoding pc and gpt.
48599 2007-05-07 Robert Millan <rmh@aybabtu.com>
48601 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48602 source directory differs from build directory.
48604 2007-05-05 Robert Millan <rmh@aybabtu.com>
48606 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48609 2007-05-05 Robert Millan <rmh@aybabtu.com>
48611 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48613 2007-05-05 Robert Millan <rmh@aybabtu.com>
48615 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48616 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48618 2007-05-05 Robert Millan <rmh@aybabtu.com>
48620 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48621 (grub_probe_SOURCES): Likewise.
48622 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48623 GPT and initialize dos_part and bsd_part accordingly.
48624 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48626 (main): Activate gpt module for use during partition identification,
48627 and deactivate it afterwards.
48628 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48629 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48630 partition identification, and deactivate it afterwards.
48632 2007-05-05 Robert Millan <rmh@aybabtu.com>
48634 * term/i386/pc/console.c (grub_console_fini): Call
48635 grub_term_set_current() before grub_term_unregister().
48637 2007-05-04 Robert Millan <rmh@aybabtu.com>
48639 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48640 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48641 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48642 and update-grub_DATA.
48643 * conf/common.rmk: Build and install update-grub components.
48644 * conf/common.mk: Regenerate.
48645 * util/update-grub.in: New. Core of update-grub.
48646 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48647 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48648 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48649 * util/grub.d/README: New. Document grub.d directory layout.
48651 2007-05-01 Robert Millan <rmh@aybabtu.com>
48653 * util/grub-emu.c: Move initialization functions
48654 grub_util_biosdisk_init() and grub_init_all() before
48655 grub_util_biosdisk_get_grub_dev(), which relies on them.
48657 2007-04-19 Robert Millan <rmh@aybabtu.com>
48659 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48662 2007-04-18 Jerone Young <jerone@gmail.com>
48664 * kernel/elf.c: Add missing parenthesis for conditional statement
48667 2007-04-10 Jerone Young <jerone@gmail.com>
48669 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48670 continue on and look for device node with real device name.
48672 2007-04-10 Jerone Young <jerone@gmail.com>
48674 * configure.ac: Add argument for autoconf to use transformation
48676 * Makefile.in: Add autoconf package transformation code.
48677 * util/i386/pc/grub-install.in: Likewise.
48678 * util/powerpc/ieee1275/grub-install.in: Likewise.
48680 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48682 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48683 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48684 (EXT2_REVISION): Likewise.
48685 (EXT2_INODE_SIZE): Likewise.
48686 (struct grub_ext2_block_group): Added a missing member
48688 (grub_ext2_read_inode): Divide by the inode size in a superblock
48689 instead of 128 to obtain INODES_PER_BLOCK.
48690 Use the macro EXT2_INODE_SIZE instead of directly using
48691 SBLOCK->INODE_SIZE.
48693 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48695 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48696 superblock instead of the structure size to compute an
48697 offset. This fixes the problem that GRUB could not read a
48698 filesystem when inode size is different from 128-byte.
48700 2007-03-05 Marco Gerards <marco@gnu.org>
48702 * normal/main.c (read_config_file): When "menu" is not set, create
48703 an initial context.
48705 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48707 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48708 (HEAP_LIMIT): New macro.
48709 (grub_claim_heap): Claim memory up to `heaplimit'.
48711 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48713 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48714 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48715 (_start): Likewise.
48716 (grub_arch_modules_addr): Return address after `_end'.
48717 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48718 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48719 (add_segments): Calculate `_end' from phdr size and location.
48720 (ALIGN_UP): Moved to ...
48721 * include/grub/misc.h: here.
48722 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48724 (GRUB_IEEE1275_MODULE_BASE): Removed.
48726 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48728 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48731 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48733 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48735 (grub_elf64_load_hook_t): Likewise.
48736 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48739 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48741 * kern/mm.c: Update copyright.
48742 (grub_mm_debug): Correct syntax error.
48743 (grub_mm_dump_free): New function.
48744 (grub_debug_free): Call `grub_free'.
48745 * include/grub/mm.h: Update copyright.
48746 (grub_mm_dump_free): Add declaration.
48748 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48750 * include/grub/ieee1275/ieee1275.h: Update copyright.
48751 * kern/powerpc/ieee1275/init.c: Likewise.
48752 * kern/powerpc/ieee1275/openfw.c: Likewise.
48754 * loader/powerpc/ieee1275/linux.c: Likewise.
48755 * include/grub/elfload.h: Likewise.
48756 * kern/elf.c: Likewise.
48757 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48759 (grub_elf64_load): Likewise.
48760 (grub_elf32_load_segment): Move to a nested function.
48761 (grub_elf64_load_segment): Likewise.
48763 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48765 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48767 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48768 (grub_heap_len): Likewise.
48769 (HEAP_SIZE): New macro.
48770 (grub_claim_heap): New function.
48771 (grub_machine_init): Don't claim heap directly. Call
48773 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48774 (grub_available_iterate): New function.
48776 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48778 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48779 * configure.ac: Use it for testing the HOST and TARGET compilers.
48781 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48783 * Makefile.in (enable_grub_emu): New variable.
48784 * configure.ac (--enable-grub-emu): New option.
48785 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48786 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48787 * conf/i386-pc.rmk: Likewise.
48788 * conf/powerpc-ieee1275.rmk: Likewise.
48789 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48791 2006-12-12 Marco Gerards <marco@gnu.org>
48793 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48795 * kern/env.c (grub_env_unset): Don't free the member `value' when
48796 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48799 * normal/main.c (current_menu): Removed.
48800 (free_menu): Unset the `menu' environment variable.
48801 (grub_normal_menu_addentry): Make use of the environment variable
48802 `menu', instead of using the global `current_menu'. Allocate
48803 memory for the sourcecode of this entry.
48804 (read_config_file): New argument `nested', changed all callers.
48805 Only in the case of a new context, initialize a new menu. Set the
48806 `menu' environment variable.
48807 (grub_normal_execute): Don't set and unset the environment
48808 variable `menu' here anymore. Only free the menu when leaving the
48811 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48814 2006-12-11 Marco Gerards <marco@gnu.org>
48816 * normal/menu_entry.c (run): Fix off by one bug so the last line
48817 is executed. Move the loader check to outside the loop.
48819 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48821 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48823 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48825 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48826 the number of sectors. Reported by Andrey Shuvikov
48827 <mr_hyro@yahoo.com>.
48829 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48831 * kern/disk.c (grub_disk_read): When there is a read error, always
48832 try to read only the necessary data.
48834 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48836 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48838 [GRUB_UTIL] (grub_raid_fini): Likewise.
48839 [GRUB_UTIL] (grub_lvm_init): Likewise.
48840 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48841 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48842 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48843 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48844 and grub_raid_fini().
48846 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48848 * include/grub/types.h (__unused): Rename to UNUSED.
48849 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48850 (grub_elf64_size): Likewise.
48852 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48854 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48855 grub_error_push and grub_error_pop in the error-handling path.
48856 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48859 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48861 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48862 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48863 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48864 (kernel_elf_SOURCES): Likewise.
48865 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48866 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48867 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48868 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48869 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48870 (elf_mod_SOURCES): New variable.
48871 (elf_mod_CFLAGS): Likewise.
48872 (elf_mod_LDFLAGS): Likewise.
48873 * include/grub/types.h (__unused): New macro.
48874 * include/grub/elfload.h: New file.
48875 * kern/elf.c: Likewise.
48876 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48877 (ELF32_LOADMASK): New macro.
48878 (ELF64_LOADMASK): Likewise.
48879 (vmlinux): Removed.
48880 (grub_linux_load32): New function.
48881 (grub_linux_load64): Likewise.
48882 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48883 Use grub_elf_t instead of grub_file_t.
48885 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48887 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48888 `catch_result' to struct set_color_args.
48890 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48892 * normal/menu.c: Include grub/script.h.
48893 * normal/menu_entry.c: Likewise.
48894 * include/grub/normal.h: Do not include grub/script.h.
48896 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48898 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48900 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48902 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48904 (grub_disk_close): Print debug messages when closing a disk.
48905 (grub_disk_read): Print debug messages when disk read fails.
48906 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48908 * kern/partition.c: Include misc.h.
48909 (grub_partition_iterate): Print debug messages when detecting
48912 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48914 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48916 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48918 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48920 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48921 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48923 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48925 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48926 instead of sizeof(lv). Patch by Michael Guntsche.
48928 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48930 * disk/lvm.c: Rename VGS to VG_LIST.
48931 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48932 (grub_lvm_open): Likewise.
48933 Thanks to Michael Guntsche for finding this bug.
48935 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48937 * configure.ac (AC_INIT): Bumped to 1.95.
48939 2006-10-14 Robert Millan <rmh@aybabtu.com>
48941 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48942 with "/dev/.static/dev/md".
48944 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48946 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48947 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48948 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48949 DRIVE_NAME are always freed.
48951 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48952 DOS_PART, as a DOS partition is counted from one instead of zero
48953 now. Reported by Robert Millan.
48955 2006-10-14 Robert Millan <rmh@aybabtu.com>
48957 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48958 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48959 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48960 string returned by grub_guess_root_device.
48961 * util/i386/pc/grub-setup.c: Likewise.
48962 * util/i386/pc/grub-probefs.c: Likewise.
48964 * util/i386/pc/grub-probefs.c: Rename to ...
48965 * util/i386/pc/grub-probe.c: ... this.
48966 * DISTLIST: Remove grub-probefs, add grub-probe.
48967 * conf/i386-efi.rmk: Likewise.
48968 * conf/i386-pc.rmk: Likewise.
48969 * util/i386/pc/grub-install.in: Likewise.
48971 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48972 choose which information we want to print.
48974 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48976 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48977 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48978 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48979 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48980 video/readers/tga.c and video/i386/pc/vbeutil.c.
48982 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48984 Added support for RAID and LVM.
48986 * disk/lvm.c: New file.
48987 * disk/raid.c: Likewise.
48988 * include/grub/lvm.h: Likewise.
48989 * include/grub/raid.h: Likewise.
48990 * include/grub/util/lvm.h: Likewise.
48991 * include/grub/util/raid.h: Likewise.
48992 * util/lvm.c: Likewise.
48993 * util/raid.c: Likewise.
48995 * include/grub/disk.h (grub_disk_dev_id): Add
48996 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48997 (grub_disk_get_size): New prototype.
48998 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48999 returns a partition.
49000 (grub_disk_get_size): New function.
49002 * kern/i386/pc/init.c (make_install_device): Copy the prefix
49003 verbatim if grub_install_dos_part is -2.
49005 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
49008 * util/i386/pc/grub-setup.c (setup): New argument
49009 MUST_EMBED. Force embedding of GRUB when the argument is
49010 true. Close FILE before returning.
49011 (main): Add support for RAID and LVM.
49013 * conf/common.rmk: Add RAID and LVM modules.
49014 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
49016 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
49018 * kern/misc.c (grub_strstr): New function.
49019 * include/grub/misc.h (grub_strstr): New prototype.
49021 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
49023 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
49025 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
49027 * kern/misc.c (grub_strtoull): Guess the base only if not
49030 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
49032 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
49035 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
49037 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
49039 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
49040 Remove `flags' argument. All callers changed.
49041 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
49042 (IEEE1275_IHANDLE_INVALID): New variable.
49043 (IEEE1275_CELL_INVALID): New variable.
49044 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
49045 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
49046 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
49047 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
49048 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
49049 codes from Open Firmware. All callers updated.
49050 (grub_ieee1275_next_property): Directly return Open Firmware return
49052 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
49053 Standardize error checking from `grub_ieee1275_get_property'.
49054 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
49055 `devalias' to `aliases'. Correct comments. Consolidate error paths.
49057 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
49059 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
49060 `instance_to_package_args' to `instance_to_path_args'.
49062 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
49063 `grub_ieee1275_chosen'.
49065 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
49066 `grub_ieee1275_interpret'.
49068 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
49070 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
49072 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
49074 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
49075 (__cmpdi): Likewise.
49077 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
49078 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
49081 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
49083 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
49084 to type `grub_ssize_t'.
49085 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
49087 2006-09-22 Marco Gerards <marco@gnu.org>
49089 * normal/script.c (grub_script_create_cmdmenu): Skip leading
49092 2006-09-22 Marco Gerards <marco@gnu.org>
49094 * commands/echo.c: New file.
49096 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
49098 * conf/common.rmk (echo_mod_SOURCES): New variable.
49099 (echo_mod_CFLAGS): Likewise.
49100 (echo_mod_LDFLAGS): Likewise.
49102 2006-09-22 Marco Gerards <marco@gnu.org>
49104 * normal/main.c (get_line): Malloc memory instead of using
49105 preallocated memory. Removed the arguments `cmdline' and
49106 `max_len'. Updated all callers.
49108 2006-09-22 Marco Gerards <marco@gnu.org>
49110 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
49111 (normal_mod_DEPENDENCIES): Likewise.
49113 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
49114 (normal_mod_DEPENDENCIES): Likewise.
49116 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
49118 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
49120 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
49122 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
49123 (normal_mod_DEPENDENCIES): Likewise.
49124 * conf/i386-pc.mk: Regenerate.
49125 * conf/i386-efi.mk: Likewise
49126 * conf/common.mk: Likewise.
49127 * conf/powerpc-ieee1275.mk: Likewise.
49128 * conf/sparc64-ieee1275.mk: Likewise.
49130 2006-09-22 Robert Millan <rmh@aybabtu.com>
49132 Sync with i386 version.
49133 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
49134 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
49136 2006-09-21 Robert Millan <rmh@aybabtu.com>
49138 Import from GRUB Legacy (lib/device.c):
49139 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
49140 (init_device_map) [__linux__]: Add support for I2O devices.
49142 2006-09-14 Marco Gerards <marco@gnu.org>
49144 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
49147 2006-09-14 Robert Millan <rmh@aybabtu.com>
49149 * util/i386/pc/grub-install.in: Skip menu.lst when removing
49152 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
49154 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
49155 before adding it to device.map.
49157 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
49159 * genmk.rb: Let GCC generate dependencies the first time it
49160 compiles a file; using the -MD option.
49161 * conf/common.mk: Regenerate.
49162 * conf/i386-pc.mk: Likewise.
49163 * conf/i386-efi.mk: Likewise.
49164 * conf/powerpc-ieee1275.mk: Likewise.
49165 * conf/sparc64-ieee1275.mk: Likewise.
49167 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
49169 Move the prototypes of grub_setjmp and grub_longjmp to
49170 cpu/setjmp.h, so that each architecture may specify different
49173 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
49174 (grub_longjmp): Likewise.
49175 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
49176 (grub_longjmp): Likewise.
49177 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
49178 (grub_longjmp): Likewise.
49180 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
49181 [!GRUB_UTIL] (grub_longjmp): Removed.
49183 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
49185 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
49186 "color!" method does not return any value.
49188 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49190 * include/grub/bitmap.h: New file.
49192 * include/grub/i386/pc/vbeutil.h: Likewise.
49194 * video/bitmap.c: Likewise.
49196 * video/readers/tga.c: Likewise.
49198 * video/i386/pc/vbeutil.c: Likewise.
49200 * commands/videotest.c: Code cleanup and updated to reflect to new
49203 * term/gfxterm.c: Likewise.
49205 * video/video.c: Likewise.
49207 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49208 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49209 (bitmap_mod_SOURCES): New entry.
49210 (bitmap_mod_CFLAGS): Likewise.
49211 (bitmap_mod_LDFLAGS): Likewise.
49212 (tga_mod_SOURCES): Likewise.
49213 (tga_mod_CFLAGS): Likewise.
49214 (tga_mod_LDFLAGS): Likewise.
49216 * include/grub/video.h (grub_video_blit_operators): New enum type.
49217 (grub_video_render_target): Changed as forward declaration and moved
49218 actual definition to be video driver specific.
49219 (grub_video_adapter.blit_bitmap): Added blitting operator.
49220 (grub_video_adapter.blit_render_target): Likewise.
49221 (grub_video_blit_bitmap): Likewise.
49222 (grub_video_blit_render_target): Likewise.
49224 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49225 driver specific render target definition.
49226 (grub_video_vbe_map_rgba): Added driver internal helper.
49227 (grub_video_vbe_unmap_color): Updated to use
49228 grub_video_i386_vbeblit_info.
49229 (grub_video_vbe_get_video_ptr): Likewise.
49231 * include/grub/i386/pc/vbeblit.h
49232 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49233 grub_video_i386_vbeblit_info.
49234 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49235 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49236 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49237 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49238 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49239 (grub_video_i386_vbeblit_index_index): Likewise.
49240 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49241 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49242 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49243 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49245 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49248 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49249 include/grub/i386/pc/vbeblit.h.
49251 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49252 Updated to use grub_video_i386_vbeblit_info.
49253 (grub_video_i386_vbefill_R8G8B8): Likewise.
49254 (grub_video_i386_vbefill_index): Likewise.
49255 (grub_video_i386_vbefill): Added generic filler.
49257 * video/i386/pc/vbefill.c: Updated to reflect changes on
49258 include/grub/i386/pc/vbefill.h.
49260 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49261 grub_video_i386_vbeblit_info.
49262 (grub_video_vbe_unmap_color): Likewise.
49263 (grub_video_vbe_blit_glyph): Likewise.
49264 (grub_video_vbe_scroll): Likewise.
49265 (grub_video_vbe_draw_pixel): Removed function.
49266 (grub_video_vbe_get_pixel): Likewise.
49267 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49268 updated code to use it.
49269 (common_blitter): Added common blitter for render target and bitmap.
49270 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49271 (grub_video_vbe_blit_render_target): Likewise.
49273 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49275 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49276 is in text mode if there is no console control protocol instance
49279 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49281 * include/grub/video.h: Code cleanup.
49283 * include/grub/i386/pc/vbe.h: Likewise.
49285 * video/i386/pc/vbe.c: Likewise.
49287 * video/i386/pc/vbeblit.c: Likewise.
49289 * video/i386/pc/vbefill.c: Likewise.
49291 * video/video.c: Likewise. Also added more comments.
49293 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49295 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49296 (struct grub_biosdisk_dap): Likewise.
49298 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49299 linkage settings for all functions.
49301 2006-07-12 Marco Gerards <marco@gnu.org>
49303 * configure.ac (--enable-mm-debug): Fix typo.
49305 * genkernsyms.sh.in: Use proper quoting for `CC'.
49307 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49309 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49310 (normal_mod_ASFLAGS): Remove "-m32".
49312 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49314 * util/misc.c: Include config.h.
49315 [!HAVE_MEMALIGN]: Do not include malloc.h.
49316 (grub_memalign): Use posix_memalign, if present. Then, use
49317 memalign, if present. Otherwise, emit an error.
49319 * util/grub-emu.c: Do not include malloc.h.
49321 * include/grub/util/misc.h: Include unistd.h. This is required for
49322 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49323 D. Eades III <hde@foobar-qux.org>.
49325 * configure.ac (AC_GNU_SOURCE): Added.
49326 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49329 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49331 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49332 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49334 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49336 * include/grub/types.h (grub_host_addr_t): Rename to
49337 grub_target_addr_t.
49338 (grub_host_off_t): Rename to grub_target_off_t.
49339 (grub_host_size_t): Rename to grub_target_size_t.
49340 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49341 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49343 * include/grub/kernel.h (struct grub_module_header): Change type
49344 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49345 (grub_module_info): Likewise.
49347 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49349 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49350 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49351 Velazquez <jesus.velazquez@gmail.com>.
49353 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49355 Count partitions from 1 instead of 0 in the string representation
49356 of partitions. Still use 0-based internally.
49358 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49359 (sun_partition_map_iterate): Use grub_partition_t instead of
49360 struct grub_partition *. Cast DESC->START_CYLINDER to
49361 grub_uint64_t after converting the endian.
49362 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49363 (sun_partition_map_get_name): Add 1 to P->INDEX.
49365 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49367 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49369 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49370 zero instead of one.
49371 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49372 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49374 * partmap/apple.c (apple_partition_map_iterate): Change the type
49375 of POS to unsigned.
49376 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49377 (apple_partition_map_get_name): Add 1 into P->INDEX.
49379 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49380 of POS to unsigned.
49381 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49382 calculate the offset of a partition.
49383 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49384 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49386 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49387 SECTOR to grub_disk_addr_t.
49388 (acorn_partition_map_iterate): Likewise.
49389 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49390 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49392 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49394 * kern/i386/pc/init.c (make_install_device): Add 1 into
49395 GRUB_INSTALL_DOS_PART.
49397 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49400 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49402 Clean up the code to support 64-bit addressing in disks and
49403 files. This change is not enough for filesystems yet.
49405 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49406 type of "start" to grub_uint64_t.
49407 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49408 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49409 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49412 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49413 to grub_disk_addr_t.
49415 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49418 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49420 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49423 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49425 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49427 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49429 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49430 to grub_off_t, to detect an error from grub_file_seek.
49431 (grub_multiboot_load_elf32): Likewise.
49433 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49434 maximum unsigned long value when an overflow is detected.
49435 (grub_strtoull): New function.
49436 (grub_divmod64): Likewise.
49437 (grub_lltoa): use grub_divmod64.
49439 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49441 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49442 the pointer to next character. Use grub_strtoull instead of
49444 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49445 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49448 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49449 return value is signed.
49450 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49451 test if OFFSET is less than zero, as OFFSET is unsigned now.
49453 * kern/disk.c (struct grub_disk_cache): Change the type of
49454 "sector" to grub_disk_addr_t.
49455 (grub_disk_cache_get_index): Change the type of SECTOR to
49456 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49457 unsigned after shifting.
49458 (grub_disk_cache_invalidate): Change the type of SECTOR to
49460 (grub_disk_cache_unlock): Likewise.
49461 (grub_disk_cache_store): Likewise.
49462 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49463 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49464 grub_disk_addr_t and grub_uint64_t, respectively.
49465 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49466 body, as the value of OFFSET is tweaked by
49467 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49468 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49470 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49471 body, as the value of OFFSET is tweaked by
49472 grub_disk_check_range. Change the types of LEN and N to
49475 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49476 and "saved_offset" to grub_off_t.
49477 (test_header): Cast BUF to char *.
49478 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49480 (grub_gzio_read): Change the types of OFFSET and SIZE to
49481 grub_off_t and grub_size_t, respectively.
49483 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49485 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49486 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49487 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49488 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49489 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49491 * include/grub/types.h (grub_off_t): Unconditionally set to
49493 (grub_disk_addr_t): Changed to grub_uint64_t.
49495 * include/grub/partition.h (struct grub_partition): Change the
49496 types of "start", "len" and "offset" to grub_disk_addr_t,
49497 grub_uint64_t and grub_disk_addr_t, respectively.
49498 (grub_partition_get_start): Return grub_disk_addr_t.
49499 (grub_partition_get_len): Return grub_uint64_t.
49501 * include/grub/misc.h (grub_strtoull): New prototype.
49502 (grub_divmod64): Likewise.
49504 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49505 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49506 grub_off_t, respectively.
49507 All callers and references changed.
49509 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49510 grub_size_t in "read".
49511 All callers and references changed.
49513 * include/grub/file.h (struct grub_file): Change the types of
49514 "offset" and "size" to grub_off_t and grub_off_t,
49515 respectively. Change the type of SECTOR to grub_disk_addr_t in
49517 (grub_file_read): Change the type of LEN to grub_size_t.
49518 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49520 (grub_file_size): Return grub_off_t.
49521 (grub_file_tell): Likewise.
49522 All callers and references changed.
49524 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49525 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49527 (struct grub_disk): Change the type of "total_sectors" to
49528 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49530 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49531 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49532 (grub_disk_write): Likewise.
49533 All callers and references changed.
49535 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49536 char * for grub_strncmp to silence gcc.
49537 (grub_iso9660_mount): Likewise.
49538 (grub_iso9660_mount): Likewise.
49539 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49541 (grub_iso9660_iterate_dir): Likewise.
49542 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49544 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49545 LEN to grub_disk_addr_t and grub_size_t, respectively.
49547 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49549 * fs/jfs.c (grub_jfs_read_file): Likewise.
49551 * fs/minix.c (grub_jfs_read_file): Likewise.
49553 * fs/sfs.c (grub_jfs_read_file): Likewise.
49555 * fs/ufs.c (grub_jfs_read_file): Likewise.
49557 * fs/xfs.c (grub_jfs_read_file): Likewise.
49559 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49560 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49563 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49564 BLKNR to -1 instead of returning GRUB_ERRNO.
49565 (grub_ext2_read_file): Change the types of SECTOR and
49566 LEN to grub_disk_addr_t and grub_size_t, respectively.
49568 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49569 LEN to grub_disk_addr_t and grub_size_t, respectively.
49571 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49574 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49575 string. Do not cast SECTOR explicitly.
49577 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49578 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49579 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49580 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49581 over 2TB and LBA mode is not supported, raise an error.
49582 (get_safe_sectors): New function.
49583 (grub_biosdisk_read): Use get_safe_sectors.
49584 (grub_biosdisk_write): Likewise.
49586 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49587 (grub_efidisk_write): Likewise.
49589 * disk/loopback.c (delete_loopback): Cosmetic changes.
49590 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49592 (grub_loopback_open): Likewise.
49593 (grub_loopback_read): Likewise. Also, change the type of POS to
49594 grub_off_t, and fix the usage of grub_memset.
49596 * commands/i386/pc/play.c: Include grub/machine/time.h.
49598 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49601 * commands/configfile.c: Include grub/env.h.
49603 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49604 GRUB_ERRNO directly instead. Change the type of POS to
49605 grub_off_t. Follow the coding standard.
49607 * commands/blocklist.c: Include grub/partition.h.
49608 (grub_cmd_blocklist): Return an error if the underlying device is
49609 not a disk. Take the starting sector of a partition into account,
49610 if a partition is used.
49612 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49614 (lba_mode): Support 64-bit addresses.
49615 (chs_mode): Likewise.
49616 (copy_buffer): Adapted to the new offsets of a length field and a
49618 (blocklist_default_start): Allocate 64-bit space.
49620 * boot/i386/pc/boot.S (force_lba): Removed.
49621 (boot_drive): Moved to under KERNEL_SECTOR.
49622 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49624 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49626 (lba_mode): Refactored to support a 64-bit address. More size
49628 (setup_sectors): Likewise.
49630 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49632 * DISTLIST: Added include/grub/i386/linux.h. Removed
49633 include/grub/i386/pc/linux.h
49635 * configure.ac (AC_INIT): Bumped to 1.94.
49637 * config.guess: Updated from gnulib.
49638 * config.sub: Likewise.
49639 * install-sh: Likewise.
49640 * mkinstalldirs: Likewise.
49642 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49644 * conf/common.rmk (grub_modules_init.lst): Depended on
49645 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49648 * genmk.rb (PModule::rule): Reverted the previous change.
49650 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49652 * conf/common.rmk (grub_modules_init.lst): Depends on
49653 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49654 that the target does not exist before producing.
49655 (grub_modules_init.h): Remove the target before generating.
49656 (grub_emu_init.c): Likewise.
49658 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49660 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49662 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49663 for the target-specific tests. Make sure that we also have the
49664 up-to-date target variables for those tests.
49666 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49668 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49669 (PModule::rule): Likewise.
49671 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49673 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49674 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49675 target-specific flags should be prefixed.
49676 (PModule::rule): Likewise.
49678 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49680 * configure.ac (CMP): Check if cmp is available explicitly.
49682 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49684 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49685 (target_cpu): New variable.
49686 (pkglibdir): Use target_cpu instead of host_cpu.
49688 * util/i386/pc/grub-install.in (host_cpu): Removed.
49689 (target_cpu): New variable.
49690 (pkglibdir): Use target_cpu instead of host_cpu.
49692 * util/genmoddep.c: Removed.
49694 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49695 instead of GRUB_HOST_SIZEOF_VOID_P.
49696 * kern/dl.c: Likewise.
49698 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49700 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49701 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49702 (GRUB_TARGET_SIZEOF_LONG): ... this.
49703 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49704 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49705 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49707 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49708 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49709 (GRUB_TARGET_SIZEOF_LONG): ... this.
49710 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49711 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49712 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49714 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49715 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49716 (GRUB_TARGET_SIZEOF_LONG): ... this.
49717 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49718 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49720 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49721 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49722 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49723 instead of GRUB_HOST_SIZEOF_LONG.
49724 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49725 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49726 GRUB_CPU_WORDS_BIGENDIAN.
49727 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49728 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49731 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49732 (genmoddep_SOURCES): Likewise.
49733 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49734 (genmoddep_SOURCES): Likewise.
49735 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49736 (genmoddep_SOURCES): Likewise.
49737 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49739 (genmoddep_SOURCES): Likewise.
49741 * genmoddep.awk: New file.
49743 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49744 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49745 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49746 (PModule::rule): Likewise.
49747 (Program::rule): Likewise.
49748 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49749 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49752 * configure.ac: Rewritten intensively to use host and target
49753 instead of build and host, respectively.
49755 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49756 (host_cpu): Removed.
49757 (target_cpu): New variable.
49758 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49759 (BUILD_CC): Removed.
49760 (BUILD_CFLAGS): Likewise.
49761 (BUILD_CPPFLAGS): Likewise.
49762 (TARGET_CC): New variable.
49763 (TARGET_CFLAGS): Likewise.
49764 (TARGET_CPPFLAGS): Likewise.
49765 (TARGET_LDFLAGS): Likewise.
49767 (include): Use target_cpu instead of host_cpu.
49768 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49770 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49772 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49774 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49775 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49776 field 'false' to 'exec_on_false'.
49777 (grub_script_create_cmdif): Renamed argument names to reflect above
49780 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49782 * normal/script.c (grub_script_create_cmdif): Likewise.
49784 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49786 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49788 (grub_hfsplus_btree_recptr): Likewise.
49789 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49790 FILEBLOCK both to pass a block number and store next block
49792 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49793 overflow file correctly. Specify errors appropriately, because
49794 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49795 grub_hfsplus_btree_recptr to get the pointer to a found key.
49796 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49799 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49801 (_linux_mod_SOURCES): New variable.
49802 (_linux_mod_CFLAGS): Likewise.
49803 (_linux_mod_LDFLAGS): Likewise.
49804 (linux_mod_SOURCES): Likewise.
49805 (linux_mod_CFLAGS): Likewise.
49806 (linux_mod_LDFLAGS): Likewise.
49808 * DISTLIST: Added loader/i386/efi/linux.c,
49809 loader/i386/efi/linux_normal.c and
49810 include/grub/i386/efi/loader.h.
49812 * loader/i386/efi/linux.c: New file.
49813 * loader/i386/efi/linux_normal.c: Likewise.
49814 * include/grub/i386/efi/loader.h: Likewise.
49816 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49818 * commands/blocklist.c: New file.
49820 * DISTLIST: Added commands/blocklist.c.
49822 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49823 color for the background, and a darker color for the foreground.
49824 (grub_console_checkkey): Return READ_KEY.
49825 (grub_console_cls): Set the background to
49826 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49828 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49830 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49831 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49833 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49836 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49837 BG. The spec is wrong again.
49839 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49841 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49843 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49844 commands/blocklist.c.
49845 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49847 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49848 (blocklist_mod_SOURCES): New variable.
49849 (blocklist_mod_CFLAGS): Likewise.
49850 (blocklist_mod_LDFLAGS): Likewise.
49852 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49854 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49856 (lba_mode): Use %eax more intensively to reduce the code size.
49858 2006-05-20 Marco Gerards <marco@gnu.org>
49860 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49862 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49864 (script): Accept leading newlines.
49865 (newlines): New rule to describe 0 or more newlines.
49866 (commands): Accept `command' with trailing newline. Fixed the
49867 order in which arguments were passed to `grub_script_add_cmd'.
49868 Accept commands separated by newlines.
49869 (function): Changed to accept newlines.
49870 (menuentry) Rewritten.
49872 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49873 front of the list, instead of to the end.
49875 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49877 * util/i386/pc/grub-install.in (bindir): New variable.
49878 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49879 Shaver <lbgwjl@gmail.com>.
49881 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49883 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49884 grub/machine/linux.h
49885 * loader/i386/pc/linux.c: Likewise.
49887 * include/grub/i386/pc/linux.h: Moved to ...
49888 * include/grub/i386/linux.h: ... here.
49890 * include/grub/i386/linux.h (struct linux_kernel_params): New
49893 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49895 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49897 (grub_video_vbe_blit_glyph): Likewise.
49898 (grub_video_vbe_blit_bitmap): Likewise.
49899 (grub_video_vbe_blit_render_target): Likewise.
49901 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49903 * configure.ac (--with-platform): Properly quote the square
49906 2006-05-08 Marco Gerards <marco@gnu.org>
49908 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49910 (kernel_elf_HEADERS): ...to this. Updated all users.
49911 (grubof_symlist.c): Renamed from this...
49912 (kernel_elf_symlist.c): ...to this. Updated all users.
49913 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49914 (grubof_SOURCES): Renamed from this...
49915 (kernel_elf_SOURCES): ...to this.
49916 (grubof_HEADERS): Renamed from this...
49917 (kernel_elf_HEADERS): ...to this.
49918 (grubof_CFLAGS): Renamed from this...
49919 (kernel_elf_CFLAGS): ...to this.
49920 (grubof_ASFLAGS): Renamed from this...
49921 (kernel_elf_ASFLAGS): ...to this.
49922 (grubof_LDFLAGS): Renamed from this...
49923 (kernel_elf_LDFLAGS): ...to this.
49925 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49927 (kernel_elf_HEADERS): ...to this. Updated all users.
49928 (grubof_symlist.c): Renamed from this...
49929 (kernel_elf_symlist.c): ...to this. Updated all users.
49930 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49931 (grubof_SOURCES): Renamed from this...
49932 (kernel_elf_SOURCES): ...to this.
49933 (grubof_HEADERS): Renamed from this...
49934 (kernel_elf_HEADERS): ...to this.
49935 (grubof_CFLAGS): Renamed from this...
49936 (kernel_elf_CFLAGS): ...to this.
49937 (grubof_ASFLAGS): Renamed from this...
49938 (kernel_elf_ASFLAGS): ...to this.
49939 (grubof_LDFLAGS): Renamed from this...
49940 (kernel_elf_LDFLAGS): ...to this.
49942 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49943 `kernel.elf' instead of `grubof'.
49945 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49947 Add --with-platform to configure. Use pkglibdir instead of
49948 pkgdatadir. This is reported by Roger Leigh.
49950 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49951 (host_vendor): Likewise.
49952 (host_os): Likewise.
49953 (pkgdatadir): Likewise.
49954 (platform): New variable.
49955 (pkglibdir): Likewise.
49956 Use PKGLIBDIR instead of PKGDATADIR.
49958 * util/i386/pc/grub-install.in (datadir): Removed.
49959 (host_vendor): Likewise.
49960 (host_os): Likewise.
49961 (pkgdatadir): Likewise.
49962 (platform): New variable.
49963 (pkglibdir): Likewise.
49964 Use PKGLIBDIR instead of PKGDATADIR.
49966 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49967 instead of GRUB_DATADIR.
49969 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49971 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49974 * configure.ac (--with-platform): New option.
49975 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49977 * Makefile.in: Include a makefile based on PLATFORM instead of
49979 (pkgdatadir): Not appended by the machine type.
49980 (pkglibdir): Appended by the machine type.
49981 (host_vendor): Removed.
49982 (platform): New variable.
49983 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49984 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49985 (uninstall): Likewise.
49987 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49989 Use the environment context in the menu. Remove the commands
49990 "default" and "timeout", and use variables instead.
49992 * normal/menu.c: Include grub/env.h.
49993 (print_entry): Cast TITLE to silence gcc.
49994 (get_timeout): New function.
49995 (set_timeout): Likewise.
49996 (get_entry_number): Likewise.
49997 (run_menu): Use a default entry, a fallback entry and a timeout
49998 in the environment variables "default", "fallback" and
49999 "timeout". Also, tweak the default entry if it is not within the
50000 current menu entries.
50001 (grub_menu_run): Use a fallback entry in the environment variable
50004 * normal/main.c (read_config_file): Do not initialize
50005 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
50007 (grub_normal_execute): Use a data slot to store the menu.
50009 * include/grub/normal.h (struct grub_menu): Removed default_entry,
50010 fallback_entry and timeout.
50011 (struct grub_menu_list): Removed.
50012 (grub_menu_list_t): Likewise.
50013 (struct grub_context): Likewise.
50014 (grub_context_t): Likewise.
50015 (grub_context_get): Likewise.
50016 (grub_context_get_current_menu): Likewise.
50017 (grub_context_push_menu): Likewise.
50018 (grub_context_pop_menu): Likewise.
50019 (grub_default_init): Likewise.
50020 (grub_default_fini): Likewise.
50021 (grub_timeout_init): Likewise.
50022 (grub_timeout_fini): Likewise.
50024 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
50026 (normal_mod_SOURCES): Removed normal/context.c.
50028 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
50029 commands/default.c, commands/timeout.c and normal/context.c.
50030 (normal_mod_SOURCES): Removed normal/context.c.
50032 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
50033 commands/timeout.c and normal/context.c.
50034 (normal_mod_SOURCES): Removed normal/context.c.
50036 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
50037 commands/default.c, commands/timeout.c and normal/context.c.
50038 (normal_mod_SOURCES): Removed normal/context.c.
50040 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
50042 (default_mod_SOURCES): Removed.
50043 (default_mod_CFLAGS): Likewise.
50044 (default_mod_LDFLAGS): Likewise.
50045 (timeout_mod_SOURCES): Removed.
50046 (timeout_mod_CFLAGS): Likewise.
50047 (timeout_mod_LDFLAGS): Likewise.
50049 * DISTLIST: Removed commands/default.c, commands/timeout.c and
50052 * commands/default.c: Removed.
50053 * commands/timeout.c: Likewise.
50054 * normal/context.c: Likewise.
50056 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
50058 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
50060 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
50062 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
50063 "next" to "prev" for readability.
50064 (struct grub_env_sorted_var): New struct.
50065 (grub_env_context): Renamed to ...
50066 (initial_context): ... this.
50067 (grub_env_var_context): Renamed to ...
50068 (current_context): ... this.
50069 (grub_env_find): Look only at CURRENT_CONTEXT.
50070 (grub_env_context_open): Rewritten to copy exported variables from
50072 (grub_env_context_close): Rewritten according to the new
50073 scheme. Also, add an assertion to prevent the initial context from
50075 (grub_env_insert): Removed the code for the sorted list.
50076 (grub_env_remove): Likewise.
50077 (grub_env_export): Simply mark the variable with
50078 GRUB_ENV_VAR_GLOBAL.
50079 (grub_env_set): A cosmetic change for naming consistency.
50080 (grub_env_get): Likewise.
50081 (grub_env_unset): Likewise.
50082 (grub_env_iterate): Rewritten to sort variables within this
50084 (grub_register_variable_hook): Fixed for naming consistency. Call
50085 grub_env_find again, only if NAME is not found at the first time.
50086 (mangle_data_slot_name): New function.
50087 (grub_env_set_data_slot): Likewise.
50088 (grub_env_get_data_slot): Likewise.
50089 (grub_env_unset_data_slot): Likewise.
50091 * include/grub/env.h (grub_env_var_type): New enum.
50092 (GRUB_ENV_VAR_LOCAL): New constant.
50093 (GRUB_ENV_VAR_GLOBAL): Likewise.
50094 (GRUB_ENV_VAR_DATA): Likewise.
50095 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
50097 (grub_env_set): Replace VAR with NAME for consistency.
50098 (grub_register_variable_hook): Likewise.
50099 (grub_env_export): Specify the name of the argument.
50100 (grub_env_set_data_slot): New prototype.
50101 (grub_env_get_data_slot): Likewise.
50102 (grub_env_unset_data_slot): Likewise.
50104 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50106 Extend the loader so that GRUB can accept a loader which comes
50107 back to GRUB when a loaded image exits. Also, this change adds
50108 support for a chainloader on EFI.
50110 * term/efi/console.c: Include grub/misc.h.
50111 (grub_console_checkkey): Display a scan code on the top for
50112 debugging. This will be removed once the EFI port gets stable.
50113 Correct the scan code mapping.
50115 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
50116 allocate memory from larger regions, in order to reduce the number
50117 of allocated regions. Otherwise, the MacOSX loader panics.
50118 (filter_memory_map): Avoid less than 1MB for compatibility with
50120 (add_memory_regions): Allocate from the tail of a region, if
50121 possible, to avoid allocating a region near to 1MB, for the MacOSX
50124 * kern/efi/init.c (grub_efi_set_prefix): Specify
50125 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
50127 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
50128 argument IMAGE_HANDLE and specify it to get a loaded image.
50129 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
50130 grub_efi_get_loaded_image.
50131 (grub_efi_get_filename): Divide the length by the size of
50133 (grub_efi_get_device_path): New function.
50134 (grub_efi_print_device_path): Print End Device Path nodes. Divide
50135 the length by the size of grub_efi_char16_t for a file path device
50138 * kern/loader.c (grub_loader_noreturn): New variable.
50139 (grub_loader_set): Accept a new argument NORETURN. Set
50140 GRUB_LOADER_NORETURN to NORETURN.
50141 All callers changed.
50142 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
50145 * include/grub/efi/efi.h (grub_efi_get_device_path): New
50147 (grub_efi_get_loaded_image): Take an argument to specify an image
50150 * include/grub/loader.h (grub_loader_set): Added one more argument
50153 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
50154 instead of grub_efi_open_protocol.
50155 (grub_efidisk_get_device_name): Likewise.
50156 (grub_efidisk_close): Print a newline.
50157 (grub_efidisk_get_device_handle): Fixed to use
50158 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
50159 GRUB_EFI_DEVICE_PATH_TYPE.
50161 * disk/efi/efidisk.c (device_path_guid): Moved to ...
50162 * kern/efi/efi.c (device_path_guid): ... here.
50164 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
50166 (kernel_mod_HEADERS): Added efi/disk.h.
50167 (_chain_mod_SOURCES): New variable.
50168 (_chain_mod_CFLAGS): Likewise.
50169 (_chain_mod_LDFLAGS): Likewise.
50170 (chain_mod_SOURCES): Likewise.
50171 (chain_mod_CFLAGS): Likewise.
50172 (chain_mod_LDFLAGS): Likewise.
50174 * DISTLIST: Added include/grub/efi/chainloader.h,
50175 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
50177 * include/grub/efi/chainloader.h: New file.
50178 * loader/efi/chainloader.c: Likewise.
50179 * loader/efi/chainloader_normal.c: Likewise.
50181 2006-04-30 Marco Gerards <marco@gnu.org>
50183 * commands/configfile.c (grub_cmd_source): New function.
50184 (GRUB_MOD_INIT): Register the commands `source' and `.'.
50185 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
50187 2006-04-30 Marco Gerards <marco@gnu.org>
50189 * normal/execute.c (grub_script_execute_cmd): Change the return
50190 type to `grub_err_t'. Correctly return the error.
50191 (grub_script_execute_cmdline): In case a command line is not a
50192 command or a function, try to interpret it as an assignment.
50194 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50196 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50197 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50198 skip a node whose name is obviously invalid as UTF-16,
50199 i.e. contains a NUL character. Stop the iteration when the last
50200 directory entry is found. Instead of using the return value of
50201 grub_hfsplus_btree_iterate_node, store the value in RET and use
50202 it, because the iterator can be stopped by the last directory
50205 2006-04-30 Marco Gerards <marco@gnu.org>
50207 * include/grub/env.h (grub_env_export): New prototype. Reported
50208 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50210 2006-04-30 Marco Gerards <marco@gnu.org>
50212 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50213 size of the extents in a catalog file record.
50215 2006-04-29 Marco Gerards <marco@gnu.org>
50217 * commands/configfile.c (grub_cmd_configfile): Execute the
50218 configfile within its own context.
50220 * include/grub/env.h (grub_env_context_open): New prototype.
50221 (grub_env_context_close): Likewise.
50223 * kern/env.c (grub_env): Removed.
50224 (grub_env_sorted): Likewise.
50225 (grub_env_context): New variable.
50226 (grub_env_var_context): Likewise.
50227 (grub_env_find): Search both the active context and the global
50229 (grub_env_context_open): New function.
50230 (grub_env_context_close): Likewise.
50231 (grub_env_insert): Likewise.
50232 (grub_env_remove): Likewise.
50233 (grub_env_export): Likewise.
50234 (grub_env_set): Changed to use helper functions to avoid code
50236 (grub_env_iterate): Rewritten so both the current context and the
50237 global context are being used.
50239 * normal/command.c (export_command): New function.
50240 (grub_command_init): Register the `export' function.
50242 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50244 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50245 explicitly to suppress gcc's warnings.
50246 * fs/fat.c (grub_fat_find_dir): Likewise.
50247 (grub_fat_label): Likewise.
50248 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50249 (grub_xfs_mount): Likewise.
50250 (grub_xfs_label): Likewise.
50251 * fs/affs.c (grub_affs_mount): Likewise.
50252 (grub_affs_label): Likewise.
50253 (grub_affs_iterate_dir): Likewise.
50254 * fs/sfs.c (grub_sfs_mount): Likewise.
50255 (grub_sfs_iterate_dir): Likewise.
50256 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50257 * fs/hfs.c (grub_hfs_mount): Likewise.
50258 (grub_hfs_cmp_catkeys): Likewise.
50259 (grub_hfs_find_dir): Likewise.
50260 (grub_hfs_dir): Likewise.
50261 (grub_hfs_label): Likewise.
50262 * fs/jfs.c (grub_jfs_mount): Likewise.
50263 (grub_jfs_opendir): Likewise.
50264 (grub_jfs_getent): Likewise.
50265 (grub_jfs_lookup_symlink): Likewise.
50266 (grub_jfs_label): Likewise.
50267 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50268 (grub_hfsplus_iterate_dir): Likewise.
50269 (grub_hfsplus_btree_iterate_node): Made static.
50271 * util/grub-emu.c (prefix): New variable.
50272 (grub_machine_set_prefix): New function.
50273 (main): Do not set the environment variable "prefix" here. Only
50274 set PREFIX, which is used later by grub_machine_set_prefix.
50276 * include/grub/video.h: Do not include grub/symbol.h.
50277 (grub_video_register): Not exported. This symbol is not defined in
50279 (grub_video_unregister): Likewise.
50280 (grub_video_iterate): Likewise.
50281 (grub_video_setup): Likewise.
50282 (grub_video_restore): Likewise.
50283 (grub_video_get_info): Likewise.
50284 (grub_video_get_blit_format): Likewise.
50285 (grub_video_set_palette): Likewise.
50286 (grub_video_get_palette): Likewise.
50287 (grub_video_set_viewport): Likewise.
50288 (grub_video_get_viewport): Likewise.
50289 (grub_video_map_color): Likewise.
50290 (grub_video_map_rgb): Likewise.
50291 (grub_video_map_rgba): Likewise.
50292 (grub_video_fill_rect): Likewise.
50293 (grub_video_blit_glyph): Likewise.
50294 (grub_video_blit_bitmap): Likewise.
50295 (grub_video_blit_render_target): Likewise.
50296 (grub_video_scroll): Likewise.
50297 (grub_video_swap_buffers): Likewise.
50298 (grub_video_create_render_target): Likewise.
50299 (grub_video_delete_render_target): Likewise.
50300 (grub_video_set_active_render_target): Likewise.
50302 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50304 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50306 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50307 config.h. Use 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/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50312 config.h. Use 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 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50317 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50318 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50319 instead of $(srcdir)/genkernsyms.sh.
50321 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50322 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50323 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50324 instead of $(srcdir)/genkernsyms.sh.
50326 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50329 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50331 (gensymlist.sh): New target.
50332 (genkernsyms.sh): Likewise.
50334 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50335 genkernsyms.sh.in and gensymlist.sh.in.
50337 * genkernsyms.sh: Removed.
50338 * gensymlist.sh: Likewise.
50340 * genkernsyms.sh.in: New file.
50341 * gensymlist.sh.in: Likewise.
50343 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50345 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50346 clobber "prefix", since we may have already set it manually.
50348 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50350 * kern/misc.c (abort): New alias for grub_abort.
50352 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50354 A new machine-specific function "grub_machine_set_prefix" is
50355 defined. This is called after loading modules, so that a prefix
50356 initialization can use modules. Also, this change adds an
50357 intensive debugging feature for the memory manager via the
50358 configure option "--enable-mm-debug".
50360 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50363 * kern/sparc64/ieee1275/init.c (abort): Removed.
50364 (grub_stop): Likewise.
50365 (grub_exit): New function.
50366 (grub_set_prefix): Renamed to ...
50367 (grub_machine_set_prefix): ... this.
50368 (grub_machine_init): Do not call grub_set_prefix.
50370 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50371 (grub_machine_set_prefix): ... this.
50372 (grub_machine_init): Do not call grub_set_prefix.
50374 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50375 (grub_machine_init): Do not set the prefix here.
50377 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50379 * kern/efi/init.c: Include grub/mm.h.
50380 (grub_efi_set_prefix): New function.
50382 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50383 (grub_efi_get_filename): New function.
50384 (grub_print_device_path): Renamed to ...
50385 (grub_efi_print_device_path): ... this.
50387 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50388 [MM_DEBUG] (grub_realloc): Likewise.
50389 [MM_DEBUG] (grub_free): Likewise.
50390 [MM_DEBUG] (grub_memalign): Likewise.
50391 [MM_DEBUG] (grub_mm_debug): New variable.
50392 [MM_DEBUG] (grub_debug_malloc): New function.
50393 [MM_DEBUG] (grub_debug_free): New function.
50394 [MM_DEBUG] (grub_debug_realloc): New function.
50395 [MM_DEBUG] (grub_debug_memalign): New function.
50397 * kern/misc.c (grub_abort): Print a newline to distinguish
50400 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50401 grub_set_root_dev after loading modules. This is necessary when
50402 setting a prefix depends on modules.
50404 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50405 (grub_efi_print_device_path): ... this.
50406 (grub_efi_get_filename): New prototype.
50407 (grub_efi_set_prefix): Likewise.
50409 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50411 (grub_efidisk_get_device_handle): New prototype.
50412 (grub_efidisk_get_device_name): Likewise.
50414 * include/grub/mm.h: Include config.h.
50415 (MM_DEBUG): Removed.
50416 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50417 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50418 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50419 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50420 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50421 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50422 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50423 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50424 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50426 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50428 * disk/efi/efidisk.c: Include grub/partition.h.
50429 (iterate_child_devices): New function.
50430 (add_device): First, compare only last device path nodes, so that
50431 devices are sorted by the types.
50432 (grub_efidisk_get_device_handle): New function.
50433 (grub_efidisk_get_device_name): Likewise.
50435 * configure.ac (--enable-mm-debug): New option to enable the
50436 memory manager debugging feature. This makes the binary much
50437 bigger, so is disabled by default.
50439 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50441 Use grub_abort instead of grub_stop, and grub_exit must be
50442 define in each architecture now. Also, this change adds support
50445 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50446 (grub_getkey): New function.
50447 (grub_term_get_current): Likewise.
50449 * util/i386/pc/grub-setup.c: Include grub/term.h.
50450 (grub_getkey): New function.
50451 (grub_term_get_current): Likewise.
50453 * util/misc.c (grub_stop): Renamed to ...
50454 (grub_exit): ... this.
50456 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50457 (grub_exit): ... this.
50458 (grub_machine_init): Use grub_abort instead of abort.
50459 (grub_stop): Removed.
50461 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50464 * kern/i386/pc/startup.S (grub_exit): New function.
50465 (cold_reboot): New label.
50467 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50468 (grub_efi_init): Call grub_efidisk_init.
50469 (grub_efi_fini): Call grub_efidisk_fini.
50471 * kern/efi/efi.c: Include grub/mm.h.
50472 (grub_efi_console_control_guid): Renamed to ...
50473 (console_control_guid): ... this.
50474 (grub_efi_loaded_image_guid): Renamed to ...
50475 (loaded_image_guid): ... this.
50476 (grub_efi_locate_handle): New function.
50477 (grub_efi_open_protocol): Likewise.
50478 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50479 GRUB_EFI_CONSOLE_CONTROL_GUID.
50480 (grub_efi_exit): Removed.
50481 (grub_stop): Likewise.
50482 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50483 (grub_exit): New function.
50484 (grub_print_device_path): Likewise.
50486 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50487 (grub_enter_rescue_mode): Register "exit".
50489 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50490 (grub_abort): New function.
50492 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50494 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50496 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50498 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50499 (grub_print_device_path): New prototype.
50500 (grub_efi_locate_handle): Likewise.
50501 (grub_efi_open_protocol): Likewise.
50503 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50504 * disk/efi/efidisk.c: Likewise.
50506 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50508 * include/grub/efi/console_control.h
50509 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50511 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50512 last 8 bytes as an array.
50513 (GRUB_EFI_DISK_IO_GUID): New macro.
50514 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50515 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50516 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50518 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50519 (struct grub_efi_device_path): Rename the member "sub_type" to
50521 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50522 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50523 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50524 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50525 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50526 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50527 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50528 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50529 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50530 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50531 (struct grub_efi_pci_device_path): New structure.
50532 (grub_efi_pci_device_path_t): New type.
50533 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50534 (struct grub_efi_pccard_device_path): New structure.
50535 (grub_efi_pccard_device_path_t): New type.
50536 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50537 (struct grub_efi_memory_mapped_device_path): New structure.
50538 (grub_efi_memory_mapped_device_path_t): New type.
50539 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50540 (struct grub_efi_vendor_device_path): New structure.
50541 (grub_efi_vendor_device_path_t): New type.
50542 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50543 (struct grub_efi_controller_device_path): New structure.
50544 (grub_efi_controller_device_path_t): New type.
50545 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50546 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50547 (struct grub_efi_acpi_device_path): New structure.
50548 (grub_efi_acpi_device_path_t): New type.
50549 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50550 (struct grub_efi_expanded_acpi_device_path): New structure.
50551 (grub_efi_expanded_acpi_device_path_t): New type.
50552 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50553 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50554 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50555 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50556 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50557 (struct grub_efi_atapi_device_path): New structure.
50558 (grub_efi_atapi_device_path_t): New type.
50559 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50560 (struct grub_efi_fibre_channel_device_path): New structure.
50561 (grub_efi_fibre_channel_device_path_t): New type.
50562 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50563 (struct grub_efi_1394_device_path): New structure.
50564 (grub_efi_1394_device_path_t): New type.
50565 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50566 (struct grub_efi_usb_device_path): New structure.
50567 (grub_efi_usb_device_path_t): New type.
50568 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50569 (struct grub_efi_usb_class_device_path): New structure.
50570 (grub_efi_usb_class_device_path_t): New type.
50571 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50572 (struct grub_efi_i2o_device_path): New structure.
50573 (grub_efi_i2o_device_path_t): New type.
50574 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50575 (struct grub_efi_mac_address_device_path): New structure.
50576 (grub_efi_mac_address_device_path_t): New type.
50577 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50578 (struct grub_efi_ipv4_device_path): New structure.
50579 (grub_efi_ipv4_device_path_t): New type.
50580 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50581 (struct grub_efi_ipv6_device_path): New structure.
50582 (grub_efi_ipv6_device_path_t): New type.
50583 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50584 (struct grub_efi_infiniband_device_path): New structure.
50585 (grub_efi_infiniband_device_path_t): New type.
50586 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50587 (struct grub_efi_uart_device_path): New structure.
50588 (grub_efi_uart_device_path_t): New type.
50589 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50590 (struct grub_efi_vendor_messaging_device_path): New structure.
50591 (grub_efi_vendor_messaging_device_path_t): New type.
50592 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50593 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50594 (struct grub_efi_hard_drive_device_path): New structure.
50595 (grub_efi_hard_drive_device_path_t): New type.
50596 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50597 (struct grub_efi_cdrom_device_path): New structure.
50598 (grub_efi_cdrom_device_path_t): New type.
50599 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50600 (struct grub_efi_vendor_media_device_path): New structure.
50601 (grub_efi_vendor_media_device_path_t): New type.
50602 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50603 (struct grub_efi_file_path_device_path): New structure.
50604 (grub_efi_file_path_device_path_t): New type.
50605 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50606 (struct grub_efi_protocol_device_path): New structure.
50607 (grub_efi_protocol_device_path_t): New type.
50608 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50609 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50610 (struct grub_efi_bios_device_path): New structure.
50611 (grub_efi_bios_device_path_t): New type.
50612 (struct grub_efi_disk_io): New structure.
50613 (grub_efi_disk_io_t): New type.
50614 (struct grub_efi_block_io_media): New structure.
50615 (grub_efi_block_io_media_t): New type.
50616 (struct grub_efi_block_io): New structure.
50617 (grub_efi_block_io_t): New type.
50619 * include/grub/misc.h (grub_stop): Removed.
50620 (grub_exit): New prototype.
50621 (grub_abort): Likewise.
50623 * include/grub/disk.h (enum grub_disk_dev_id): Added
50624 GRUB_DISK_DEVICE_EFIDISK_ID.
50626 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50627 disk/efi/efidisk.c.
50628 (kernel_syms.lst): Remove the target if an error occurs.
50630 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50632 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50633 as it was simply too buggy.
50635 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50637 * kern/misc.c (grub_lltoa): New function.
50638 (grub_vsprintf): Added support for the long long suffix,
50641 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50643 * Makefile.in (LDFLAGS): Add variable.
50644 (LD): Remove variable.
50645 * configure.ac: Add -m32 to LDFLAGS.
50646 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50647 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50648 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50649 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50650 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50652 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50653 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50654 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50656 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50658 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50659 length for unknown glyph.
50661 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50663 Add support for pre-loaded modules into the EFI port.
50665 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50666 completely. Accept one more argument DIR. The caller has changed.
50668 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50670 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50671 (grub_efi_loaded_image_guid): New variable.
50672 (grub_efi_get_loaded_image): New function.
50673 (grub_arch_modules_addr): Likewise.
50675 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50678 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50679 (struct grub_efi_loaded_image): New structure.
50680 (grub_efi_loaded_image_t): New type.
50682 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50684 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50685 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50686 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50688 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50690 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50692 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50694 * DISTLIST: Added include/grub/efi/console.h,
50695 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50696 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50698 * include/grub/efi/console.h: New file.
50699 * include/grub/efi/time.h: Likewise.
50700 * include/grub/i386/efi/kernel.h: Likewise.
50701 * kern/efi/init.c: Likewise.
50702 * kern/efi/mm.c: Likewise.
50703 * term/efi/console.c: Likewise.
50705 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50706 (grub_stop): Removed.
50707 (grub_get_rtc): Likewise.
50708 (grub_machine_init): Simply call grub_efi_init.
50709 (grub_machine_fini): Call grub_efi_fini.
50711 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50712 (grub_efi_output_string): Removed.
50713 (grub_efi_stall): New function.
50714 (grub_stop): Likewise.
50715 (grub_get_rtc): Likewise.
50717 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50718 (grub_efi_stall): New prototype.
50719 (grub_efi_allocate_pages): Likewise.
50720 (grub_efi_free_pages): Likewise.
50721 (grub_efi_get_memory_map): Likewise.
50722 (grub_efi_mm_init): Likewise.
50723 (grub_efi_mm_fini): Likewise.
50724 (grub_efi_init): Likewise.
50725 (grub_efi_fini): Likewise.
50727 * include/grub/i386/efi/time.h: Do not include
50728 grub/symbol.h. Include grub/efi/time.h.
50729 (GRUB_TICKS_PER_SECOND): Removed.
50730 (grub_get_rtc): Likewise.
50732 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50733 Added padding. The EFI spec is buggy.
50734 (GRUB_EFI_BLACK): New macro.
50735 (GRUB_EFI_BLUE): Likewise.
50736 (GRUB_EFI_GREEN): Likewise.
50737 (GRUB_EFI_CYAN): Likewise.
50738 (GRUB_EFI_RED): Likewise.
50739 (GRUB_EFI_MAGENTA): Likewise.
50740 (GRUB_EFI_BROWN): Likewise.
50741 (GRUB_EFI_LIGHTGRAY): Likewise.
50742 (GRUB_EFI_BRIGHT): Likewise.
50743 (GRUB_EFI_DARKGRAY): Likewise.
50744 (GRUB_EFI_LIGHTBLUE): Likewise.
50745 (GRUB_EFI_LIGHTGREEN): Likewise.
50746 (GRUB_EFI_LIGHTCYAN): Likewise.
50747 (GRUB_EFI_LIGHTRED): Likewise.
50748 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50749 (GRUB_EFI_YELLOW): Likewise.
50750 (GRUB_EFI_WHITE): Likewise.
50751 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50752 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50753 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50754 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50755 (GRUB_EFI_BACKGROUND_RED): Likewise.
50756 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50757 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50758 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50759 (GRUB_EFI_TEXT_ATTR): Likewise.
50761 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50762 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50763 (kernel_mod_HEADERS): Added efi/time.h.
50765 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50767 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50768 include/grub/efi/api.h, include/grub/efi/console_control.h,
50769 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50770 include/grub/i386/efi/time.h, kern/efi/efi.c,
50771 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50772 and util/i386/efi/grub-mkimage.c.
50774 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50776 * genmk.rb (PModule#rule): Do not export symbols if
50777 #{prefix}_EXPORTS is set to "no".
50779 * conf/i386-efi.mk: New file.
50780 * conf/i386-efi.rmk: Likewise.
50781 * include/grub/efi/api.h: Likewise.
50782 * include/grub/efi/console_control.h: Likewise.
50783 * include/grub/efi/efi.h: Likewise.
50784 * include/grub/efi/pe32.h: Likewise.
50785 * include/grub/i386/efi/time.h: Likewise.
50786 * kern/efi/efi.c: Likewise.
50787 * kern/i386/efi/init.c: Likewise.
50788 * kern/i386/efi/startup.S: Likewise.
50789 * util/i386/efi/grub-mkimage.c: Likewise.
50791 2006-04-17 Marco Gerards <marco@gnu.org>
50793 * include/grub/script.h: Include <grub/parser.h> and
50794 "grub_script.tab.h".
50795 (struct grub_lexer_param): New struct.
50796 (struct grub_parser_param): Likewise.
50797 (grub_script_create_arglist): Pass the state in an argument.
50798 (grub_script_add_arglist): Likewise.
50799 (grub_script_create_cmdline): Likewise.
50800 (grub_script_create_cmdblock): Likewise.
50801 (grub_script_create_cmdif): Likewise.
50802 (grub_script_create_cmdmenu): Likewise.
50803 (grub_script_add_cmd): Likewise.
50804 (grub_script_arg_add): Likewise.
50805 (grub_script_lexer_ref): Likewise.
50806 (grub_script_lexer_deref): Likewise.
50807 (grub_script_lexer_record_start): Likewise.
50808 (grub_script_lexer_record_stop): Likewise.
50809 (grub_script_mem_record): Likewise.
50810 (grub_script_mem_record_stop): Likewise.
50811 (grub_script_malloc): Likewise.
50812 (grub_script_yylex): Likewise.
50813 (grub_script_yyparse): Likewise.
50814 (grub_script_yyerror): Likewise.
50815 (grub_script_yylex): Likewise.
50816 (grub_script_lexer_init): Return the state.
50818 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50819 (grub_script_lexer_done): Likewise.
50820 (grub_script_lexer_getline): Likewise.
50821 (grub_script_lexer_refs): Likewise.
50822 (script): Likewise.
50823 (newscript): Likewise.
50824 (record): Likewise.
50825 (recording): Likewise.
50826 (recordpos): Likewise.
50827 (recordlen): Likewise.
50828 (grub_script_lexer_init): Return the state instead of setting
50830 (grub_script_lexer_ref): Use the newly added argument for state
50831 instead of globals.
50832 (grub_script_lexer_deref): Likewise.
50833 (grub_script_lexer_record_start): Likewise.
50834 (grub_script_lexer_record_stop): Likewise.
50835 (recordchar): Likewise.
50836 (nextchar): Likewise.
50837 (grub_script_yylex2): Likewise.
50838 (grub_script_yylex): Likewise.
50839 (grub_script_yyerror): Likewise.
50841 * normal/parser.y (func_mem): Removed variable.
50842 (menu_entry): Likewise.
50844 (%lex-param): New parser option.
50845 (%parse-param): Likewise.
50846 (script): Always return the AST.
50847 (argument): Pass the state around.
50848 (arguments): Likewise.
50849 (grubcmd): Likewise.
50850 (commands): Likewise.
50851 (function): Likewise.
50852 (menuentry): Likewise.
50853 (if_statement): Likewise.
50856 * normal/script.c (grub_script_memused): Removed variable.
50857 (grub_script_parsed): Likewise.
50858 (grub_script_malloc): Added a state argument. Use that instead of
50860 (grub_script_mem_record): Likewise.
50861 (grub_script_mem_record_stop): Likewise.
50862 (grub_script_arg_add): Likewise.
50863 (grub_script_add_arglist): Likewise.
50864 (grub_script_create_cmdline): Likewise.
50865 (grub_script_create_cmdif): Likewise.
50866 (grub_script_create_cmdmenu): Likewise.
50867 (grub_script_add_cmd): Likewise.
50868 (grub_script_parse): Setup the state before calling the parser.
50870 2006-04-16 Marco Gerards <marco@gnu.org>
50872 * normal/command.c (grub_command_init): Remove the title command.
50874 * normal/lexer.c (grub_script_yylex): Renamed from this...
50875 (grub_script_yylex2): ... to this.
50876 (grub_script_yylex): New function. Temporary
50877 introduced to filter some tokens.
50878 (grub_script_yyerror): Print a newline.
50880 * normal/main.c (read_config_file): Output information about the
50881 lines that contain errors. Wait for a key after all lines have
50882 been processed. Don't return an empty menu.
50884 * normal/parser.y (func_mem): Don't initialize.
50885 (menu_entry): Likewise.
50886 (err): New variable.
50887 (script): Don't return anything when an error was encountered.
50888 (ws, returns): Removed rules.
50889 (argument): Disabled concatenated variable support.
50890 (arguments): Remove explicit separators.
50891 (grubcmd): Likewise.
50892 (function): Likewise.
50893 (menuentry): Likewise.
50895 (commands): Likewise. Add error handling.
50897 * normal/script.c (grub_script_create_cmdline): If
50898 `grub_script_parsed' is 0, assume the parser encountered an error.
50900 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50902 * configure.ac: Add support for EFI. Fix the typo
50903 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50905 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50907 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50908 foreign multibyte characters should be shown correctly.
50910 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50912 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50914 (read_config_file): Made it to close file before returning.
50916 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50918 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50919 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50920 video/i386/pc/vbefill.c.
50922 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50923 video/i386/pc/vbefill.c.
50925 * include/grub/video.h (grub_video_blit_format): New enum.
50926 (grub_video_mode_info): Added new member blit_format.
50927 (grub_video_get_blit_format): New function prototype.
50929 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50930 function prototype.
50931 (grub_video_vbe_map_rgb): Likewise.
50932 (grub_video_vbe_unmap_color): Likewise.
50934 * include/grub/i386/pc/vbeblit.h: New file.
50936 * include/grub/i386/pc/vbefill.h: New file.
50938 * video/video.c (grub_video_get_blit_format): New function.
50939 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50940 (grub_video_vbe_map_rgb): Likewise.
50941 (grub_video_vbe_unmap_color): Likewise.
50943 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50945 (grub_video_vbe_blit_render_target): Changed to use more optimized
50947 (grub_video_vbe_setup): Added detection for optimized settings.
50948 (grub_video_vbe_create_render_target): Likewise.
50950 * video/i386/pc/vbeblit.c: New file.
50952 * video/i386/pc/vbefill.c: New file.
50954 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50956 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50959 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50960 parsing to support both hex and dec ranges. If filename was missing
50961 show usage information.
50963 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50965 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50966 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50968 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50969 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50970 (video_mod_SOURCES): Added.
50971 (video_mod_CFLAGS): Likewise.
50972 (video_mod_LDFLAGS): Likewise.
50973 (gfxterm_mod_SOURCES): Likewise.
50974 (gfxterm_mod_CFLAGS): Likewise.
50975 (gfxterm_mod_LDFLAGS): Likewise.
50976 (videotest_mod_SOURCES): Likewise.
50977 (videotest_mod_CFLAGS): Likewise.
50978 (videotest_mod_LDFLAGS): Likewise.
50979 (vesafb_mod_SOURCES): Removed.
50980 (vesafb_mod_CFLAGS): Likewise.
50981 (vesafb_mod_LDFLAGS): Likewise.
50982 (vga_mod_SOURCES): Likewise.
50983 (vga_mod_CFLAGS): Likewise.
50984 (vga_mod_LDFLAGS): Likewise.
50986 * commands/videotest.c: New file.
50988 * font/manager.c (fill_with_default_glyph): Modified to use
50990 (grub_font_get_glyph): Likewise.
50991 (fontmanager): Renamed from this...
50992 (font_manager): ... to this.
50994 * include/grub/font.h (grub_font_glyph): Added new structure.
50995 (grub_font_get_glyph): Modified to use grub_font_glyph.
50997 * include/grub/misc.h (grub_abs): Added as inline function.
50999 * include/grub/video.h: New file.
51001 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
51002 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
51003 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
51004 (grub_vbe_get_controller_info): Renamed from this...
51005 (grub_vbe_bios_get_controller_info): ... to this.
51006 (grub_vbe_get_mode_info): Renamed from this...
51007 (grub_vbe_bios_get_mode_info): ... to this.
51008 (grub_vbe_set_mode): Renamed from this...
51009 (grub_vbe_bios_set_mode): ... to this.
51010 (grub_vbe_get_mode): Renamed from this...
51011 (grub_vbe_bios_get_mode): ... to this.
51012 (grub_vbe_set_memory_window): Renamed from this...
51013 (grub_vbe_bios_set_memory_window): ... to this.
51014 (grub_vbe_get_memory_window): Renamed from this...
51015 (grub_vbe_bios_get_memory_window): ... to this.
51016 (grub_vbe_set_scanline_length): Renamed from this...
51017 (grub_vbe_set_scanline_length): ... to this.
51018 (grub_vbe_get_scanline_length): Renamed from this...
51019 (grub_vbe_bios_get_scanline_length): ... to this.
51020 (grub_vbe_set_display_start): Renamed from this...
51021 (grub_vbe_bios_set_display_start): ... to this.
51022 (grub_vbe_get_display_start): Renamed from this...
51023 (grub_vbe_bios_get_display_start): ... to this.
51024 (grub_vbe_set_palette_data): Renamed from this...
51025 (grub_vbe_bios_set_palette_data): ... to this.
51026 (grub_vbe_set_pixel_rgb): Removed.
51027 (grub_vbe_set_pixel_index): Likewise.
51029 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
51031 (grub_vbe_bios_get_controller_info): ... to this.
51032 (grub_vbe_get_mode_info): Renamed from this...
51033 (grub_vbe_bios_get_mode_info): ... to this.
51034 (grub_vbe_set_mode): Renamed from this...
51035 (grub_vbe_bios_set_mode): ... to this.
51036 (grub_vbe_get_mode): Renamed from this...
51037 (grub_vbe_bios_get_mode): ... to this.
51038 (grub_vbe_set_memory_window): Renamed from this...
51039 (grub_vbe_bios_set_memory_window): ... to this.
51040 (grub_vbe_get_memory_window): Renamed from this...
51041 (grub_vbe_bios_get_memory_window): ... to this.
51042 (grub_vbe_set_scanline_length): Renamed from this...
51043 (grub_vbe_set_scanline_length): ... to this.
51044 (grub_vbe_get_scanline_length): Renamed from this...
51045 (grub_vbe_bios_get_scanline_length): ... to this.
51046 (grub_vbe_set_display_start): Renamed from this...
51047 (grub_vbe_bios_set_display_start): ... to this.
51048 (grub_vbe_get_display_start): Renamed from this...
51049 (grub_vbe_bios_get_display_start): ... to this.
51050 (grub_vbe_set_palette_data): Renamed from this...
51051 (grub_vbe_bios_set_palette_data): ... to this.
51052 (grub_vbe_bios_get_controller_info): Fixed problem with registers
51053 getting corrupted after calling it. Added more pushes and pops.
51054 (grub_vbe_bios_set_mode): Likewise.
51055 (grub_vbe_bios_get_mode): Likewise.
51056 (grub_vbe_bios_get_memory_window): Likewise.
51057 (grub_vbe_bios_set_scanline_length): Likewise.
51058 (grub_vbe_bios_get_scanline_length): Likewise.
51059 (grub_vbe_bios_get_display_start): Likewise.
51060 (grub_vbe_bios_set_palette_data): Likewise.
51062 * normal/cmdline.c (cl_set_pos): Refresh the screen.
51063 (cl_insert): Likewise.
51064 (cl_delete): Likewise.
51066 * term/gfxterm.c: New file.
51068 * term/i386/pc/vesafb.c: Removed file.
51070 * video/video.c: New file.
51072 * video/i386/pc/vbe.c (real2pm): Added new function.
51073 (grub_video_vbe_draw_pixel): Likewise.
51074 (grub_video_vbe_get_video_ptr): Likewise.
51075 (grub_video_vbe_get_pixel): Likewise
51076 (grub_video_vbe_init): Likewise.
51077 (grub_video_vbe_fini): Likewise.
51078 (grub_video_vbe_setup): Likewise.
51079 (grub_video_vbe_get_info): Likewise.
51080 (grub_video_vbe_set_palette): Likewise.
51081 (grub_video_vbe_get_palette): Likewise.
51082 (grub_video_vbe_set_viewport): Likewise.
51083 (grub_video_vbe_get_viewport): Likewise.
51084 (grub_video_vbe_map_color): Likewise.
51085 (grub_video_vbe_map_rgb): Likewise.
51086 (grub_video_vbe_map_rgba): Likewise.
51087 (grub_video_vbe_unmap_color): Likewise.
51088 (grub_video_vbe_fill_rect): Likewise.
51089 (grub_video_vbe_blit_glyph): Likewise.
51090 (grub_video_vbe_blit_bitmap): Likewise.
51091 (grub_video_vbe_blit_render_target): Likewise.
51092 (grub_video_vbe_scroll): Likewise.
51093 (grub_video_vbe_swap_buffers): Likewise.
51094 (grub_video_vbe_create_render_target): Likewise.
51095 (grub_video_vbe_delete_render_target): Likewise.
51096 (grub_video_vbe_set_active_render_target): Likewise.
51097 (grub_vbe_set_pixel_rgb): Remove function.
51098 (grub_vbe_set_pixel_index): Likewise.
51099 (index_color_mode): Remove static variable.
51100 (active_mode): Likewise.
51101 (framebuffer): Likewise.
51102 (bytes_per_scan_line): Likewise.
51103 (grub_video_vbe_adapter): Added new static variable.
51104 (framebuffer): Likewise.
51105 (render_target): Likewise.
51106 (initial_mode): Likewise.
51107 (mode_in_use): Likewise.
51108 (mode_list): Likewise.
51110 2006-03-10 Marco Gerards <marco@gnu.org>
51112 * configure.ac (AC_INIT): Bumped to 1.93.
51114 * DISTLIST: Added `include/grub/hfs.h'.
51116 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
51118 * boot/i386/pc/boot.S (general_error): Before looping, try INT
51119 18H, which might help the BIOS falling back to next boot media.
51121 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
51123 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
51124 Poe Chen <poe.poechen@gmail.com>.
51126 2006-01-17 Marco Gerards <marco@gnu.org>
51128 * include/grub/normal.h: Include <grub/script.h>.
51129 (grub_command_list): Removed struct.
51130 (grub_command_list_t): Removed type.
51131 (grub_menu_entry): Remove members `num' and `command_list'. Add
51132 members `commands' and `sourcecode'.
51133 * include/grub/script.h: Add inclusion guards.
51134 (grub_script_cmd_menuentry): New struct.
51135 (grub_script_execute_menuentry): New prototype.
51136 (grub_script_lexer_record_start): Likewise.
51137 (grub_script_lexer_record_stop): Likewise.
51138 * normal/execute.c (grub_script_execute_menuentry): New function.
51139 * normal/lexer.c (record, recording, recordpos, recordlen): New
51141 (grub_script_lexer_record_start): New function.
51142 (grub_script_lexer_record_stop): Likewise.
51143 (recordchar): Likewise.
51144 (nextchar): Likewise.
51145 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
51146 2048 as the buffer size. Add the tokens `menuentry' and `@'.
51147 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
51148 (current_menu): New variable.
51149 (free_menu): Mainly rewritten.
51150 (grub_normal_menu_addentry): New function.
51151 (read_config_file): Rewritten.
51152 * normal/menu.c (run_menu_entry): Mainly rewritten.
51153 * normal/menu_entry.c (make_screen): Rewritten the code to insert
51155 (run): Mainly rewritten.
51156 * normal/parser.y (menu_entry): New variable.
51157 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
51158 (menuentry): New rule.
51159 (command): Add `menuentry'.
51160 (if_statement): Allow additional returns before `fi'.
51161 * normal/script.c (grub_script_create_cmdmenu): New function.
51163 2006-01-03 Marco Gerards <marco@gnu.org>
51165 * INSTALL: GNU Bison is required.
51166 * configure.ac: Rewritten the test to detect Bison.
51167 * Makefile.in (YACC): New variable. Reported by Xun Sun
51168 <xun.sun.cn@gmail.com>.
51170 2006-01-03 Marco Gerards <marco@gnu.org>
51172 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
51173 the HFS+ filesystem to filesystem blocks.
51174 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
51175 GCC warning is silenced.
51177 2006-01-03 Marco Gerards <marco@gnu.org>
51179 * partmap/apple.c (apple_partition_map_iterate): Convert the data
51180 read from disk from big endian to host byte order.
51182 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
51184 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
51186 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
51187 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
51188 embedded HFS+ filesystem.
51189 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
51190 (grub_hfs_sblock): Move from here...
51191 * include/grub/hfs.h: To here... New file.
51192 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
51194 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51196 (grub_hfsplus_volheader): Change type of member `magic' to
51198 (grub_hfsplus_data): Add new member `embedded_offset'.
51199 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51201 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51202 Calculate the offset.
51204 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51206 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51208 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51210 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51212 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51213 ENV->NAME is NULL after allocating ENV->VALUE.
51215 2005-12-25 Marco Gerards <marco@gnu.org>
51217 * kern/env.c (grub_env_set): Rewritten the error handling code.
51219 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51221 * geninit.sh: Made more robust, and more portable.
51223 2005-12-25 Marco Gerards <marco@gnu.org>
51225 Add support for Apple HFS+ filesystems.
51227 * fs/hfsplus.c: New file.
51229 * DISTLIST: Added `fs/hfsplus.c'.
51231 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51232 (hfsplus_mod_SOURCES): New variable.
51233 (hfsplus_mod_CFLAGS): Likewise.
51234 (hfsplus_mod_LDFLAGS): Likewise.
51235 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51236 (grub_setup_SOURCES): Likewise.
51237 (grub_mkdevicemap_SOURCES): Likewise.
51238 (grub_emu_SOURCES): Likewise.
51239 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51241 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51243 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51245 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51247 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51248 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51249 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51250 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51251 normal/lexer.c, normal/parser.y, normal/script.c, and
51253 Removed kern/sparc64/cache.c.
51255 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51256 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51259 * configure.ac (AC_INIT): Bumped to 1.92.
51261 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51263 * kern/err.c (grub_error_push): Added new function to support error
51265 (grub_error_pop): Likewise.
51266 (grub_error_stack_items): New local variable to support error stacks.
51267 (grub_error_stack_pos): Likewise.
51268 (grub_error_stack_assert): Likewise.
51269 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51271 (grub_print_error): Added support to print errors from error stack.
51273 * include/grub/err.h (grub_error_push): Added function prototype.
51274 (grub_error_pop): Likewise.
51276 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51278 * configure.ac: Accept `powerpc64' as host_cpu.
51279 (amd64): Rename to `biarch32'.
51281 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51282 non-cacheline-aligned addresses.
51284 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51285 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51286 if `size' is non-zero.
51288 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51290 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51291 and `cd' to make sure the filename is not prefixed with a
51293 (pkgdata_MODULES): Add `gpt.mod'.
51294 (gpt_mod_SOURCES): New variable.
51295 (gpt_mod_CFLAGS): Likewise.
51296 (gpt_mod_LDFLAGS): Likewise.
51298 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51300 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51303 * partmap/gpt.c: New file.
51305 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51306 GPT partition map is detected.
51308 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51310 * commands/i386/pc/play.c: New file.
51311 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51312 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51315 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51317 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51318 ((unused))' to silence gcc warning.
51320 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51322 * configure.ac: Correct `AC_PROG_YACC' test.
51324 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51326 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51327 check before installing files.
51329 2005-11-22 Mike Small <smallm@panix.com>
51331 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51332 number regex so multidigit numbers are recognized correctly.
51334 2005-11-22 Mike Small <smallm@panix.com>
51336 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51337 debugging message before attempting to claim memory.
51338 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51339 multiple addresses in case of failure.
51341 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51343 * term/tparm.c (get_space): Remove empty `if' statement.
51345 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51347 * kern/parser.c (check_varstate): Rename `state' to 's'.
51349 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51351 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51352 variable definitions to the beginning of each function. Sort stack
51354 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51355 `buf' argument to `char *'.
51357 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51359 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51360 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51361 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51362 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51363 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51364 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51365 configfile.mod, search.mod, gzio.mod and test.mod.
51366 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51367 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51368 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51369 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51370 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51371 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51372 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51373 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51374 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51375 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51376 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51377 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51378 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51379 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51380 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51381 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51382 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51383 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51384 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51385 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51386 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51387 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51388 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51390 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51392 (pkgdata_MODULES): Add test.mod.
51394 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51396 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51397 appending to variables with "+=".
51398 (PModule): Use full pathname to generate *.lst filenames.
51400 * Makefile.in: Fixed list rules moved from genmk.rb.
51401 (.DELETE_ON_ERROR): New special target.
51402 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51404 * conf/i386-pc.rmk: Include conf/common.mk.
51405 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51406 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51407 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51408 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51409 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51410 configfile.mod, search.mod, gzio.mod and test.mod.
51411 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51412 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51413 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51414 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51415 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51416 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51417 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51418 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51419 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51420 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51421 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51422 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51423 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51424 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51425 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51426 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51427 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51428 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51429 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51430 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51431 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51432 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51433 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51435 * conf/common.rmk: ... to here. New file.
51437 * conf/common.mk: New file.
51439 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51441 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51442 (grub_script.tab.c): ... here.
51444 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51445 (grub_script.tab.c): ... here.
51447 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51448 (grub_script.tab.c): ... here.
51450 * normal/command.c (grub_command_find): Fixed a memory leak of
51451 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51453 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51455 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51456 "@" which marks the start of a comment on ARM.
51457 (VARIABLE): Likewise.
51459 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51461 Add support for Linux/ADFS partition tables.
51463 * partmap/acorn.c: New file.
51465 * include/grub/acorn_filecore.h: Likewise.
51467 * DISTLIST: Added `partmap/acorn.c' and
51468 `include/grub/acorn_filecore.h'.
51470 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51472 (pkgdata_MODULES): Add `acorn.mod'.
51473 (acorn_mod_SOURCES): New variable.
51474 (acorn_mod_CFLAGS): Likewise.
51476 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51478 (pkgdata_MODULES): Add `acorn.mod'.
51479 (acorn_mod_SOURCES): New variable.
51480 (acorn_mod_CFLAGS): Likewise.
51482 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51483 (pkgdata_MODULES): Add `acorn.mod'.
51484 (acorn_mod_SOURCES): New variable.
51485 (acorn_mod_CFLAGS): Likewise.
51486 (acorn_mod_LDFLAGS): Likewise.
51488 * include/types.h (grub_disk_addr_t): New typedef.
51490 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51492 * geninit.sh: New file.
51494 * geninitheader.sh: Likewise.
51496 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51497 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51498 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51499 * commands/configfile.c (grub_configfile_init)
51500 (grub_configfile_fini): Likewise.
51501 * commands/default.c (grub_default_init, grub_default_fini):
51503 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51504 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51505 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51506 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51508 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51509 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51511 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51512 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51514 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51516 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51518 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51519 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51520 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51521 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51522 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51523 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51524 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51525 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51526 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51527 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51528 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51529 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51530 * partmap/amiga.c (grub_amiga_partition_map_init)
51531 (grub_amiga_partition_map_fini): Likewise.
51532 * partmap/apple.c (grub_apple_partition_map_init)
51533 (grub_apple_partition_map_fini): Likewise.
51534 * partmap/pc.c (grub_pc_partition_map_init)
51535 (grub_pc_partition_map_fini): Likewise.
51536 * partmap/sun.c (grub_sun_partition_map_init,
51537 grub_sun_partition_map_fini): Likewise.
51538 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51541 * util/grub-emu.c: Include <grub_modules_init.h>.
51542 (main): Don't initialize and de-initialize any modules directly,
51543 use `grub_init_all' and `grub_fini_all' instead.
51545 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51546 `grub_vesafb_mod_init'.
51547 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51549 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51550 `grub_vga_mod_init'. Updated all users.
51551 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51553 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51554 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51557 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51558 Generate a function to initialize the module in utilities.
51559 Updated all callers.
51560 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51561 initialize the module in utilities. Updated all callers.
51563 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51565 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51566 escape sequence and a literal ^L to clear the screen.
51568 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51569 when returning from Open Firmware.
51571 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51573 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51574 (grub_ofconsole_height): Likewise.
51575 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51576 manually insert a '\n'.
51577 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51578 `grub_ofconsole_height'. Return early if these are already set.
51580 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51582 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51583 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51584 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51585 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51586 and `normal/script.c'.
51587 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51588 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51589 (test_mod_SOURCES): New variable.
51590 (test_mod_CFLAGS): Likewise.
51591 (test_mod_LDFLAGS): Likewise.
51592 (pkgdata_MODULES): Add `test.mod'.
51593 (grub_script.tab.c): New rule.
51594 (grub_script.tab.h): Likewise.
51596 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51598 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51599 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51600 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51601 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51602 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51603 (test_mod_SOURCES): New variable.
51604 (test_mod_CFLAGS): Likewise.
51605 (pkgdata_MODULES): Add `test.mod'.
51606 (grub_script.tab.c): New rule.
51607 (grub_script.tab.h): Likewise.
51609 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51611 Add initial scripting support.
51613 * commands/test.c: New file.
51614 * include/grub/script.h: Likewise.
51615 * normal/execute.c: Likewise.
51616 * normal/function.c: Likewise.
51617 * normal/lexer.c: Likewise.
51618 * normal/parser.y: Likewise.
51619 * normal/script.c: Likewise.
51621 * configure.ac: Add `AC_PROG_YACC' test.
51623 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51624 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51625 `normal/function.c' and `normal/script.c'.
51626 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51627 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51628 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51630 (pkgdata_MODULES): Add `test.mod'.
51631 (grub_script.tab.c): New rule.
51632 (grub_script.tab.h): Likewise.
51634 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51636 * include/grub/normal.h (grub_test_init): New prototype.
51637 (grub_test_fini): Likewise.
51639 * normal/command.c: Include <grub/script.h>.
51640 (grub_command_execute): Rewritten.
51642 * util/grub-emu.c (main): Call `grub_test_init' and
51645 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51647 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51649 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51650 there are no pending characters.
51652 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51654 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51655 `grub_strndup' to drop device arguments. Replace unnecessary
51656 `grub_strndup' with `grub_strdup'.
51658 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51660 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51661 `debug' environment variable has been set.
51663 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51665 * Makefile.in (install-local): Use $(DATA).
51666 (uninstall): Likewise.
51667 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51668 (sbin_UTILITIES): ... to here.
51669 (sbin_SCRIPTS): New variable.
51670 (grub_install_SOURCES): New variable.
51671 * util/powerpc/ieee1275/grub-install.in: New file.
51672 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51674 (add_segments): Call `grub_util_get_path'.
51676 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51678 From Timothy Baldwin:
51679 * commands/ls.c (grub_ls_list_files): Close FILE with
51681 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51683 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51685 * include/grub/parser.h: New file.
51687 * kern/parser.c: Likewise.
51689 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51690 (grub_setup_SOURCES): Likewise.
51691 (grub_probefs_SOURCES): Likewise.
51692 (grub_emu_SOURCES): Likewise.
51693 (kernel_img_HEADERS): Add `parser.h'.
51695 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51696 (grub_emu_SOURCES): Add `kern/parser.c'.
51697 (grubof_SOURCES): Likewise.
51699 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51700 (grubof_SOURCES): Add `kern/parser.c'.
51702 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51704 * kern/misc.c (grub_split_cmdline): Removed function.
51706 * kern/rescue.c: Include <grub/parser.h>.
51707 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51708 of `grub_split_cmdline'.
51710 * normal/command.c: Include <grub/parser.h>.
51711 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51712 of `grub_split_cmdline'.
51714 * normal/completion.c: Include <grub/parser.h>.
51715 (cmdline_state): New variable.
51716 (iterate_dir): End the filename with a quote depending on the
51717 command line state.
51718 (get_state): new function.
51719 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51720 split the arguments and determine the current argument. When the
51721 argument string is not quoted, escape all spaces.
51723 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51725 * normal/sparc64/setjmp.S: New file.
51727 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51729 * include/grub/sparc64/libgcc.h: New file.
51730 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51731 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51732 normal/sparc64/setjmp.c.
51734 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51736 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51737 * kern/sparc64/cache.S: New file.
51738 * kern/sparc64/cache.c: Removed.
51739 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51740 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51742 (COMMON_LDFLAGS): Add -melf64_sparc.
51743 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51744 (grubof_SOURCES): Use cache.S instead of cache.c.
51745 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51746 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51747 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51749 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51750 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51751 (linux_mod_CFLAGS): Commented out.
51752 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51753 out because module isn't built.
51754 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51755 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51756 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51757 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51758 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51759 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51760 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51761 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51762 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51763 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51764 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51765 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51766 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51767 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51769 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51771 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51772 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51773 longer, because HFS should not be used on PC.
51775 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51777 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51778 consistently within the loop.
51780 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51782 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51783 directory can not be read.
51785 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51787 * configure.ac (AC_INIT): Increase the version number to 1.91.
51789 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51790 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51791 term/i386/pc/serial.c.
51793 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51795 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51796 file size must be permitted.
51798 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51799 between %ah and %al.
51801 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51803 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51805 Call the hook with a NUL-terminated filename.
51806 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51809 * kern/term.c (cursor_state): New variable.
51810 (grub_term_set_current): Reset the cursor state on a new
51812 (grub_setcursor): Rewritten to use CURSOR_STATE.
51813 (grub_getcursor): New function.
51815 * include/grub/term.h (grub_getcursor): New prototype.
51817 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51818 integers on ARM. Reported by Timothy Baldwin
51819 <T.E.Baldwin99@members.leeds.ac.uk>.
51821 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51823 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51825 (grub_sfs_dir): Likewise.
51827 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51829 Add support for the SFS filesystem.
51831 * fs/sfs.c: New file.
51833 * DISTLIST: Added `fs/sfs.c'.
51835 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51836 (grub_probefs_SOURCES): Likewise.
51837 (grub_emu_SOURCES): Likewise.
51838 (pkgdata_MODULES): Add `sfs.mod'.
51839 (sfs_mod_SOURCES): New variable.
51840 (sfs_mod_CFLAGS): Likewise.
51841 (sfs_mod_LDFLAGS): Likewise.
51843 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51844 (pkgdata_MODULES): Add `sfs.mod'.
51845 (sfs_mod_SOURCES): New variable.
51846 (sfs_mod_CFLAGS): Likewise.
51848 * util/grub-emu.c (main): Call `grub_sfs_init' and
51851 * include/grub/fs.h (grub_sfs_init): New prototype.
51852 (grub_sfs_fini): Likewise.
51854 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51856 Add support for the AFFS filesystem.
51858 * fs/affs.c: New file.
51860 * DISTLIST: Added `fs/affs.c'.
51862 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51863 (grub_probefs_SOURCES): Likewise.
51864 (grub_emu_SOURCES): Likewise.
51865 (pkgdata_MODULES): Add `affs.mod'.
51866 (affs_mod_SOURCES): New variable.
51867 (affs_mod_CFLAGS): Likewise.
51868 (affs_mod_LDFLAGS): Likewise.
51870 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51871 (pkgdata_MODULES): Add `affs.mod'.
51872 (affs_mod_SOURCES): New variable.
51873 (affs_mod_CFLAGS): Likewise.
51875 * util/grub-emu.c (main): Call `grub_affs_init' and
51878 * include/grub/fs.h (grub_affs_init): New prototype.
51879 (grub_affs_fini): Likewise.
51881 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51883 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51885 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51887 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51890 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51893 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51894 (COMMON_LDFLAGS): New variable.
51895 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51896 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51897 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51898 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51899 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51900 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51901 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51902 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51903 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51904 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51905 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51906 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51907 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51908 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51909 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51911 (normal_mod_ASFLAGS): Add `-m32'.
51913 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51914 (grub_host_size_t, grub_host_ssize_t): New types.
51915 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51916 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51917 `GRUB_HOST_SIZEOF_VOID_P'.
51919 * include/grub/kernel.h (struct grub_module_header): Type of
51920 member offset changed to `grub_host_off_t'. Type of member size
51921 changed to `grub_host_size_t'.
51922 (struct grub_module_info): Type of member offset changed to
51923 `grub_host_off_t'. Type of member size changed to
51924 `grub_host_size_t'.
51926 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51928 Make GRUB's kernel compliant to Multiboot Specification.
51930 * kern/i386/pc/startup.S (multiboot_header): New label.
51931 (multiboot_entry): Likewise.
51932 (multiboot_trampoline): Likewise.
51934 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51935 Increased to 0x4A0.
51937 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51938 put parentheses after a question mark.
51939 [!GRUB_UTIL] (my_mod): New variable.
51941 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51943 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51945 Adds support for the XFS filesystem. Btrees are not supported
51948 * fs/xfs.c: New file.
51950 * DISTLIST: Added `fs/xfs.c'.
51952 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51953 (grub_probefs_SOURCES): Likewise.
51954 (grub_emu_SOURCES): Likewise.
51955 (pkgdata_MODULES): Add `xfs.mod'.
51956 (xfs_mod_SOURCES): New variable.
51957 (xfs_mod_CFLAGS): Likewise.
51959 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51960 (pkgdata_MODULES): Add `xfs.mod'.
51961 (xfs_mod_SOURCES): New variable.
51962 (xfs_mod_CFLAGS): Likewise.
51964 * util/grub-emu.c (main): Call `grub_xfs_init' and
51967 * include/grub/fs.h (grub_xfs_init): New prototype.
51968 (grub_xfs_fini): Likewise.
51971 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51973 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51974 color modes, allow greater than 16 colors to be configured as
51977 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51979 * normal/completion.c (complete_arguments): Add the qualifier
51980 const into OPTIONS.
51982 From Omniflux <omniflux+lists@omniflux.com>:
51983 * include/grub/terminfo.h: New file.
51984 * include/grub/tparm.h: Likewise.
51985 * include/grub/i386/pc/serial.h: Likewise.
51986 * term/terminfo.c: Likewise.
51987 * term/tparm.c: Likewise.
51988 * term/i386/pc/serial.c: Likewise.
51989 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51991 (terminfo_mod_SOURCES): New variable.
51992 (terminfo_mod_CFLAGS): Likewise.
51993 (serial_mod_SOURCES): Likewise.
51994 (serial_mod_CFLAGS): Likewise.
51996 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51998 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51999 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
52000 and kern/powerpc/ieee1275/cmain.c, respectively.
52002 * boot/powerpc/ieee1275/crt0.S: Moved to ...
52003 * kern/powerpc/ieee1275/crt0.S: ... here.
52005 * boot/powerpc/ieee1275/cmain.c: Moved to ...
52006 * kern/powerpc/ieee1275/cmain.c: ... here.
52008 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
52009 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
52010 instead of boot/powerpc/ieee1275/crt0.S and
52011 boot/powerpc/ieee1275/cmain.c, respectively.
52013 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
52014 sectors. It was not used anyway.
52016 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
52018 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
52019 `unused parameter' warning.
52021 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
52023 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
52025 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
52028 2005-08-28 Marco Gerards <metgerards@student.han.nl>
52030 * include/grub/normal.h (enum grub_completion_type): Added
52031 `GRUB_COMPLETION_TYPE_ARGUMENT'.
52033 * normal/cmdline.c (print_completion): Handle
52034 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
52035 * normal/menu_entry.c (store_completion): Likewise.
52037 * normal/completion.c (complete_arguments): New function.
52038 (grub_normal_do_completion): Call `complete_arguments' when the
52039 current words start with a dash.
52041 2005-08-27 Marco Gerards <metgerards@student.han.nl>
52043 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
52044 `gzio.mod' instead of `io.mod').
52046 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
52048 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
52049 (DISTDIRS): Added io and video.
52050 Rewrite the search routine to make an output consistently.
52052 * DISTLIST: Added conf/sparc64-ieee1275.mk,
52053 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
52054 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
52055 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
52056 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
52057 util/powerpc/ieee1275/misc.c.
52059 * include/grub/gzio.h: New file.
52060 * io/gzio.c: Likewise.
52062 * kern/file.c (grub_file_close): Call grub_device_close only if
52063 FILE->DEVICE is not NULL.
52065 * include/grub/mm.h [!NULL] (NULL): New macro.
52067 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
52069 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
52070 (pkgdata_MODULES): Added gzio.mod.
52071 (gzio_mod_SOURCES): New variable.
52072 (gzio_mod_CFLAGS): Likewise.
52074 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
52075 (pkgdata_MODULES): Added gzio.mod.
52076 (gzio_mod_SOURCES): New variable.
52077 (gzio_mod_CFLAGS): Likewise.
52079 * commands/cat.c: Include grub/gzio.h.
52080 (grub_cmd_cat): Use grub_gzfile_open instead of
52083 * commands/cmp.c: Include grub/gzio.h.
52084 (grub_cmd_cmp): Use grub_gzfile_open instead of
52087 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
52088 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
52090 (grub_rescue_cmd_module): Likewise.
52092 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
52094 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
52095 kern/sparc64/ieee1275/init.c because it contains _start.
52096 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
52098 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
52100 * configure.ac: Add support for sparc64 host with ieee1275
52102 * configure: Generated from configure.ac.
52103 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
52105 (grub_ofdisk_read): Likewise.
52106 (grub_ofdisk_open): Use %p to print pointer values, and cast the
52107 pointers as (void *) to remove a warning.
52108 (grub_ofdisk_close): Likewise.
52109 (grub_ofdisk_read): Likewise.
52110 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
52111 returns, so make it return void to remove a warning.
52112 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
52113 Corresponding prototype change.
52114 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
52115 values, and cast the pointers as (void *) to remove a warning.
52116 (grub_mm_dump): Likewise.
52117 * conf/sparc64-ieee1275.mk: New file.
52118 * conf/sparc64-ieee1275.rmk: Likewise.
52119 * include/grub/sparc64/setjmp.h: Likewise.
52120 * include/grub/sparc64/types.h: Likewise.
52121 * include/grub/sparc64/ieee1275/console.h: Likewise.
52122 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
52123 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
52124 * include/grub/sparc64/ieee1275/time.h: Likewise.
52125 * kern/sparc64/cache.c: Likewise.
52126 * kern/sparc64/dl.c: Likewise.
52127 * kern/sparc64/ieee1275/init.c: Likewise.
52128 * kern/sparc64/ieee1275/openfw.c: Likewise.
52130 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
52132 * util/console.c (grub_ncurses_putchar): If C is greater than
52133 0x7f, set C to a question mark.
52134 (grub_ncurses_getcharwidth): New function.
52135 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
52138 * normal/menu.c (print_entry): Made aware of Unicode. First,
52139 convert TITLE to UCS-4, and predict the cursor position by
52142 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
52144 * kern/misc.c (grub_utf16_to_utf8): Likewise.
52146 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52148 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
52149 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52152 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
52153 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52154 grub_strcpy and grub_strlen. Take it into account that a space
52155 character is inserted as a delimiter.
52157 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52159 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
52160 invalid magic in the error.
52162 * commands/search.c: New file.
52164 * util/grub-emu.c (main): Call grub_search_init and
52167 * kern/rescue.c (grub_rescue_print_disks): Removed.
52168 (grub_rescue_print_devices): New function.
52169 (grub_rescue_cmd_ls): Use grub_device_iterate with
52170 grub_rescue_print_devices instead of grub_disk_dev_iterate with
52171 grub_rescue_print_disks.
52173 * kern/partition.c (grub_partition_iterate): Return the result of
52174 PARTMAP->ITERATE instead of GRUB_ERRNO.
52176 * kern/device.c: Include grub/partition.h.
52177 (grub_device_iterate): New function.
52179 * include/grub/partition.h (grub_partition_iterate): Return int
52180 instead of grub_err_t.
52182 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
52184 [GRUB_UTIL] (grub_search_fini): Likewise.
52186 * include/grub/device.h (grub_device_iterate): New prototype.
52188 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52190 (pkgdata_MODULES): Added search.mod.
52191 (search_mod_SOURCES): New variable.
52192 (search_mod_CFLAGS): Likewise.
52194 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52195 (pkgdata_MODULES): Added search.mod.
52196 (search_mod_SOURCES): New variable.
52197 (search_mod_CFLAGS): Likewise.
52199 * commands/ls.c (grub_ls_list_disks): Renamed to ...
52200 (grub_ls_list_devices): ... this, and use grub_device_iterate.
52201 All callers changed.
52203 * DISTLIST: Added commands/search.c.
52205 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52207 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52209 (grub_getcharwidth): New function.
52211 * kern/misc.c (grub_utf8_to_ucs4): New function.
52213 * include/grub/term.h (struct grub_term): Added a new member
52215 (grub_getcharwidth): New prototype.
52217 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52219 * term/i386/pc/console.c (map_char): New function. Segregated from
52220 grub_console_putchar.
52221 (grub_console_putchar): Use map_char.
52222 (grub_console_getcharwidth): New function.
52223 (grub_console_term): Specified grub_console_getcharwidth as
52226 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52227 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52229 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52231 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52232 on grub_strtoul completely.
52233 (write_char): Declare local variables in the beginning of the
52235 (grub_vesafb_getcharwidth): New function.
52236 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52239 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52241 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52242 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52243 commands/i386/pc/vbetest.c.
52245 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52246 call grub_vbe_get_controller_info again, because the returned
52247 information is volatile.
52248 (grub_vbe_set_video_mode): Mostly rewritten.
52249 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52250 grub_vbe_status_t correctly.
52251 (grub_vbe_get_video_mode_info): Likewise.
52252 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52253 several if statements.
52255 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52256 * commands/i386/pc/vbeinfo.c: ... this.
52258 * commands/i386/pc/vbe_test.c: Renamed to ...
52259 * commands/i386/pc/vbetest.c: ... this.
52261 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52263 (grub_cmd_vbeinfo): ... this. Save video modes before
52264 iterating. Skip a video mode, if it is not available, not enough
52265 information is given or it is monochrome. Show the memory
52266 model. Leave the interpretation of MODEVAR to grub_strtoul
52268 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52269 (GRUB_MOD_FINI): Likewise.
52271 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52272 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52273 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52274 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52275 grub_strtoul completely.
52276 (real2pm): Removed.
52277 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52278 (GRUB_MOD_FINI): Likewise.
52280 * normal/misc.c: Include grub/mm.h.
52282 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52283 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52284 (vbe_list_modes_mod_SOURCES): Removed.
52285 (vbe_list_modes_mod_CFLAGS): Likewise.
52286 (vbe_test_mod_SOURCES): Likewise.
52287 (vbe_test_mod_CFLAGS): Likewise.
52288 (vbeinfo_mod_SOURCES): New variable.
52289 (vbeinfo_mod_CFLAGS): Likewise.
52290 (vbetest_mod_SOURCES): Likewise.
52291 (vbetest_mod_CFLAGS): Likewise.
52293 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52295 * normal/misc.c: New file.
52297 * DISTLIST: Added normal/misc.c.
52299 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52300 DISK to HOOK. Call HOOK with DISK.
52301 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52302 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52303 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52305 * normal/menu_entry.c (struct screen): Added a new member
52306 "completion_shown".
52307 (completion_buffer): New global variable.
52308 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52309 (store_completion): New function.
52310 (complete): Likewise.
52311 (clear_completions): Likewise.
52312 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52313 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52314 a tab, call complete.
52316 * normal/completion.c (disk_dev): Removed.
52317 (print_simple_completion): Likewise.
52318 (print_partition_completion): Likewise.
52319 (print_func): New global variable.
52320 (add_completion): Do not take the arguments WHAT or PRINT any
52321 longer. Added a new argument TYPE. Instead of printing directly,
52322 call PRINT_FUNC if not NULL.
52323 All callers changed.
52324 (complete_device): Use a local variable DEV instead of
52325 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52326 (grub_normal_do_completion): Take a new argument HOOK. Do not
52327 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52328 empty string, return NULL instead.
52329 All callers changed.
52331 * normal/cmdline.c (print_completion): New function.
52333 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52335 All callers changed.
52337 * kern/disk.c (grub_print_partinfo): Removed.
52339 * include/grub/partition.h (struct grub_partition_map): Add a new
52340 argument DISK into HOOK of ITERATE.
52341 (grub_partition_iterate): Add a new argument DISK to HOOK.
52343 * include/grub/normal.h (enum grub_completion_type): New enum.
52344 (grub_completion_type_t): New type.
52345 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52346 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52347 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52348 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52349 (grub_normal_do_completion): Added a new argument HOOK.
52350 (grub_normal_print_device_info): New prototype.
52352 * include/grub/disk.h (grub_print_partinfo): Removed.
52354 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52355 (normal_mod_SOURCES): Likewise.
52356 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52357 (normal_mod_SOURCES): Likewise.
52359 * commands/ls.c (grub_ls_list_disks): Use
52360 grub_normal_print_device_info instead of grub_print_partinfo. Free
52362 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52363 duplicating the code.
52365 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52367 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52368 follow GCS more precisely.
52369 * commands/i386/pc/vbe_test.c: Likewise.
52370 * include/grub/i386/pc/vbe.h: Likewise.
52371 * term/i386/pc/vesafb.c: Likewise.
52372 * video/i386/pc/vbe.c: Likewise.
52374 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52376 * DISTLIST: Added term/i386/pc/vesafb.c
52377 DISTLIST: Added video/i386/pc/vbe.c
52378 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52379 DISTLIST: Added commands/i386/pc/vbe_test.c.
52380 * commands/i386/pc/vbe_list_modes.c: New file.
52381 * commands/i386/pc/vbe_test.c: Likewise.
52382 * term/i386/pc/vesafb.c: Likewise.
52383 * video/i386/pc/vbe.c: Likewise.
52384 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52385 (grub_vbe_probe) Added prototype.
52386 (grub_vbe_set_video_mode) Likewise.
52387 (grub_vbe_get_video_mode) Likewise.
52388 (grub_vbe_get_video_mode_info) Likewise.
52389 (grub_vbe_set_pixel_rgb) Likewise.
52390 (grub_vbe_set_pixel_index) Likewise.
52391 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52392 (pkgdata_MODULES): Added vesafb.mod.
52393 (pkgdata_MODULES): Added vbe_list_modes.mod.
52394 (pkgdata_MODULES): Added vbe_test.mod.
52395 (vbe_mod_SOURCES): Added.
52396 (vbe_mod_CFLAGS): Likewise.
52397 (vesafb_mod_SOURCES): Likewise.
52398 (vesafb_mod_CFLAGS): Likewise.
52399 (vbe_list_modes_mod_SOURCES): Likewise.
52400 (vbe_list_modes_mod_CFLAGS): Likewise.
52401 (vbe_test_mod_SOURCES): Likewise.
52402 (vbe_test_mod_CFLAGS): Likewise.
52404 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52406 * normal/command.c (grub_command_execute): If INTERACTIVE is
52407 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52408 CMDLINE. Disable the pager if INTERACTIVE is true.
52409 All callers are changed.
52411 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52412 before reading a config file.
52413 * normal/main.c (read_config_file): Even if a command is not
52414 found, register it if it is within an entry.
52416 * util/grub-emu.c: Include sys/types.h and unistd.h.
52417 (options): Added --hold.
52418 (struct arguments): Added a new member "hold".
52419 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52421 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52422 cleared by a debugger, if it is not zero.
52424 * include/grub/normal.h (grub_command_execute): Add an argument
52427 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52429 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52431 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52433 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52434 program with another one, because the old one didn't detect a bug
52435 in gcc-3.4. Always use regparm 2, because the new test is still
52436 not enough for gcc-4.0. Someone must investigate a simple test
52437 case which detects a bug in gcc-4.0.
52439 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52441 * DISTLIST: Added normal/completion.c.
52443 * normal/completion.c: New file.
52445 * term/i386/pc/console.c (grub_console_getwh): New function.
52446 (grub_console_term): Assign grub_console_getwh to getwh.
52448 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52449 function is defined in normal/completion.c as
52450 grub_normal_do_completion.
52451 (grub_cmdline_get): Use grub_normal_do_completion instead of
52454 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52455 returns non-zero, otherwise return 0.
52456 (grub_partition_iterate): First, probe the partition map. Then,
52457 call ITERATE only for this partition map.
52459 * kern/misc.c (grub_strncmp): Rewritten.
52461 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52462 returns non-zero. Otherwise return 0.
52464 * include/grub/partition.h (grub_partition_map_iterate): Return
52465 int instead of void.
52467 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52469 * include/grub/misc.h (grub_strncmp): Change the type of N to
52472 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52475 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52476 unsigned explicitly before comparing it with I.
52478 * kern/main.c (grub_env_write_root): Add the attribute unused into
52481 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52482 normal/completion.c.
52483 (normal_mod_SOURCES): Likewise.
52484 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52485 (normal_mod_SOURCES): Likewise.
52487 * normal/command.c (grub_iterate_commands): If ITERATE returns
52488 non-zero, return one immediately.
52490 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52492 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52493 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52495 (grub_vbe_get_controller_info): New function.
52496 (grub_vbe_get_mode_info): Likewise.
52497 (grub_vbe_set_mode): Likewise.
52498 (grub_vbe_get_mode): Likewise.
52499 (grub_vbe_set_memory_window): Likewise.
52500 (grub_vbe_get_memory_window): Likewise.
52501 (grub_vbe_set_scanline_length): Likewise.
52502 (grub_vbe_get_scanline_length): Likewise.
52503 (grub_vbe_set_display_start): Likewise.
52504 (grub_vbe_get_display_start): Likewise.
52505 (grub_vbe_set_palette_data): Likewise.
52506 * include/grub/i386/pc/vbe.h: New file.
52508 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52510 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52511 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52512 * DISTLIST: Likewise.
52513 * kern/ieee1275/of.c: Moved to ...
52514 * kern/ieee1275/ieee1275.c: ... here.
52516 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52518 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52519 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52520 Pass 0 as `end' parameter to grub_strtoul().
52522 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52524 * include/grub/powerpc/ieee1275/console.h: Do not include
52525 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52527 (grub_console_cur_color): Remove i386-specific prototype.
52528 (grub_console_real_putchar): Likewise.
52529 (grub_console_checkkey): Likewise.
52530 (grub_console_getkey): Likewise.
52531 (grub_console_getxy): Likewise.
52532 (grub_console_gotoxy): Likewise.
52533 (grub_console_cls): Likewise.
52534 (grub_console_setcursor): Likewise.
52535 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52536 Include <grub/machine/console.h>.
52537 * term/ieee1275/ofconsole.c: Likewise.
52539 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52541 * Makefile.in (LIBLZO): New variable.
52543 * configure.ac: Check for LZO version 2.
52545 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52546 lzo/lzo1x.h instead of lzo1x.h.
52548 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52551 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52552 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52554 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52555 copying the data from PARTITION to P.
52557 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52559 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52560 negative, unload the module.
52562 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52563 map is "pc_partition_map" but not "pc".
52564 (usage): Fix the description. The options are --boot-image and
52565 --core-image but not --boot-file or --core-file.
52566 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52567 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52570 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52571 --core-file. Specify INSTALL_DEVICE as an argument.
52573 * util/console.c: Include config.h.
52574 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52575 [HAVE_NCURSES_H]: Include ncurses.h.
52576 [HAVE_CURSES_H]: Include curses.h.
52577 [!A_NORMAL] (A_NORMAL): Defined as zero.
52578 [!A_STANDOUT] (A_STANDOUT): Likewise.
52580 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52582 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52584 * configure.ac: Check for curses libraries and headers.
52586 * Makefile.in (LIBCURSES): New variable.
52588 * genmk.rb (Script::rule): Set the executable bits.
52590 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52591 name of the PC partition map is "pc_partition_map" but not "pc".
52593 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52595 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52596 (modules): Likewise.
52597 (usage): Added descriptions for --modules and --grub-probefs.
52598 Handle --modules and --grub-probefs. Save the arguments in MODULES
52599 and GRUB_PROBEFS, respectively.
52600 Auto-detect a filesystem module against GRUBDIR. If the result is
52601 empty and modules are not specified explicitly, abort the
52602 installation. Add the result to MODULES.
52604 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52605 disk/powerpc/ieee1275/ofdisk.c,
52606 include/grub/powerpc/ieee1275/init.h and
52607 term/powerpc/ieee1275/ofconsole.c.
52608 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52609 term/ieee1275/ofconsole.c.
52611 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52613 * COPYING: Upgraded to the latest version. Only the address of the
52614 FSF office has changed.
52616 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52618 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52619 kern/ieee1275.c with kern/ieee1275/of.c.
52621 * kern/ieee1275.c: Moved to ...
52622 * kern/ieee1275/of.c: ... here.
52624 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52626 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52629 * config.guess: Updated to the latest version from gnulib.
52630 * config.sub: Likewise.
52631 * install.sh: Likewise.
52632 * mkinstalldirs: Likewise.
52634 * include/grub/console.h: Removed. This file is arch-specific. Do
52635 not put this in include/grub.
52637 * include/grub/i386/pc/console.h: Resurrected.
52639 * util/console.c: Include grub/machine/console.h instead of
52641 * util/grub-emu.c: Likewise.
52643 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52645 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52648 From Vincent Pelletier <subdino2004@yahoo.fr>
52649 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52650 Redefined to use grub_getwh.
52651 (grub_term): New member named getwh.
52652 (grub_getwh): New prototype.
52653 * kern/term.c (grub_getwh): New function.
52654 * term/i386/pc/console.c (grub_console_getwh): New function.
52655 (grub_console_term): New member `getwh'.
52656 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52657 (grub_vga_term): New member `getwh'.
52658 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52660 (grub_ofconsole_getw): New function.
52661 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52662 (grub_ofconsole_term): New field named getwh and new initial
52665 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52667 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52668 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52669 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52670 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52671 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52672 of <grub/machine/ieee1275.h>.
52673 * commands/ieee1275/reboot.c: Likewise.
52674 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52675 * kern/ieee1275.c: ... to here. All users updated. Change all
52676 parameter structs to use new type `grub_ieee1275_cell_t'.
52677 * term/powerpc/ieee1275/ofconsole.c: Move ...
52678 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52679 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52680 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52681 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52683 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52684 Remove unused prototypes. All users updated.
52685 * include/grub/powerpc/ieee1275/console.h: Removed.
52686 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52687 `grub_ieee1275_cell_t'.
52688 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52689 Cast comparisons with -1 to the correct type.
52690 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52691 type to match `grub_ieee1275_entry_fn'.
52693 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52695 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52697 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52698 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52700 (grub_probefs_SOURCES): New variable.
52702 * util/i386/pc/grub-probefs.c: New file.
52704 * util/i386/pc/grub-setup.c (main): Call
52705 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52706 grub_hfs_init and grub_jfs_init to initialize the system. Call
52707 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52708 grub_pc_partition_map_fini to finish the system.
52710 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52712 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52714 (grub_multiboot_load_elf32): Likewise.
52715 (grub_multiboot_is_elf64): Likewise.
52716 (grub_multiboot_load_elf64): Likewise.
52717 (grub_multiboot_load_elf): Likewise.
52718 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52719 an ELF32 or ELF64 file.
52720 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52722 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52723 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52724 NULL before calling FS->LABEL.
52725 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52726 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52727 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52728 before calling FS->LABEL.
52730 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52732 * util/i386/pc/grub-install.in (datadir): New variable.
52734 (pkgdatadir): New variable.
52735 (pkglibdir): Removed.
52737 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52739 * DISTLIST: Added util/i386/pc/grub-install.in.
52741 * util/i386/pc/grub-install.in: New file.
52743 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52744 (grub_install_SOURCES): Likewise.
52746 * genmk.rb: Added support for scripts.
52747 (Script): New class.
52748 (scripts): New variable.
52750 * Makefile.in (install-local): Install sbin_SCRIPTS by
52752 (uninstall): Remove sbin_SCRIPTS.
52754 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52755 device, try to get a GRUB device by
52756 grub_util_biosdisk_get_grub_dev.
52759 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52760 description for --device-map.
52762 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52764 Change the semantics of variable hooks. They now return strings
52765 instead of error values.
52767 * util/i386/pc/grub-setup.c: Include grub/env.h.
52768 (setup): Use grub_device_set_root instead of grub_env_set.
52770 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52771 grub_env_get instead of grub_device_set_root and
52772 grub_device_get_root, respectively.
52774 * kern/main.c (grub_env_write_root): New function.
52775 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52776 grub_env_set instead of grub_device_set_root.
52778 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52780 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52781 rather than calling ENV->WRITE_HOOK afterwards.
52782 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52783 passing a pointer of a pointer.
52784 (grub_register_variable_hook): Change the types of "read_hook" and
52785 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52787 Allocate the default empty string on the heap, because this string
52788 may be freed later.
52790 * kern/device.c: Include grub/env.h.
52791 (grub_device_set_root): Removed.
52792 (grub_device_get_root): Likewise.
52793 (grub_device_open): Use grub_env_get instead of
52794 grub_device_get_root.
52796 * include/grub/env.h (grub_env_read_hook_t): New type.
52797 (grub_env_write_hook_t): Likewise.
52798 (grub_env_var): Change the types of "read_hook" and "write_hook"
52799 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52800 (grub_register_variable_hook): Likewise.
52802 * include/grub/device.h (grub_device_set_root): Removed.
52803 (grub_device_set_root): Likewise.
52805 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52806 make sure that DIRNAME terminates with '/', so that
52807 grub_fat_find_dir will fail if PATH is not a directory.
52809 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52811 Use the qualifier auto for print_files and print_files_long.
52812 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52814 Put a newline only if there is no error.
52815 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52818 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52820 * kern/partition.c (grub_partition_probe): Initialize PART to
52821 NULL. Otherwise, when no partition map is registered, this returns
52824 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52826 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52827 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52830 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52832 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52833 information on each device, if it does not have partitions. Print
52834 "Device" instead of "Disk", because this function is not specific
52837 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52838 static to ensure that it is put on the memory rather than a
52841 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52843 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52844 (grub_cat_init): Likewise.
52845 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52846 (options): Likewise.
52847 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52848 (grub_configfile_init): Likewise.
52849 * font/manager.c (GRUB_MOD_INIT): Likewise.
52850 * commands/help.c (GRUB_MOD_INIT): Likewise.
52851 (grub_help_init): Likewise.
52852 * normal/command.c (grub_command_init): Likewise.
52853 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52854 * disk/loopback.c (grub_loop_init): Likewise.
52855 (GRUB_MOD_INIT): Likewise.
52856 * commands/ls.c (grub_ls_init): Likewise.
52857 (GRUB_MOD_INIT): Likewise.
52858 (options): Likewise.
52859 * commands/boot.c (grub_boot_init): Likewise.
52860 (GRUB_MOD_INIT): Likewise.
52861 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52862 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52863 (GRUB_MOD_INIT): Likewise.
52864 * commands/cmp.c (grub_cmp_init): Likewise.
52865 (GRUB_MOD_INIT): Likewise.
52867 * normal/arg.c: Use <> instead of "" to include header files.
52868 (SHORT_ARG_HELP): New macro.
52869 (SHORT_ARG_USAGE): Likewise.
52870 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52871 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52873 (find_short): Check if C is 'h' or 'u' explicitly.
52874 (grub_arg_show_help): Use space characters instead of tabs. Treat
52875 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52876 are shown with --help and --usage only if they are not used for
52877 the command itself.
52878 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52881 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52882 const into "longarg". Change the type of "shortarg" to int.
52884 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52886 * boot/i386/pc/boot.S (boot_drive_check): New label.
52888 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52891 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52892 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52894 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52896 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52897 When turning off Gate A20, skip the check and return immediately,
52898 because this is not fatal usually.
52900 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52902 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52903 be 0x7C00 instead of 0x8000.
52905 * boot/i386/pc/pxeboot.S: Rewritten.
52907 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52909 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52912 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52914 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52915 robustness. This routine now supports a BIOS call and System
52916 Control Port A to modify the gate A20.
52918 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52919 Increased to 0x440.
52921 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52923 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52924 device path and resulting ihandle.
52925 (grub_ofdisk_close): dprintf the ihandle being closed.
52926 (grub_ofdisk_read): dprintf function parameters.
52927 * kern/mm.c (grub_mm_init_region): Likewise.
52928 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52929 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52930 size, and boot arguments.
52931 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52932 before loading into memory.
52933 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52934 before loading into memory.
52936 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52938 * kern/mm.c: Added much documentation.
52939 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52940 8, set to 5 instead of 8.
52942 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52944 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52946 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52947 (grub_mkdevicemap_SOURCES): New variable.
52949 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52950 lib/device.c of GRUB Legacy.
52952 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52954 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52955 instead of PATH is NULL.
52957 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52959 * commands/cmp.c (BUFFER_SIZE): New macro.
52960 (grub_cmd_cmp): Close the right file at the right time. Compare
52961 only data just read. Don't report files of different size as
52962 identical. Dynamically allocate buffers. Move variable
52963 declarations at the beginning of function.
52965 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52967 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52970 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52972 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52973 when backspace is pressed at beginning of line.
52975 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52977 * DISTLIST: Added genfslist.sh.
52979 * normal/main.c (fs_module_list): New variable.
52980 (autoload_fs_module): New function.
52981 (read_fs_list): Likewise.
52982 (grub_normal_execute): Call read_fs_list.
52984 * kern/fs.c (grub_fs_autoload_hook): New variable.
52985 (grub_fs_probe): Added support for auto-loading.
52987 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52988 (grub_fs_module_list_t): New type.
52990 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52991 (grub_fs_autoload_hook): New prototype.
52993 * genfslist.sh: New file.
52995 * genmk.rb: Added a rule to generate a filesystem list.
52997 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52999 * configure.ac: Fix the test for cross-compiling.
53001 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
53002 define GRUB_UTIL anymore.
53004 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
53005 so this function works on other systems than just big endian.
53006 (load_modules): Likewise.
53007 (add_segments): Likewise.
53009 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
53011 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
53012 contains `l' modifier, get a long from va_arg().
53014 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
53016 * kern/mm.c (grub_free): If the next free block which is being
53017 merged is the first free block, set the first block to the block
53019 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
53021 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
53023 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
53024 `grub_ieee1275_chosen'.
53026 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
53028 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
53029 (grub_ieee1275_chosen): New variable.
53030 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
53032 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
53033 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53034 Rename first argument to `phandle' for consistency.
53035 (grub_ieee1275_get_property_length): Likewise.
53036 (grub_ieee1275_next_property): Likewise. Change type of first argument
53037 to grub_ieee1275_phandle_t.
53038 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
53039 Move export next to declaration.
53040 (grub_ieee1275_chosen): New variable.
53041 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
53042 Correct cosmetic typo.
53043 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
53044 `grub_ieee1275_chosen'.
53045 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
53046 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
53047 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
53048 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
53049 `grub_ieee1275_chosen'.
53051 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
53053 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
53055 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
53056 /chosen/bootargs as "variable=value" pairs.
53058 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
53060 * include/grub/misc.h (grub_dprintf): New macro.
53061 (grub_real_dprintf): New prototype.
53062 (grub_strword): Likewise.
53063 (grub_iswordseparator): Likewise.
53064 * kern/misc.c (grub_real_dprintf): New function.
53065 (grub_strword): Likewise.
53066 (grub_iswordseparator): Likewise.
53068 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
53070 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
53071 (roundup): Remove macro.
53072 (grub_ieee1275_flags): Make static.
53073 (grub_ieee1275_realmode): Remove.
53074 (grub_ieee1275_test_flag): New function.
53075 (grub_ieee1275_set_flag): Likewise.
53076 (find_options): Rename to `grub_ieee1275_find_options'; update
53077 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
53078 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
53079 (cmain): New prototype.
53080 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
53081 `grub_ieee1275_flags' directly.
53082 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
53083 machine/biosdisk.h.
53084 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
53085 Don't include grub/machine/init.h.
53086 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
53087 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53089 (grub_ieee1275_realmode): Likewise.
53090 (grub_ieee1275_flag): New enum.
53091 (grub_ieee1275_test_flag): New prototype.
53092 (grub_ieee1275_set_flag): New prototype.
53093 * include/grub/powerpc/ieee1275/init.h: Remove file.
53094 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
53095 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
53096 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
53097 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
53099 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
53100 `grub_ieee1275_test_flag'.
53101 (grub_ieee1275_encode_devname): Likewise.
53103 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
53105 * include/grub/powerpc/ieee1275/ieee1275.h
53106 (grub_ieee1275_encode_devname): New prototype.
53107 (grub_ieee1275_get_filename): Likewise.
53108 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
53110 (grub_set_prefix): Likewise.
53111 (grub_machine_init): Call grub_set_prefix.
53112 * kern/powerpc/ieee1275/openfw.c: Fix typos.
53113 (grub_parse_type): New enum.
53114 (grub_ieee1275_get_devargs): New function.
53115 (grub_ieee1275_get_devname): Likewise.
53116 (grub_ieee1275_parse_args): Likewise.
53117 (grub_ieee1275_get_filename): Likewise.
53118 (grub_ieee1275_encode_devname): Likewise.
53120 2005-03-30 Marco Gerards <metgerards@student.han.nl>
53122 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
53123 `grub_loader_unset'.
53125 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
53127 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
53128 instead of grub_ieee1275_interpret.
53129 (grub_halt_init): New function.
53130 (grub_halt_fini): Likewise.
53131 (GRUB_MOD_INIT): Correct message grammar.
53132 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
53133 instead of grub_ieee1275_interpret.
53134 (grub_reboot_init): New function.
53135 (grub_reboot_fini): Likewise.
53136 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
53137 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
53138 util/i386/pc/misc.c with commands/ieee1275/halt.c,
53139 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
53140 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
53142 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
53144 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
53146 (grub_halt): Likewise.
53147 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
53148 (cmain): Remove __attribute__((unused)).
53149 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
53150 (grub_heap_len): Likewise.
53151 (grub_machine_fini): New function.
53152 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
53153 (grub_halt): Likewise.
53154 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
53156 * util/powerpc/ieee1275/misc.c: New file.
53158 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
53160 * DISTLIST: New file.
53161 * gendistlist.sh: Likewise.
53163 * Makefile.in (COMMON_DISTFILES): Removed.
53164 (BOOT_DISTFILES): Likewise.
53165 (CONF_DISTFILES): Likewise.
53166 (DISK_DISTFILES): Likewise.
53167 (FS_DISTFILES): Likewise.
53168 (INCLUDE_DISTFILES): Likewise.
53169 (KERN_DISTFILES): Likewise.
53170 (LOADER_DISTFILES): Likewise.
53171 (TERM_DISTFILES): Likewise.
53172 (UTIL_DISTFILES): Likewise.
53173 (DISTFILES): Likewise.
53174 (uninstall): Uninstall files in $(pkgdata_DATA).
53175 (DISTLIST): New target.
53176 (distdir): Use the contents of the file DISTLIST to get a list of
53179 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
53181 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
53182 descriptor. This is ported from GRUB Legacy.
53184 * gencmdlist.sh: Added an extra semicolon to make it work with
53185 old sed versions. Reported by Robert Bihlmeyer
53186 <robbe@orcus.priv.at>.
53188 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
53190 Automatic loading of commands is supported.
53192 * normal/main.c (read_command_list): New function.
53193 (grub_normal_execute): Call read_command_list.
53195 * normal/command.c (grub_register_command): Return zero or CMD.
53196 Allocate CMD->NAME from the heap.
53197 Initialize CMD->MODULE_NAME to zero.
53198 Find the same name as well. If the same command is found and it is
53199 a dummy command, overwrite members. If it is not a dummy command,
53201 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53202 (grub_command_find): If a dummy command is found, load a module
53203 and retry to find a command only once.
53205 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53206 make sure that each command is loaded.
53208 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53210 (struct grub_command): Remove const from the member `name'.
53211 Add a new member `module_name'.
53212 (grub_register_command): Return grub_command_t.
53214 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53215 sure that each command is loaded.
53217 * genmk.rb (PModule::rule): Specify a module name without the
53218 suffix ".mod" to gencmdlist.sh.
53220 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53222 * gencmdlist.sh: New file.
53224 * genmk.rb (PModule::rule): Generate a rule for a command list.
53226 Generate command.lst from $(COMMANDFILES).
53228 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53229 (DATA): Added $(pkgdata_DATA).
53230 (install-local): Install files in $(pkgdata_DATA).
53232 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53234 * term/i386/pc/vga.c (debug_command): Removed.
53235 (GRUB_MOD_INIT): Do not register the command "debug".
53237 From Hollis Blanchard:
53238 * commands/configfile.c: New file.
53239 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53240 commands/configfile.c.
53241 (pkgdata_MODULES): Added configfile.mod.
53242 (configfile_mod_SOURCES): New variable.
53243 (configfile_mod_CFLAGS): Likewise.
53244 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53245 commands/configfile.c.
53246 (pkgdata_MODULES): Added configfile.mod.
53247 (configfile_mod_SOURCES): New variable.
53248 (configfile_mod_CFLAGS): Likewise.
53249 * util/grub-emu.c (main): Call grub_configfile_init and
53250 grub_configfile_fini.
53251 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53253 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53255 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53257 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53260 * commands/help.c (grub_cmd_help): Do not print newlines after
53261 the last command in print_command_help.
53263 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53265 * commands/default.h: New file.
53266 * commands/timeout.h: Likewise.
53267 * normal/context.c: Likewise.
53269 * util/misc.c: Do not include sys/times.h.
53270 Include sys/time.h and grub/machine/time.h.
53271 (grub_get_rtc): Rewritten with gettimeofday.
53273 * util/grub-emu.c (main): Call grub_default_init and
53274 grub_timeout_init before grub_normal_init, and call
53275 grub_timeout_fini and grub_default_fini after grub_main.
53277 * util/console.c (grub_ncurses_checkkey): Return the read
53280 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53283 * normal/main.c (read_config_file): Push MENU. If this fails,
53284 print an error and wait for a user input.
53285 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53286 If a menu is empty or an error occurs, pop MENU.
53287 (grub_normal_execute): Pop and free MENU after grub_menu_run
53290 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53292 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53294 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53296 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53298 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53301 * include/grub/normal.h (struct grub_menu_list): New struct.
53302 (grub_menu_list_t): New type.
53303 (struct grub_context): New struct.
53304 (grub_context_t): New type.
53305 (grub_register_command): Got rid of EXPORT_FUNC.
53306 (grub_unregister_command): Likewise.
53307 (grub_context_get): New prototype.
53308 (grub_context_get_current_menu): Likewise.
53309 (grub_context_push_menu): Likewise.
53310 (grub_context_pop_menu): Likewise.
53311 [GRUB_UTIL] (grub_default_init): Likewise.
53312 [GRUB_UTIL] (grub_default_fini): Likewise.
53313 [GRUB_UTIL] (grub_timeout_init): Likewise.
53314 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53316 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53317 commands/timeout.c and normal/context.c.
53318 (pkgdata_MODULES): Added default.mod and timeout.mod.
53319 (normal_mod_SOURCES): Added normal/context.c.
53320 (default_mod_SOURCES): New variable.
53321 (default_mod_CFLAGS): Likewise.
53322 (timeout_mod_SOURCES): Likewise.
53323 (timeout_mod_CFLAGS): Likewise.
53324 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53326 (pkgdata_MODULES): Added default.mod and timeout.mod.
53327 (normal_mod_SOURCES): Added normal/context.c.
53328 (default_mod_SOURCES): New variable.
53329 (default_mod_CFLAGS): Likewise.
53330 (timeout_mod_SOURCES): Likewise.
53331 (timeout_mod_CFLAGS): Likewise.
53333 * Makefile.in (all-local): Added $(MKFILES).
53335 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53337 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53338 (grub_emu_SOURCES): Likewise.
53339 (pkgdata_MODULES): Add `sun.mod'.
53340 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53341 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53343 (pkgdata_MODULES): Add `sun.mod'.
53344 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53345 * include/grub/partition.h (grub_sun_partition_map_init): New
53347 (grub_sun_partition_map_fini): Likewise.
53348 * partmap/sun.c: New file.
53349 * util/grub-emu.c (main): Initialize and de-initialize the sun
53350 partitionmap support.
53352 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53354 This implements an Emacs-like menu entry editor.
53356 * normal/menu_entry.c: New file.
53358 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53359 characters to ASCII.
53360 (saved_char): New variable.
53361 (grub_ncurses_checkkey): Rewritten completely.
53362 (grub_ncurses_getkey): Likewise.
53363 (grub_ncurses_init): Call raw instead of cbreak.
53365 * normal/menu.c (print_entry): Do not put a space.
53366 (init_page): Renamed to ...
53367 (grub_menu_init_page): ... this. All callers changed.
53368 (edit_menu_entry): Removed.
53369 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53371 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53373 * kern/misc.c (grub_vprintf): Call grub_refresh.
53375 * normal/menu.c (DISP_LEFT): Renamed to ...
53376 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53377 * normal/menu.c (DISP_UP): Renamed to ...
53378 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53379 * normal/menu.c (DISP_RIGHT): Renamed to ...
53380 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53381 * normal/menu.c (DISP_DOWN): Renamed to ...
53382 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53383 * normal/menu.c (DISP_HLINE): Renamed to ...
53384 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53385 * normal/menu.c (DISP_VLINE): Renamed to ...
53386 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53387 * normal/menu.c (DISP_UL): Renamed to ...
53388 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53389 * normal/menu.c (DISP_UR): Renamed to ...
53390 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53391 * normal/menu.c (DISP_LL): Renamed to ...
53392 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53393 * normal/menu.c (DISP_LR): Renamed to ...
53394 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53395 * normal/menu.c (TERM_WIDTH): Renamed to ...
53396 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53397 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53398 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53399 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53400 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53401 * normal/menu.c (TERM_MARGIN): Renamed to ...
53402 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53403 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53404 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53405 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53406 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53407 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53408 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53409 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53410 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53411 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53412 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53413 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53414 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53415 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53416 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53417 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53418 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53419 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53420 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53421 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53422 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53423 All callers changed.
53425 * include/grub/normal.h: New prototype.
53427 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53428 normal/menu_entry.c.
53429 (normal_mod_SOURCES): Likewise.
53430 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53431 (normal_mod_SOURCES): Likewise.
53433 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53435 * include/grub/normal.h (grub_halt_init): New prototype.
53436 (grub_halt_fini): Likewise.
53437 (grub_reboot_init): Likewise.
53438 (grub_reboot_fini): Likewise.
53440 * util/grub-emu.c: Include signal.h.
53441 (main_env): New global variable.
53442 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53444 (grub_machine_fini): New function.
53445 (main): Call grub_halt_init and grub_reboot_init before
53446 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53447 Call setjmp with MAIN_ENV to go back afterwards.
53448 Call grub_machine_fini right before return.
53450 * include/grub/util/misc.h: Include setjmp.h.
53451 (main_env): New prototype.
53453 * include/grub/kernel.h (grub_machine_fini): New prototype.
53454 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53455 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53457 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53458 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53459 * term/i386/pc/console.c (grub_console_fini): Likewise.
53461 * util/i386/pc/misc.c: New file.
53463 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53464 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53465 commands/i386/pc/reboot.c.
53467 2005-02-14 Guillem Jover <guillem@hadrons.org>
53469 * include/grub/dl.h (grub_dl_check_header): New prototype.
53470 (grub_arch_dl_check_header): Change return type to grub_err_t,
53471 remove size parameter and export function. Update all callers.
53472 * kern/dl.c (grub_dl_check_header): New function.
53473 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53474 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53475 are inside the core.
53476 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53477 independent ELF header checks.
53478 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53479 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53480 `grub_dl_check_header' instead of explicit checks. Check for the
53482 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53483 `grub_dl_check_header' instead of explicit checks. Remove arch
53484 specific ELF header checks.
53486 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53489 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53491 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53492 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53494 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53496 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53497 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53498 (part_map_iterate): Clear `grub_errno' and return 0 if
53499 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53500 * partmap/amiga.c (amiga_partition_map_iterate): Return
53501 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53502 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53504 2005-02-01 Guillem Jover <guillem@hadrons.org>
53506 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53509 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53511 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53513 (grub_rescue_cmd_linux): New prototype.
53514 (grub_rescue_cmd_initrd): Likewise.
53515 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53517 (grub_linux_release_mem): Release the memory for the initrd.
53518 (grub_load_linux): Renamed from this...
53519 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53520 Changed `entry' not to be static. Loop over memory regions to
53521 find another one when the default fails.
53522 (grub_rescue_cmd_initrd): New function.
53523 (grub_linux_init): Remove function.
53524 (grub_linux_fini): Likewise.
53525 (GRUB_MOD_INIT): Register `initrd'.
53526 (GRUB_MOD_FINI): Unregister `initrd'.
53527 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53529 (grub_linux_normal_fini): Likewise.
53530 (GRUB_MOD_INIT): Register `initrd'.
53531 (GRUB_MOD_FINI): Unregister `initrd'.
53533 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53535 * commands/help.c: New file.
53536 * normal/arg.c (show_help): Renamed to...
53537 (grub_arg_show_help): ... this.
53538 * commands/i386/pc/halt.c: New file.
53539 * commands/i386/pc/reboot.c: Likewise.
53540 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53541 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53542 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53543 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53545 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53547 (pkgdata_MODULES): Add `help.mod'.
53548 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53549 * grub/i386/pc/init.h (grub_reboot): New prototype.
53550 (grub_halt): Likewise.
53551 * include/grub/normal.h (grub_arg_show_help): New prototype.
53552 (grub_help_init): Likewise.
53553 (grub_help_fini): Likewise.
53554 * util/grub-emu.c (main): Initialize and deinitialize the help
53557 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53559 * normal/command.c (grub_command_init): Fixed the description of
53560 the `set' and `unset' commands.
53562 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53564 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53566 * commands/ieee1275/halt.c: New file.
53567 * commands/ieee1275/reboot.c: Likewise.
53568 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53569 `__attribute__ ((unused))'. Some GCS related fixed.
53570 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53571 (grub_suspend_fini): Likewise.
53572 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53574 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53575 (halt_mod_CFLAGS): New variables.
53576 * include/grub/powerpc/ieee1275/ieee1275.h
53577 (grub_ieee1275_interpret): New prototype.
53579 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53581 * include/grub/misc.h (memmove): New prototype.
53582 (memcpy): Likewise.
53584 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53586 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53587 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53589 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53591 * kern/misc.c (grub_strndup): Function rewritten.
53593 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53595 * normal/menu.c (TERM_WIDTH): Macro redefined.
53596 (TERM_TOP_BORDER_Y): Likewise.
53597 (draw_border): Replaced while-loop by a for-loop. Make the number
53598 of lines consistent with the number of lines displayed in
53599 print_entries. Added a margin below the rectangle.
53600 (print_entry): Make the entry fit in the rectangle.
53601 (print_entries): Display the scroll arrows next to the right
53604 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53606 * fs/minix.c (grub_minix_find_file): Reserve more space for
53607 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53608 `grub_strncpy' to copy `path' into it.
53610 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53612 Add the loopback device, a device via which files can be accessed
53615 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53616 (pkgdata_MODULES): Add loopback.mod.
53617 (loopback_mod_SOURCES): New variable.
53618 (loopback_mod_CFLAGS): Likewise.
53619 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53621 (pkgdata_MODULES): Add loopback.mod.
53622 (loopback_mod_SOURCES): New variable.
53623 (loopback_mod_CFLAGS): Likewise.
53624 * disk/loopback.c: new file.
53625 * include/grub/normal.h (grub_loop_init): New prototype.
53626 (grub_loop_fini): New prototype.
53627 * util/grub-emu.c (main): Initialize and de-initialize loopback
53629 * include/grub/disk.h (grub_disk_dev_id): Add
53630 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53632 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53634 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53636 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53637 (suspend_mod_SOURCES): New variable.
53638 (suspend_mod_CFLAGS): Likewise.
53639 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53641 * commands/ieee1275/suspend.c: New file.
53643 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53645 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53646 ((unused))' to `__attribute__ ((used))'.
53647 (GRUB_MOD_FINI): Likewise.
53648 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53649 * genmk.rb (PModule): Assign space to common symbols when linking
53652 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53654 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53655 `unsigned' arguments to `grub_size_t'.
53656 (grub_malloc): Likewise.
53657 (grub_realloc): Likewise.
53658 (grub_memalign): Likewise.
53659 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53660 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53661 * util/misc.c (grub_malloc): Likewise.
53662 (grub_realloc): Likewise.
53663 * kern/mm.c (get_header_from_pointer): Change the casts to
53664 `unsigned' into a cast to `grub_size_t'.
53666 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53667 point to `currnode' when `currnode' is changed.
53669 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53670 Schottelius <nico-linux@schottelius.org>.
53672 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53674 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53675 (note_path): Remove variable.
53676 (GRUB_IEEE1275_NOTE_NAME): New macro.
53677 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53678 (grub_ieee1275_note_hdr): New structure.
53679 (grub_ieee1275_note_desc): Likewise.
53680 (grub_ieee1275_note): Likewise.
53681 (load_note): Remove `dir' argument. All callers updated. Remove
53682 `note_img' and `path'. Do not load a file from `note_path'.
53683 Initialize a struct grub_ieee1275_note and write that to `out'.
53684 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53686 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53688 * util/misc.c (grub_util_read_image): Revert last change. It
53689 called `grub_util_read_at', which seeks from the beginning of the
53692 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53694 * TODO: Add note about endianness in grub-mkimage.
53695 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53697 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53698 (grub_mkimage_SOURCES): New target.
53699 * include/grub/kernel.h (grub_start_addr): Remove variable.
53700 (grub_end_addr): Likewise.
53701 (grub_total_module_size): Likewise.
53702 (grub_kernel_image_size): Likewise.
53703 (GRUB_MODULE_MAGIC): New constant.
53704 (grub_module_info): New structure.
53705 (grub_arch_modules_addr): New prototype.
53706 (grub_get_end_addr): Remove prototype.
53707 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53708 * include/grub/powerpc/ieee1275/kernel.h: New file.
53709 * include/grub/util/misc.h (grub_util_get_fp_size): New
53711 (grub_util_read_at): Likewise.
53712 (grub_util_write_image_at): Likewise.
53713 * kern/main.c (grub_get_end_addr): Remove function.
53714 (grub_load_modules): Call grub_arch_modules_addr instead of using
53715 grub_end_addr. Look for a grub_module_info struct in memory. Use
53716 the grub_module_info fields instead of calling grub_get_end_addr
53717 as loop conditions. Move grub_add_unused_region code here.
53718 (grub_add_unused_region): Remove function.
53719 * kern/i386/pc/init.c: Include grub/cache.h.
53720 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53721 one call to add_mem_region.
53722 (grub_arch_modules_addr): New function.
53723 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53724 (grub_total_module_size): Likewise.
53725 Include grub/machine/kernel.h.
53726 (grub_arch_modules_addr): New function.
53727 * util/grub-emu.c (grub_end_addr): Remove variable.
53728 (grub_total_module_size): Likewise.
53729 (grub_arch_modules_addr): New function.
53730 * util/misc.c: Include unistd.h.
53731 (grub_util_get_fp_size): New function.
53732 (grub_util_read_at): Likewise.
53733 (grub_util_write_image_at): Likewise.
53734 (grub_util_read_image): Call grub_util_read_at.
53735 (grub_util_write_image): Call grub_util_write_image_at.
53736 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53737 additional memory in kernel_img for a struct grub_module_info.
53738 Fill in that grub_module_info.
53739 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53741 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53743 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53745 * include/grub/powerpc/ieee1275/ieee1275.h
53746 (grub_ieee1275_milliseconds): New prototype.
53747 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53749 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53750 grub_ieee1275_milliseconds.
53752 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53754 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53756 (find_options): New function.
53757 (cmain): Call find_options.
53758 * include/grub/powerpc/ieee1275/ieee1275.h
53759 (grub_ieee1275_realmode): New extern variable.
53760 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53761 grub_map if grub_ieee1275_realmode is false.
53763 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53765 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53766 lines are inserted and make it work like readline. Reported by
53767 Vincent Pelletier <subdino2004@yahoo.fr>.
53769 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53771 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53773 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53774 `kern/powerpc/cache.S'.
53776 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53778 * genmk.rb: Handle the `Program' class in the main loop. Written
53779 by Johan Rydberg <jrydberg@gnu.org>.
53780 (Program): New class.
53781 (programs): New variable.
53782 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53783 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53784 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53785 (help_arch): Function removed.
53786 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53787 `powerpc/libgcc.h' and `loader.h'.
53788 (pkgdata_PROGRAMS): New variable.
53789 (sbin_UTILITIES): Variable removed.
53790 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53791 (grubof_SOURCES): Variable re-defined so it only includes the
53792 core functionality.
53793 (grubof_CFLAGS): Remove `-DGRUBOF'.
53794 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53795 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53796 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53797 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53798 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53799 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53800 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53801 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53802 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53803 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53804 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53805 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53806 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53807 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53808 (pc_mod_CFLAGS): New variables.
53809 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53810 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53811 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53812 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53814 * include/grub/i386/pc/init.h (grub_os_area_addr)
53815 (rub_os_area_size): ... to here.
53816 * include/grub/powerpc/ieee1275/ieee1275.h
53817 (grub_ieee1275_entry_fn): Export symbol.
53818 * include/grub/powerpc/ieee1275/init.h: New file.
53819 * include/grub/powerpc/libgcc.h: Likewise.
53820 * include/grub/cache.h: Likewise.
53821 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53822 <hollis@penguinppc.org>.
53823 * kern/dl.c: Include <grub/cache.h>.
53824 (grub_dl_flush_cache): New function.
53825 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53827 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53828 (grub_console_init): Removed prototypes.
53829 (grub_machine_init): Don't initialize the modules anymore.
53830 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53832 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53833 Macro undef removed.
53834 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53835 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53836 relocation `R_PPC_REL32'. Return an error when the relocation is
53838 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53839 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53840 * util/misc.c (grub_arch_sync_caches): Likewise.
53842 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53844 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53845 `symlist.c', add `grubof_symlist.c'.
53846 (symlist.c): Variable removed.
53847 (grubof_HEADERS): Variable added.
53848 (grubof_symlist.c): New target.
53849 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53850 `kernel_img_HEADERS'.
53851 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53852 * kern/powerpc/dl.c: New file.
53853 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53855 (grub_arch_dl_relocate_symbols): Likewise.
53856 (grub_register_exported_symbols): Likewise.
53858 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53860 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53861 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53862 to fail instead. Reported by Vincent Pelletier
53863 <subdino2004@yahoo.fr>.
53865 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53866 it is not allocated. Reported by Vincent Pelletier
53867 <subdino2004@yahoo.fr>.
53869 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53870 output so the output looks better.
53872 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53874 Modulize the partition map support and add support for the amiga
53877 * commands/ls.c: Include <grub/partition.h> instead of
53878 <grub/machine/partition.h>.
53879 * kern/disk.c: Likewise.
53880 * kern/rescue.c: Likewise.
53881 * loader/i386/pc/chainloader.c: Likewise.
53882 * normal/cmdline.c: Likewise.
53883 * kern/powerpc/ieee1275/init.c: Likewise.
53884 (grub_machine_init): Call `grub_pc_partition_map_init',
53885 `grub_amiga_partition_map_init' and
53886 `grub_apple_partition_map_init'.
53887 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53888 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53889 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53890 `partition.h' and `pc_partition.h'.
53891 (grub_setup_SOURCES): Remove
53892 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53893 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53894 (grub_emu_SOURCES): Likewise.
53895 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53896 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53897 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53898 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53899 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53900 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53901 (grubof_SOURCES): Likewise.
53902 * disk/i386/pc/partition.c: File removed.
53903 * disk/powerpc/ieee1275/partition.c: Likewise.
53904 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53905 * include/grub/i386/pc/partition.h: Likewise.
53906 * kern/partition.c: New file.
53907 * partmap/amiga.c: Likewise.
53908 * partmap/apple.c: Likewise.
53909 * partmap/pc.c: Likewise.
53910 * include/grub/partition.h: Likewise..
53911 * include/grub/pc_partition.h: Likewise.
53912 * util/grub-emu.c: Include <grub/partition.h> instead of
53913 <grub/machine/partition.h>.
53914 (main): Call `grub_pc_partition_map_init',
53915 `grub_amiga_partition_map_init' and
53916 `grub_apple_partition_map_init' and deinitialize afterwards.
53917 * util/i386/pc/biosdisk.c: Include `#include
53918 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53919 `<grub/machine/partition.h>'.
53920 * util/i386/pc/grub-setup.c: Likewise.
53921 * util/i386/pc/biosdisk.c: Likewise.
53922 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53923 partition information in case of a PC partition.
53924 * util/i386/pc/grub-setup.c: Include `#include
53925 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53926 `<grub/machine/partition.h>'.
53927 (setup): Only access the PC specific partition information in case
53930 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53932 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53933 (grub_longjmp): Likewise.
53934 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53936 * normal/powerpc/setjmp.S: New file.
53937 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53938 `normal/powerpc/setjmp.S'.
53939 (grubof_CFLAGS): Add `-DGRUBOF'.
53940 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53941 [GRUB_UTIL && !GRUBOF].
53943 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53945 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53946 property named `name'. Correctly handle the error returned by
53947 `grub_ieee1275_finddevice' if a device can not be opened.
53949 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53951 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53952 `actual' for negativity.
53953 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53956 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53958 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53959 (PAGE_OFFSET): New macro.
53960 (CRTC_ADDR_PORT): Likewise.
53961 (CRTC_DATA_PORT): Likewise.
53962 (START_ADDR_HIGH_REGISTER): Likewise.
53963 (START_ADDR_LOW_REGISTER): Likewise.
53964 (GRAPHICS_ADDR_PORT): Likewise.
53965 (GRAPHICS_DATA_PORT): Likewise.
53966 (READ_MAP_REGISTER): Likewise.
53967 (INPUT_STATUS1_REGISTER): Likewise.
53968 (INPUT_STATUS1_VERTR_BIT): Likewise.
53969 (page): New variable.
53970 (wait_vretrace): New function.
53971 (set_read_map): Likewise.
53972 (set_start_address): Likewise.
53973 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53975 (check_vga_mem): Take the page into account.
53976 (write_char): Likewise.
53977 (write_cursor): Likewise.
53978 (scroll_up): Likewise. Copy the page to the page that is not
53979 shown and switch between both pages.
53980 (grub_vga_putchar): Fix off by one error.
53981 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53984 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53986 Add support for iso9660 (including rockridge).
53988 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53989 (iso9660_mod_SOURCES): New variable.
53990 (iso9660_mod_CFLAGS): Likewise.
53991 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53992 * include/grub/fs.h (grub_iso9660_init): New prototype.
53993 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53994 * fs/iso9660.c: New file.
53996 * include/grub/misc.h (grub_strncat): New prototype.
53997 * kern/misc.c (grub_strncat): New function.
53999 * fs/hfs.c (grub_hfs_mount): Translate the error
54000 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
54001 * fs/jfs.c (grub_jfs_mount): Likewise.
54002 * fs/ufs.c (grub_ufs_mount): Likewise.
54004 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
54006 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
54007 which initialized BAT registers.
54008 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
54009 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
54011 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
54012 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
54014 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
54015 (grub_mapclaim): Likewise.
54016 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
54017 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
54020 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
54022 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
54023 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
54024 -ffreestanding and -msoft-float.
54026 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
54028 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
54029 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
54030 set in grub_ieee1275_flags.
54032 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
54034 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
54036 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
54037 grub_console_init first.
54038 Change the memory range used for grub_ieee1275_claim and
54039 grub_mm_init_region.
54040 Print an error message if the claim fails.
54041 Include <grub/misc.h>.
54043 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
54045 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
54046 Call grub_children_iterate for device nodes of type `scsi',
54048 (grub_ofdisk_open): Remove manual device alias resolution.
54049 Fix memory leak when device cannot be opened.
54050 * include/grub/powerpc/ieee1275/ieee1275.h
54051 (grub_children_iterate): New prototype.
54052 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
54054 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54055 Return -1 if args.size was -1.
54057 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
54059 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
54060 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
54061 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
54062 Open Firmware's memory for it; claim memory from _start to _end.
54063 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
54064 (_end): New extern.
54065 (_start): Zero BSS from __bss_start to _end.
54066 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
54068 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
54070 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
54072 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
54073 -1 if args.base was -1.
54075 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
54077 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
54078 escape sequence instead of a literal ^L. Also call
54079 grub_ofconsole_gotoxy.
54081 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
54083 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
54084 void * arguments to grub_addr_t. All callers updated. Also make
54085 the `result' argument optional.
54086 (grub_ieee1275_release): change void * arguments to grub_addr_t.
54087 All callers updated.
54089 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
54091 * commands/ls.c (grub_ls_list_files): Use the string following the
54092 initial ')', if present, as the filesystem path.
54093 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
54095 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
54097 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
54099 Make the source code of the menu interface more readable.
54101 * normal/menu.c: Include grub/mm.h.
54102 (TERM_WIDTH): New macro.
54103 (TERM_HEIGHT): Likewise.
54104 (TERM_INFO_HEIGHT): Likewise.
54105 (TERM_MARGIN): Likewise.
54106 (TERM_SCROLL_WIDTH): Likewise.
54107 (TERM_TOP_BORDER_Y): Likewise.
54108 (TERM_LEFT_BORDER_X): Likewise.
54109 (TERM_BORDER_WIDTH): Likewise.
54110 (TERM_MESSAGE_HEIGHT): Likewise.
54111 (TERM_BORDER_HEIGHT): Likewise.
54112 (TERM_NUM_ENTRIES): Likewise.
54113 (TERM_FIRST_ENTRY_Y): Likewise.
54114 (TERM_ENTRY_WIDTH): Likewise.
54115 (TERM_CURSOR_X): Likewise.
54116 (draw_border): Use macros instead of magic numbers.
54117 (print_entry): Likewise.
54118 (print_entries): Likewise.
54119 (run_menu): Likewise. Also, handle the key 'e'.
54120 (run_menu_entry): Ignore empty command lines.
54121 (print_message): Added a new argument EDIT. If EDIT is true,
54122 print a different message.
54123 (init_page): Likewise.
54124 (edit_menu_entry): New function. Not implemented yet.
54126 2004-09-17 Marco Gerards <metgerards@student.han.nl>
54128 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
54129 can be loaded from normal mode.
54131 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
54133 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
54134 (multiboot_mod_CFLAGS): New variables.
54135 * loader/i386/pc/linux_normal.c: New file.
54136 * loader/i386/pc/multiboot_normal.c: Likewise.
54138 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
54139 attribute `unused'.
54141 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
54142 `fdiro' to read the mode information from instead of `diro'.
54144 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
54145 looking up a symlink.
54147 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
54149 * normal/command.c (grub_command_execute): Don't parse the
54150 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
54151 flags of the command.
54153 * normal/menu.c (grub_menu_run): Fix typo.
54155 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
54157 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
54159 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
54160 `y + 1' instead of `y - 1'.
54162 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
54164 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
54166 From Hollis Blanchard <hollis@penguinppc.org>:
54167 * kern/misc.c (memmove): New alias for grub_memmove.
54168 (memcmp): New alias for grub_memcmp.
54169 (memset): New alias for grub_memset.
54170 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54171 Change "int handle" to "grub_ieee1275_phandle_t handle".
54172 * include/grub/powerpc/ieee1275/ieee1275.h
54173 (grub_ieee1275_get_property): Likewise.
54175 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
54177 Added normal mode command `chainloader' as module chain.mod, which
54178 depends on normal.mod and _chain.mod.
54180 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
54181 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
54182 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
54184 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
54185 but arguments parsing moved to ...
54186 (grub_chainloader_cmd): ... here. New function.
54187 * include/grub/i386/pc/chainloader.h: New file.
54188 * loader/i386/pc/chainloader_normal.c: Likewise.
54190 2004-09-11 Marco Gerards <metgerards@student.han.nl>
54192 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54193 (grub_mkimage_LDFLAGS): Likewise.
54194 (grub_emu_SOURCES): Likewise.
54195 (kernel_img_HEADERS): Added fshelp.h.
54196 * fs/ext2.c: Include <grub/fshelp.h>.
54197 (FILETYPE_REG): New macro.
54198 (FILETYPE_INO_REG): Likewise.
54199 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54201 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
54203 (grub_fshelp_node): New struct.
54204 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54206 (grub_ext2_get_file_block): Removed function.
54207 (grub_ext2_read_block): New function.
54208 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54209 This function was written.
54210 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54211 (grub_ext2_find_file): Removed function.
54212 (grub_ext2_read_symlink): New function.
54213 (grub_ext2_iterate_dir): Likewise.
54214 (grub_ext2_open): Rewritten.
54215 (grub_ext2_dir): Rewritten.
54216 * include/grub/fshelp.h: New file.
54217 * fs/fshelp.c: Likewise.
54219 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54221 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54222 (print_message): Add a missing newline.
54223 (run_menu): Added timeout support.
54224 (run_menu_entry): New local function.
54225 (grub_menu_run): Added support for booting.
54227 * kern/loader.c (grub_loader_is_loaded): New function.
54229 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54230 (grub_get_rtc): Exported.
54232 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54233 (grub_get_rtc): Exported.
54235 * include/grub/normal.h (struct grub_command_list): Remove
54236 constant from the member `command'.
54238 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54240 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54242 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54244 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54246 Add support for the JFS filesystem.
54248 * fs/jfs.c: New file.
54249 * include/grub/fs.h (grub_jfs_init): New prototype.
54250 (grub_jfs_fini): New prototype.
54251 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54252 (grub_emu_SOURCES): Likewise.
54253 (pkgdata_MODULES): Add jfs.mod.
54254 (jfs_mod_SOURCES): New variable.
54255 (jfs_mod_CFLAGS): Likewise.
54256 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54257 (grubof_SOURCES): Likewise.
54258 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54260 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54261 endian to the host endian.
54262 (grub_fat_utf16_to_utf8): Move function from there...
54263 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54264 the endianness of the source string anymore.
54265 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54267 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54269 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54270 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54271 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54272 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54274 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54275 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54276 for `node_found' and `it_dir'.
54277 (grub_hfs_dir): Add prototype for `dir_hook'.
54279 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54280 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54281 and `indir32' to silence a gcc warning.
54283 * include/grub/fs.h (grub_hfs_init): New prototype.
54284 (grub_hfs_fini): Likewise.
54287 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54289 Each disk device has its own id now. This is useful to make use
54290 of multiple disk devices.
54292 * include/grub/disk.h (grub_disk_dev_id): New enum.
54293 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54294 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54296 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54297 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54299 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54300 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54302 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54303 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54305 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54306 "id" which is used by the cache manager.
54308 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54311 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54313 * fs/hfs.c: New file.
54314 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54315 (grub_emu_SOURCES): Likewise.
54316 (pkgdata_MODULES): Add hfs.mod.
54317 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54318 (grubof_SOURCES): Likewise.
54319 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54321 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54322 * kern/misc.c (grub_strncasecmp): Add function.
54324 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54326 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54329 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54330 (grub_ext2_dir): In case the directory entry type is unknown, read
54333 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54335 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54336 grub_load_linux instead of grub_rescue_cmd_linux as second
54337 argument of grub_rescue_register_command.
54339 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54341 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54343 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54345 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54346 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54347 `loader/powerpc/ieee1275/linux.c',
54348 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54349 * include/grub/powerpc/ieee1275/ieee1275.h
54350 (grub_ieee1275_release): New prototype.
54351 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54352 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54353 normal, boot, linux and linux_normal.
54354 * loader/powerpc/ieee1275/linux.c: New file.
54355 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54357 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54359 * normal/arg.c (grub_arg_parse): Correct error handling after
54360 reallocating the argumentlist (check if `argl' is not null instead
54361 of checking if `args' is not null).
54362 * kern/mm.c (grub_realloc): Return the same pointer when using the
54363 same region, instead of returning the header address.
54365 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54367 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54368 one block instead of two when looking for the initial partition.
54369 (grub_partition_probe): Initialize the local variable `p' with 0.
54370 Use base 10 for the grub_strtoul call.
54371 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54372 need for one local variable.
54373 (grub_strtoul): Don't add the new value to `num', instead of that
54376 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54378 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54379 (pxeboot_img_SOURCES): New variable.
54380 (pxeboot_img_ASFLAGS): Likewise.
54381 (pxeboot_img_LDFLAGS): Likewise.
54382 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54383 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54384 <lode_leroy@hotmail.com>.
54386 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54388 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54389 there was no input.
54391 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54393 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54394 the history buffer logic.
54396 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54398 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54399 (FILETYPE_INO_SYMLINK): New macros.
54400 (grub_ext2_find_file): Check if the node is a directory using the
54401 inode stat information instead of using the filetype in the
54402 dirent. Exclude the first character of an absolute symlink.
54403 (grub_ext2_dir): Mask out the filetype part of the mode member of
54406 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54408 Add support for UFS version 1 and 2. Add support for the minix
54409 filesystem version 1 and 2, both the variants with 14 and 30 long
54412 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54414 (grub_emu_SOURCES): Likewise.
54415 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54416 (ufs_mod_SOURCES): New variable.
54417 (ufs_mod_CFLAGS): Likewise.
54418 (minix_mod_SOURCES): Likewise.
54419 (minix_mod_CFLAGS): Likewise.
54420 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54422 (grubof_SOURCES): Likewise.
54423 * fs/ufs.c: New file.
54424 * fs/minix.c: New file.
54425 * include/grub/fs.h (grub_ufs_init): New prototype.
54426 (grub_ufs_fini): Likewise.
54427 (grub_minix_init): Likewise.
54428 (grub_minix_fini): Likewise.
54429 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54432 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54434 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54435 commands/ls.c, commands/terminal.c, commands/boot.c,
54436 commands/cmp.c and commands/cat.c.
54437 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54439 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54442 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54444 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54445 and grub_, respectively. Because the conversion is trivial and
54446 mechanical, I omit the details here. Please refer to the CVS
54447 if you need more information.
54449 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54451 * include/pupa: Renamed to ...
54452 * include/grub: ... this.
54453 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54454 * util/i386/pc/grub-mkimage.c: ... this.
54455 * util/i386/pc/pupa-setup.c: Renamed to ...
54456 * util/i386/pc/grub-setup.c: ... this.
54457 * util/pupa-emu.c: Renamed to ...
54458 * util/grub-emu.c: ... this.
54460 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54462 Add support for the newworld apple macintosh (PPC). This has been
54463 tested on the powerbook 2000 only. It only adds support for
54464 generic ieee1275 functions, console and disk support. This should
54465 be easy to port to other architectures with support for Open
54468 * configure.ac: Accept the powerpc as host_cpu. In the case of
54469 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54470 specific tests are only executed while building for the i386.
54471 Inverse test for crosscompile.
54472 * genmk.rb (Utility): Allow assembler files.
54473 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54474 * conf/powerpc-ieee1275.rmk: New file.
54475 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54476 * disk/powerpc/ieee1275/partition.c: Likewise.
54477 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54478 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54479 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54480 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54481 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54482 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54483 * include/pupa/powerpc/ieee1275/loader.h
54484 * include/pupa/powerpc/setjmp.h: Likewise.
54485 * include/pupa/powerpc/types.h: Likewise.
54486 * kern/powerpc/ieee1275/init.c: Likewise.
54487 * kern/powerpc/ieee1275/openfw.c: Likewise.
54488 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54490 These files were written by Johan Rydberg
54491 (jrydberg@night.trouble.net) and I only modified them slightly.
54493 * boot/powerpc/ieee1275/cmain.c: New file.
54494 * boot/powerpc/ieee1275/crt0.S: Likewise.
54495 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54496 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54498 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54500 * Makefile.in: Update copyright.
54501 * genmodsrc.sh: Likewise.
54502 * gensymlist.sh: Likewise.
54503 * term/i386/pc/vga.c: Indent correctly.
54505 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54506 bugreporting address.
54507 * util/i386/pc/pupa-setup.c (usage): Likewise,
54508 (main): Call pupa_ext2_init and pupa_ext2_fini.
54510 * fs/fat.c (log2): Renamed to ...
54511 (fat_log2): ... this.
54512 All callers changed.
54513 * kern/misc.c (memcpy): Alias to pupa_memmove.
54514 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54516 * util/console.c (pupa_ncurses_fini): Return 0.
54518 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54519 Move fail label here.
54520 [__GNU__]: Don't warn when using stat.
54521 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54522 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54523 long int. Use strtol instead of strtoul.
54525 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54527 * commands/boot.c: New file.
54528 * commands/cat.c: Likewise.
54529 * commands/cmp.c: Likewise.
54530 * commands/ls.c: Likewise.
54531 * commands/terminal.c: Likewise.
54532 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54533 (pupa_register_command): Changed interface to match the new
54535 (pupa_command_execute): Changed (almost rewritten) so it uses
54536 pupa_split_command. Added support for setting variables using the
54538 (rescue_command): Changed to work with the new argument parser.
54539 (terminal_command): Moved from here to commands/terminal.c.
54540 (set_command): New function.
54541 (unset_command): New function.
54542 (insmod_command): New function.
54543 (rmmod_command): New function.
54544 (lsmod_command): New function.
54545 (pupa_command_init): Don't initialize the command terminal
54546 anymore. Initialize the commands set, unset, insmod, rmmod and
54548 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54549 (kernel_img_HEADERS): Add arg.h and env.h.
54550 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54551 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54552 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54554 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54556 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54557 (boot_mod_SOURCES): New variable.
54558 (terminal_mod_SOURCES): Likewise.
54559 (ls_mod_SOURCES): Likewise.
54560 (cmp_mod_SOURCES): Likewise.
54561 (cat_mod_SOURCES): Likewise.
54563 * normal/arg.c: New file.
54564 * kern/env.c: Likewise.
54565 * include/pupa/arg.h: Likewise.
54566 * include/pupa/env.h: Likewise.
54567 * font/manager.c (font_command): Changed to match argument parsing
54569 (PUPA_MOD_INIT): Likewise.
54570 * hello/hello.c (pupa_cmd_hello): Likewise.
54571 (PUPA_MOD_INIT): Likewise.
54572 * include/pupa/disk.h: Include <pupa/device.h>.
54573 (pupa_print_partinfo): New prototype.
54574 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54575 (pupa_dl_get_prefix): Likewise.
54576 * include/pupa/misc.h: Include <pupa/err.h>.
54577 (pupa_isgraph): New prototype.
54578 (pupa_isdigit): Likewise.
54579 (pupa_split_cmdline): Likewise.
54580 * include/pupa/normal.h: Include <pupa/arg.h>.
54581 (pupa_command): Changed the prototype of the member `func' to
54582 match the argument parsing interface. Added member `options'.
54583 (pupa_register_command): Updated to match function.
54584 (pupa_arg_parse): New prototype.
54585 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54586 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54587 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54588 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54589 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54590 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54591 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54592 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54593 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54594 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54595 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54596 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54597 * kern/disk.c: Include <pupa/file.h>.
54598 (pupa_print_partinfo): New function.
54599 * kern/dl.c: Include <pupa/env.h>.
54600 (pupa_dl_dir): Variable removed.
54601 (pupa_dl_load): Use the environment variable `prefix' instead of
54602 the variable pupa_dl_dir.
54603 (pupa_dl_set_prefix): Function removed.
54604 (pupa_dl_get_prefix): Likewise.
54605 * kern/i386/pc/init.c: Include <pupa/env.h>.
54606 (pupa_machine_init): Use the environment variable `prefix' instead of
54607 using pupa_dl_set_prefix to set the prefix.
54608 * kern/main.c: Include <pupa/env.h>.
54609 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54610 using pupa_dl_get_prefix to get the prefix.
54611 * kern/misc.c: Include <pupa/env.h>.
54612 (pupa_isdigit): New function.
54613 (pupa_isgraph): Likewise.
54614 (pupa_ftoa): Likewise.
54615 (pupa_vsprintf): Added support for printing values of the type
54616 `double'. Make it possible to format variable output when using
54617 formatting like `%1.2%f'.
54618 (pupa_split_cmdline): New function.
54619 * kern/rescue.c: Include <pupa/env.h>.
54620 (next_word): Removed function.
54621 (pupa_rescue_cmd_prefix): Likewise.
54622 (pupa_rescue_cmd_set): New function.
54623 (pupa_rescue_cmd_unset): New function.
54624 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54625 split the command line instead of splitting it here. Added
54626 support for setting variables using the syntax `foo=bar'. Don't
54627 initialize the prefix command anymore. Initialized the set and
54629 * normal/cmdline.c: Include <pupa/env.h>.
54630 (pupa_tab_complete): Added prototypes for print_simple_completion,
54631 print_partition_completion, add_completion, iterate_commands,
54632 iterate_dev, iterate_part and iterate_dir. Moved code to print
54633 partition information from here to kern/disk.c.
54634 (pupa_cmdline_run): Don't check if the function exists anymore.
54635 * normal/main.c: Include <pupa/env.h>.
54636 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54637 instead of using pupa_dl_get_prefix to get the prefix.
54638 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54639 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54641 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54642 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54643 ((unused))' to silence a gcc warning.
54644 (pupa_vga_setcolor): Likewise.
54645 (debug_command): Changed to match argument parsing
54647 * util/pupa-emu.c: Include <pupa/env.h>.
54648 (options): Added 0's for unused fields to silence a gcc warning.
54650 (main): Use the environment variable `prefix' instead of using
54651 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54652 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54655 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54656 * util/misc.c: Include <malloc.h>.
54657 (pupa_malloc): Rewritten so errors are correctly reported.
54658 (pupa_realloc): Likewise.
54659 (pupa_memalign): Likewise.
54660 (pupa_mm_init_region): Declare unused variables with
54661 `__attribute__ ((unused))' to silence a gcc warning.
54662 * normal/i386/setjmp.S: Remove tab at the end of the file to
54663 silence a gcc warning.
54664 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54665 variables with `__attribute__ ((unused))' to silence a gcc
54667 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54668 local variable i unsigned to silence a gcc warning.
54670 * kern/term.c: Include <pupa/misc.h>.
54671 (pupa_more_lines): New variable.
54672 (pupa_more): Likewise.
54673 (pupa_putcode): When the pager is active pause at the end of every
54675 (pupa_set_more): New function.
54676 * include/pupa/term.h (pupa_set_more): New prototype.
54679 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54681 Now this project is GRUB 2 rather than PUPA. The location of
54682 the CVS repository was moved to GRUB's.
54684 * configure.ac: Use bug-grub as the reporting address.
54685 Use GRUB instead of PUPA.
54686 Change the version number to 1.90.
54688 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54690 * genkernsyms.sh: Updated copyright information.
54691 * genmk.rb: Likewise.
54692 * genmodsrc.sh: Likewise.
54693 * gensymlist.sh: Likewise.
54694 * boot/i386/pc/boot.S: Likewise.
54695 * boot/i386/pc/diskboot.S: Likewise.
54696 * disk/i386/pc/biosdisk.c: Likewise.
54697 * disk/i386/pc/partition.c: Likewise.
54698 * font/manager.c: Likewise.
54699 * fs/ext2.c: Likewise.
54700 * fs/fat.c: Likewise.
54701 * include/pupa/boot.h: Likewise.
54702 * include/pupa/device.h: Likewise.
54703 * include/pupa/disk.h: Likewise.
54704 * include/pupa/dl.h: Likewise.
54705 * include/pupa/elf.h: Likewise.
54706 * include/pupa/err.h: Likewise.
54707 * include/pupa/file.h: Likewise.
54708 * include/pupa/font.h: Likewise.
54709 * include/pupa/fs.h: Likewise.
54710 * include/pupa/kernel.h: Likewise.
54711 * include/pupa/loader.h: Likewise.
54712 * include/pupa/misc.h: Likewise.
54713 * include/pupa/mm.h: Likewise.
54714 * include/pupa/net.h: Likewise.
54715 * include/pupa/normal.h: Likewise.
54716 * include/pupa/rescue.h: Likewise.
54717 * include/pupa/setjmp.h: Likewise.
54718 * include/pupa/symbol.h: Likewise.
54719 * include/pupa/term.h: Likewise.
54720 * include/pupa/types.h: Likewise.
54721 * include/pupa/i386/setjmp.h: Likewise.
54722 * include/pupa/i386/types.h: Likewise.
54723 * include/pupa/i386/pc/biosdisk.h: Likewise.
54724 * include/pupa/i386/pc/boot.h: Likewise.
54725 * include/pupa/i386/pc/console.h: Likewise.
54726 * include/pupa/i386/pc/init.h: Likewise.
54727 * include/pupa/i386/pc/kernel.h: Likewise.
54728 * include/pupa/i386/pc/linux.h: Likewise.
54729 * include/pupa/i386/pc/loader.h: Likewise.
54730 * include/pupa/i386/pc/memory.h: Likewise.
54731 * include/pupa/i386/pc/multiboot.h: Likewise.
54732 * include/pupa/i386/pc/partition.h: Likewise.
54733 * include/pupa/i386/pc/time.h: Likewise.
54734 * include/pupa/i386/pc/vga.h: Likewise.
54735 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54736 * include/pupa/util/getroot.h: Likewise.
54737 * include/pupa/util/misc.h: Likewise.
54738 * include/pupa/util/resolve.h: Likewise.
54739 * kern/device.c: Likewise.
54740 * kern/disk.c: Likewise.
54741 * kern/dl.c: Likewise.
54742 * kern/err.c: Likewise.
54743 * kern/file.c: Likewise.
54744 * kern/fs.c: Likewise.
54745 * kern/loader.c: Likewise.
54746 * kern/main.c: Likewise.
54747 * kern/misc.c: Likewise.
54748 * kern/mm.c: Likewise.
54749 * kern/rescue.c: Likewise.
54750 * kern/term.c: Likewise.
54751 * kern/i386/dl.c: Likewise.
54752 * kern/i386/pc/init.c: Likewise.
54753 * kern/i386/pc/lzo1x.S: Likewise.
54754 * kern/i386/pc/startup.S: Likewise.
54755 * loader/i386/pc/chainloader.c: Likewise.
54756 * loader/i386/pc/linux.c: Likewise.
54757 * loader/i386/pc/multiboot.c: Likewise.
54758 * normal/cmdline.c: Likewise.
54759 * normal/command.c: Likewise.
54760 * normal/main.c: Likewise.
54761 * normal/menu.c: Likewise.
54762 * normal/i386/setjmp.S: Likewise.
54763 * term/i386/pc/console.c: Likewise.
54764 * term/i386/pc/vga.c: Likewise.
54765 * util/console.c: Likewise.
54766 * util/genmoddep.c: Likewise.
54767 * util/misc.c: Likewise.
54768 * util/pupa-emu.c: Likewise.
54769 * util/resolve.c: Likewise.
54770 * util/unifont2pff.rb: Likewise.
54771 * util/i386/pc/biosdisk.c: Likewise.
54772 * util/i386/pc/getroot.c: Likewise.
54773 * util/i386/pc/pupa-mkimage.c: Likewise.
54774 * util/i386/pc/pupa-setup.c: Likewise.
54776 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54778 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54779 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54780 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54781 reading and reset it after reading.
54782 (pupa_ext2_close): Return PUPA_ERR_NONE.
54784 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54786 (struct linux_kernel_header): Add kernel_version and
54788 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54789 pupa_file_read succeeds.
54790 (pupa_rescue_cmd_initrd): Implement.
54792 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54794 * fs/ext2.c (pupa_ext2_label): New function.
54795 (pupa_ext2_fs): Added label.
54796 * fs/fat.c (pupa_fat_label): New function.
54797 (pupa_fat_fs): Added label.
54798 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54800 * kern/misc.c (pupa_strndup): New function.
54801 * include/pupa/misc.h (pupa_strndup): New prototype.
54803 * include/pupa/normal.h: Include <pupa/err.h>.
54804 (pupa_set_history): New prototype.
54805 (pupa_iterate_commands): New prototype.
54806 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54807 <pupa/disk.h>, <pupa/file.h>.
54808 (hist_size): New variable.
54809 (hist_lines): Likewise.
54810 (hist_end): Likewise.
54811 (hist_used): Likewise.
54812 (pupa_set_history): New function.
54813 (pupa_history_get): Likewise.
54814 (pupa_history_add): Likewise.
54815 (pupa_history_replace): Likewise.
54816 (pupa_tab_complete): Likewise.
54817 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54818 completion shows partitionnames while completing partitions, this
54819 feature was suggested by Jeff Bailey.
54820 * normal/command.c (pupa_iterate_commands): New function.
54821 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54822 (pupa_normal_init): Initialize history buffer.
54823 (PUPA_MOD_INIT): Likewise.
54824 (pupa_normal_fini): Free the history buffer.
54825 (PUPA_MOD_FINI): Likewise.
54827 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54830 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54831 * configure.ac [i386]: Check for regparam bug.
54832 (NESTED_FUNC_ATTR) [! i386]: Defined.
54834 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54836 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54837 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54838 (pupa_emu_SOURCES): New variable.
54839 (pupa_emu_LDFLAGS): Likewise.
54840 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54841 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54842 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54843 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54844 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54845 (pupa_jmp_buf): New typedef.
54846 (pupa_setjmp) [PUPA_UTIL]: New macro.
54847 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54848 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54849 (pupa_refresh): New prototype.
54850 * include/pupa/util/getroot.h: New file.
54851 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54853 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54854 (pupa_rescue_cmd_cat): Likewise.
54855 (pupa_rescue_cmd_ls): Likewise.
54856 (pupa_rescue_cmd_testload): Likewise.
54857 (pupa_rescue_cmd_lsmod): Likewise.
54858 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54859 * normal/menu.c (run_menu): Likewise.
54860 * kern/term.c (pupa_cls): Likewise.
54861 (pupa_refresh): New function.
54862 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54863 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54864 * util/console.c: New file.
54866 * util/i386/pc/getroot.c: New file.
54867 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54868 (pupa_putchar): New function.
54869 (pupa_refresh): Likewise.
54870 (xgetcwd): Function moved to ...
54871 (strip_extra_slashes): Likewise.
54872 (get_prefix): Likewise.
54873 * util/i386/pc/getroot.c: ... here.
54874 (find_root_device): Function moved and renamed to...
54875 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54876 Changed all callers.
54877 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54879 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54880 Changed all callers.
54881 * util/misc.c (pupa_memalign): New function.
54882 (pupa_mm_init_region): Likewise.
54883 (pupa_register_exported_symbols): Likewise.
54884 (pupa_putchar): Function removed.
54885 * util/pupa-emu.c: New file.
54887 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54889 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54890 (_multiboot_mod_SOURCES): New variable.
54891 (_multiboot_mod_CFLAGS): Likewise.
54892 * loader/i386/pc/multiboot.c: New file.
54893 * include/pupa/i386/pc/multiboot.h: Likewise.
54894 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54895 (pupa_multiboot_real_boot): New function.
54896 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54897 (pupa_multiboot_real_boot): New prototype.
54898 (pupa_rescue_cmd_multiboot): Likewise
54899 (pupa_rescue_cmd_module): Likewise.
54901 * kern/loader.c (pupa_loader_set): Continue when
54902 pupa_loader_unload_func() fails.
54903 (pupa_loader_unset): New function.
54904 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54906 * kern/misc.c (pupa_stpcpy): New function.
54907 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54909 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54911 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54912 for available extensions.
54914 * include/pupa/i386/pc/time.h: New file.
54915 * kern/disk.c: Include <pupa/machine/time.h>.
54916 (PUPA_CACHE_TIMEOUT): New macro.
54917 (pupa_last_time): New variable.
54918 (pupa_disk_open): Flush the cache when there was a timeout.
54919 (pupa_disk_close): Reset the timer.
54920 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54922 * util/misc.c: Include <sys/times.h>
54923 (pupa_get_rtc): New function.
54925 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54927 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54929 (pupa_ext2_get_file_block): Use blocks member.
54931 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54932 first block. Return -1 instead of pupa_errno on error.
54934 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54936 * README: In the pupa-mkimage example use _chain instead of chain
54937 and ext2 instead of fat.
54938 * TODO: Replace ext2fs with jfs as an example. Add an item for
54939 adding journal playback for ext2fs.
54940 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54941 (pkgdata_MODULES): Added ext2.mod.
54942 (ext2_mod_SOURCES): New variable.
54943 (ext2_mod_CFLAGS): Likewise.
54944 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54945 * include/pupa/misc.h (pupa_strncpy): New prototype.
54946 (pupa_strcat): Likewise.
54947 (pupa_strncmp): Likewise.
54948 * kern/misc.c (pupa_strcat): Enable function.
54949 (pupa_strncpy): New function.
54950 (pupa_strncmp): Likewise.
54951 * fs/ext2.c: New file.
54953 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54954 when the read failed before retrying.
54955 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54956 (_FILE_OFFSET_BITS): Likewise.
54957 * configure.ac: Added AC_SYS_LARGEFILE.
54959 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54961 * genmk.rb (PModule#rule): Make sure to get only symbol names
54962 from the output of nm.
54963 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54965 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54967 I forgot to check in these changes for a long time. This adds
54968 incomplete support for VGA console, and this is still very
54969 buggy. Also, a lot of consideration is required for I18N,
54970 UNICODE, and VGA font issues. Therefore, assume that this is
54971 such that "better than nothing".
54973 * font/manager.c: New file.
54974 * include/pupa/font.h: Likewise.
54975 * include/pupa/i386/pc/vga.h: Likewise.
54976 * term/i386/pc/vga.c: Likewise.
54977 * util/unifont2pff.rb: Likewise.
54979 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54980 (pkgdata_MODULES): Added vga.mod and font.mod.
54981 (vga_mod_SOURCES): New variables.
54982 (vga_mod_CFLAGS): Likewise.
54983 (font_mod_SOURCES): Likewise.
54984 (font_mod_CFLAGS): Likewise.
54986 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54988 * include/pupa/term.h: Include pupa/err.h.
54989 (struct pupa_term): Added init and fini.
54990 Changed the argument of putchar to pupa_uint32_t.
54992 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54993 (pupa_console_real_putchar): New prototype.
54994 (pupa_console_putchar): Removed.
54995 (pupa_console_checkkey): Exported.
54996 (pupa_console_getkey): Likewise.
54998 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
55001 * kern/term.c (pupa_term_set_current): Rewritten.
55002 (pupa_putchar): Likewise.
55003 (pupa_putcode): New function.
55005 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
55006 (pupa_console_real_putchar): ... this.
55007 (pupa_vga_set_mode): New function.
55008 (pupa_vga_get_font): Likewise.
55010 * normal/command.c: Include pupa/term.h.
55011 (terminal_command): New function.
55012 (pupa_command_init): Register the command "terminal".
55014 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
55015 (DISP_UP): Likewise.
55016 (DISP_RIGHT): Likewise.
55017 (DISP_DOWN): Likewise.
55018 (DISP_HLINE): Likewise.
55019 (DISP_VLINE): Likewise.
55020 (DISP_UL): Likewise.
55021 (DISP_UR): Likewise.
55022 (DISP_LL): Likewise.
55023 (DISP_LR): Likewise.
55025 * term/i386/pc/console.c (pupa_console_putchar): New function.
55027 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
55029 * util/resolve.c (pupa_util_resolve_dependencies): BUG
55030 FIX. Reverse the path_list.
55032 * include/pupa/normal.h: Export pupa_register_command and
55033 pupa_unregister_command.
55035 * hello/hello.c (pupa_cmd_hello): New module.
55036 * conf/i386-pc.rmk: Added hello.mod.
55038 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
55040 * kern/i386/pc/lzo1x.S: New file.
55042 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
55043 (compress_kernel): New variable.
55044 (generate_image): Heavily modified to support compressing a
55045 large part of the core image.
55047 * util/misc.c (pupa_util_read_image): Fix a file descriptor
55049 (pupa_util_load_image): New function.
55051 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
55052 (pupa_compressed_size): New variable.
55053 (codestart): Enable Gate A20 here.
55054 Decompress the compressed part of the core image.
55055 Rearrange the code to put functions and variables which are
55056 required for initialization in the non-compressed part.
55059 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
55062 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
55064 * include/pupa/i386/pc/kernel.h
55065 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
55066 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
55067 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55068 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55069 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
55071 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
55073 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
55074 (Utility#rule): Likewise.
55076 * configure.ac: Check if LZO is available.
55078 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
55080 * include/pupa/normal.h: New file.
55081 * include/pupa/setjmp.h: Likewise.
55082 * include/pupa/i386/setjmp.h: Likewise.
55083 * normal/cmdline.c: Likewise.
55084 * normal/command.c: Likewise.
55085 * normal/main.c: Likewise.
55086 * normal/menu.c: Likewise.
55087 * normal/i386/setjmp.S: Likewise.
55089 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
55090 (pupa_rescue_cmd_initrd): Likewise.
55092 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
55095 * kern/i386/pc/startup.S (translation_table): New variable.
55096 (translate_keycode): New function.
55097 (pupa_console_getkey): Call translate_keycode.
55099 * kern/rescue.c (attempt_normal_mode): New function.
55100 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
55101 it failed, print a message.
55103 * kern/mm.c (pupa_real_malloc): Print more information when a
55104 free magic is broken.
55105 (pupa_free): If the first free header is not free actually, set
55108 * kern/main.c (pupa_load_normal_mode): Just load the module
55110 (pupa_main): Don't print the message
55111 "Entering into rescue mode..." here.
55113 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
55115 (pupa_rescue_cmd_initrd): Likewise.
55116 (pupa_rescue_cmd_initrd): Likewise.
55118 * include/pupa/symbol.h (FUNCTION): Specify the type.
55119 (VARIABLE): Likewise.
55121 * include/pupa/err.h (pupa_err_t): Added
55122 PUPA_ERR_UNKNOWN_COMMAND.
55124 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
55125 (pupa_dl_get_prefix): Likewise.
55127 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
55128 Added _chain.mod and _linux.mod instead of chain.mod and
55130 (chain_mod_SOURCES): Renamed to ...
55131 (_chain_mod_SOURCES): ... this.
55132 (chain_mod_CFLAGS): Renamed to ...
55133 (_chain_mod_CFLAGS): ... this.
55134 (linux_mod_SOURCES): Renamed to ...
55135 (_linux_mod_SOURCES): ... this.
55136 (linux_mod_CFLAGS): Renamed to ...
55137 (_linux_mod_CFLAGS): ... this.
55138 (normal_mod_SOURCES): New variable.
55139 (normal_mod_CFLAGS): Likewise.
55140 (normal_mod_ASFLAGS): Likewise.
55142 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
55144 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
55147 * kern/dl.c (pupa_dl_ref): Refer depending modules
55149 (pupa_dl_unref): Unrefer depending modules recursively.
55150 Don't call pupa_dl_unload implicitly, because PUPA can crash if
55151 a module is unloaded before one depending on that module is
55153 (pupa_dl_unload): Unload depending modules explicitly,
55156 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
55158 * include/pupa/i386/pc/linux.h: New file.
55159 * loader/i386/pc/linux.c: Likewise.
55161 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
55163 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
55164 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
55165 of PUPA_CHAINLOADER_BOOT_SECTOR.
55167 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
55168 (pupa_linux_prot_size): New variable.
55169 (pupa_linux_tmp_addr): Likewise.
55170 (pupa_linux_real_addr): Likewise.
55171 (pupa_linux_boot_zimage): New function.
55172 (pupa_linux_boot_bzimage): Likewise.
55174 * kern/i386/pc/init.c (struct mem_region): New structure.
55175 (MAX_REGIONS): New macro.
55176 (mem_regions): New variable.
55177 (num_regions): Likewise.
55178 (pupa_os_area_addr): Likewise.
55179 (pupa_os_area_size): Likewise.
55180 (pupa_lower_mem): Likewise.
55181 (pupa_upper_mem): Likewise.
55182 (add_mem_region): New function.
55183 (compact_mem_regions): Likewise.
55184 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
55185 the size of the conventional memory and that of so-called upper
55186 memory (before the first memory hole).
55187 Instead of adding each found region to free memory, use
55188 add_mem_region and add them after removing overlaps.
55189 Also, add only 1/4 of the upper memory to free memory. The rest
55190 is used for loading OS images. Maybe this is ad hoc, but this
55191 makes it much easier to relocate OS images when booting.
55193 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55194 (pupa_enter_rescue_mode): Don't register initrd and module.
55196 * kern/mm.c: Include pupa/dl.h.
55198 * kern/main.c: Include pupa/file.h and pupa/device.h.
55200 * kern/loader.c (pupa_loader_load_module_func): Removed.
55201 (pupa_loader_load_module): Likewise.
55203 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55206 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55207 (pupa_linux_tmp_addr): Likewise.
55208 (pupa_linux_real_addr): Likewise.
55209 (pupa_linux_boot_zimage): Likewise.
55210 (pupa_linux_boot_bzimage): Likewise.
55212 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55213 (pupa_upper_mem): Likewise.
55214 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55215 module is too dangerous.
55217 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55218 (pupa_os_area_size): Likewise.
55219 (pupa_loader_set): Remove the first argument. Loader doesn't
55220 manage modules or initrd any longer.
55221 (pupa_loader_load_module): Removed.
55223 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55224 (linux_mod_SOURCES): New variable.
55225 (linux_mod_CFLAGS): Likewise.
55227 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55229 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55230 the length of a blocklist correctly.
55232 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55233 Use ioctl only if the OS file is a block device.
55234 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55235 not very useful for normal files.
55237 * kern/main.c (pupa_set_root_dev): New function.
55238 (pupa_load_normal_mode): Likewise.
55239 (pupa_main): Call those above.
55241 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55244 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55246 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55248 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55249 (setup): Configure the installed partition information and the
55252 * loader/i386/pc/chainloader.c (my_mod): New variable.
55253 (pupa_chainloader_unload): New function.
55254 (pupa_rescue_cmd_chainloader): Refer itself.
55255 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55257 * kern/i386/pc/startup.S (install_partition): Removed.
55258 (version_string): Likewise.
55259 (config_file): Likewise.
55260 (pupa_install_dos_part): New variable.
55261 (pupa_install_bsd_part): Likewise.
55262 (pupa_prefix): Likewise.
55263 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55265 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55267 (make_install_device): New function.
55268 (pupa_machine_init): Set the dl prefix.
55270 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55271 (buf): Renamed to ...
55272 (linebuf): ... this.
55273 (pupa_rescue_cmd_prefix): New function.
55274 (pupa_rescue_cmd_insmod): Likewise.
55275 (pupa_rescue_cmd_rmmod): Likewise.
55276 (pupa_rescue_cmd_lsmod): Likewise.
55277 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55280 * kern/mm.c (pupa_memalign): If failed even after invalidating
55281 disk caches, unload unneeded modules and retry.
55283 * kern/misc.c (pupa_memmove): New function.
55284 (pupa_memcpy): Removed.
55285 (pupa_strcpy): New function.
55286 (pupa_itoa): Made static.
55288 * kern/dl.c (pupa_dl_iterate): New function.
55289 (pupa_dl_ref): Likewise.
55290 (pupa_dl_unref): Likewise.
55291 (pupa_dl_unload): Return if succeeded or not.
55292 (pupa_dl_unload_unneeded): New function.
55293 (pupa_dl_unload_all): Likewise.
55294 (pupa_dl_init): Renamed to ...
55295 (pupa_dl_set_prefix): ... this.
55296 (pupa_dl_get_prefix): New function.
55298 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55299 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55300 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55301 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55302 (pupa_install_dos_part): Declared.
55303 (pupa_install_bsd_part): Likewise.
55304 (pupa_prefix): Likewise.
55305 (pupa_boot_drive): Likewise.
55307 * include/pupa/types.h: Fix a typo.
55309 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55311 (pupa_memmove): Declared.
55312 (pupa_strcpy): Likewise.
55314 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55315 pupa_mod_init takes one argument, its own module.
55316 (pupa_dl_unload_unneeded): Declared.
55317 (pupa_dl_unload_all): Likewise.
55318 (pupa_dl_ref): Likewise.
55319 (pupa_dl_unref): Likewise.
55320 (pupa_dl_iterate): Likewise.
55321 (pupa_dl_init): Renamed to ...
55322 (pupa_dl_set_prefix): ... this.
55323 (pupa_dl_get_prefix): Declared.
55325 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55326 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55328 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55329 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55331 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55332 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55334 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55336 * util/i386/pc/pupa-setup.c (setup): Define the internal
55337 function find_first_partition_start at the top level, because GCC
55338 3.0.x cannot compile internal functions in deeper scopes
55340 (find_root_device): Use lstat instead of stat.
55341 Don't follow symbolic links.
55342 Fix the path-constructing code.
55344 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55345 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55346 by a BLKGETSIZE ioctl first, because block devices don't fill
55347 the member st_mode of the structure stat on Linux.
55348 [__linux__] (linux_find_partition): Use a temporary buffer
55349 REAL_DEV for the working space. Copy it to DEV before returning.
55350 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55351 buffer cache consistent.
55352 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55353 strncmp. The previous value was merely wrong.
55354 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55356 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55357 FAT size is 12. The previous value was merely wrong.
55359 * kern/main.c (pupa_main): Don't split the starting message from
55362 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55363 LF, because BIOS goes crazy about character attributes in this
55366 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55368 * include/i386/pc/util/biosdisk.h: New file.
55369 * util/i386/pc/biosdisk.c: Likewise.
55370 * util/i386/pc/pupa-setup.c: Likewise.
55372 * Makefile.in (INCLUDE_DISTFILES): Added
55373 include/pupa/i386/pc/util/biosdisk.h.
55374 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55375 directory util/i386/pc.
55376 (install-local): Added a rule for sbin_UTILITIES.
55377 (uninstall): Likewise.
55379 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55381 * util/misc.c (xrealloc): New function.
55382 (pupa_malloc): Likewise.
55383 (pupa_free): Likewise.
55384 (pupa_realloc): Likewise.
55385 (pupa_stop): Likewise.
55386 (pupa_putchar): Likewise.
55388 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55390 * include/pupa/util/misc.h (xrealloc): Declared.
55392 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55394 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55395 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55397 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55398 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55400 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55401 way should be implemented.
55402 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55404 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55405 the size of NAME for safety.
55406 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55409 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55410 (pupa_setup_SOURCES): Likewise.
55412 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55414 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55416 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55417 bunch of pushl's from pusha, because this destroys the return
55420 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55422 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55423 This means that any missing prototypes could be fatal. Also, you
55424 must take care when writing assembly code. See the comments at
55425 the beginning of startup.S, for more details.
55427 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55428 compilation mechanism.
55429 (pupa_chainloader_real_boot): Likewise.
55430 (pupa_biosdisk_rw_int13_extensions): Likewise.
55431 (pupa_biosdisk_rw_standard): Likewise.
55432 (pupa_biosdisk_check_int13_extensions): Likewise.
55433 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55434 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55435 (pupa_get_memsize): Likewise.
55436 (pupa_get_mmap_entry): Likewise.
55437 (pupa_console_putchar): Likewise.
55438 (pupa_console_setcursor): Likewise.
55439 (pupa_getrtsecs): Use pushl instead of push.
55441 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55442 memory instead of the stack for a mmap entry, because some
55443 BIOSes may ignore the maximum size and overflow.
55445 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55447 * genmk.rb (PModule#rule): Compile automatically generated
55448 sources with module-specific CFLAGS as well as other sources.
55450 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55452 * configure.ac: Check ld.
55453 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55454 respectively, before checking endianness and sizes.
55456 * Makefile.in (LD): New variable.
55458 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55460 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55462 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55464 * Changelog: New file.