1 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3 * grub-core/kern/i386/tsc.c (calibrate_tsc): Ensure that
4 no division by 0 occurs.
6 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8 * include/grub/misc.h (grub_div_roundup): Remove as it's unused.
10 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12 * grub-core/term/gfxterm.c: Avoid division by zero.
14 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16 Avoid division by zero in serial.
18 * grub-core/term/serial.c (grub_cmd_serial): Ensure speed is not 0.
19 * grub-core/term/ns8250.c (serial_get_divisor): Exit if speed is 0.
21 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23 * grub-core/video/readers/jpeg.c: Avoid sivision by zero.
25 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27 * grub-core/disk/diskfilter.c: Validate volumes to avoid division
30 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
32 * include/grub/term.h: Avoid returining 0-sized terminal
33 as it may lead to division by zero.
35 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
37 * grub-core/fs/zfs.c: Avoid divisions by zero.
39 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
41 * grub-core/fs/btrfs.c: Avoid divisions by zero.
43 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
45 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Check that hash len is not 0.
47 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
49 * grub-core/osdep/linux/blocklist.c (grub_install_get_blocklist): Check
52 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
54 * grub-core/disk/i386/pc/biosdisk.c: Check disk size sanity.
56 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
58 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Check block size
61 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
63 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Do not
66 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
68 * grub-core/fs/hfs.c (grub_hfs_mount): Additional filesystem
71 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
73 * grub-core/fs/minix.c: Additional filesystem
76 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
78 * grub-core/fs/ext2.c (grub_ext2_mount): Additional
79 checks for superblock validity.
81 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
83 * grub-core/fs/ufs.c (grub_ufs_mount): Check
84 that sblock.ino_per_group is not 0.
86 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
88 Reject NILFS2 superblocks with over 1GiB blocks.
90 * grub-core/fs/nilfs2.c (grub_nilfs2_valid_sb): Check that
91 block size is <= 1GiB.
93 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
95 * grub-core/disk/ata.c (grub_ata_setaddress): Check that geometry
96 is sane when using CHS addressing.
98 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
100 * grub-core/disk/AFSplitter.c (AF_merge): Check that mdlen is not 0.
102 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
104 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Avoid
107 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
109 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_maxpacket): Avoid
110 potentially returning 0.
112 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
114 * grub-core/fs/minix.c (grub_minix_read_file): Avoid reading past
117 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
119 * grub-core/fs/fshelp.c (grub_fshelp_read_file): Don't attempt to read
120 past the end of file.
122 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
124 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Update len
125 synchronously with line.
127 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
129 Replace explicit sizeof divisions by ARRAY_SIZE.
131 2015-01-19 Kris Moore <kris@pcbsd.org>
133 * grub-core/disk/geli.c: Support GELI v6 and v7.
135 2014-12-09 Andrei Borzenkov <arvidjaar@gmail.com>
137 * grub-core/term/serial.c (grub_cmd_serial): Fix --rtscts
140 2014-12-07 David Kozub <zub.272@gmail.com>
142 * grub-core/kern/arm/misc.S: fix unaligned 64bit local variable
144 Fixes Savannah bug #43632.
146 2014-12-07 Peter Nelson <peterdn>
148 * grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse
151 2014-12-07 Andrei Borzenkov <arvidjaar@gmail.com>
153 * util/grub-mkconfig_lib.in (version_test_gt): Remove redundant
154 non-portable '-n' echo option.
155 * util/grub.d/10_kfreebsd.in: Change how list is built to avoid
156 non-portable 'echo -n.
157 * util/grub.d/10_linux.in: Likewise (closes 43668).
158 * util/grub.d/20_linux_xen.in: Likewise.
159 * util/grub.d/30_os-prober.in: Print spaces directly to avoid
160 non-portable 'echo -n'.
162 2014-12-07 Curtis Larsen <larsen@dixie.edu>
164 * grub-core/net/tcp.c (grub_net_recv_tcp_packet): Fix double
165 free when multiple empty segments were received (closes 42765).
167 2014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
169 * tests/util/grub-shell.in: Support --files also for netboot.
170 * tests/file_filter_test.in: New file with file filters tests.
171 * Makefile.util.def: Add file_filter_test.
172 * conf/Makefile.extra-dist: ... and here.
173 * tests/file_filter/file.gz: Test file for file_filter_test.
174 * tests/file_filter/file.gz.sig: Likewise.
175 * tests/file_filter/file.lzop: Likewise.
176 * tests/file_filter/file.lzop.sig: Likewise.
177 * tests/file_filter/file.xz: Likewise.
178 * tests/file_filter/file.xz.sig: Likewise.
179 * tests/file_filter/keys: Likewise.
180 * tests/file_filter/keys.pub: Likewise.
181 * tests/file_filter/test.cfg: Likewise.
182 * grub-core/commands/verify.c: Fix memory corruption doing
183 signature check for network files (closes 43601).
185 2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
187 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
188 memory leak (CID 73645, 73782).
189 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
192 2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
194 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
195 inline array (CID 73610).
197 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
199 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
200 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
201 (Coverity CID 73813, 73710)
202 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
203 and use after free (Coverity CID 73813, 73710, 73730)
204 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
206 * util/grub-install-common.c (grub_install_get_target): Check return
207 value of grub_util_fd_read (Coverity CID 73819).
208 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
209 to hd.magic (Coverity CID 73587, 73888, bug 43690).
211 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
213 * tests/util/grub-fs-tester.in: Consistently print output
214 of grub ls if test fails.
216 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
218 * grub-core/kern/efi/init.c: check value of *path before
221 2014-11-03 Michael Chang <mchang@suse.com>
223 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
224 of neighbor solicitation packet in grub_netbuff_pull.
226 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
228 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
229 avoid fatal warnings with older gcc (probably before 4.7).
230 * grub-core/loader/arm64/linux.c: Likewise.
231 * grub-core/loader/i386/linux.c: Likewise.
232 * grub-core/loader/i386/pc/linux.c: Likewise.
233 * grub-core/loader/ia64/efi/linux.c: Likewise.
234 * grub-core/loader/mips/linux.c: Likewise.
235 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
236 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
238 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
240 Fix in-tree --platform=none
242 * configure.ac: Only remove include/grub/cpu and
243 include/grub/machine in the --platform=none case, not all of
246 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
248 Add a new "none" platform that only builds utilities
250 * configure.ac: Add "none" platform. Default to it for unsupported
251 CPUs rather than stopping with a fatal error. Don't downgrade
252 x86_64-none to i386. Define COND_real_platform Automake conditional
253 if the platform is anything other than "none". Don't do any include
254 directory linking for "none".
255 * Makefile.am: Skip building grub-core and all bootcheck targets if
257 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
260 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
262 Use grub_cpu_to_XXX_compile_time for constants.
264 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
266 The AML parser implements only a small subset of possible AML
267 opcodes. On the Fujitsu Lifebook E744 this and another bug in
268 the parser (incorrect handling of TermArg data types) would lead
269 to the laptop not turning off (_S5 not found).
271 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
272 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
273 aren't always simply strings!); Add function to skip TermArgs
274 * include/grub/acpi.h: Add new opcodes
276 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
278 * grub-core/normal/main.c: Don't drop to rescue console in
279 case of password-protected prompt and no menu entries.
281 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
283 * grub-core/commands/keylayouts.c: Ignore unknown keys.
285 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
287 * grub-core/gmodule.pl.in: Accept newer binutils which output
288 empty column rather than 0x0.
290 2014-09-21 Michael Chang <mchang@suse.com>
292 * grub-core/osdep/unix/config.c: Remove extraneous comma.
294 2014-09-21 Peter Jones <pjones@redhat.com>
296 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
297 we don't free a random pointer from the stack.
298 * grub-core/loader/arm64/linux.c: Likewise.
299 * grub-core/loader/i386/linux.c: Likewise.
300 * grub-core/loader/i386/pc/linux.c: Likewise.
301 * grub-core/loader/ia64/efi/linux.c: Likewise.
302 * grub-core/loader/mips/linux.c: Likewise.
303 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
304 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
306 2014-09-15 Khem Raj <raj.khem@gmail.com>
308 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
309 _BSD_SOURCE to avoid warnings under glibc 2.20+.
311 2014-09-08 Michael Chang <mchang@suse.com>
313 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
314 check; comparing &data->extent against addresses in the region it
315 points to is unpredictable.
317 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
319 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
321 * configure.ac: Remove -m64 from checks for -mcmodel=large and
322 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
323 already in TARGET_CFLAGS at this point, and they produce incorrect
324 results when building for x32.
325 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
326 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
327 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
328 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
330 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
332 * configure.ac: Remove several unnecessary semicolons.
334 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
336 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
337 Initialise pend to pacify GCC.
339 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
341 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
344 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
346 * grub-core/term/at_keyboard.c: Retry probing keyboard if
347 scancode setup failed.
349 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
351 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
353 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
355 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
356 safety to avoid triggerring VirtualBox bug.
358 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
360 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
362 Fixes hang on virtualbox.
364 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
366 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
367 kernels whose paths contain regex metacharacters.
368 * util/grub.d/10_kfreebsd.in: Likewise.
369 * util/grub.d/10_linux.in: Likewise.
370 * util/grub.d/20_linux_xen.in: Likewise.
372 Reported by: Heimo Stranner.
374 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
376 * docs/grub-dev.texi (Finding your way around): The build system no
377 longer uses AutoGen directly.
379 2014-06-21 Роман Пехов <roman_pekhov>
381 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
383 2014-06-21 Glenn Washburn <development@efficientek.com>
385 * util/grub-install.c: Fix handling of --disk-module.
387 2014-06-21 Stephane Rochoy <sheda>
389 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
392 2014-06-21 Stephane Rochoy <sheda>
394 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
395 EFI system table physical address.
397 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
399 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
401 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
403 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
405 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
407 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
410 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
412 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
414 Reported by: Yves Blusseau <blusseau@zetam.org>.
416 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
418 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
419 GDT in conventional memory.
421 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
423 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
424 UUID. Other parts of grub-mkconfig tolerate these, they were
425 previously allowed here up to commit
426 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
427 practice when the system has active LVM snapshots.
428 Fixes Ubuntu bug #1287436.
430 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
432 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
433 "logical_volumes" block a little more accurately.
435 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
437 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
439 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
441 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
444 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
446 Replace few instances of memcmp/memcpy in the code that should be
447 grub_memcmp/grub_memcpy.
449 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
451 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
454 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
456 btrfs: fix get_root key comparison failures due to endianness
458 * grub-core/fs/btrfs.c (get_root): Convert
459 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
461 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
463 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
465 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
466 no longer to be forgiving of trailing spaces on grub-probe output
467 lines, which among other things means that util/grub.d/10_linux.in
468 no longer detects LVM. To fix this, make grub-probe's output
469 delimiting more consistent. As a bonus, this improves the coverage
472 Fixes Debian bug #735935.
474 * grub-core/disk/cryptodisk.c
475 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
476 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
478 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
480 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
481 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
482 probe_mods): Adjust for extra user-data arguments.
483 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
484 probe_abstraction): Use configured delimiter. Update callers.
486 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
488 * util/grub-probe,c (options): Make -0 work again (broken by
490 (main): Simplify logic.
492 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
494 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
496 2014-03-26 Fu Wei <fu.wei@linaro.org>
498 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
500 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
502 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
503 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
505 Suggested by: Markus Müller.
507 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
509 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
510 if E820 failed to return any regions.
512 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
514 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
515 tables for low memory calculations.
517 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
519 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
522 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
524 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
527 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
529 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
532 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
534 Add bootpath parser for open firmware.
536 It enables net boot even when there is no bootp/dhcp server.
538 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
539 and call it at grub_ieee1275_net_config_real.
540 * grub-core/kern/ieee1275/init.c: Add bootpath to
541 grub_ieee1275_net_config.
542 * include/grub/ieee1275/ieee1275.h: Likewise.
545 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
547 Add grub_env_set_net_property function.
549 * grub-core/net/bootp.c: Remove set_env_limn_ro.
550 * grub-core/net/net.c: Add grub_env_set_net_property.
551 * include/grub/net.h: Likewise.
553 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
555 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
557 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
559 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
561 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
563 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
564 7 seconds to recover if last poweroff was bad.
566 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
568 * grub-core/disk/ahci.c: Properly handle transactions with no
571 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
573 * grub-core/disk/ahci.c: Add safety cleanups.
575 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
577 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
578 slots to avoid pointing to uninited area.
580 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
582 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
583 enabling busmaster for the end.
585 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
587 * util/grub-mkfont.c: Downgrade warnings about unhandled features
590 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
592 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
594 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
596 * .gitignore: add missing files and .exe variants.
598 2014-01-26 Mike Gilbert <floppym@gentoo.org>
600 grub-install: support for partitioned partx loop devices.
602 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
603 /dev/loopX as being the parent of /dev/loopXpY.
605 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
607 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
608 Ensure that pointers are inited to NULL and that pointers are not
611 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
613 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
614 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
615 * include/grub/emu/misc.h: ... and here.
616 * include/grub/err.h: ... and here.
617 * util/import_gcry.py: ... and here (in files g10lib.h).
619 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
621 * util/grub-mkimage.c: Make prefix argument mandatory.
623 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
625 Fix several translatable strings.
627 Suggested by: D. Prévot.
629 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
631 * util/grub-install.c: List available targets.
633 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
635 * util/grub-install.c (write_to_disk): Add an info message.
637 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
639 * Makefile.am: Allow adding extra files to generated Windows ZIP
640 archive by setting GRUB_WINDOWS_EXTRA_DIST.
642 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
644 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
645 Show detected font path in summary.
647 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
649 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
651 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
652 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
653 * grub-core/net/tftp.c (tftp_open): Likewise.
654 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
656 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
658 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
661 In net/net.c there is a while (1) that only exits if there is a stop
662 condition and more then 10 packages or if there is no package received.
664 If GRUB is idle and enter in this loop, the only condition to leave is
665 if it doesn't have incoming packages. In a network with heavy traffic
668 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
670 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
671 EPERM when modifying kern.geom.debugflags. It is only a problem for
672 such things as installing GRUB to the MBR, in which case there'll be
673 an error later anyway, not for opening files during tests.
675 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
677 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
678 instead of MOD_FILES.
679 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
680 both with and without .exe.
681 * grub-core/genemuinitheader.sh: Same.
683 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
685 * util/grub-install.c: Fix a typo.
687 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
689 * grub-core/normal/main.c (read_config_file): Buffer config file.
692 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
694 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
695 symbolic link to directory. It fails in Msys shell on Windows 2003.
697 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
699 * Makefile.am (default_payload.elf): Add modules
700 multiboot cbmemc linux16 gzio echo help.
702 2014-01-18 Mike Gilbert <floppym@gentoo.org>
704 * Makefile.util.def: Link grub-ofpathname with zfs libs.
706 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
708 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
711 Reported by: Andrey Borzenkov.
713 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
715 * include/grub/misc.h: Move macros for compiler features to ...
716 * include/grub/compiler.h: ... new file.
717 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
718 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
719 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
720 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
721 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
722 * grub-core/video/capture.c: Include <grub/misc.h>.
723 * include/grub/command.h: Include <grub/misc.h>.
724 * include/grub/dl.h: Include <grub/misc.h>.
725 * include/grub/procfs.h: Include <grub/misc.h>.
727 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
729 * configure.ac: Add support for BUILD_EXEEXT and use it ...
730 * Makefile.am: ... here.
731 * Makefile.util.def: ... and here.
732 * grub-core/Makefile.am: ... and here.
734 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
736 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
737 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
739 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
741 * grub-core/term/terminfo.c: Recognize keys F1-F12.
743 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
745 * configure.ac: Add support for BUILD_LDFLAGS.
746 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
747 * grub-core/Makefile.am: ... and here.
748 * INSTALL: Mention BUILD_LDFLAGS.
750 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
752 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
754 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
756 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
759 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
761 * NEWS: Add few missing entries.
763 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
765 * util/grub.d/00_header.in (make_timeout): Use && rather than test
767 * util/grub.d/10_windows.in: Likewise.
768 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
770 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
773 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
775 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
776 redundant preprocessor conditional.
778 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
780 * Makefile.util.def (grub-macbless): Change mansection to 8.
782 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
784 * grub-core/loader/arm64/linux.c: correctly set device path end length.
786 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
788 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
789 arm64 to comply with EFI specification. Also use grubaa64.efi for
791 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
793 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
795 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
796 on MinGW-64 when compiling for 32 bits.
798 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
800 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
802 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
804 * NEWS: Add few missing entries. Correct existing ones.
806 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
808 Don't abort() on unavailable coreboot tables if not running on coreboot.
810 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
812 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
815 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
817 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
818 mention of it from 2.02.
820 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
822 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
824 As these functions are used on pre-ARMv6 CPUs as well we don't want
825 to make assembler assume that architecture is higher than default one.
827 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
829 * NEWS: First draft of 2.02 entry.
831 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
833 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
834 * docs/grub.texi (Getting the source code): Likewise.
836 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
838 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
841 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
843 * configure.ac: Set version to 2.02~beta2.
845 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
847 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
849 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
851 * util/grub-probe.c: Improve help message and simplify list handling.
853 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
855 Fix buffer overflow in grub_efi_print_device_path.
857 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
859 Show SATA device path.
861 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
863 Revert grub-file usage in grub-mkconfig.
865 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
867 Make newly-created files other than grub.cfg world-readable.
869 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
871 * util/grub.d/00_header.in: Improve compatibility with old config.
873 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
875 Make rijndael.c respect aliasing rules.
877 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
879 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
881 Make grub_util_device_is_mapped_stat available in grub-emu core.
883 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
885 Add -Qn to TARGET_CFLAGS if it's supported.
886 Fixes compilation on cygwin.
888 Reported by: Andrey Borzenkov.
889 Suggested by: Andrey Borzenkov.
891 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
893 Save TARGET_CC version in modinfo.sh.
895 Suggested by: Andrey Borzenkov.
897 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
899 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
900 follow the same algorithm to avoid method mismatch. Don't assume
901 DMRAID- UUID to mean full disk but instead check that mapping is linear.
903 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
905 Declare GRUB_EFI_VENDOR_APPLE_GUID.
907 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
909 Dump type and vendor specific data when printing device path.
911 2013-12-23 Colin Watson <cjwatson@debian.org>
913 Update some documentation to refer to Git rather than Bazaar.
915 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
917 * po/README: Likewise. Fix spelling mistake.
919 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
921 Don't distribute config.h.
923 * Makefile.am (platform_HEADERS): Move to ...
924 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
925 failure when building from a distributed tarball.
927 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
929 * configure.ac: Fix spelling.
930 * grub-core/commands/parttool.c: Fix grammar.
931 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
932 Embedding Partition".
934 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
936 ARM64 support for grub-mkrescue.
938 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
940 Install modinfo.sh to keep build information around.
942 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
944 * grub-core/modinfo.sh.in: Add build config information.
946 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
948 ARM64 grub-file and grub-mkconfig support.
950 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
952 Remove leftover options defines.
954 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
956 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
958 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
960 * grub-core/loader/arm64/linux.c: Add missing bracket.
962 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
964 Add arm64-efi recognition to grub-file.
966 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
968 Fix ia64-efi recognition in grub-file.
970 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
972 Recognize raspberry pi kernel in grub-file.
974 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
976 Enable cache on ARM U-Boot port.
978 Without it the port is reidiculously slow.
980 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
982 Fix ARM cache maintainance.
984 More code was converted from ASM to C for easier handling.
986 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
988 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
991 Suggested by: Leif Lindholm.
993 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
995 * util/grub-mkconfig.in: Fix Xen platform conditions.
997 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
999 * util/grub-mkrescue.c: Split single help message string in several
1000 strings used in previous shell version.
1002 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
1004 Add arm64 Linux loader.
1006 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
1008 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
1010 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1012 Add module loading and parsing boot time checkpoints.
1014 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1016 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
1019 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
1021 * util/grub-mkconfig.in: Skip non-executable files.
1023 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1025 Workaround buggy timer in raspberry pie by using our own timer
1028 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1030 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
1031 Increase to 16 MiB to allow loading the whole memdisk.
1033 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1035 Fix ARM Linux Loader on non-FDT platforms.
1037 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1039 * configure.ac: Choose link format based on host_os on emu.
1041 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1043 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
1045 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1047 * grub-core/kern/emu/main.c: Build fix for emu.
1049 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1051 Build fixes for argp.h with older gcc.
1053 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1055 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
1058 Suggested by: David Prévot.
1060 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1062 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
1064 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1066 Enable -Wformat=2 if it's supported.
1068 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1070 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
1071 -Wmissing-declarations if supported.
1073 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1075 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
1076 u32 as both HFS and HFS+ have 32-bit inodes.
1078 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1080 * include/grub/misc.h (grub_strtol): Fix overflow.
1082 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1084 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
1085 as return type in both conditionals.
1087 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1089 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
1090 to use uint8_t for color.
1092 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1094 * util/misc.c (grub_util_get_image_size): Check for overflow.
1096 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1098 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
1101 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1103 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
1104 for pointer difference.
1106 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1108 * util/import_gcry.py: Skip sample keys.
1110 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1112 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
1114 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1116 * configure.ac: Remove duplicate warning arguments.
1118 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1120 Add missing static qualifiers.
1122 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1124 Add missing includes.
1126 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1128 Inline printf templates when possible to enable format checking.
1130 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1132 * include/grub/crypto.h: Don't discard const attribute.
1134 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1136 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
1139 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1141 * grub-core/lib/crypto.c: Don't discard const attribute.
1143 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1145 * grub-core/lib/disk.c: Fix potential overflow.
1147 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1149 * grub-core/lib/arg.c: Don't discard const attribute.
1151 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1153 * grub-core/kern/dl.c: Don't discard const attribute.
1155 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1157 * grub-core/kern/disk.c: Fix potential overflow.
1159 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1161 * conf/Makefile.common: Don't include non-existing directory
1162 grub-core/lib/libgcrypt-grub/include.
1164 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1166 Clarify several translatable messages.
1168 2013-12-21 David Prévot <david@tilapin.org>
1170 Correct some translatable strings.
1172 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1174 * util/grub-mkrescue.c: Rephrase mkrescue description.
1176 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1177 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1179 Clarify several translatable messages.
1181 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1183 Be more verbose about some configure failures.
1185 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1187 Fix various build problems on GNU/Hurd.
1189 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1191 (xgetcwd): Likewise.
1192 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1193 [__GNU__]: Add prototype.
1194 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1195 long int using %ld rather than %d.
1197 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1199 * util/grub-install.c: Inform user about install platform.
1201 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1203 * configure.ac: Set version to 2.02~beta1.
1205 2013-12-18 Allen Pais <allen.pais@oracle.com>
1206 2013-12-18 Bob Picco <bob.picco@oracle.com>
1208 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1210 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1212 Make grub_zlib_decompress handle incomplete chunks.
1216 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1218 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1221 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1223 * grub-core/disk/usbms.c: Retry on unknown errors.
1224 Reuse the same tag on retries.
1226 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1228 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1230 Avoid confusing them with already completed transfers.
1232 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1236 Due to XEN bug it prevents Linux boot. Remove it at least, until
1237 workaround is found.
1239 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1241 * po/exclude.pot: Add 2 missing excludes.
1243 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1245 Add missing license section in macbless.mod and macho.mod.
1247 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1249 Allow compilation without thumb-interwork as long as no thumb is
1250 involved or only thumb2 is used.
1252 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1254 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1256 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1258 Add __attribute__ ((sysv_abi)) only if it's really needed.
1260 Some compilers don't support it.
1262 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1264 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1266 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1268 Remove -Wold-style-definition.
1270 Not very useful and interaction of it with regexp depends on GCC
1273 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1275 Make grub_util_get_windows_path_real static.
1277 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1279 * grub-core/commands/fileXX.c: Silence cast-align.
1280 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1282 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1284 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1285 rather than LL suffix.
1287 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1289 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1291 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1293 * grub-core/loader/arm/linux.c: Use common initrd functions.
1295 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1297 Decrease number of strings to translate.
1299 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1301 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1303 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1305 Mark strings for translation and add remaining ones to exclude list.
1307 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1309 * util/grub-file.c (main): Fix sizeof usage.
1311 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1313 Silence spurious warning.
1315 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1317 Remove check_nt_hiberfil as it's been superseeded by file command.
1319 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1321 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1323 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1325 Implement syslinux parser.
1327 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1329 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1331 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1333 Support cpuid --pae.
1335 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1337 Use AT keyboard on Yeeloong 3A.
1339 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1341 Add Yeeloong 3A reboot and halt.
1343 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1345 Add Radeon Yeeloong 3A support.
1347 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1349 Add bonito 3A support.
1351 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1353 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1355 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1357 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1359 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1361 * grub-core/loader/macho.c: Fix compilation on non-i386.
1363 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1365 Add missing format_arg attribute to check that printf with translated
1366 messages has proper arguments.
1368 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1370 Use grub_xasprintf to format translated error messages containing
1373 2013-12-17 Jon McCune <jonmccune@google.com>
1375 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1377 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1379 Unify message for unsupported relocation.
1381 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1383 Mark miscompile error for translation.
1385 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1387 Use %I64 and not %ll when using OS printf if compiling for windows.
1389 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1391 Update Mac code to match new register_efi prototype.
1393 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1395 Implement better integration with Mac firmware.
1397 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1399 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1402 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1404 Include serial module in default_payload.elf.
1406 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1408 Add explicit thumb interwork bx in asm files.
1410 Shouldn't matter for armv >= 5 but let's be safe.
1412 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1414 Implement Truecrypt ISO loader.
1416 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1418 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1420 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1422 Implement grub_file tool and use it to implement generating of config
1425 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1427 Change to v1 xen grants.
1429 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1431 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1433 GRUB relied on %ebx being preserved across hypercall which isn't true.
1435 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1437 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1439 GRUB relied on %rdi being preserved across hypercall which isn't true.
1441 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1443 Implement XEN VFB support.
1445 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1447 Remove grub_bios_interrupt on coreboot.
1449 It's not used currently and cannot be used safely currently.
1451 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1453 Update exclude.pot and mark few strings for translation.
1455 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1457 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1459 Reported by: Jon McCune
1461 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1463 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1464 Add verbose information which firmware directories were tried.
1466 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1468 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1469 function to optionally redirect all three standard descriptors.
1470 Redefine grub_util_exec, grub_util_exec_redirect and
1471 grub_util_exec_redirect_null to use it.
1472 * include/grub/emu/exec.h: Define it.
1473 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1474 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1475 Use grub_util_exec_redirect_all to redirect error to NULL.
1477 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1479 * grub-core/tests/sleep_test.c: Silence spurious warning.
1481 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1483 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1484 linker trying to "fixup" the code.
1486 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1488 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1490 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1492 Add support for converting PE+ to Elf64.
1494 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1496 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1498 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1500 Remove practice of assigning random const pointers to device id.
1502 This is not required as cache code already checks driver id as well.
1504 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1506 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1509 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1511 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1512 mingw or cygwin as API already matches.
1514 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1516 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1518 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1520 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1523 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1525 Handle X86_64_PC64 relocation.
1527 Those are generated by some cygwin compilers.
1529 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1531 Determine the need for mingw-related stubs at compile time rather than
1532 using not very significant $target_os.
1534 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1536 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1537 may not work with ELF.
1539 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1541 Use unix functions for temporary files and special files on cygwin.
1543 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1545 Define functions explicitly rather than using --defsym in tests
1546 whenever possible. Respect locality in remaining cases.
1548 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1550 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1552 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1554 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1555 unlikely errors when getting EFI variables and make exhaustive search
1556 for all BootNNNN variables to find matching one.
1558 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1560 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1562 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1564 New functional test for sleep function.
1566 This test allows to check sleep without qemu. Keep qemu version as
1567 well as functional test won't notice if all clocks are going too fast
1570 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1572 Add explicit sysv_abi on amd64 asm routines.
1574 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1576 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1579 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1581 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1584 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1586 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1589 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1591 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1593 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1595 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1598 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1600 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1602 In case of quick removal of loopback and adding another one it may
1603 get same ID, confusing the cache system.
1605 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1607 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1610 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1612 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1613 than converting to long.
1615 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1617 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1619 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1621 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1622 than almost useless pointer.
1624 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1626 Add gcc_struct to all packed structures when compiling with mingw.
1628 Just "packed" doesn't always pack the way we expect.
1630 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1632 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1634 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1636 * util/grub-pe2elf.c: Fix handling of .bss.
1638 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1640 Implement windows flavour of EFI install routines.
1642 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1644 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1646 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1648 Change grub_install_register_efi interface to pass GRUB device.
1650 This allows grub_install_register_efi to request partition info
1653 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1655 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1657 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1659 Do not use TCHAR string functions as they are not available on cygwin.
1661 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1663 Workaround windows bug when querying EFI system partition parameters.
1665 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1667 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1670 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1672 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1674 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1676 Make i386-* other than i386-pc compileable under cygwin.
1678 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1680 Fix definition of grub_efi_hard_drive_device_path. Take care that
1681 existing code would work even if by some reason bogus definition is
1682 used by EFI implementations.
1684 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1686 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1688 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1690 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1693 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1695 * util/config.c: Remove trailing newline from distributor in simple
1698 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1700 * include/grub/efi/api.h: Rename protocol and interface to avoid
1703 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1705 * .gitignore: add .exe variants. add missing files. remove few outdated
1708 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1710 * grub-core/osdep/exec.c: Use unix version on cygwin.
1712 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1714 Implement multiboot2 EFI BS specification.
1716 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1718 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1719 Crash happened only in some cases like a string starting at the
1720 half of the screen of same length.
1722 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1724 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1725 with EFI counterpart.
1727 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1729 Propagate the EFI commits to x86-efi specific parts.
1731 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1733 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1735 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1737 Introduce grub_efi_packed_guid and use it where alignment is not
1740 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1742 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1743 unaligned u16 rather than u8[2].
1745 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1747 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1748 for relocation range.
1750 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1752 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1753 non-function pcrel21b relocation. It happens with .text.unlikely
1756 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1758 * make MAX_USABLE_ADDRESS platform-specific
1759 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1761 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1763 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1765 2013-12-09 Jon McCune <jonmccune@google.com>
1767 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1768 in grub-install and grub-bios-setup for x86 BIOS targets.
1770 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1772 Add missing compile and link options for sparc64-emu.
1774 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1776 Implement sparc64 trampolines (needed for sparc64-emu).
1778 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1780 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1781 range of R_SPARC_HI22.
1782 Implement R_SPARC_LM22.
1784 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1786 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1787 Do not explicitly check for symbol table as it's already checked in
1788 platform-independent layer.
1790 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1792 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1793 on ia64 as __clear_cache is a dummy on ia64.
1795 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1797 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1798 Do not explicitly check for symbol table as it's already checked in
1799 platform-independent layer.
1801 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1803 * util/grub-mkconfig.in: Add missing newline to output.
1805 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1807 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1808 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1810 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1812 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1813 compilation with GCC <= 4.2.
1814 * grub-core/kern/emu/argp_common.c: Likewise.
1816 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1818 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1819 right platform rather than leaking to sparc64-emu.
1821 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1823 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1824 But ensure that the variables in question are indeed unsigned.
1826 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1828 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1830 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1832 Remove grub_memalign on emu.
1834 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1836 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1837 truncate incomplete lines but instead flushes them.
1839 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1841 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1842 and implement windows variant.
1844 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1846 Fix mips-emu compilation.
1848 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1850 * configure.ac: Check for freetype library usability.
1852 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1856 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1858 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1860 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1862 * docs/grub.texi (Environment): Update color_normal and color_highlight
1863 defaults (light-gray instead of white).
1865 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1867 * grub-core/normal/main.c (INIT): Set default color to light-gray
1868 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1869 and apparently BIOS defaults.
1871 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1873 Transform -C option to grub-mkstandalone to --core-compress available
1874 in all grub-install flavours.
1876 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1878 Merge GRUBFS and GRUB_FS variables.
1880 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1882 Revert commit 69ca97c820, it caused failures when using OS device name
1883 in grub-install. Instead just strip off parenthesis in grub-install
1884 if (hdX) was passed.
1886 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1888 * util/grub-install.c (push_partmap_module): Add helper to convert
1889 partmap names to module names and use it in probe_mods(). Fixes
1890 failure to find partmap modules in diskfilter case.
1892 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1894 * configure.ac: Make unifont mandatory on coreboot.
1896 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1898 * configure.ac: Skip unifont 6.3 pcf and bdf.
1900 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1902 * Makefile.am: Remove partial font files if generation failed.
1904 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1906 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1908 * include/grub/util/misc.h: Define it ...
1909 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1911 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1913 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1916 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1918 Don't add -mlong-calls when compiling with clang.
1920 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1922 * configure.ac: Fix a typo.
1924 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1926 Revamp relocation handling.
1928 Move more code to common dl.c. Add missing veneers for arm and arm64.
1929 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1931 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1933 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1935 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1937 * INSTALL: Raise minimum python version to 2.6.
1938 * gentpl.py: Use python3-style print function.
1940 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1942 * util/grub-install.c: Mention Boot* variable.
1944 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1946 * grub-core/osdep/linux/hostdisk.c
1947 (grub_util_find_partition_start_os): Initialise start to avoid
1948 spurious compiler warning.
1950 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1952 On Linux, read partition start offsets from sysfs if possible, to
1953 cope with block device drivers that don't implement HDIO_GETGEO.
1954 Fixes Ubuntu bug #1237519.
1956 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1958 (sysfs_partition_start): Likewise.
1959 (grub_util_find_partition_start_os): Try sysfs_partition_start
1962 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1964 * grub-core/kern/fdt.c: Update struct size when adding node.
1966 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1968 Handle unaligned .bss on sparc64.
1970 Current code improperly assumes that both __bss_start and _end are
1971 aligned to 8-bytes. Eliminating this assumption and explicitly align
1974 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1976 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1977 so it doesn't land in the middle of loaded image.
1979 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1981 * configure.ac: Move all warning options that may be absent in
1982 gcc >= 3.1 to optional.
1984 Note: while this allows to compile with older GCC, official requirements
1985 remain the same and no support for older GCC.
1987 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1989 Copying the themes directory in grub-shell isn't
1990 parallel-test-friendly and breaks on the second test when the source
1991 directory is read-only (as in "make distcheck"). Instead, add a
1992 hidden --themes-directory option to grub-mkrescue et al, and use it
1995 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1997 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1998 as it's no longer necessarry.
2000 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2002 * configure.ac: Allow compilation with older GCC for ARM.
2004 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2006 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
2007 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
2010 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2012 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
2014 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2016 Pass font config to config.h and not by TARGET_CFLAGS as adding
2017 arguments doesn't work if TARGET_CFLAGS is specified on command
2020 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2022 * configure.ac: Add -Wvla if compiler supports it.
2024 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2026 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
2027 Remove variable length arrays.
2028 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
2030 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2032 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
2034 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2036 * include/grub/types.h: Declare all byteswaps as inline functions
2037 except compile-time ones.
2039 Solves variable shadowing in constructions like
2040 cpu_to_le (le_to_cpu(x) + 1).
2042 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2044 * grub-core/kern/efi/efi.c: Remove variable length arrays.
2046 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2048 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
2051 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2053 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
2054 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
2056 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
2058 * grub-core/Makefile.core.def (setjmp): Distribute
2061 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
2063 Add a new timeout_style environment variable and a corresponding
2064 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
2065 controls hidden-timeout handling more simply than the previous
2066 arrangements, and pressing any hotkeys associated with menu entries
2067 during the hidden timeout will now boot the corresponding menu entry
2070 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
2071 generates a warning, and if it shows the menu it will do so as if
2072 the second timeout were not present. Other combinations are
2073 translated into reasonable equivalents.
2075 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
2077 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
2079 * util/config.c: Add missing pointer adjustment.
2080 Reported by: qwertial
2082 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
2084 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
2085 directly, not via `cpu' link, to fix libgrub.pp generation.
2087 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
2091 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
2093 * docs/grub.texi (sleep): Document exit codes.
2095 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2097 Ensure that -mno-unaligned-access or some equivalent option is used.
2099 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2101 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
2104 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2106 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
2108 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2110 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
2111 builds, since we don't have an EPS version of font_char_metrics.png.
2112 Add leading dot to image extension per the Texinfo documentation.
2114 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2116 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
2117 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
2118 * util/grub-gen-widthspec.c: Likewise.
2119 * util/grub-mkfont.c: Likewise.
2121 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
2123 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
2124 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
2125 failed to install on (hdX).
2126 * util/grub-setup.c (get_device_name): Remove, not needed after
2129 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2131 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
2133 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2135 * util/grub-fstest.c: Remove variable length arrays.
2137 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2139 * grub-core/osdep/linux/ofpath.c: Check return value of read.
2141 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2143 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2144 computing crc32 rather than handling with md fundtions directly.
2146 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2148 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2149 checking fwstart.img rather than md fundtions directly.
2151 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2153 * util/grub-mkrescue.c (main): Check that fread succeeded.
2155 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2157 * conf/Makefile.common: Remove -mexplicit-relocs and
2158 -DUSE_ASCII_FALLBACK on yeeloong.
2160 -DUSE_ASCII_FALLBACK is already added by font snippets.
2161 -mexplicit-relocs isn't needed is compiler/assemblera are
2162 configured properly.
2163 If they're not we shouldn't attempt to fix it by ourselves.
2164 Binary compare between before and after shows no difference.
2166 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2168 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2169 sources in dependencies directly.
2171 This was the only instance of "library" in core config. A bug was
2172 reported that -fno-stack-protector wasn't passed to it. Instead of
2173 figuring out why it failed just remove this construction used
2176 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2178 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2181 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2183 * docs/grub.texi (ls): Fix command description in case of a device name
2186 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2188 Eliminate variable length arrays in grub_vsnprintf_real.
2190 A bit tricky because this function has to continue to work without
2191 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2192 but make all stack references use 32-bit offset rather than 8-bit one.
2193 So split va_args preparsing to separate function and put the prealloc
2196 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2198 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2199 Fixes build for windows.
2201 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2203 * gentpl.py: Don't generate platform-dependent conditionals for
2204 platform-independent targets.
2206 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2208 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2209 references to mdadm from otherwise generic code.
2210 (grub_util_exec_pipe): Likewise.
2211 (grub_util_exec_pipe_stderr): Likewise.
2212 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2213 This function calls vgs, not mdadm; adjust variable names
2216 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2218 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2219 of Autogen. The Autogen definitions files remain intact as they
2220 offer a useful abstraction.
2222 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2224 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2225 into no-ops, and use it in programs that copy files but do not need
2226 to take special care to sync writes (grub-mknetdir, grub-rescue,
2229 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2231 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2232 than hardcoding /usr/local/bin/xorriso.
2234 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2236 Add PCI command activation to all PCI drivers as required for coreboot
2237 and maybe some other firmwares.
2239 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2241 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2242 and non-Apple variants of efiemu compile.
2244 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2246 * configure.ac: Add explicit check for linking format of
2247 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2248 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2249 hardcoding linking format.
2251 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2253 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2256 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2257 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2259 Add a --locale-directory option to grub-install and related tools.
2261 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2262 --locale-directory option.
2263 (enum grub_install_options): Add
2264 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2265 * util/grub-install-common.c (grub_install_help_filter): Handle
2266 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2267 (grub_install_parse): Likewise.
2268 (get_localedir): New function to check for a user-provided option
2269 before trying grub_util_get_localedir.
2270 (copy_locales): Use get_localedir rather than
2271 grub_util_get_localedir. Handle differing locale directory layouts.
2272 (grub_install_copy_files): Likewise.
2274 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2276 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2277 Don't rely on PATH_MAX.
2279 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2281 * grub-core/genmoddep.awk: Use more portable && rather than and.
2283 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2285 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2286 an object after data. While it doesn't seem right solution, it
2287 works well enough and OSX isn't main compilation platform.
2289 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2291 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2292 While it doesn't seem right solution, it works well enough and
2293 OSX isn't main compilation platform.
2295 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2297 * configure.ac: Add -static to LDFLAGS when using apple linker to
2298 prevent it from pulling in dynamic linker.
2300 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2302 Apple assembly doesn't handle symbol arithmetic well. So define an
2303 offset symbol in boot.S and use it.
2305 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2307 Apple assembly doesn't handle symbol arithmetic well. So instead
2308 of getting addres of kernel_sector + 4 define kernel_sector_high.
2309 It also makes code more readable.
2311 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2313 With Apple assembly in .macro environvemnt you have to use $$ instead
2314 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2315 to $$x on Apple and to $x on everything else.
2317 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2319 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2322 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2324 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2325 and non-Apple. This instruction is shorter and faster,
2326 so no reason not to use it on both.
2328 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2330 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2331 .text when compiling for Apple.
2333 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2335 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2337 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2339 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2340 %dx restore the probe worked on non-existant drive. Reorganize the
2341 code a little bit to free 2 bytes necessary for push/pop.
2343 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2345 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2346 Add missing cast to silence warning.
2348 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2350 * util/grub-install.c (update_nvram): Support --no-nvram flag
2353 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2355 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2357 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2359 * util/garbage-gen.c: Add missing include of sys/time.h.
2361 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2363 Don't add -mflush-func if it's not supported by compiler.
2365 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2367 Move common BIOS/coreboot memory map declarations to
2368 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2370 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2372 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2374 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2376 * INSTALL: Document why older clang versions aren't appropriate.
2378 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2380 * INSTALL: Document about clang for mips.
2382 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2384 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2387 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2389 Add *-xen to the list of grub-install-common platforms.
2391 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2393 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2396 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2398 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2400 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2402 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2403 with -mcmodel=large.
2405 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2407 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2408 range-checking for 32-bit quantities.
2410 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2412 * configure.ac: Compile with -fPIC when compiling with clang on
2415 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2417 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2418 when compiling with clang.
2420 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2422 clang emits calls to abort () under some unknown conditions.
2423 Export abort () when compiling with clang.
2425 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2427 * docs/grub-dev.texi: Document stack and heap sizes.
2429 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2431 * include/grub/i386/pc/memory.h: Decrease
2432 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2433 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2434 The binary doesn't change (checked). It's more to better reflect actual
2437 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2439 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2440 at compile time that enough of scratch size is available.
2442 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2444 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2445 Previously we misaligned stack by 8 in startup.S and compensated
2446 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2447 right behaviour is to align stack in startup.S and keep it aligned
2448 in callwrap.S. startup.S part was committed few commits before. This
2449 takes care of callwrap.S.
2450 Reported by: Gary Lin.
2452 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2454 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2455 .data and .bss. May happen if compiler and assembly use different
2458 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2460 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2463 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2465 Add support for a new magic symbol _gp_disp on mips to handle PIC
2468 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2470 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2472 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2474 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2475 when rest of GRUB is compiled for hisher stepping. Instead use
2476 .set mips3/.set mips1 around cache and sync opcodes.
2478 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2480 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2481 do essentially the same thing, do it in similar way.
2483 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2485 * util/grub-mkrescue.c (main): If a source directory is not
2486 specified, read platform-specific files from subdirectories of
2487 pkglibdir, not pkgdatadir.
2489 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2491 * grub-core/normal/progress.c: Remove unused file.
2493 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2495 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2498 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2500 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2503 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2505 * coreboot.cfg: Add missing file.
2507 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2509 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2511 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2513 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2514 selectively skipping systems.
2516 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2518 * Makefile.util.def (grub-mkimage): Add
2519 grub-core/osdep/aros/config.c to extra_dist.
2520 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2521 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2522 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2523 grub-core/gnulib-no-gets.diff.
2525 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2527 Add automated filesystem checking based on scripts I've used now for
2528 quite some time locally. Most of the test require root so they are
2529 skipped when run without necessarry privelegies.
2531 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2533 * util/grub-install.c (main): Adjust info messages to match
2534 installed paths of grub-bios-setup and grub-sparc64-setup.
2536 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2538 * util/grub-install-common.c (copy_locales): Consistently use
2539 grub_util_get_localedir () rather than LOCALEDIR.
2540 (grub_install_copy_files): Likewise.
2542 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2544 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2545 16-byte boundary, as required by the x86-64 ABI, before calling
2546 grub_main. In some cases, GCC emits code that assumes this
2547 alignment, which crashes if not aligned. The EFI firmware is also
2548 entitled to assume that stack alignment without checking.
2550 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2552 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2553 4k page boundaries as expected by firmware rather than 1k
2555 (grub_mmap_malign_and_register): Likewise.
2557 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2559 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2560 fragmentation 512M is enough.
2562 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2564 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2565 pointer to 32K. This is the size of cache element which is the most
2566 common allocation >1K. This way the pointer is always around blocks
2567 of 32K and so we keep performance while decreasing fragmentation.
2569 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2571 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2572 current memory when allocating large chunks. This significantly
2573 decreases memory fragmentation.
2575 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2577 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2579 * tests/lzocompress_test.in: Skip if lzop is not installed.
2580 * tests/xzcompress_test.in: Skip if xz is not installed.
2582 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2584 * util/grub-mkrescue.c (main): Fix typo.
2586 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2588 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2589 clock frequency to 200 MHz,
2591 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2593 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2595 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2597 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2598 Load config file from (cbfsdisk)/etc/grub.cfg.
2600 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2602 * util/grub-install-common.c (grub_install_copy_files): Fix module
2603 destination directory.
2605 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2607 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2608 files have not been built.
2610 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2612 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2613 Handle errors from mkstemp.
2614 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2616 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2618 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2619 on primary master on pseries.
2621 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2623 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2624 already loaded. This saves memory needed for tests,
2626 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2628 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2631 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2633 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2636 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2638 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2639 master since with some combinations of qemu and firmware only primary
2640 IDE channel is available.
2642 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2644 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2645 low-memory platforms where we don't have enough memory for them.
2646 * grub-core/tests/videotest_checksum.c: Likewise.
2648 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2650 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2651 already loaded. This saves memory needed for tests,
2653 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2655 Fix handling of install lists.
2657 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2659 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2661 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2663 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2664 the devices before accessing them.
2666 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2668 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2671 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2673 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2675 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2677 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2678 (grub_file_close): Free file->name.
2680 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2682 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2683 (grub_load_public_key): Likewise.
2684 (grub_verify_signature_real): Likewise.
2685 (grub_cmd_verify_signature): Likewise.
2687 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2689 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2692 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2694 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2695 (grub_longjmp): Restore r31.
2696 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2698 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2700 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2701 modules to be in line with make_image_abs.
2703 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2705 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2707 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2709 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2711 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2713 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2715 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2716 to leave some memory to firmware.
2718 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2720 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2721 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2722 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2725 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2727 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2728 now needs full arguments.
2730 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2732 * util/grub-mkrescue.c (main): Add trailing \n in
2733 .disk_label.contentDetails to be in line with previous shell script.
2735 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2737 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2739 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2741 * util/grub-install-common.c (grub_install_parse): Recognize
2742 --compress=none like shell script did.
2744 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2746 * include/grub/misc.h: Replace check for __sparc64__ with one for
2747 __sparc__ as __sparc64__ isn't actually defined.
2749 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2751 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2752 counterpart of fixing the naming of escc ports.
2754 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2756 * util/grub-install-common.c (platforms): Fix the order of entries and
2757 remove useless field val.
2759 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2761 * util/grub-install.c: Add new option --no-bootsector to skip
2762 installing of bootsector. Accept --grub-setup=/bin/true as
2763 backwards-compatible synonym.
2765 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2767 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2768 order of qsort arguments (number of elements vs. element size).
2770 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2772 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2773 the function of these files exceeds what can be sanely handled in shell
2774 in posix-comaptible way. Also writing it in C extends the functionality
2775 to non-UNIX-like OS and minimal environments.
2777 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2779 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2780 compiling to thumb2.
2781 * grub-core/kern/arm/cache_armv7.S: Likewise.
2782 * grub-core/lib/arm/setjmp.S: Likewise.
2784 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2786 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2787 in grub_uboot_syscall
2789 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2791 Decrease stack usage in lexer.
2793 We have only 92K of stack and using over 4K per frame is wasteful
2795 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2796 as macros so that compiler would remove useless structure on stack.
2797 Better solution would be to fix flex not to put this structure on
2798 the stack but flex is external program.
2800 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2802 Decrease stack usage in signature verification.
2804 We have only 92K of stack and using over 4K per frame is wasteful
2806 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2808 (grub_verify_signature_real): Likewise.
2810 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2812 Decrease stack usage in mdraid 0.9x.
2814 We have only 92K of stack and using over 4K per frame is wasteful
2816 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2819 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2821 Decrease stack usage in BtrFS.
2823 We have only 92K of stack and using over 4K per frame is wasteful
2825 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2828 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2830 Decrease stack usage in JFS.
2832 We have only 92K of stack and using over 4K per frame is wasteful
2834 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2835 stack. Note: this function is recursive.
2836 (grub_jfs_read_inode): Read only part we care about.
2838 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2840 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2843 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2845 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2847 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2849 * docs/grub.texi (Environment): Document cmdpath.
2851 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2853 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2854 Remove "unused" attribute from arguments, they are used.
2856 2013-11-15 Colin Watson <cjwatson@debian.org>
2858 * .gitignore: Only ignore grub-mk* at the top level.
2860 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2862 * util/grub-reboot.in (usage): Fix a typo.
2864 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2866 Replace libgcc version of ctz with our own.
2868 On upcoming arm64 port libgcc ctz* are not usable in standalone
2869 environment. Since we need ctz* for this case and implementation is
2870 in C we may as well use it on all concerned platforms.
2872 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2874 * configure.ac: Probe for linking format rather than guessing it based
2877 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2879 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2880 "1" prior to handoff.
2882 Reported by: M A Young.
2884 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2886 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2889 Reported by: M A Young.
2891 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2893 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2894 compilation on NetBSD.
2896 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2898 * acinclude.m4: Don't add -P on initial nm test.
2900 Note: even though this patch postdates Andrey's it bears 14 Nov as
2901 date due to timezone difference.
2903 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2905 * grub-core/Makefile.core.def (signature_test): Add missing
2908 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2910 * util/grub-install_header: Set localedir here, since this file is
2912 * util/grub-install.in: Remove setting of localedir.
2913 * util/grub-mkrescue.in: Likewise.
2915 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2917 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2919 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2921 * configure.ac: Move nm checks to the end.
2922 Call grub_PROG_NM_WORKS.
2923 * acinclude.m4: New check grub_PROG_NM_WORKS.
2924 Use $TARGET_CFLAGS -c when compiling test binary.
2926 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2928 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2931 2013-11-14 Matthew Garrett <mjg@redhat.com>
2933 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2934 cmdpath to firmware directory.
2936 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2938 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2939 at the start of second iteration.
2941 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2943 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2945 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2947 * Makefile.am (default_payload.elf): New target for easier coreboot
2950 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2952 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2953 clang (not necessarry with -no-integrated-as).
2954 * include/grub/symbol.h [__arm__]: Likewise.
2956 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2958 * configure.ac: Use -no-integrated-as on arm with clang.
2959 * INSTALL: Mention ARM compilation with clang.
2961 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2963 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2966 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2968 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2969 code for indirect block handling.
2971 Saves 185 bytes on compressed image.
2973 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2977 * Makefile.am: Remove build-grub-* in make clean.
2979 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2981 New files to gitignore.
2983 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2984 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2986 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2988 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2990 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2992 * .gitignore: fix rules for .dep* and add *.a post git migration
2994 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2996 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2999 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3001 * grub-core/kern/misc.c: Don't redirect divisions in the
3003 * include/grub/misc.h: Likewise.
3005 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3007 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
3008 systems that require checking the return value of write.
3010 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3012 * util/grub-install.in (efi_quiet): Fix inverted logic: make
3013 efibootmgr quiet when --debug is not used, rather than when it is.
3015 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3017 * gentpl.py (define_macro_for_platform_dependencies): Remove
3018 first (and thus unused) of two definitions for this function.
3019 (platform_dependencies): Likewise.
3021 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3023 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
3024 functions, we only need to check this for the target, not the host.
3025 * configure.ac (grub_apple_cc): Likewise.
3027 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3029 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
3030 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
3031 asm to stay in arm even if surrounding is thumb.
3033 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3035 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
3036 helper functions are needed for thumb.
3038 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3040 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
3041 level / 3 division explicitly unsigned. Saves few bytes.
3043 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3045 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
3047 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3049 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
3052 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3054 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
3055 grub_uboot_boot_data to asm part.
3057 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3059 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
3061 (grub_uboot_syscall): Save/restore r9 and align stack.
3063 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3065 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
3067 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3069 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
3070 occurencies with END.
3072 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3074 * util/grub-editenv.c (help_filter, argp): Document how to delete
3075 the whole environment block.
3076 Reported by Dan Jacobson. Fixes Debian bug #726265.
3078 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3080 * docs/grub.texi (Internationalisation, Supported kernels): Fix
3083 2013-11-13 Josh Triplett <josh@joshtriplett.org>
3085 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
3086 increment/decrement.
3088 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3090 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
3091 compiling with clang.
3093 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3095 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
3098 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3100 Redirect all divisions to grub_divmod64.
3102 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3104 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
3106 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3108 Add missing includes of loader.h.
3110 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3112 * configure.ac: Allow disabling themes.
3114 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
3116 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
3118 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3120 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
3121 until it becomes operational.
3123 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3125 * grub-core/Makefile.core.def (legacy_password_test): Disable
3126 on platforms where no legacycfg is compiled.
3127 * grub-core/tests/lib/functional_test.c: Tolerate failure to
3128 load legacy_password_test.
3130 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3132 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3134 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3136 * grub-core/efiemu/prepare.c: Remove variable length arrays.
3138 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3140 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
3141 strict-aliasing warning.
3142 (fsync): Silence cast warning.
3144 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3146 * grub-core/commands/verify.c: Remove variable length arrays.
3147 Load gcry_dsa/gcry_rsa automatically.
3149 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3151 * grub-core/tests/signature_test.c: New test.
3153 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3155 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
3158 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3160 * grub-core/tests/legacy_password_test.c (vectors): Make static.
3161 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
3163 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3165 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
3167 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3169 * grub-core/fs/proc.c: Allow \0 in proc files.
3171 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3173 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3175 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3177 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3179 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3181 * grub-core/fs/ext2.c: Remove variable length arrays.
3183 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3185 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3188 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3190 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3191 * grub-core/disk/cryptodisk.c: Likewise.
3192 * grub-core/disk/geli.c: Likewise.
3193 * grub-core/disk/luks.c: Likewise.
3195 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3197 * grub-core/tests/legacy_password_test.c: New test.
3198 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3200 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3202 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3204 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3206 * grub-core/tests/pbkdf2_test.c: New test.
3208 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3210 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3212 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3214 * grub-core/io/lzopio.c: Remove variable length arrays.
3216 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3218 * include/grub/crypto.h: Add maximums on hash size and cipher block
3221 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3223 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3225 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3227 * grub-core/tests/xnu_uuid_test.c: New test.
3229 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3231 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3234 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3236 * grub-core/commands/hashsum.c: Remove variable length arrays.
3238 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3240 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3242 * tests/grub_func_test.in: Increase memory allocation.
3244 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3246 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3247 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3250 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3252 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3253 (grub_util_get_fd_size_os): ...this.
3254 (grub_hostdisk_flush_initial_buffer): New empty function.
3256 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3258 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3259 without --defined-only.
3261 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3263 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3264 rip-relative addressing in prologue.
3266 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3268 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3269 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3271 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3273 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3274 Add missing semicolon.
3276 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3278 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3280 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3282 * configure.ac: Check for lzma.h for enabling liblzma and allow
3285 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3287 Add missing includes of loader.h.
3289 2013-11-11 Fam Zheng <famcool@gmail.com>
3291 * util/grub.d/30_os-prober.in: Add minix entry.
3293 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3295 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3296 right buffer for temporary load.
3298 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3300 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3302 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3304 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3307 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3309 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3311 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3313 (LzmaDec_InitDicAndState): Make static.
3315 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3317 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3319 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3321 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3323 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3325 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3327 * docs/grub-dev.texi: Replace bzr references with git ones.
3329 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3331 * docs/grub.texi (Simple configuration): Remove reference to
3332 grub-reboot from saved default entry description - grub-default
3333 does not use it anymore.
3335 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3337 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3340 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3342 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3344 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3346 Fix grub_machine_fini bitrot.
3348 Reported by: Glenn Washburn.
3350 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3352 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3354 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3356 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3358 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3361 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3363 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3364 Add -march=core2 when testing compile of efiemu64.
3366 Thanks Andrey Borzenkov for spotting this.
3368 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3370 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3371 XEN PV environment and load kernels.
3373 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3375 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3376 * grub-core/loader/multiboot_mbi2.c: Likewise.
3378 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3380 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3383 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3385 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3387 Tested by: Denis 'GNUtoo' Carikli.
3389 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3391 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3393 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3395 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3396 Use to get rounded angle rather than truncated.
3398 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3400 * grub-core/term/serial.c: Add option for enabling/disabling
3401 RTS/CTS flow control.
3403 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3405 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3408 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3410 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3411 Use grub_fatal rather than divide by zero.
3412 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3414 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3416 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3418 (grub_fixed_fsf_divide): Likewise.
3420 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3422 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3423 division by-zero and senseless negative divisions.
3425 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3427 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3428 division by-zero and senseless negative divisions.
3429 (circprog_set_property): Don't accept negative num_ticks.
3431 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3433 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3434 division by-zero and senseless negative divisions.
3436 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3438 * configure.ac: Use elf_*_fbsd on kfreebsd.
3440 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3442 * grub-core/tests/div_test.c: New test.
3444 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3446 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3447 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3448 * grub-core/gfxmenu/view.c: Likewise.
3449 * grub-core/video/fb/video_fb.c: Introduce new functions:
3450 grub_video_set_area_status, grub_video_get_area_status,
3451 grub_video_set_region, grub_video_get_region.
3452 * grub-core/video/bochs.c: Likewise.
3453 * grub-core/video/capture.c: Likewise.
3454 * grub-core/video/video.c: Likewise.
3455 * grub-core/video/cirrus.c: Likewise.
3456 * grub-core/video/efi_gop.c: Likewise.
3457 * grub-core/video/efi_uga.c: Likewise.
3458 * grub-core/video/emu/sdl.c: Likewise.
3459 * grub-core/video/radeon_fuloong2e.c: Likewise.
3460 * grub-core/video/sis315pro.c: Likewise.
3461 * grub-core/video/sm712.c: Likewise.
3462 * grub-core/video/i386/pc/vbe.c: Likewise.
3463 * grub-core/video/i386/pc/vga.c: Likewise.
3464 * grub-core/video/ieee1275.c: Likewise.
3465 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3466 * include/grub/video.h: Likewise.
3467 * include/grub/video_fb.h: Likewise.
3468 * include/grub/fbfill.h: Updated render_target structure.
3469 grub_video_rect_t viewport, region, area
3470 int area_offset_x, area_offset_y, area_enabled
3471 * include/grub/gui.h: New helper function
3472 grub_video_bounds_inside_region.
3473 * docs/grub-dev.texi: Added information about new functions.
3475 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3477 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3480 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3482 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3484 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3486 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3488 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3489 simple division on arm and ia64.
3491 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3493 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3496 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3498 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3500 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3502 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3503 prefix symbol, not @.
3505 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3507 * INSTALL: Add note about older gcc and clang.
3509 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3511 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3513 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3515 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3516 NULL pointer dereference.
3518 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3520 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3523 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3525 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3528 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3530 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3532 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3533 * grub-core/disk/geli.c (ascii2hex): Likewise.
3535 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3537 * configure.ac: Run linker tests without -Werror.
3538 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3539 Change all occurences of -static-libgcc resp -lgcc to
3540 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3542 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3544 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3546 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3548 Allow compiling with clang (not really supported though).
3550 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3552 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3553 Add -mrtd -mregparm=3 on i386 when not using clang.
3554 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3556 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3558 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3560 * grub-core/lib/reed_solomon.c: Likewise.
3561 * include/grub/i386/gdb.h: Likewise.
3562 * include/grub/i386/pc/int.h: Likewise.
3563 * include/grub/i386/pc/pxe.h: Likewise.
3564 * include/grub/ieee1275/ieee1275.h: Likewise.
3566 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3568 Import libgcrypt 1.5.3.
3570 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3572 * configure.ac: Don't add -Wcast-align on x86.
3574 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3576 * configure.ac: Add -freg-struct-return on all platforms that
3579 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3581 * acinclude.m4: Use -Werror on parameter tests.
3582 * configure.ac: Likewise.
3584 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3586 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3588 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3590 * configure.ac: Check that -malign-loops works rather than assuming that
3591 either -falign-loops or -malign-loops work.
3593 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3595 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3597 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3599 * configure.ac: Prevent cflags leaking to subsequent tests by always
3600 resetting cflags to target_cflags in target tests.
3602 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3604 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3607 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3609 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3611 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3613 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3615 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3617 * grub-core/normal/cmdline.c (grub_cmdline_get):
3618 Remove nested functions.
3620 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3622 * tests/test_sha512sum.in: Make it work on emu.
3624 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3626 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3628 (grub_bidi_line_logical_to_visual): Likewise.
3630 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3632 Remove vestiges of -Wunsafe-loop-optimisations.
3634 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3635 -Wno-unsafe-loop-optimisations.
3636 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3638 * grub-core/io/gzio.c: Likewise.
3639 * grub-core/script/parser.y: Likewise.
3640 * grub-core/script/yylex.l: Likewise.
3641 * util/grub-mkfont.c: Likewise.
3643 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3645 * util/grub-mkfont.c (process_cursive): Remove nested function.
3647 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3649 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3650 (grub_boot_time): Likewise.
3652 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3654 * include/grub/symbol.h (FUNCTION): Use @function rather than
3656 (VARIABLE): Likewise.
3658 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3660 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3662 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3664 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3665 (parse_dhcp_vendor): Likewise.
3667 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3669 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3671 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3673 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3674 Define after defining type and not before.
3676 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3678 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3680 (grub_gcm_decrypt): Likewise.
3681 (algo_decrypt): Likewise.
3682 (grub_zfs_decrypt_real): Transform error type.
3684 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3686 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3688 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3690 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3691 (grub_usbms_cbi_reset): Likewise.
3692 (grub_usbms_bo_reset): Likewise.
3693 (grub_usbms_reset): Likewise.
3694 (grub_usbms_attach): Likewise.
3695 (grub_usbms_transfer_cbi): Likewise.
3697 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3699 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3700 "checksum = checksum;".
3702 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3704 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3707 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3709 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3712 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3714 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3716 (grub_ehci_fini_hw): Likewise.
3717 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3719 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3721 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3722 return grub_usb_err_t for cosistency. All users updated.
3724 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3726 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3727 assigning to itself.
3729 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3730 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3732 Issue separate DNS queries for ipv4 and ipv6
3734 Adding multiple questions on a single DNS query is not supportted by
3735 most DNS servers. This patch issues two separate DNS queries
3736 sequentially for ipv4 and then for ipv6.
3738 Fixes: https://savannah.gnu.org/bugs/?39710
3740 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3741 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3742 * (grub_net_dns_lookup): Now using separated dns packages.
3743 * (grub_cmd_nslookup): Add error condition.
3744 * (grub_cmd_list_dns): Print DNS option.
3745 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3746 --prefer-ipv4, and --prefer-ipv6.
3747 * include/grub/net.h (grub_dns_option_t): New enum.
3748 * (grub_net_network_level_address): option added.
3750 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3752 * grub-core/video/fb/video_fb.c: Merge two blit functions
3755 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3757 * grub-core/term/terminfo.c: Add sequences for home and end.
3759 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3761 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3764 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3766 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3769 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3771 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3772 e-mail by Per Öberg.
3774 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3776 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3779 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3781 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3783 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3785 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3787 * docs/grub.texi: Document usage of menuentry id.
3789 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3791 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3793 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3795 * grub-core/commands/i386/nthibr.c: New command.
3797 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3799 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3801 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3803 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3806 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3808 Support GRUB_DISABLE_SUBMENU config.
3810 Inspired by patch from Prarit Bhargava.
3812 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3814 * docs/grub.texi: Mention RSA support.
3816 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3818 * grub-core/commands/verify.c: Add RSA support.
3820 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3822 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3823 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3824 device is known to be ATAPI.
3826 2013-11-03 Mike Frysinger <vapier>
3828 * configure.ac: Don't add target-prefix.
3830 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3832 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3835 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3837 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3838 if language is English.
3840 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3842 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3844 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3846 * configure.ac: Don't add -m32/-m64 on emu.
3850 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3851 broken linux headers.
3853 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3855 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3857 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3859 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3860 Reed-Solomon recovery if more than half of redundancy info is 0.
3862 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3864 * util/grub-mount.c: Handle symlinks to directories.
3866 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3868 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3869 find_file recursively for symlink.
3871 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3873 * tests/util/grub-shell.in: Copy themes.
3875 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3877 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3879 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3881 * configure.ac: Use 0x8000 for address instead of 8000.
3883 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3885 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3888 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3890 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3893 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3895 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3897 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3899 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3900 file_progress_read_hook.
3901 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3903 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3905 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3908 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3910 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3912 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3914 Rewrite blocklist functions in order to get progress when
3915 reading large extents and decrease amount of blocklist hook calls.
3917 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3919 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3922 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3924 Support --base-clock for serial command to handle weird cards with
3925 non-standard base clock.
3927 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3929 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3931 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3932 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3933 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3934 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3935 + strcpy rather than strncpy.
3937 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3939 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3940 (check_pool_label): Likewise. Fixes overflow.
3941 (nvlist_find_value): Fix comparison.
3943 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3945 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3946 more appropriate functions.
3948 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3950 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3953 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3955 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3957 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3959 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3962 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3964 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3966 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3968 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3969 (initialize_tables): reset tl and td to NULL after freeing.
3971 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3973 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3975 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3977 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3980 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3982 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3984 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3986 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3989 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3991 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3992 a page in protected space.
3994 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3996 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3997 allocate space for zero-sized modules.
3999 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4001 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
4003 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
4005 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
4007 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4009 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
4010 safeguards. Fixes a crash with i386/pc/console.c.
4012 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4014 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
4015 and grub_hostfs_init.
4017 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4019 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
4020 windows method on other platforms without good stat as well.
4022 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4024 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
4026 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4028 Make / in btrfs refer to real root, not the default volume.
4029 Modify mkrelpath to work even if device is mounted with subvolid option.
4031 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
4033 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
4035 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
4038 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4040 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
4043 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
4045 * docs/autoiso.cfg: New file.
4047 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4049 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
4050 COND_GRUB_PE2ELF conditions.
4052 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4054 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
4055 "vnd", "rd" and "fd" disks.
4057 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4059 Move grub_disk_write out of kernel into disk.mod.
4061 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4063 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
4066 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4068 * grub-core/kern/misc.c (grub_abort): Make static
4070 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4072 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
4073 transform invalid unicode codepoints.
4075 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4077 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4080 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4082 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
4084 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4086 Consolidate cpuid code.
4088 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4090 Move cpuid code to cpuid.h and TSC code to tsc.c.
4092 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4094 * util/grub.d/00_header.in: Don't use LANG if it's not set.
4096 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4098 * util/grub-mkconfig.in: Replace $0 with $self.
4099 * util/grub-reboot.in: Likewise.
4100 * util/grub-set-default.in: Likewise.
4102 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4104 * docs/osdetect.cfg: New file.
4106 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4108 * tests/util/grub-shell.in: Add new --debug option.
4110 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4112 * tests/test_unset.in: New test.
4114 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4116 * tests/test_sha512sum.in: New test.
4118 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4120 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
4121 * include/grub/misc.h: Remove strncat.
4122 * grub-core/lib/posix_wrap/string.h: Likewise.
4124 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4126 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
4127 Try to handle more than 0xFFFF packets.
4128 Reported by: Bernhard Übelacker <bernhardu>.
4129 He also spotted few overflows in first version of this patch.
4131 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4133 * tests/date_unit_test.c: New test.
4135 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4137 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
4138 of first three years after start of validity of unixtime.
4140 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4142 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
4143 division as the one making more sense.
4144 (update_screen): Likewise.
4145 (complete): Likewise.
4147 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4149 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
4151 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4153 Make char and string width grub_size_t rather than grub_ssize_t.
4155 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4157 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
4159 (grub_history_replace): Likewise.
4161 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4163 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
4166 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4168 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4171 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4173 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4174 Use unsigned divisions rather than signed variants.
4176 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4178 * grub-core/video/readers/png.c (grub_png_convert_image): Use
4179 unsigned arithmetics.
4182 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4184 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4186 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4188 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4189 rather than signed one.
4190 (recovery): Likewise.
4192 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4194 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4196 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4198 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4201 2013-10-25 Jon McCune <jonmccune@google.com>
4203 * docs/grub.texi: Cleanup security documentation around signatures.
4205 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4207 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4209 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4211 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4214 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4216 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4217 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4218 functions when compiling for kernel.
4220 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4222 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4223 unsigned long long when using %llu.
4225 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4227 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4228 terminal after updating progress.
4230 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4232 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4233 argument. We don't disable Gate A20 in this code.
4235 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4237 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4238 Conceptually based on change in branch "vbe-on-coreboot".
4240 2013-10-24 Robert Millan <rmh@gnu.org>
4242 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4243 numeric constants with their symbolic equivalent.
4244 Taken from branch "vbe-on-coreboot".
4246 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4248 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4250 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4252 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4253 divmod64 for offset division.
4255 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4257 Rename .bzrignore to .gitignore. Add "*.o" rule.
4259 * .bzrignore: Renamed to...
4260 * .gitignore: ...this.
4262 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4264 Add new progress module that displays the load progress of files.
4266 * grub-core/lib/progress.c: New file.
4267 * grub-core/Makefile.core.def (progress): New module.
4268 * grub-core/kern/file.c (grub_file_open): File name added.
4269 * (grub_file_read): Progress hook added.
4270 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4271 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4272 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4273 * include/grub/file.h (struct grub_file): Add progress module members.
4274 * include/grub/term.h (struct grub_term_output): Likewise.
4275 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4276 Terminal velocity added.
4277 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4278 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4279 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4280 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4281 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4282 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4283 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4284 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4285 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4286 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4287 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4288 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4290 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4292 Verify signatures of signatures unless --skip-sig is specified.
4294 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4296 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4299 Saves 70 bytes on compressed image.
4301 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4303 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4306 Saves 10 bytes on compressed image.
4308 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4310 * grub-core/kern/misc.c (grub_isprint): Move to ...
4311 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4313 Saves 20 bytes on compressed image due to remving exporting.
4315 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4317 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4319 Saves 5 bytes on compressed image.
4321 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4323 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4326 Saves 379 bytes on compressed image.
4328 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4330 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4332 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4334 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4336 Saves 40 bytes on compressed image.
4338 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4340 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4341 mask rather than 64-bit type.
4343 Saves 20 bytes on compressed image.
4345 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4347 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4348 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4350 Saves 273 bytes on compressed image.
4352 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4354 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4355 variable length arrays.
4357 Saves 50 bytes on compressed image.
4359 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4361 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4363 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4365 * grub-core/fs/ufs.c: Remove variable length arrays.
4367 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4369 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4371 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4373 * grub-core/fs/zfs.c: Remove variable length arrays.
4374 Reduces zfs.mod by 160 bytes (208 compressed).
4376 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4378 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4380 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4382 * grub-core/net/arp.c: Remove variable length arrays.
4383 * grub-core/net/bootp.c: Likewise.
4384 * grub-core/net/dns.c: Likewise.
4385 * grub-core/net/icmp6.c: Likewise.
4386 * grub-core/net/net.c: Likewise.
4388 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4390 * grub-core/fs/ntfs.c: Remove variable length arrays.
4391 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4394 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4396 * grub-core/fs/hfs.c: Remove variable length arrays.
4397 Reduces hfs.mod by 8 bytes (52 compressed).
4399 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4401 * grub-core/fs/udf.c: Remove variable length arrays.
4402 Increases udf.mod by 128 bytes (but decreases by 13 when
4405 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4407 * grub-core/fs/iso9660.c: Remove variable length arrays.
4408 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4411 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4413 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4414 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4417 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4419 * grub-core/fs/xfs.c: Remove variable length arrays.
4420 Reduces xfs.mod by 40 bytes (43 compressed).
4422 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4424 * grub-core/fs/fshelp.c: Remove variable length arrays.
4425 Reduces fshelp.mod by 116 bytes (23 compressed).
4427 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4429 * grub-core/normal/completion.c: Remove variable length arrays.
4430 * grub-core/normal/menu_entry.c: Likewise.
4432 Reduces normal.mod by 496 bytes.
4434 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4436 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4437 by 356 bytes (158 compressed).
4439 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4441 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4442 by 364 bytes (169 compressed).
4444 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4446 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4447 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4448 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4450 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4452 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4453 bitmasks to small structures of size chosen to fit in registers.
4455 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4457 * conf/Makefile.common: Use -freg-struct-return on i386. This
4458 decreases code size and improves performance.
4460 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4462 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4464 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4466 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4468 Simplify expressions to save around 256 bytes in kernel.img.
4469 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4471 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4473 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4474 Use GRUB_UTIL_FD_O_* rather than O_*.
4476 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4478 Add haiku-specific functions.
4480 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4482 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4484 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4486 Move stat () and device mode checking into OS-dependent files as
4487 long as performance doesn't suffer.
4489 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4491 Split make_system_path_relative_to_its_root into separate file
4492 relpath.c from getroot.c as it's common between unix and haiku
4493 but otherwise haiku doesn't use any functions from unix getroot.c.
4495 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4497 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4499 (grub_util_is_special_file): Likewise.
4501 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4503 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4504 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4506 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4508 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4509 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4511 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4513 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4514 (load_image): Likewise.
4516 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4518 * util/grub-render-label.c: Move backend part to ...
4519 * util/render-label.c: ... here.
4521 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4523 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4524 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4526 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4528 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4530 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4532 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4533 CD-ROM in case when it's declared as having subpartitions.
4535 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4537 Don't add -lm on haiku.
4539 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4541 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4544 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4546 * configure.ac: Use -melf_*_haiku as target on haiku.
4548 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4550 * Makefile.util.def: Add util/setup.c to extra_dist.
4552 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4554 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4555 unknown types through.
4557 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4559 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4560 (grub_util_check_char_device): Likewise.
4561 * include/grub/emu/getroot.h: Likewise.
4563 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4565 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4566 memset rather than inline static function.
4568 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4570 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4571 not doing embedded decompressor.
4573 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4575 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4577 * grub-core/kern/disk.c: Likewise.
4578 * grub-core/kern/misc.c: Likewise.
4579 * include/grub/parser.h: Likewise.
4580 * include/grub/script_sh.h: Likewise.
4581 * include/grub/zfs/zfs.h: Likewise.
4583 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4585 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4587 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4589 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4590 defined before trying to use it.
4592 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4594 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4597 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4599 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4600 Use __unused__ rather than __used__ on gcc < 3.2.
4602 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4604 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4606 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4608 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4610 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4612 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4614 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4615 * include/grub/emu/misc.h: Likewise.
4617 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4619 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4622 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4624 * grub-core/tests/checksums.h: Regenerated due to progress bar
4625 get_minimal_size changes.
4627 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4629 Added `tr' command support.
4631 * grub-core/commands/tr.c: New file.
4632 * grub-core/Makefile.core.def: Build rules for new module.
4634 * tests/grub_cmd_tr.in: New test.
4635 * Makefile.util.def: Build rules for new test.
4637 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4639 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4641 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4643 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4644 * docs/gurb.texi: Likewise.
4646 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4648 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4649 Pixmap highlighted section with east and west slices was displayed
4650 incorrectly due to negative width of the central slice.
4652 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4654 * docs/grub.texi: Graphical options information update.
4655 Removed outdated. Updated current. Inserted missed.
4657 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4659 * docs/grub.texi: Mention few new platform-specific commands.
4661 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4663 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4664 currently used so this doesn't really have any effect.
4665 Reported by: Douglas Ray <dougray>
4667 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4669 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4670 compilation but prevents gcc from displaying messages in non-Latin
4672 * conf/Makefile.common: Likewise.
4674 2013-10-16 Hiroyuki YAMAMORI
4676 Handle Japanese special keys.
4677 Reported by: Hiroyuki YAMAMORI.
4678 Codes supplied by: Hiroyuki YAMAMORI.
4680 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4682 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4684 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4686 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4687 * docs/grub.texi: Likewise.
4689 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4691 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4692 value in case of incomplete read.
4693 (grub_util_fd_write): Likewise.
4695 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4697 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4699 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4701 * util/grub-editenv.c (create_envblk_file): More from here ...
4702 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4704 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4706 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4707 canonicalize file name before doing the rest.
4709 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4711 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4714 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4716 Define grub_util_is_directory/regular/special_file and
4717 use OS-dependent versions rather than to rely on stat().
4719 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4721 * util/grub-mkimage.c: Move backend part to ...
4722 * util/mkimage.c: ... here.
4724 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4726 Allow compilation with mingw64 albeit with warnings due to lack of
4729 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4730 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4731 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4732 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4734 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4736 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4738 Remove leftover references to some of the system headers.
4740 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4742 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4745 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4747 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4750 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4752 Split out blocklist retrieving from setup.c to
4753 grub-core/osdep/blocklist.c and add windows implementation since
4754 generic version doesn't work on NTFS on Windows due to aggressive
4757 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4759 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4762 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4764 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4765 Cut tailing newline. Remove arbitrary limitation. Always use
4766 grub_util_tchar_to_utf8.
4768 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4770 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4771 * tests/printf_unit_test.c (printf_test): Add %% tests.
4772 Reported by: Paulo Flabiano Smorigo.
4774 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4776 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4779 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4781 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4782 use nvlist_lookup_string and don't use nvlist_print.
4784 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4786 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4787 closedir to handle filename charset translation.
4789 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4791 * include/grub/emu/hostdisk.h: Move file operations to
4792 * include/grub/emu/hostfile.h: ... here.
4794 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4796 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4799 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4801 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4803 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4805 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4806 and remove export.h.
4808 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4810 * grub-core/kern/emu/error.c: Removed.
4811 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4812 explicitly as it's already in libgnu.a.
4814 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4816 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4817 config-util.h include.
4819 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4821 Split emunet into platform-dependent and GRUB-binding parts. Keep
4822 platform-dependent part in kernel for easy access to OS functions.
4824 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4826 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4829 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4831 * grub-core/osdep/windows/emuconsole.c: New file.
4833 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4835 * conf/Makefile.extra-dist: Add osdep/*/init.c
4837 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4839 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4841 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4843 * util/grub-probe.c (probe): Separate different drives in hint-str
4844 by spaces and not newlines.
4845 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4847 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4849 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4852 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4854 Pass-through unknown E820 types. It required reorganisation of mmap
4857 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4859 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4861 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4863 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4866 2013-10-14 qwertial <qwertial>
4868 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4870 2013-10-14 Jon McCune <jonmccune@google.com>
4872 * docs/grub.texi: Document new signatures possibility.
4874 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4876 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4878 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4880 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4882 (grub_util_tchar_to_utf8): Likewise.
4884 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4886 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4887 * grub-core/kern/emu/main.c: Add missing include.
4888 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4889 Don't call grub_util_init_nls.
4890 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4893 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4895 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4898 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4900 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4902 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4904 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4906 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4908 Add a wrapper for fopen. On unix-like systems just pass-through. On
4909 windows use unicode version.
4911 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4913 Move set_program_name and init_nls to host_init. On windows
4914 fix in this fuction console and argument charset as well.
4916 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4918 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4919 GRUB_ENABLE_CRYPTODISK.
4921 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4922 GRUB_ENABLE_CRYPTODISK.
4923 * util/grub-mkconfig_lib.in: Likewise.
4925 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4927 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4929 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4931 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4932 error when enabling debug.
4934 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4936 * configure.ac: Use -melf_*_obsd on openbsd.
4938 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4940 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4942 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4944 * include/grub/misc.h: Use gnu_printf rather than printf as format
4945 template since our functions are independent of libc.
4947 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4949 * util/grub-setup.c (setup): Move copying of partition table as
4950 futher up as possible to avoid possible overwrite by floppy routines.
4952 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4954 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4956 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4958 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4959 * docs/grub.texi: Likewise.
4961 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4963 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4964 it's mostly unused. Move vestiges to the callers.
4966 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4968 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4969 version of salt and hash. Use grub_snprintf rather than snprintf.
4971 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4973 * docs/grub.texi: Fix problem with braces.
4975 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4977 * conf/Makefile.extra-dist: Fix extra-dist list.
4978 * grub-core/Makefile.core.def: Likewise.
4980 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4982 * docs/grub.texi: Document disk names used on Windows and AROS.
4984 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4986 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4988 * grub-core/osdep/aros/hostdisk.c: Likewise.
4990 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4992 Avoid including hostfile.h when not necessarry as it pulls
4993 in OS-specific headers which may redefine generic names
4996 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4998 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4999 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
5000 scrollbar_bottom_pad
5001 * docs/grub.texi: Likewise.
5003 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
5005 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
5007 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5009 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
5011 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5013 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
5015 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
5018 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5020 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
5023 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5025 Move OS-specific driver configuration to grub_util_fd_open. This
5026 moves OS-dependent parts from kern/emu/hostdisk.c to
5027 grub-core/osdep/*/hostdisk.c.
5029 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5031 * util/grub-mkimage.c (generate_image): Use size_t instead of
5033 * util/grub-mkimagexx.c (locate_sections): Likewise.
5034 (load_image): Likewise.
5036 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5038 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
5040 (grub_util_write_image): Likewise.
5042 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5044 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
5045 get random when no RNG is available.
5046 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
5048 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5050 * include/grub/util/lvm.h: Removed.
5052 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5054 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
5055 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
5057 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5059 * grub-core/osdep/windows/sleep.c: Add missing config.h.
5061 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5063 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
5065 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5067 * grub-core/net/drivers/emu/emunet.c: Move to ..
5068 * grub-core/osdep/linux/emunet.c: ..here.
5070 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5072 * util/ieee1275/ofpath.c: Move to ...
5073 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
5074 * grub-core/osdep/basic/ofpath.c: ..here.
5076 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5078 Move password-querying (util-version) routines to grub-core/osdep.
5080 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5082 Move sleep routines to grub-core/osdep.
5084 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5086 Move OS-dependent files to grub-core/osdep and document it.
5088 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5090 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
5091 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
5093 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5095 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
5097 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5099 * util/misc.c: Remove leftover inclusion of malloc.h.
5101 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5103 * include/grub/setjmp.h: Remove leftover GRUBOF.
5105 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5107 * util/raid.c: Fold into ...
5108 * util/getroot_linux.c: ... here. Make all functions static.
5110 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5112 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
5113 macros to GRUB ones.
5115 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5117 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
5118 occasional bug. If there are too many boot entries or too low
5119 scrollbar height then we need to use another formula to calculate
5120 the position and size of the scrollbar thumb.
5122 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5124 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
5126 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5128 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
5129 * docs/grub.texi: Likewise.
5131 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5133 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
5136 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5138 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
5139 minimal width calculations.
5141 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5143 * docs/grub.texi: Update note on colors on emu console.
5145 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5147 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
5148 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
5149 it's FS and not GRUB limitation.
5151 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5153 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
5155 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5157 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
5159 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5161 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
5162 kernels by version order.
5164 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5166 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5168 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5170 Add AROS hostdisk and getroot routines.
5172 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5174 Make cryptodisk and diskfilter probe data retrievable programmatically
5175 and not just printable.
5177 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5179 Split random retrieving code into separate files.
5181 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5183 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5186 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5188 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5190 * grub-core/tests/fake_input.c: Likewise.
5191 * grub-core/tests/cmdline_cat_test.c: Likewise.
5193 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5195 * grub-core/video/capture.c: Do not do finalization when .fini
5196 is called as there is explicit capture_end.
5198 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5200 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5201 changing windows to avoid crash.
5203 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5205 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5207 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5209 * po/exclude.pot: Add several strings to exclude.
5211 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5213 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5215 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5217 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5218 ./util/grub-gen-asciih.c to exclude list.
5220 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5222 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5223 and don't mark error strings for translation.
5225 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5227 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5228 properly in case of missing block size.
5230 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5232 * grub-core/lib/arm/setjmp.S: Add missing license section.
5234 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5236 * po/swiss.sed: Add replacement for key names and for term computer.
5238 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5240 * grub-core/gfxmenu/theme_loader.c: New global options for the
5241 theme background image handling. desktop-image-scale-method,
5242 desktop-image-h-align, desktop-image-v-align.
5243 * grub-core/gfxmenu/view.c: Likewise.
5244 * include/gfxmenu_view.h: Likewise.
5245 * include/bitmap_scale.h: Proportional scale functions introduced.
5246 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5247 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5248 cases of unexpected input variables for scale functions.
5249 * docs/grub.texi: Updated documentation for new options.
5251 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5253 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5255 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5257 * grub-core/tests/checksums.h: Corrected due to changes in
5258 bilinear interpolation function.
5260 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5262 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5263 to eliminate artefacts in bilinear interpolation.
5265 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5267 * grub-core/video/readers/tga.c: Support paletted tga.
5269 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5271 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5272 incorrect cbcr setting when in color mode.
5274 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5276 * grub-core/video/readers/png.c: Support paletted images and clean up
5279 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5281 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5282 usage of wrong table which resulted in mishandling of 4-byte
5285 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5287 * grub-core/term/terminfo.c: Add Home and End key sequences.
5289 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5291 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5292 Fix formula for computing total number of bytes.
5294 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5296 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5297 image processing, fix big-endian and support grayscale.
5299 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5301 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5302 Correctly will with maximum transparency when using index color.
5304 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5306 * grub-core/video/readers/png.c: Support grayscale
5308 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5310 * grub-core/video/readers/jpeg.c: Support grayscale.
5312 2013-09-26 Jon McCune <jonmccune@google.com>
5314 * grub-core/commands/loadenv.c: Support skipping signature check
5315 and variable names filtering.
5317 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5319 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5320 * grub-core/kern/emu/hostfs.c: Likewise.
5321 * util/getroot_unix.c: Likewise.
5323 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5325 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5326 Migrate all explicit defines to this new one.
5328 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5330 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5331 grub_util_fd_strerror when using grub_util_fd_*.
5332 (grub_util_fd_open_device): Likewise.
5333 (grub_util_biosdisk_read): Likewise.
5334 (grub_util_biosdisk_write): Likewise.
5335 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5336 (grub_util_fd_strerror): Likewise.
5337 (grub_util_fd_sync): Likewise.
5338 (grub_util_fd_close): Likewise.
5339 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5340 (grub_util_fd_close): Likewise.
5341 (grub_util_fd_strerror): Likewise.
5342 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5343 function proto rather than macro.
5344 (grub_util_fd_sync): Likewise.
5345 (grub_util_fd_open): Likewise.
5346 (grub_util_fd_strerror): New proto.
5348 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5350 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5351 platforms on which it doesn't work.
5353 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5355 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5356 stat immediately to where it's used.
5358 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5360 * util/getroot.c (grub_util_check_block_device): Move to ...
5361 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5362 * util/getroot.c (grub_util_check_char_device): Move to ...
5363 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5365 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5367 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5370 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5372 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5374 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5376 * docs/grub.texi (File name syntax): Document ZFS filenames
5377 (/volume@snapshot/...).
5379 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5381 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5382 Always return full path. Fixes a problem with mkrelpath.
5384 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5386 * util/grub-install.in: Add GPT PReP support.
5387 * util/grub-probe.c (probe): Support GPT partition type.
5388 (main): Support -t gpt_parttype.
5390 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5392 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5394 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5396 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5398 2013-09-23 Tim Hardeck <thardeck>
5400 * util/grub.d/10_hurd.in: Filter out character for the class.
5401 * util/grub.d/10_kfreebsd.in: Likewise.
5402 * util/grub.d/10_linux.in: Likewise.
5403 * util/grub.d/20_linux_xen.in: Likewise.
5405 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5407 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5410 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5412 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5415 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5417 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5418 doesn't use posix_wrap. Keep literal -fno-builtin however.
5420 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5422 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5424 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5427 * configure.ac: Do not enable -Wmissing-noreturn as its
5428 usefulness is limited and creates problems on some OS notably with
5429 code generated by bison.
5431 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5434 * configure.ac: Do not explicitly enable -Waddress as it's not
5435 supported by all gcc and when it is, it's already enabled by -Wall.
5437 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5439 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5440 desactivated use of EDID at all.
5442 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5445 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5446 video if no text is available.
5448 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5451 * configure.ac: Substitute TARGET_RANLIB.
5453 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5456 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5458 Based on patches from AROS.
5460 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5463 * grub-core/Makefile.am: Override STRIP and RANLIB.
5464 * configure.ac: compute TARGET_RANLIB.
5465 * INSTALL: Document TARGET_RANLIB
5467 Based on patches from AROS.
5469 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5471 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5472 that floppies are unpartitioned.
5474 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5476 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5477 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5479 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5481 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5482 less nice but more portable.
5483 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5485 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5487 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5489 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5491 (grub_cryptodisk_cheat_insert): Likewise.
5492 (grub_cryptodisk_close): Likewise.
5494 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5496 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5497 Use windows path for DEFAULT_DIRECTORY.
5499 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5501 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5502 difference was likely just gcc version, not anything mingw-related.
5504 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5506 Use Winapi on both cygwin and mingw32 to share more code between both.
5508 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5510 * util/grub-install.in: Add --grub-editenv option.
5511 * util/grub-install_header (grub_compress_file): Explicitly check for
5512 plain file to avoid cp error.
5514 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5516 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5517 names; fix LVM driver name (lvm, not lv).
5518 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5521 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5523 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5524 files rather than one file with loads of #if's.
5525 * util/getroot.c: Likewise.
5527 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5529 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5531 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5533 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5534 GNU/Hurd to the list of checked PRNG.
5536 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5538 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5540 2013-09-21 Ales Nesrsta <starous@volny.cz>
5542 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5544 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5546 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5547 * grub-core/disk/lvm.c: Add LVM UUIDs.
5548 * util/getroot.c: Use LVM UUIDs whenever possible.
5550 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5552 * docs/grub.texi (Networking commands): Add documentation for
5553 network related commands.
5555 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5557 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5558 to determine if device is handled by devmapper.
5559 (convert_system_partition_to_system_disk): Likewise.
5560 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5561 already done in grub_util_open_dm.
5563 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5565 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5566 Clean up stack manipulation (sync_caches_armv*)
5568 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5570 * util/lvm.c: Remove since unused. Remove remaining references.
5572 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5574 Handle the case of partitioned LVM properly.
5576 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5577 Stop on meeting LVM, mpath or DMRAID.
5578 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5579 (read_device_map): Likewise.
5580 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5581 device is full disk rather than erroring out on LVM and similar cases.
5583 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5585 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5587 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5589 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5591 Reported by: Leif Lindholm
5593 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5594 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5596 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5599 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5601 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5602 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5604 2013-09-18 Douglas Ray <dougray@cpan.org>
5606 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5609 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5611 * docs/grub.texi: Fix broken link.
5613 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5615 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5616 to break endless loop.
5618 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5620 * util/grub-fstest.c: Fix several printf formats.
5621 * util/grub-mkimage.c: Likewise.
5622 * util/grub-mkimagexx.c: Likewise.
5623 * util/grub-script-check.c: Likewise.
5625 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5627 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5630 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5632 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5634 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5636 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5637 removed in current versions cygwin_conv_*.
5639 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5641 * configure.ac: Disable efiemu runtime on cygwin.
5643 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5645 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5646 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5648 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5650 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5653 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5655 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5657 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5660 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5662 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5663 when on x86 and not cygwin.
5664 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5667 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5669 * configure.ac: Set CPP to build one when checkoing for freetype for
5672 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5674 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5675 [!GRUB_BUILD]: Remove has_argument.
5677 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5679 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5680 Replace with a dummy.
5682 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5684 * configure.ac: Don't change host_os from mingw to cygwin.
5686 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5688 * configure.ac: Change target_os from windows to cygwin.
5690 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5692 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5694 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5695 (build-grub-gen-asciih): Likewise.
5696 (build-grub-gen-widthspec): Likewise.
5697 * Makefile.util.def (grub-pe2elf): Remove.
5698 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5699 * configure.ac: Separate tests for build.
5700 Move ./build-grub-pe2elf to grub-core.
5702 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5703 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5705 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5707 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5708 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5709 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5711 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5713 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5714 mingw32 as well based on grub_util_get_disk_size.
5715 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5716 grub_util_get_fd_size.
5718 (fsync): Moved to ...
5719 * grub-core/kern/emu/misc.c (fsync): ... here.
5721 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5723 * include/grub/mm.h (grub_extend_alloc): Remove.
5724 * grub-core/loader/i386/pc/plan9.c: Use own version of
5725 grub_extend_alloc with appropriate types.
5727 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5729 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5731 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5733 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5735 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5737 Fix dependencies on cygwin.
5739 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5740 dependencies when used and defined.
5741 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5743 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5745 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5746 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5748 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5750 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5751 implementation available to cause compile-time rather than runtime
5754 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5756 * util/grub-fstest.c: Don't check for symlinks on windows.
5758 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5760 * INSTALL: Mention unavailability of man pages when cross-compiling.
5762 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5764 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5766 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5768 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5770 * INSTALL: Document cross-compilation.
5771 * acinclude.m4: Determine whether nm support -P and --defined-only.
5772 * configure.ac: Add TARGET_ to all variables pertaining to target
5773 that don't have it yet.
5774 * gentpl.py: Likewise.
5775 * grub-core/Makefile.am: Likewise.
5776 * grub-core/genmod.sh.in: Likewise.
5777 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5780 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5782 * configure.ac: Remove -Wempty-body. It's not essential and needs
5785 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5787 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5788 * util/getroot.c: Likewise.
5790 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5792 * grub-core/disk/ahci.c: Add needed explicit cast.
5793 * grub-core/lib/backtrace.c: Likewise.
5794 * grub-core/net/ip.c: Likewise.
5795 * grub-core/net/tcp.c: Likewise.
5796 * grub-core/net/udp.c: Likewise.
5798 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5800 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5802 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5804 * util/import_gcry.py: Add final newline in visibility.h.
5806 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5808 * conf/Makefile.common: Fix typo.
5810 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5812 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5814 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5816 * Makefile.am (widthspec.h): Fix typo.
5817 * util/grub-gen-widthspec.c: Likewise.
5819 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5821 Move ascii.h and widthspec.h generation to a separate build-time-only
5824 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5826 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5827 Always fill bootdisk info and improve check for NetBSD disklabel.
5829 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5831 * conf/Makefile.extra-dist: Add util/bin2h.c.
5832 Reported by: floppym.
5834 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5836 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5838 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5840 * configure.ac: Disable unifont and starfield if no freetype was found.
5842 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5844 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5845 on NetBSD and OpenBSD.
5847 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5849 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5851 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5853 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5854 reduced. Inheritant options are processed during the theme loading.
5856 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5858 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5860 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5862 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5864 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5866 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5869 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5871 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5872 remove-potcdate.sed.
5874 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5876 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5877 unused attribute from pull argument.
5879 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5881 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5884 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5886 * util/getroot.c (pull_lvm_by_command): add --separator option
5887 to vgs call to disable padding of output to 10 characters.
5889 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5891 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5893 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5896 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5898 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5901 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5903 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5904 full Canadian cross. Tested with build=x86_64, host=arm,
5905 target=ppc-ieee1275.
5907 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5909 * configure.ac: Error if no $BUILD_CC could be found.
5912 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5914 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5917 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5919 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5920 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5922 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5924 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5925 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5926 falling back to the partition device, otherwise a later call to this
5927 function may fail spuriously.
5928 Reported by Axel Beckert. Fixes Debian bug #708614.
5930 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5932 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5934 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5936 Prevent shadowing of stdlib's devname(3) on BSD.
5938 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5939 and devlast to diskname and disklast, respectively.
5941 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5943 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5945 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5947 * docs/grub.texi: Introduce terminal window position options:
5948 terminal-left: terminal window's left position
5949 terminal-top: terminal window's top position
5950 terminal-width: terminal window's width
5951 terminal-height: terminal window's height
5952 terminal-border: terminal window's border width
5953 * grub-core/gfxmenu/theme-loader.c: Likewise.
5954 * include/grub/gfxmenu_view.h: Likewise.
5955 * po/exlude.pot: Likewise.
5956 * grub-core/gfxmenu/view.c: Likewise.
5957 Also updated minimal window size.
5958 Also terminal_sanity_check function has been introduced.
5959 * grub-core/tests/checksums.h: Update (terminal window height
5960 is adjusted now for low resolution screen)
5962 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5964 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5967 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5969 * po/exclude.pot: Add few recent exceptions.
5971 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5973 * tests/grub_func_test.in: Add unicode.pf2.
5975 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5977 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5978 standard rather than noral color, in line with other terminals.
5980 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5982 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5985 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5987 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5989 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5991 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5992 inappropriate printf.
5994 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5996 * .bzrignore: Remove grub-core/lib/dtc-grub,
5997 grub-core/Makefile.libfdt.def
5998 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
6000 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
6002 * include/grub/video.h (grub_video_register): Keep double-linked as
6003 well as single-linked invariants.
6004 Reported by: qwertial.
6006 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
6008 * grub-core/commands/nativedisk.c (get_uuid): Handle
6009 GRUB_DISK_DEVICE_UBOOTDISK_ID.
6011 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
6013 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
6014 maximum of NW, N, NE heights instead of N's height and maximum of
6015 NW, W, SW widths instead of W's width. (So the box will be always
6018 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
6020 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
6021 Fix misuse of variable count.
6023 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
6024 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
6025 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
6027 New ports to arm-uboot and arm-efi.
6028 Mostly by Leif Lindholm with some additions from
6029 Francesco Lavra and cleanup by Vladimir Serbinenko.
6031 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
6033 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
6035 Reported by: Leon Drugi.
6037 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
6039 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
6040 Reported by: Paulo Flabiano Smorigo.
6042 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
6044 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
6046 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
6048 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
6050 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6052 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
6054 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6056 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
6058 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
6060 * grub-core/net/bootp.c: Export net_* variables.
6061 * grub-core/net/net.c: Likewise.
6063 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6065 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
6067 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6069 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
6071 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6073 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
6075 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6077 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
6079 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6081 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
6084 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6086 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
6089 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6091 * grub-core/fs/zfs/zfs_lz4.c: New file.
6092 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
6094 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6096 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
6098 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6100 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
6101 (check_pool_label): Likewise.
6102 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
6104 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6106 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
6108 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6110 * docs/grub.texi (Commands): Document postition parameters
6111 for menuentry command.
6113 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6115 * util/grub-mknetdir.in: Remove stray line from help output.
6117 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6119 Remove early sm712 init as there is no reason for it (the "watchdog"
6120 effect was due to wrong GPIO map).
6122 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6124 * grub-core/commands/pcidump.c: Remove static variables.
6126 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6128 * grub-core/commands/sleep.c: Refresh screen before sleeping.
6130 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6132 * configure.ac: Move delimiter after the infos.
6134 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6136 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
6138 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6140 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
6141 not filling whole 8x16 space.
6143 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6145 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
6147 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6149 * configure.ac: Indicate which liblzma is used if any.
6151 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
6152 2013-06-21 Craig Sanders <savannah@taz.net.au>
6154 * util/grub-reboot.in: Document submenu usage.
6156 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6158 * .bzrignore: Update with a number of new test-related files.
6160 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6162 * util/grub-script-check.c: Fail on scripts containing no
6163 commands, to guard against corrupted grub-mkconfig setups that
6164 produce no useful output.
6165 * tests/grub_script_no_commands.in: New test.
6166 * Makefile.util.def (grub_script_no_commands): Add.
6167 Reported by Hans Putter. Fixes Debian bug #713886.
6169 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6171 * grub-core/disk/diskfilter.c: Forgot to remove comment
6172 from previous commit.
6174 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6176 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6177 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6179 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6181 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6183 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6185 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6186 rescan diskfilter devices until nothing new is found.
6188 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6190 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6192 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6194 Don't try to detect cbfs on *-emu.
6196 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6198 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6200 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6202 Add support for processed coreboot payload chainloading.
6204 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6206 Enable coreboot information commands even when not loaded as
6207 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6209 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6211 Support for cbfs. Also factor out the part which is common
6212 for all archives to a separate module. This splits tar from cpio
6213 as they are very different but keeps cpio, cpio_be, odc and newc
6214 together since they're very similar.
6216 2013-06-15 David Michael <fedora.dm0@gmail.com>
6218 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6219 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6221 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6223 * tests/grub_script_eval.in: Really add the eval test.
6225 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6227 Move flavour-specific parts out of common cpio.c file and
6228 rename remaining to cpio_common.c
6230 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6232 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6233 off new function grub_script_execute_new_scope. Change callers to use
6234 either of them as appropriate.
6235 * grub-core/commands/eval.c: New command eval.
6236 * docs/grub.texi (Commands): Document it.
6238 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6240 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6241 to fetch values when listing.
6243 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6245 Fix make dist on non-pc.
6247 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6249 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6250 without a device name.
6252 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6254 Remove enable_executable_check as it's not needed anymore.
6255 Reported by: dougray.
6257 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6259 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6260 ambigouos RAID before discovering RAIDs on top of it.
6263 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6265 Fix typo (failback vs fallback).
6267 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6269 * util/grub.d/30_os-prober.in: Add support for probing EFI
6270 System Partition (as of os-prober 1.58).
6272 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6274 * configure.ac: Add yet another path to unifont. For parabola.
6276 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6278 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6279 handling to copy the killed characters to the kill buffer as
6280 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6281 stored as char. Eliminates UCS4 truncation and corruption
6282 observed when killing characters with Ctrl-u and yanking them
6285 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6287 Detach optional parts of gfxterm and integrate in with coreboot init.
6289 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6291 Move blit and fill dispatcher to appropriate files to decrease export
6292 and relocation overhead.
6294 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6296 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6299 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6301 * grub-core/Makefile.am: Fix compilation problem with some
6304 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6306 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6308 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6310 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6313 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6315 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6318 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6320 * grub-core/partmap/dfly.c: New partition map.
6322 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6324 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6326 Reported by: Francesco Lavra.
6328 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6330 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6331 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6333 * conf/Makefile.common: define dist_grubconf_DATA
6335 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6337 Progressively skip menu elements on small terminals rather
6340 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6342 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6343 to avoid losing last column.
6345 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6347 * po/exclude.pot: Add missing string "%C".
6349 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6351 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6354 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6356 * util/grub-install.in: Gettextize "Not found" message.
6358 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6361 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6363 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6365 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6367 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6369 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6371 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6373 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6375 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6376 attribute since structure is not necessarily aligned.
6378 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6380 * docs/grub.texi (Device syntax): Clarify description of network
6383 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6385 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6386 for vasprintf presence.
6388 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6390 * util/grub-install.in: Handle efibootmgr presence check.
6391 Reported by: Leif Lindholm.
6393 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6395 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6396 new strings to translate.
6398 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6400 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6401 yet another string (pun intended) to translate.
6403 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6405 * po/POTFILES-shell.in: Autogenerate it.
6407 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6409 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6411 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6413 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6416 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6418 * docs/grub.texi (Network): Add description of net_default_interface,
6419 net_default_ip and net_default_mac. Rewrite variables description
6420 to emphasize that they are per-interface.
6422 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6424 New test: cmdline and cat.
6426 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6428 * grub-core/commands/cat.c: Show UTF-8 characters.
6430 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6432 * conf/Makefile.common: Poison float and double on non-emu.
6434 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6436 * configure.ac: Don't disable extended registers on emu.
6438 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6440 * configure.ac: Don't use extended registers on x86_64.
6441 Reported by: Peter Jones.
6443 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6445 * grub-core/term/efi/console.c: Fix compile error.
6447 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6449 Compressed HFS+ support.
6451 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6453 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6456 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6460 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6462 * grub-core/tests/setjmp_test.c: New test.
6464 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6466 New variables 'net_default_*' to determine MAC/IP of default interface.
6468 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6470 * tests/gettext_strings_test.in: A test to check for strings not
6471 marked for translation.
6473 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6475 * autogen.sh: Exclude unused libgcrypt files from translation.
6477 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6479 Simplify few strings.
6481 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6483 Mark few forgotten strings for translation.
6485 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6487 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6490 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6492 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6494 * grub-core/video/readers/tga.c: Likewise.
6496 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6498 * tests/priority_queue_unit_test.cc: New test.
6500 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6502 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6505 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6507 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6508 variable for one time boot menu entry.
6510 2013-05-05 Bean <bean123ch@gmail.com>
6512 * grub-core/commands/testspeed.c: New command testspeed.
6514 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6516 Factor-out human-size printing.
6518 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6520 Agglomerate more mallocs to speed-up gfxterm.
6522 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6524 Speed-up gfxterm by slightly agglomerating mallocs.
6526 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6530 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6532 Speed-up gfxterm by saving intermediate results in index+alpha
6535 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6537 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6540 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6542 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6543 line of timeout as it may contain the rest of long line.
6545 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6547 * grub-core/normal/main.c: Fix freed memory dereference.
6549 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6551 Fix several memory leaks.
6553 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6555 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6557 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6559 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6561 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6563 Fix test -a and -o precedence.
6564 Reported by: adrian15.
6566 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6568 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6570 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6572 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6573 and add it as source to functional_test module.
6575 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6577 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6579 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6581 New series of tests for gfxterm and gfxmenu.
6583 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6585 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6586 the theme path relative to $prefix/themes.
6588 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6590 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6592 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6594 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6596 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6599 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6601 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6602 grub_gfxmenu_timeout_notifications.
6603 (grub_gfxmenu_view_destroy): Likewise.
6605 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6607 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6609 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6611 Several fixes to ieee1275 and big-endian video.
6613 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6615 Add missing exports on mips.
6617 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6619 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6620 if no unifont is found.
6621 Restore original keyboard.
6623 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6625 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6626 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6628 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6630 First automated video test (running videotest and comparing results)
6632 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6634 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6635 instead of 2 to have full RGB/CMY test pattern.
6637 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6641 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6643 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6644 ARCS. All users updated.
6646 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6648 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6650 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6652 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6654 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6656 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6657 Reported by: qwertial.
6659 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6661 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6662 with syntax "XXX deg"/"XXX °".
6664 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6666 Make PCI init in i386-qemu port more robust.
6668 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6670 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6671 cached view is reused.
6672 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6675 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6677 Unify more code in grub-install_header.
6679 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6683 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6685 Enforce disabling of firmware disk drivers when native drivers kick in.
6687 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6689 * grub-core/commands/nativedisk.c: Customize the list of modules on
6690 platform. Don't try to search for disks already using native drivers.
6692 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6694 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6697 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6699 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6700 handling of variables containing backslash.
6702 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6704 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6706 Reported by: qwertial.
6708 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6710 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6712 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6714 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6716 Reported by: qwertial.
6718 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6720 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6722 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6724 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6726 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6728 New command `nativedisk'.
6730 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6732 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6733 * grub-core/loader/i386/bsd.c: Likewise.
6735 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6737 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6739 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6741 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6742 grub_get_unaligned16 rather than shifts.
6744 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6746 * grub-core/kern/file.c: Use const char * rather than casting to
6749 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6751 * grub-core/commands/probe.c: Add missing grub_device_close.
6753 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6755 * INSTALL: Document linguas.sh.
6757 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6759 Remove POTFILES.in and regenerate it in autogen.sh.
6761 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6763 Move --directory/--override-directorry to grub-install_header and unify.
6765 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6767 * grub-core/term/morse.c: Macroify dih and dah.
6769 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6771 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6773 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6775 * grub-core/term/ns8250.c: Systematically probe ports by writing
6776 to SR before using them.
6778 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6780 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6782 (check_sas): Get sas_adress info.
6784 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6786 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6789 2013-04-27 Leon Drugi <eyak>
6791 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6794 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6796 Core compression test.
6798 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6800 Implement grub_machine_get_bootlocation for ARC.
6802 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6804 Improve AHCI detection and command issuing.
6806 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6810 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6812 Make 'make check' work on emu.
6814 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6816 Replace libcurses with our own vt100 handling for the ease of testing
6817 and decreasing prerequisites.
6819 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6821 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6823 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6825 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6826 compile when not needed.
6828 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6830 * tests/pseries_test.in: New test.
6832 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6834 Add test to check that different boot mediums work.
6836 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6838 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6839 ofw limited ISO support.
6841 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6843 * configure.ac: Fix loongson conditional.
6845 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6849 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6851 Add serial on ARC platform.
6853 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6855 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6858 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6860 * tests/partmap_test.in: Add missing double semicolon.
6862 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6864 * util/grub-mkrescue.in: Fix loongson filename.
6866 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6868 * util/grub-mkrescue.in: Move all files that don't have a location
6869 set in stone under /boot/grub. Use ISO hard links rather than copies
6872 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6874 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6877 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6879 Make check work on mips-arc.
6881 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6883 * util/grub-mkrescue.in: Alias sashARCS as sash.
6885 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6887 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6890 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6892 * util/grub-install.in: Fix target fo qemu_mips.
6893 Fix extension on EFI.
6895 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6897 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6898 in front of chosen entry to mark it even if highlighting is lost.
6900 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6902 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6903 gfxpayload=keep if cbfb is active.
6905 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6907 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6909 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6911 Add missing video ids to coreboot and ieee1275 video.
6913 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6915 * util/grub-mkrescue.in: Add mips-arc support.
6917 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6919 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6921 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6923 Move mips-arc link address. Previous link address was chosen
6924 in belief that RAM on SGI platforms grows down while in fact it
6925 grows up from an unusual base.
6927 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6929 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6930 Fix a type which prevented CD-ROM and floppy boot.
6932 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6934 Support coreboot framebuffer.
6936 * grub-core/video/i386/coreboot/cbfb.c: New file.
6938 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6940 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6941 detecting too small regions.
6943 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6945 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6947 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6949 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6951 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6953 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6955 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6956 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6957 * grub-core/loader/powerpc/ieee1275/linux.c
6958 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6960 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6962 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6963 Look for /boot-rom as well as /rom/boot-rom.
6965 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6967 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6968 handling when creating text_layer failed.
6969 * grub-core/video/video.c (grub_video_create_render_target):
6970 Set result to 0 on error.
6971 (grub_video_delete_render_target): Do not dereference NULL.
6973 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6975 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6976 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6977 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6978 (grub_linux_load64): Mask out 2 high bits.
6980 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6982 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6985 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6987 Add support for pseries and other bootinfo machines to grub-mkrescue.
6989 Tested by: Paulo Flabiano Smorigo.
6991 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6993 * util/grub-mkrescue.in: Add GPT for EFI boot.
6995 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6997 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6998 It improves performance in qemu.
7000 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7002 * build-aux/snippet: Add missing gnulib files.
7004 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
7006 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
7008 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
7010 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
7012 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7013 2013-04-15 Peter Jones <pjones@redhat.com>
7015 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
7017 Based on patch by Peter Jones.
7019 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7021 Fix DMRAID partition handling.
7023 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7025 * tests/grub_cmd_date.in: Skip on sparc64.
7027 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7029 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
7030 firmware error messages.
7032 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7034 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
7035 source and destination differ.
7037 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7039 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
7042 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7044 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
7045 match config-util.h to avoid warnings and increase compatibility.
7047 2013-04-14 Szymon Janc <szymon@janc.net.pl>
7048 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7050 Add option to compress files on install/image creation.
7052 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7054 * docs/grub-dev.texi: Rearrange menu to match the section order.
7055 Reported by: Bryan Hundven.
7057 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7059 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
7061 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7063 Move GRUB out of system area when using xorriso 1.2.9 or later.
7065 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7067 * tests/grub_cmd_date.in: Add missing exit 1.
7069 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7071 * tests/partmap_test.in: Skip on sparc64.
7073 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7075 Support grub-shell on sparc64.
7077 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7079 Support mkrescue on sparc64.
7081 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7083 Allow IEEE1275 ports on path even if it wasn't detected automatically.
7084 Needed on OpenBIOS due to incomplete device tree.
7086 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7088 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
7089 would be otherwise excluded.
7091 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7093 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
7094 Inline name defines used only once.
7096 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7098 Fix memory leaks in ofnet.
7099 Reported by: Francesco Lavra.
7101 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7103 * docs/man/grub-glue-efi.h2m: Add missing file.
7105 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7107 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
7109 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7111 Better support Apple Intel Macs on CD.
7113 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7115 Replace stpcpy with grub_stpcpy in tools.
7117 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7119 Handle Japanese special keys.
7120 Reported by: Hiroyuki YAMAMORI.
7121 Codes supplied by: Hiroyuki YAMAMORI.
7123 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7125 * util/grub-mkimage.c: Document memdisk implying --prefix.
7127 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7129 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
7130 much we can do about it anyway.
7132 2013-04-12 Aleš Nesrsta <starous@volny.cz>
7134 Fix handling of split transfers.
7136 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7138 * grub-core/net/http.c: Fix bad free.
7140 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7142 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
7145 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7147 Disable partmap check on i386-ieee1275 due to openfirmware issues.
7149 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7151 * tests/util/grub-shell.in: Fix it on powerpc.
7153 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7155 Turn off QEMU ACPI-way since new releases don't have shutdown port
7158 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7160 * docs/grub.texi: Update coreboot status info.
7162 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7164 * tests/grub_cmd_date.in: New test for datetime.
7166 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7168 * tests/partmap_test.in: Fix missing qemudisk setting.
7170 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7172 Support i386-ieee1275 grub-mkrescue and make check on it.
7174 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7176 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7179 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7181 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7182 GRUB_CMDLINE_XEN_DEFAULT.
7183 Reported by: Marc Warne (GigaTux) <gigatux>
7185 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7189 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7191 Use ACPI shutdown intests as traditional port was removed.
7193 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7195 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7198 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7200 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7201 Fix few warining messages and leaks while on it.
7203 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7205 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7206 links under grub-core/lib/libgcrypt-grub/mpi.
7208 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7210 Fix ia64-efi image generation on big-endian machines. Deduplicate
7211 some code while on it.
7212 Reported by: Leif Lindholm.
7214 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7216 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7219 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7221 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7223 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7225 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7228 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7230 * grub-core/normal/term.c: Few more fixes for menu entry editor
7232 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7234 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7236 * grub-core/normal/term.c: Few more fixes for menu entry editor
7238 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7240 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7242 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7243 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7245 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7247 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7248 instead of hardcoding grub.mo.
7250 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7252 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7254 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7256 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7257 grub-core/disk/geli.c.
7259 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7261 * util/grub-mkfont.c: Prefer enum to #define.
7263 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7265 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7267 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7269 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7271 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7273 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7275 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7277 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7279 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7281 * include/grub/bsdlabel.h: Use enums.
7283 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7285 Move GRUB_CHAR_BIT to types.h.
7287 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7289 * docs/grub.texi: Document more user commands.
7291 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7293 * docs/grub.texi: Document menuentry --id option.
7295 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7297 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7299 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7301 Unify file copying setup across different install scripts. Add
7302 options for performing partial install.
7304 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7305 2013-04-04 Peter Jones <pjones@redhat.com>
7307 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7309 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7311 Use TSC as a possible time source on i386-ieee1275.
7313 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7315 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7318 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7320 * util/grub-setup.c (setup): Handle some corner cases.
7322 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7324 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7326 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7328 * grub-core/commands/verify.c: Save verified file to avoid it being
7329 tampered with after verification was done.
7331 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7333 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7334 reported width by one to compensate for curesor algorithm problem.
7336 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7338 Fix screen corruption in menu entry editor and simplify the code
7341 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7343 * util/grub-mount.c (fuse_init): Return error if fuse_main
7346 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7348 * include/grub/elf.h: Add missing ARM relocation codes and fix
7351 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7353 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7355 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7356 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7358 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7359 into account when calculating radius.
7361 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7363 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7365 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7367 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7369 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7371 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7372 missing closing bracket.
7374 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7376 * INSTALL: Mention xorriso requirement.
7378 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7380 * grub-core/commands/verify.c: Fix hash algorithms values for
7381 the first three hashes - they start with 1, not with 0.
7383 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7385 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7386 Try terminating EFI services several times due to quirks in some
7389 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7391 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7392 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7393 BankField extended opcodes.
7394 (get_sleep_type): Add minimal scope handling (just enough to
7395 handle setting the scope to the root path).
7396 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7397 * include/grub/acpi.h: Add enumeration values for Event, Device,
7398 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7400 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7402 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7405 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7407 * grub-core/disk/ahci.c: Give more time for AHCI request.
7409 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7411 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7414 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7416 Replace the region at 0 from coreboot tables to available in BSD
7419 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7421 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7424 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7426 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7429 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7431 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7432 handling of multi-device filesystems.
7434 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7436 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7439 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7441 Add new 'proc' filesystem framework and put luks_script into it.
7443 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7445 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7448 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7450 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7452 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7454 Add ability to generate newc additions on runtime.
7456 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7458 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7461 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7463 * po/POTFILES.in: Regenerate.
7465 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7467 * grub-core/commands/verify.c (hashes): Add several hashes
7470 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7472 Slight improve in USB-related boot-time checkpoints.
7474 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7476 * grub-core/commands/boottime.c: Fix copyright header.
7478 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7480 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7481 coreboot tables content. Support for cbmemc.
7483 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7485 Fix a conflict between ports structures with 2 controllers of
7488 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7490 * include/grub/boottime.h: Add missing file.
7492 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7494 Initialize USB ports in parallel to speed-up boot.
7496 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7498 Fix USB devices not being detected when requested
7499 due to delayed attach.
7501 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7503 Implement boot time analysis framework.
7505 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7507 Remove get_endpoint_descriptor and change all functions needing
7508 descriptor to just receive it as argument rather than endpoint
7511 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7513 Better estimate the maximum USB transfer size.
7515 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7517 Resend a packet if we got the wrong buffer in status.
7519 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7521 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7522 multiplication rather than division.
7524 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7526 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7529 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7531 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7532 operations to have intended shifts and not divisions.
7534 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7536 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7537 intended shifts rather than division.
7539 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7541 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7542 computation for some years before epoch. Avode confusing division
7545 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7547 * grub-core/video/i386/pc/vbe.c
7548 (grub_video_vbe_print_adapter_specific_info): Replace division by
7551 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7553 Adjust types in gdb module to have intended unsigned shifts rather than
7556 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7558 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7559 maximum size is 4G - 1 on hfs
7561 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7563 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7565 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7567 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7570 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7572 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7573 causing gcc error with gcc 4.7.1.
7575 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7577 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7578 dereference null pointer. While the code is technically correct, gcc
7579 may eliminate a null check if pointer is already dereferenced.
7581 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7583 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7585 * grub-core/normal/term.c (read_terminal_list): Likewise.
7587 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7589 Lift up core size limits on some platforms. Fix potential memory
7590 corruption with big core on small memory systems. Document remaining
7593 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7595 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7598 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7600 Remove all trampoline support. Add -Wtrampolines when
7601 present. Remove symbols used for trampolines to make
7602 link fail if trampolines are present.
7604 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7606 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7607 append out of its parent.
7609 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7611 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7614 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7616 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7617 all vars to a macro. All users updated.
7619 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7621 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7624 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7626 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7628 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7630 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7632 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7634 Move to more hookless approach in IEEE1275 devices handling.
7636 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7638 * grub-core/kern/term.c (grub_term_normal_color),
7639 (grub_term_highlight_color): Add back lost defaults.
7641 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7643 Make elfload not use hooks. Opt for flags and iterators instead.
7645 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7647 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7648 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7650 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7652 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7654 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7656 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7657 hook pass-through parameter. All users updated and unnested.
7659 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7661 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7664 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7666 * grub-core/fs/hfs.c: Remove nested functions.
7668 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7670 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7671 the context through.
7672 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7674 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7676 * util/grub-editenv.c (list_variables): Move print_var out of its
7679 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7681 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7684 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7686 * grub-core/gentrigtables.c: Make tables const.
7688 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7690 Remove nested functions from videoinfo iterators.
7692 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7694 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7695 for 64-bit platforms.
7697 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7699 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7700 a FOR_CHILDREN macro.
7702 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7704 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7705 platform from firmware path.
7707 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7709 Enable linux16 on non-BIOS systems for i.a. memtest.
7711 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7713 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7715 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7717 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7718 Fix end of table condition.
7720 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7722 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7725 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7727 * grub-core/fs/jfs.c: Remove nested functions.
7729 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7731 * grub-core/fs/minix.c: Remove nested functions.
7733 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7735 * grub-core/fs/iso9660.c: Remove nested functions.
7737 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7739 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7742 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7744 * util/grub-fstest.c: Remove nested functions.
7746 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7748 * grub-core/loader/machoXX.c: Remove nested functions.
7750 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7752 Remove nested functions from disk and file read hooks.
7754 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7755 (struct grub_disk): Add read_hook_data member.
7756 * include/grub/file.h (struct grub_file): Likewise.
7757 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7762 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7764 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7765 Fix off by one error in enumerating extended partitions.
7767 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7769 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7770 memory leak if device name is not found.
7772 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7774 * grub-core/normal/menu_entry.c (update_screen): remove
7775 unused variable `off' which caused scroll down arrow to be always shown.
7777 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7779 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7780 access to unallocated memory.
7782 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7784 * Makefile.util.def: Add partmap/msdos.c to common library.
7785 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7786 * grub-core/disk/ldm.c: Check for existence of
7787 GRUB_PC_PARTITION_TYPE_LDM.
7789 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7791 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7792 sizes and display sector size.
7794 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7796 Implement new command cmosdump.
7798 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7800 Support Openfirmware disks with non-512B sectors.
7802 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7804 * (grub_ofdisk_get_block_size): New function.
7805 * (grub_ofdisk_prepare): Use the correct block size.
7806 * (grub_ofdisk_read): Likewise.
7807 * (grub_ofdisk_write): Likewise.
7808 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7811 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7813 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7815 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7817 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7820 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7822 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7825 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7827 Implement USBDebug (full USB stack variant).
7829 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7831 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7832 unless they have unexpected values.
7834 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7836 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7839 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7841 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7842 zero-out of port structure.
7844 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7846 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7847 of extended attributes.
7849 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7851 * util/grub-install.in: change misleading comment about
7854 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7856 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7857 when menu highlight color isn't set.
7859 2013-01-27 C. Masloch <pushbx@38.de>
7861 Improve FreeDOS direct loading support compatibility.
7863 * include/grub/i386/relocator.h (grub_relocator16_state):
7865 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7867 (grub_relocator16_boot): Handle %ebp.
7868 * grub-core/lib/i386/relocator16.S: Likewise.
7869 * grub-core/loader/i386/pc/freedos.c:
7870 Load BPB to pass kernel which partition to load from.
7871 Check that kernel file is not too large.
7872 Set register dl to BIOS unit number as well.
7874 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7876 * util/grub-reboot.in (usage): Document the need for
7878 * util/grub-set-default.in (usage): Likewise.
7879 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7881 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7883 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7884 than defining WORDS_BIGENDIAN manually.
7886 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7888 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7891 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7893 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7895 (blit_comb: add_device_width): Likewise.
7897 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7899 Remove nested functions from USB iterators.
7901 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7902 (grub_usb_controller_iterate_hook_t): Likewise.
7903 (grub_usb_iterate): Add hook_data argument.
7904 (grub_usb_controller_iterate): Likewise.
7905 (struct grub_usb_controller_dev.iterate): Likewise.
7907 Update all implementations and callers.
7909 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7911 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7912 margin when not needed.
7914 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7916 Make color variables global instead of it being per-terminal.
7918 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7920 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7923 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7925 Fix powerpc and sparc64 build failures caused by un-nesting memory
7928 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7930 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7931 parameter declarations.
7933 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7935 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7937 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7939 Improve spkmomdem reliability by adding a separator between bytes.
7941 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7943 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7944 an Acer registration utility with several sightings in the wild.
7945 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7947 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7949 Remove nested functions from filesystem directory iterators.
7951 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7952 (struct grub_fs.dir): Add hook_data argument.
7954 Update all implementations and callers.
7956 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7958 * docs/grub.texi (Multi-boot manual config): Fix typo for
7961 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7963 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7964 until after its use in generate_image.
7966 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7968 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7969 initrd size to addr_min, since the initrd will be allocated after
7972 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7974 * conf/Makefile.common: Fix autogen rules to pass definition
7975 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7977 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7979 * include/grub/elf.h: Update ARM definitions based on binutils.
7981 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7983 Split long USB transfers into short ones.
7985 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7987 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7988 is interrupted by ESC.
7990 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7992 * util/grub-script-check.c (main): Uniform the error message.
7994 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7996 Remove nested functions from ELF iterators.
7998 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
8000 Remove nested functions from device iterators.
8002 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
8003 (grub_arc_iterate_devs): Add hook_data argument.
8004 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
8005 (struct grub_ata_dev.iterate): Add hook_data argument.
8006 * include/grub/device.h (grub_device_iterate_hook_t): New type.
8007 (grub_device_iterate): Add hook_data argument.
8008 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
8009 (struct grub_disk_dev.iterate): Add hook_data argument.
8010 (grub_disk_dev_iterate): Likewise.
8011 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
8013 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
8015 * include/grub/partition.h (grub_partition_iterate_hook_t): New
8017 (struct grub_partition_map.iterate): Add hook_data argument.
8018 (grub_partition_iterate): Likewise.
8019 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
8020 (struct grub_scsi_dev.iterate): Add hook_data argument.
8024 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
8026 Fix typos for "developer" and "development".
8028 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8030 Add license header to spkmodem-recv.c.
8032 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
8034 Rewrite spkmodem to use PIT for timing. Double the speed.
8036 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8038 Add new command pcidump.
8040 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8042 New terminal outputs using serial: morse and spkmodem.
8044 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8046 Improve bidi handling in entry editor.
8048 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8050 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
8051 argument to prevent name collision.
8053 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
8055 Remove nested functions from script reading and parsing.
8057 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
8058 getline_data argument, passed to getline.
8059 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
8060 getline_data argument, passed to grub_parser_split_cmdline.
8061 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
8062 lexerstate->getline_data to lexerstate->getline.
8063 (grub_script_lexer_init): Add getline_data argument, saved in
8064 lexerstate->getline_data.
8065 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
8066 argument, passed to grub_script_parse.
8067 * grub-core/script/script.c (grub_script_parse): Add getline_data
8068 argument, passed to grub_script_lexer_init.
8069 * include/grub/parser.h (grub_parser_split_cmdline): Update
8070 prototype. Update all callers to pass appropriate getline data.
8071 (struct grub_parser.parse_line): Likewise.
8072 (grub_rescue_parse_line): Likewise.
8073 * include/grub/reader.h (grub_reader_getline_t): Add void *
8075 * include/grub/script_sh.h (struct grub_lexer_param): Add
8076 getline_data member.
8077 (grub_script_parse): Update prototype. Update all callers to pass
8078 appropriate getline data.
8079 (grub_script_lexer_init): Likewise.
8080 (grub_normal_parse_line): Likewise.
8082 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
8084 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
8085 static instead of nested. Rename to ...
8086 (grub_parser_execute_getline): ... this.
8087 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
8089 * grub-core/normal/main.c (read_config_file: getline): Make static
8090 instead of nested. Rename to ...
8091 (read_config_file_getline): ... this.
8092 (grub_normal_read_line): Add unused data argument.
8093 * grub-core/script/execute.c (grub_script_execute_sourcecode:
8094 getline): Make static instead of nested. Rename to ...
8095 (grub_script_execute_sourcecode_getline): ... this.
8096 * util/grub-script-check.c (main: get_config_line): Make static
8099 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
8101 Remove nested functions from memory map iterators.
8103 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
8104 argument, passed to hook.
8105 * grub-core/kern/i386/coreboot/mmap.c
8106 (grub_linuxbios_table_iterate): Likewise.
8107 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
8109 (grub_machine_mmap_iterate): Add hook_data argument.
8110 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
8111 Add hook_data argument, passed to hook.
8112 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
8114 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
8116 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
8118 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
8120 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
8122 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
8124 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
8125 (grub_machine_mmap_iterate): Likewise.
8126 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
8127 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
8129 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
8130 Remove NESTED_FUNC_ATTR from here and from all users.
8131 (grub_mmap_iterate): Update prototype.
8132 (grub_efi_mmap_iterate): Update prototype. Update all callers to
8133 pass appropriate hook data.
8134 (grub_machine_mmap_iterate): Likewise.
8136 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
8137 static instead of nested.
8138 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
8140 (lsmmap_hook): ... this.
8141 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
8143 (grub_efiemu_mmap_fill: fill_hook): Likewise.
8144 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
8145 heap_init): Likewise.
8146 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
8148 (mmap_iterate_hook): ... this.
8149 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
8151 * grub-core/lib/ieee1275/relocator.c
8152 (grub_relocator_firmware_get_max_events: count): Likewise.
8153 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
8155 (grub_relocator_firmware_fill_events_iter): ... this.
8156 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
8157 hook): Likewise. Rename to ...
8158 (grub_relocator_alloc_chunk_align_iter): ... this.
8159 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
8161 (generate_e820_mmap_iter): ... this.
8162 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
8164 (count_hook): ... this.
8165 (grub_linux_boot: hook): Likewise. Rename to ...
8166 (grub_linux_boot_mmap_find): ... this.
8167 (grub_linux_boot: hook_fill): Likewise. Rename to ...
8168 (grub_linux_boot_mmap_fill): ... this.
8169 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8170 hook): Likewise. Rename to ...
8171 (grub_fill_multiboot_mmap_iter): ... this.
8172 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8173 hook): Likewise. Rename to ...
8174 (count_hook): ... this.
8175 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8176 hook): Likewise. Rename to ...
8177 (grub_fill_multiboot_mmap_iter): ... this.
8178 * grub-core/loader/powerpc/ieee1275/linux.c
8179 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8180 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8181 Likewise. Rename to ...
8182 (alloc_phys_choose): ... this.
8183 (determine_phys_base: get_physbase): Likewise.
8184 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8185 find_hook): Likewise.
8186 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8187 (malloc_hook: count_hook): Likewise.
8188 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8189 Likewise. Rename to ...
8190 (lower_hook): ... this.
8191 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8192 (upper_hook): ... this.
8193 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8194 (post64_hook): ... this.
8195 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8196 Likewise. Rename to ...
8197 (lower_hook): ... this.
8198 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8199 (upper_hook): ... this.
8200 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8201 (grub_mmap_iterate: fill_hook): Likewise.
8202 (fill_mask): Pass addr and mask within a single struct.
8203 (grub_cmd_badram: hook): Make static instead of nested. Rename
8205 (badram_iter): ... this.
8206 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8207 (cutmem_iter): ... this.
8209 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8211 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8212 delimit path in strings using quotes.
8213 * util/getroot.c (grub_guess_root_devices): Likewise.
8214 (grub_make_system_path_relative_to_its_root): Likewise.
8215 * util/grub-probe.c (probe): Likewise.
8216 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8217 (xrealpath): Likewise.
8219 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8221 Fix compilation with older compilers.
8223 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8224 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8226 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8227 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8228 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8230 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8231 * include/grub/crypto.h: Add type defines.
8232 * util/import_gcrypth.sed: Remove duplicate type defines.
8234 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8236 New command list_trusted.
8238 * grub-core/commands/verify.c (grub_cmd_list): New function.
8240 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8242 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8245 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8247 Remove nested functions from PCI iterators.
8249 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8250 passed to hook. Update all callers to pass appropriate hook data.
8251 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8252 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8253 Remove NESTED_FUNC_ATTR from here and from all users.
8254 (grub_pci_iterate): Update prototype.
8255 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8256 instead of nested. Rename to ...
8257 (grub_cs5536_find_iter): ... this.
8258 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8259 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8261 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8263 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8265 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8267 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8268 * grub-core/video/radeon_fuloong2e.c
8269 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8270 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8271 find_card): Likewise.
8272 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8275 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8277 * grub-core/commands/verify.c: Mark messages for translating.
8279 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8281 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8284 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8286 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8289 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8291 * autogen.sh: Do not try to delete nonexistant files.
8292 * util/import_gcrypth.sed: Add some missing header removals.
8294 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8296 Clean up dangling references to grub-setup.
8297 Fixes Ubuntu bug #1082045.
8299 * docs/grub.texi (Images): Refer generally to grub-install rather
8300 than directly to grub-setup.
8301 (Installing GRUB using grub-install): Remove direct reference to
8303 (Device map) Likewise.
8304 (Invoking grub-install): Likewise.
8305 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8306 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8307 * util/grub-install.in (usage): Likewise.
8309 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8310 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8312 * configure.ac: Remove grub_setup output variable.
8314 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8316 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8317 grub-setup to grub-sparc64-setup.
8319 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8321 Import gcrypt public-key cryptography and implement signature checking.
8323 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8325 * grub-core/fs/ntfs.c: Ue more appropriate types.
8326 * grub-core/fs/ntfscomp.c: Likewise.
8327 * include/grub/ntfs.h: Likewise.
8329 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8331 Support Apple FAT binaries on non-Apple platforms.
8333 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8334 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8336 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8339 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8341 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8344 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8346 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8347 explicitly zeroing elements.
8348 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8349 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8350 of elements in a structure already allocated using grub_zalloc.
8351 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8353 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8355 * docs/grub.texi (grub_cpu): New subsection.
8356 (grub_platform): Likewise.
8358 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8360 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8362 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8364 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8367 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8369 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8370 * grub-core/fs/ntfscomp.c: Likewise.
8371 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8372 (grub_ntfs_comp): Likewise.
8374 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8376 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8378 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8379 of groups_per_block. All users updated.
8381 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8383 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8384 grub_error properly.
8385 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8386 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8388 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8390 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8391 always in /boot/zfs.
8392 Reported by: Yuta Satoh.
8394 2013-01-03 Yuta Satoh <nigoro>
8396 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8399 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8401 * configure.ac: Extend -Wno-trampolines to host.
8403 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8405 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8408 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8410 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8411 (Invoking grub-script-check): Likewise.
8413 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8415 * docs/grub.texi (Invoking grub-mount): New section.
8416 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8418 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8420 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8421 test failures, so that a failing unit test correctly causes 'make
8424 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8426 Fix failing printf test.
8428 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8429 '$' in the correct order when collecting type information.
8431 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8433 * docs/grub.texi (configfile): Explain environment variable
8435 (source): New section.
8436 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8438 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8440 Remove several trivially-unnecessary uses of nested functions.
8442 * grub-core/commands/i386/pc/sendkey.c
8443 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8445 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8447 (legacy_file_getline): ... this.
8448 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8450 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8451 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8453 (probe_dummy_iter): ... this.
8454 * grub-core/kern/i386/coreboot/mmap.c
8455 (grub_linuxbios_table_iterate: check_signature): Likewise.
8456 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8457 check_varstate): Likewise. Mark inline.
8458 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8459 an additional parameter.
8460 (find_long: fnd_long): Likewise. Pass two additional parameters.
8461 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8462 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8463 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8464 Likewise. Rename to ...
8465 (grub_cmos_find_port_iter): ... this.
8466 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8468 (find_rtc_iter): ... this.
8470 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8471 function directly into the function body, since it is only called
8474 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8476 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8477 __attribute__ ((unused)).
8478 * grub-core/video/bochs.c (find_card): Likewise.
8479 * grub-core/video/cirrus.c (find_card): Likewise.
8480 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8481 * grub-core/video/sis315pro.c (find_card): Likewise.
8482 * grub-core/video/sm712.c (find_card): Likewise.
8484 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8486 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8487 Fixes Savannah bug #37821.
8489 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8491 Apply program name transformations at build-time rather than at
8492 run-time. Fixes Debian bug #696465.
8494 * acinclude.m4 (grub_TRANSFORM): New macro.
8495 * configure.ac: Create output variables with transformed names for
8497 * util/bash-completion.d/grub-completion.bash.in: Use
8498 pre-transformed variables for program names.
8499 * util/grub-install.in: Likewise.
8500 * util/grub-kbdcomp.in: Likewise.
8501 * util/grub-mkconfig.in: Likewise.
8502 * util/grub-mkconfig_lib.in: Likewise.
8503 * util/grub-mknetdir.in: Likewise.
8504 * util/grub-mkrescue.in: Likewise.
8505 * util/grub-mkstandalone.in: Likewise.
8506 * util/grub-reboot.in: Likewise.
8507 * util/grub-set-default.in: Likewise.
8508 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8509 * tests/util/grub-shell-tester.in: Remove unused assignment.
8510 * tests/util/grub-shell.in: Likewise.
8511 * util/grub.d/00_header.in: Likewise.
8513 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8515 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8517 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8519 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8521 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8523 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8524 Reported by: Eriks Latosheks <foresterlv>.
8526 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8528 * docs/grub.texi (Network): Update instructions on generating netboot
8531 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8533 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8534 around device name if necessarry.
8536 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8538 * util/grub-install.in: Follow the symbolic link parameter added
8539 to the file command.
8541 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8543 * util/grub-install.in: Remove stale TODO.
8545 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8547 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8548 dynamic allocation for the bootpath buffer.
8550 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8552 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8555 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8557 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8558 argument rather than font name. All users updated.
8559 (grub_gfxterm_set_window): Likewise.
8561 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8563 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8566 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8568 * util/getroot.c (convert_system_partition_to_system_disk): Support
8571 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8573 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8574 infinite loop on corrupted FS.
8576 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8578 Fix big-endian mtime.
8580 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8581 together sec and usec.
8582 (grub_ufs_dir): Use correct byteswapping for UFS time.
8584 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8586 Support big-endian UFS1.
8588 * Makefile.util.def (libgrubmods): Add ufs_be.c
8589 * grub-core/Makefile.core.def (ufs1_be): New module.
8590 * grub-core/fs/ufs_be.c: New file.
8591 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8594 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8596 * include/grub/types.h: Fix functionality unaffecting typo in
8597 GRUB_TARGET_WORDSIZE conditional macro.
8599 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8601 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8603 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8605 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8606 that /netbsd appears first (when it exists).
8608 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8610 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8611 Fixes Savannah bug #37558.
8613 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8615 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8616 description of extract_entries_configfile.
8618 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8620 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8622 (grub_cmd_linux): Likewise.
8623 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8624 preferred_lifetime. Update all users.
8626 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8628 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8629 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8631 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8633 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8634 errors from grub-probe to /dev/null, not stdout.
8636 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8638 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8641 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8643 * util/grub-install.in: Make the error message if $source_dir
8644 doesn't exist more useful.
8646 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8648 Fix grub-emu build on FreeBSD.
8650 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8651 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8653 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8654 implementation is currently Linux-specific.
8655 * util/getroot.c (exec_pipe): Define only on Linux or when either
8656 libzfs or libnvpair is unavailable.
8657 (find_root_devices_from_poolname): Remove unused path variable.
8659 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8661 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8662 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8663 should fit before end == 63.
8665 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8667 * util/grub-setup.c (write_rootdev): Remove unused core_img
8668 parameter. Update all callers.
8669 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8670 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8673 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8675 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8676 (grub_add_tab): New function.
8677 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8678 * util/grub.d/10_illumos.in: Likewise.
8679 * util/grub.d/10_kfreebsd.in: Likewise.
8680 * util/grub.d/10_linux.in: Likewise.
8681 * util/grub.d/10_netbsd.in: Likewise.
8682 * util/grub.d/10_windows.in: Likewise.
8683 * util/grub.d/10_xnu.in: Likewise.
8684 * util/grub.d/20_linux_xen.in: Likewise.
8685 * util/grub.d/30_os-prober.in: Likewise.
8687 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8689 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8690 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8691 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8692 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8693 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8695 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8696 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8698 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8700 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8702 Reported by: BURETTE, Bernard.
8704 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8706 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8709 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8711 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8712 IEEE1275 machines. Fixes powerpc-emu compilation.
8713 * include/grub/terminfo.h: Likewise.
8715 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8717 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8719 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8721 (efiemu_set_variable): Make vendor_guid a const pointer.
8723 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8725 Don't require grub-mkconfig_lib to generate manpages for programs.
8727 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8728 dependencies, don't add grub-mkconfig_lib.
8729 (program): Pass empty adddeps.
8730 (script): Pass grub-mkconfig_lib as adddeps.
8732 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8734 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8735 * util/getroot.c (grub_find_device): Likewise.
8736 (get_mdadm_uuid): Likewise.
8737 (grub_util_is_imsm): Likewise.
8738 (grub_util_pull_device): Likewise.
8739 * util/grub-probe.c (probe): Likewise.
8741 2012-09-10 Benoit Gschwind <gschwind>
8743 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8744 (devs): Add devpath_8.
8746 2012-09-08 Peter Jones <pjones@redhat.com>
8748 * grub-core/Makefile.core.def (efifwsetup): New module.
8749 * grub-core/commands/efi/efifwsetup.c: New file.
8750 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8751 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8753 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8755 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8757 * configure.ac: Add SuSe path.
8759 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8763 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8765 * util/import_gcry.py: Sort cipher_files, to make build system
8766 generation more deterministic.
8768 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8770 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8771 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8772 (grub_set_datetime): Likewise.
8774 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8776 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8779 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8781 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8783 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8785 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8787 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8789 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8790 required for checkouts from bzr, but it may be useful for users or
8791 distributors wishing to update translations against a tarball
8792 distribution, and it can be helpful for the tarball to be a superset
8795 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8797 * Makefile.am (EXTRA_DIST): Add
8798 grub-core/tests/boot/linux.init-mips.S,
8799 grub-core/tests/boot/linux.init-ppc.S, and
8800 grub-core/tests/boot/linux-ppc.cfg.
8802 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8804 * grub-core/mmap/mips/loongson: Remove empty directory.
8806 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8808 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8811 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8813 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8816 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8818 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8820 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8822 * po/POTFILES.in: Regenerated.
8824 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8826 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8827 (NetBSD): New subsection.
8829 2012-07-22 Ales Nesrsta <starous@volny.cz>
8831 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8832 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8834 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8836 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8837 * util/grub.d/10_hurd.in: Add missing quoting.
8838 * util/grub.d/10_illumos.in: Likewise.
8839 * util/grub.d/10_kfreebsd.in: Likewise.
8840 * util/grub.d/10_linux.in: Likewise.
8841 * util/grub.d/20_linux_xen.in: Likewise.
8843 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8845 New command `lsefi'.
8847 * grub-core/Makefile.core.def (lsefi): New module.
8848 * grub-core/commands/efi/lsefi.c: New file.
8849 * include/grub/efi/api.h: Add more GUIDs.
8851 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8853 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8854 (grub_bsd_elf32_hook): Likewise.
8855 (grub_bsd_elf64_size_hook): Likewise.
8856 (grub_bsd_elf64_hook): Likewise.
8857 (grub_bsd_load_elf): Likewise.
8859 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8861 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8862 if hash function is unavailable.
8863 (dec_stream_header): Likewise.
8865 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8867 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8870 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8872 Fix coreboot compilation.
8874 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8875 (grub_vga_text_init_real): ... this.
8876 (grub_vga_text_fini): Rename to ...
8877 (grub_vga_text_fini_real): ... this.
8879 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8881 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8883 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8885 * grub-core/lib/legacy_parse.c: Support clear and testload.
8887 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8889 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8891 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8893 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8895 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8897 * grub-core/net/tftp.c (ack): Fix endianness problem.
8898 (tftp_receive): Likewise.
8899 Reported by: Michael Davidsaver.
8901 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8903 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8905 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8907 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8908 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8909 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8911 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8913 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8915 Reported by: Stuart Hayes.
8917 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8919 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8921 * grub-core/Makefile.core.def (mda_text): New module.
8922 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8923 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8924 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8925 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8927 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8928 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8929 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8931 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8933 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8935 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8937 * grub-core/term/i386/vga_common.c: Removed.
8938 * include/grub/i386/vga_common.h: Likewise.
8939 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8940 (grub_vga_cr_bw_read): Likewise.
8941 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8942 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8943 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8944 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8945 grub_vga_cr_read/grub_vga_cr_write.
8946 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8948 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8950 * configure.ac: Bump version to 2.00.
8951 * grub-core/normal/main.c (features): Add feature_200_final.
8953 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8954 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8956 * NEWS: Fix unclarity and language mistakes.
8958 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8960 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8961 additional size to 3 pages.
8962 Reported by: Stuart Hayes.
8964 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8966 * NEWS: Add 2.00 entry.
8968 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8970 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8971 put explicit "/" for empty path.
8972 (wildcard_expand): Improve dprintf.
8974 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8976 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8977 it's equal to currnode. This can happen with "" symlink.
8979 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8981 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8982 echo shell command by printf command.
8984 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8986 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8987 the value returned by firmware is the maximal position, not diumension.
8988 (grub_terminfo_output_state): Use a more sane fallback.
8990 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8992 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8994 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8996 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8997 frequency to 150 MHz.
8999 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9003 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
9005 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
9007 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
9009 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9011 Handle slash in HFS label.
9013 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
9014 (grub_hfs_dir): Tanslate slash.
9015 (grub_hfs_label): Don't translate slash.
9017 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9019 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
9020 network protocol listing since it introduces problematic dependency on
9023 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9025 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
9027 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9029 Init video early on yeeloong to avoid being rebooted by watchdog.
9031 * grub-core/Makefile.am (gensm712): New target.
9032 (sm712_start.S): Likewise.
9033 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
9034 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
9035 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
9037 * include/grub/vga.h: Move registry definitions to...
9038 * include/grub/vgaregs.h: ... here.
9040 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9042 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
9045 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9047 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
9048 platforms with firmware disk drivers in the core.
9050 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9052 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
9053 informative verbose message.
9054 (read_lv): Handle 64-bit segment size.
9056 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9058 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
9060 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9062 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
9063 character but still remove trainling spaces.
9064 (grub_fat_label): Ignore archive flag.
9066 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9068 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
9069 cast between linux_kernel_header and linux_kernel_params.
9071 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9073 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
9075 (grub_raid6_recover_func_t): Likewise.
9076 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
9077 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
9079 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9081 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
9083 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
9087 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
9088 [__NetBSD__]: Add explicit cast before bitshift.
9090 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9092 * configure.ac: Bump to 2.00~rc1.
9094 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9096 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
9099 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9100 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
9102 * docs/grub.texi: Fix search syntax.
9103 (Multi-boot manual config): Put msdos rather than GPT example.
9104 Grammar corrections.
9106 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9108 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
9110 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9112 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
9114 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9116 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
9117 message on double free. Put the value of magic in case of mismatch.
9119 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9121 Speed-up video on yeeloong.
9123 * grub-core/video/sm712.c (framebuffer): Remove render_target and
9125 (grub_video_sm712_video_fini): Unmap cached_ptr.
9126 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
9127 (grub_video_sm712_set_active_render_target): Removed.
9128 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9129 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
9132 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9134 Avoid flushing the same line multiple times on loongson.
9136 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
9137 Step in 32 bytes and not 1 byte.
9138 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
9141 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9143 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
9146 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9148 Implement flow control for http.
9150 * grub-core/net/http.c (parse_line): Handle response 206.
9151 (http_receive): Stall if too many packets are in the queue.
9152 (http_establish): Fix range header.
9153 (http_seek): Fix double free.
9154 (http_close): Likewise.
9155 (http_packets_pulled): New function.
9156 (grub_http_protocol): Set http_seek
9157 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
9158 (ack_real): Set window depending on i_stall.
9159 (grub_net_send_tcp_packet): Likewise.
9160 (grub_net_tcp_stall): New function.
9161 (grub_net_tcp_unstall): Likewise.
9162 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
9163 (grub_net_tcp_unstall): Likewise.
9165 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9167 * grub-core/net/tftp.c: Decrease stall to 50 packets.
9169 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9171 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9173 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9175 * tests/util/grub-shell.in: Fix a typo.
9177 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9179 Implement flow control for tftp.
9181 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9182 packets but stop only if stop condition is satisfied.
9183 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9184 `stall' instead of `eof' as stop condition.
9185 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9186 (http_err): Likewise.
9187 * grub-core/net/tftp.c (ack): Replace the first argument with data
9189 (tftp_receive): Stall if too many packets are in wait queue.
9190 (tftp_packets_pulled): New function.
9191 (grub_tftp_protocol): Set packets_pulled.
9192 * include/grub/net.h (grub_net_packets): New field count.
9193 (grub_net_put_packet): Increment count.
9194 (grub_net_remove_packet): Likewise.
9195 (grub_net_app_protocol): New field `packets_pulled'.
9196 (grub_net): New field `stall'.
9198 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9200 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9201 sync part to handle them.
9203 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9205 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9206 * grub-core/net/drivers/ieee1275/ofnet.c
9207 (grub_ieee1275_net_config_real): Likewise.
9209 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9211 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9212 the direct route for server/gateway.
9214 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9216 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9217 IP address to server name since we may not hame the DNS.
9219 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9221 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9222 freeing random buffer on failure.
9223 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9225 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9227 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9229 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9231 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9233 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9234 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9235 Handle malloc error correctly.
9237 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9239 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9242 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9244 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9247 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9249 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9250 none is explicitly specified.
9252 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9254 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9257 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9259 Respect netmask from bootp/dhcp.
9261 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9262 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9263 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9265 (grub_net_add_ipv4_local): ... this.
9266 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9267 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9268 (grub_net_add_ipv4_local): New proto.
9270 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9272 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9273 determining EFI memory map size.
9275 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9277 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9279 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9281 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9282 when looking for partition separator.
9284 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9286 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9289 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9291 Restructure FAT driver to avoid hook in label reading as it hits a
9294 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9295 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9296 (grub_fat_iterate_dir): Split into ...
9297 (grub_fat_iterate_init): ... this, ...
9298 (grub_fat_iterate_fini): ... this, ...
9299 (grub_fat_iterate_dir_next): ... and this. All users updated.
9301 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9303 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9304 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9305 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9306 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9307 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9308 New fields last_key and last_key_time.
9309 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9310 extended key-esc into extended key-extended key.
9312 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9314 Avoid unnecessary memcpy of whole video buffer.
9316 * grub-core/video/fb/video_fb.c (dirty): New struct.
9317 (framebuffer): Add members current_dirty and previous_dirty.
9318 (dirty): New function.
9319 (grub_video_fb_fill_rect): Update dirty.
9320 (common_blitter): Likewise.
9321 (grub_video_fb_scroll): Likewise.
9322 (doublebuf_blit_update_screen): Copy only dirty part.
9323 (doublebuf_pageflipping_update_screen): Likewise.
9324 (grub_video_fb_doublebuf_blit_init): Init dirty.
9325 (doublebuf_pageflipping_init): Likewise.
9326 (grub_video_fb_setup): Likewise.
9328 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9330 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9333 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9335 Fix wildcard regexp dot and other special characters handling.
9336 Reported by: Robert Mabee.
9338 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9339 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9340 (split_path): Trigger expansion on '?'.
9341 (unescape): New function.
9342 (wildcard_expand): Unescape parts copied without globbing.
9343 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9344 (grub_script_arglist_to_argv): Don't unescape expansions.
9346 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9348 * include/grub/net.h (grub_net_card): New member txbufsize.
9349 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9350 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9351 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9352 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9354 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9355 compatible property to check for macs. Set
9356 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9357 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9358 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9359 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9360 (send_card_buffer): Use txbuf.
9361 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9362 nested function out of the parent while on it.
9364 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9366 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9368 (grub_ieee1275_net_config_real): Fix config pointer.
9370 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9372 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9373 filename parsing to non-block devices.
9375 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9377 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9379 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9381 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9384 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9386 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9387 UUID search command even if hints probing failed.
9389 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9391 * po/POTFILES.in: Regenerated.
9393 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9395 Speed-up video on fuloong.
9397 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9399 (grub_pci_device_unmap_range): Handle non-cached address.
9400 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9402 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9403 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9404 (grub_video_sis315pro_set_active_render_target): Removed.
9405 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9406 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9407 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9409 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9412 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9414 * docs/grub.texi (Multi-boot manual config): New section.
9416 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9418 Avoid slow read-back from VRAM.
9420 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9422 * grub-core/video/fb/video_fb.c
9423 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9424 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9425 (front_target): Remove front_target. Add pages.
9426 (grub_video_fb_init): Skip setting front_pages.
9427 (grub_video_fb_fini): Likewise.
9428 (doublebuf_blit_update_screen): Use pages.
9429 (grub_video_fb_doublebuf_blit_init): Likewise.
9430 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9431 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9432 (grub_video_fb_setup): Prefer doublebuffing.
9434 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9436 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9439 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9443 * tests/util/grub-shell.in: Handle loongson.
9444 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9446 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9447 Reboot instead of shutdown if REBOOT is defined.
9449 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9451 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9452 sized ports since unlike on real hardware qemu supports only 32-bit
9455 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9457 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9458 * util/grub-mkrescue.in: Handle loongson.
9460 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9462 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9463 Set is_part appropriately.
9464 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9465 names. Canonicalize partition without full disk.
9467 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9469 Revert usb-quiesce since it's wrong.
9471 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9472 (grub_ofdisk_init): Don't do quiesce.
9474 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9476 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9477 PowerMac workaround to Xserves as well.
9478 Information supplied by: Benjamin Herrenschmidt.
9480 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9482 Don't assume that beginning address is also the entry point on ppc.
9484 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9485 (grub_linux_boot): Use linux_entry.
9486 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9487 (grub_linux_load64): Likewise.
9489 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9491 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9493 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9495 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9496 needlessly lose the console.
9498 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9500 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9503 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9505 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9506 than current grub_get_rtc() not implemented when booted with
9507 coreboot without TSC.
9509 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9510 Add machine/time.h to kernel headers on loongson.
9511 * grub-core/Makefile.core.def (kernel): Remove
9512 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9513 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9514 (grub_get_rtc): Likewise.
9515 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9516 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9517 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9518 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9519 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9520 rather than installing known non-working time source.
9521 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9522 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9523 * include/grub/time.h: Don't include machine/time.h.
9524 * include/grub/efi/time.h: Removed.
9525 * include/grub/i386/efi/time.h: Likewise.
9526 * include/grub/i386/ieee1275/time.h: Likewise.
9527 * include/grub/powerpc/ieee1275/time.h: Likewise.
9528 * include/grub/sparc64/ieee1275/time.h: Likewise.
9529 * include/grub/x86_64/efi/time.h: Likewise.
9531 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9533 Remove dot on i and j when combining with above diacritics.
9535 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9537 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9538 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9539 with dotless variants when any combining above is present.
9541 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9543 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9544 text and not binary.
9546 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9548 Stop polling as soon as we have the packet we were waiting for.
9550 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9552 * grub-core/net/arp.c (have_pending): New var.
9553 (pending_req): Likewise.
9554 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9556 (grub_net_arp_receive): Set have_pending.
9557 * grub-core/net/dns.c (recv_data): New field stop.
9558 (recv_hook): Set stop.
9559 (grub_net_dns_lookup): Init stop and use as stop condition.
9560 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9562 * grub-core/net/net.c (grub_net_poll_cards): New argument
9563 stop_condition. Stop when it goes true.
9564 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9566 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9568 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9570 Keep TX and RX buffers on EFI rather than always allocate new ones.
9572 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9573 card. All users updated.
9574 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9575 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9576 (get_card_packet): Likewise.
9577 (grub_efinet_findcards): Init new fields.
9579 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9581 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9582 compilation error on sparc64.
9584 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9586 Use ITC on IA64 rather than broken routine based on daytime.
9588 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9590 (grub_get_rtc) [__ia64__]: Likewise.
9591 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9592 (get_itc): New function.
9593 (grub_rtc_get_time_ms): Likewise.
9594 (grub_machine_init): Calibrate ITC.
9595 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9596 Keep only on non-ia64. Don't export since it's broken and used only
9597 if TSC is unavailable.
9599 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9601 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9603 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9604 Skip if parent is unused.
9606 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9608 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9610 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9612 Fix wildcard escaping.
9614 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9615 * grub-core/script/execute.c (wildcard_escape): .. to here.
9617 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9618 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9620 * grub-core/script/execute.c (gettext_append): Always escape.
9621 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9622 * grub-core/script/yylex.l: Don't cut away the escaping.
9623 * tests/grub_script_echo1.in: Add tests with wildcard.
9625 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9627 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9628 (ftdi_hw_configure): Likewise.
9629 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9631 (real_config): Handle 1.5 stop bits.
9632 (pl2303_hw_configure): Likewise.
9634 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9636 * Makefile.am: Add ppc linux bootcheck.
9637 * grub-core/tests/boot/linux-ppc.cfg: New file.
9638 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9640 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9642 * tests/grub_script_expansion.in: Skip network protocols.
9644 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9646 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9648 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9650 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9654 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9656 ESCC serial driver for conducting sautomated tests in qemu.
9657 Not tested on real hardware.
9659 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9660 * grub-core/term/ieee1275/escc.c: New file.
9661 * grub-core/Makefile.core.def (escc): New module.
9663 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9665 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9667 (serial_hw_fetch): Don't read invalid handle.
9668 (serial_hw_put): Don't write into invalid handle.
9670 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9672 Add a 1.5 stop bits value.
9674 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9675 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9676 GRUB_SERIAL_STOP_BITS_1_5.
9678 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9680 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9681 value rather than let it uninited.
9683 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9685 * grub-core/commands/wildcard.c (+check_file): New function.
9686 (wildcard_expand): Don't expand to non-existing files, expand with
9687 suffix and not attempt to expand if not needed.
9689 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9691 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9692 out of partitions containing other partitions.
9694 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9696 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9697 on some qemu versions with GRUB.
9699 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9701 (grub_openbsd_bootarg_pcibios): New struct.
9702 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9705 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9707 * tests/util/grub-shell.in: Trim firmware output on EFI.
9709 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9711 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9712 and coreboot since it's already in kernel.
9714 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9716 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9717 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9718 to here. New return value start. All users updated.
9719 Recursively scan linear mappings.
9720 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9722 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9723 Use grub_util_get_dm_node_linear_info.
9724 * util/getroot.c (convert_system_partition_to_system_disk): Use
9725 grub_util_info rather than grub_dprintf.
9726 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9728 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9730 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9732 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9733 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9735 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9737 * include/grub/types.h (grub_set_unaligned64): New function.
9738 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9741 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9743 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9744 (grub_ofdisk_fini): Quiesce USB devices.
9746 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9748 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9751 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9753 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9755 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9757 * grub-core/disk/pata.c (grub_pata_pio_read)
9758 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9759 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9761 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9763 Extend automated tests to qemu-mips.
9765 * Makefile.am: reorganise tests and enable qemu-mips.
9766 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9767 * grub-core/tests/boot/linux.init-mips.S: New file.
9768 * tests/partmap_test.in: Handle ata0 disks.
9769 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9772 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9774 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9776 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9779 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9781 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9782 (grub_halt): Likewise.
9783 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9785 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9787 * grub-core/term/serial.c (grub_serial_register)
9788 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9789 the behaviour in line with x86 platforms.
9791 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9793 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9794 (grub_ata_strncpy): Likewise.
9795 (grub_ata_identify): Add missing byteswaps.
9797 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9799 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9801 (screen_read_char): Likewise.
9802 (grub_vga_text_cls): Likewise.
9804 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9806 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9808 (make_file_path): Likewise.
9810 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9812 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9814 Tested by: Paulo Flabiano Smorigo.
9815 Crucial information about API supplied by: Coleen <Last name unknown>.
9816 Reviewed by: Coleen <Last name unknown>.
9818 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9820 * util/grub-mkimage.c: Disable -Wcast-align.
9822 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9824 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9827 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9829 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9831 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9833 * util/grub-probe.c (escape_of_path): Fix double free.
9835 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9837 * grub-core/commands/videoinfo.c (hook): Show pitch.
9839 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9841 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9843 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9845 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9846 (probe): Add ieee1275 to OFW devices.
9848 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9850 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9852 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9854 Handle IBM OFW path.
9856 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9858 (of_path_of_scsi): Handle vdevice.
9860 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9862 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9863 Allocate in multiples of 16 to avoid adding a few bytes free region the
9866 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9868 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9869 Allocate in multiples of 16 to avoid adding a few bytes free region the
9871 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9873 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9875 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9877 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9878 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9880 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9882 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9884 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9886 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9887 resulted in \\ at the end of the line.
9889 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9891 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9892 (grub_parser_cmdline_state): Likewise.
9893 (grub_parser_split_cmdline): Likewise.
9895 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9897 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9898 /dev/root and /dev/dm-*.
9900 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9902 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9903 fix partially stale display.
9905 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9907 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9910 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9912 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9913 Fix MBR remapping workaround.
9914 (grub_util_biosdisk_read) [__linux__]: Likewise.
9916 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9918 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9920 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9922 * configure.ac: Bump to beta6.
9924 2012-05-31 Christer Weinigel <christer@weinigel.se>
9926 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9928 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9930 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9931 (grub_cmd_linux): Likewise.
9933 2012-05-31 Christer Weinigel <christer@weinigel.se>
9937 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9938 (GRUB_EHCI_MULT_TWO): Likewise.
9939 (GRUB_EHCI_MULT_THREE): Likewise.
9940 (GRUB_EHCI_CMASK_MASK): New enum value.
9941 (GRUB_EHCI_SMASK_MASK): Likewise.
9942 (GRUB_EHCI_CMASK_OFF): Likewise.
9943 (GRUB_EHCI_SMASK_OFF): Likewise.
9944 (grub_ehci_pci_iter): Enable periodic schedule.
9945 (grub_ehci_parse_notrun): Likewise.
9946 (grub_ehci_restore_hw): Likewise.
9947 (grub_ehci_setup_qh): Set flags for low speed transfers.
9948 (grub_ehci_find_qh): Use periodic list for low speed.
9949 (grub_ehci_setup_transfer): Check periodic queue as well.
9950 (grub_ehci_check_transfer): Likewise.
9951 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9953 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9955 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9958 2012-05-31 Peter Jones <pjones@redhat.com>
9960 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9961 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9962 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9964 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9966 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9967 uninited variable. Allocate at least setup_sects.
9969 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9971 Fix handling of EFI with big memory maps.
9973 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9974 (real_mode_mem): Likewise.
9975 (real_mode_target): Likewise.
9976 (real_mode_pages): Likewise.
9977 (prot_mode_pages): Likewise.
9978 (linux_params): New var.
9979 (linux_cmdline): Likewise.
9980 (free_pages): Don't set real mode variables.
9981 (allocate_pages): Don't allocate real mode memory.
9982 (grub_e820_add_region): Remove the limit.
9983 (grub_linux_boot): Allocate and copy real mode memory.
9984 (grub_linux_unload): Free linux_cmdline.
9985 (grub_cmd_linux): Use temporary storage for parameters.
9986 (grub_cmd_initrd): Likewise.
9987 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9988 (linux_kernel_params): Make it 1K big.
9990 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9992 * Makefile.util.def: Remove -Wno-format.
9993 * grub-core/Makefile.core.def: Likewise.
9995 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9997 * tests/cmp_unit_test.c: Add missing failure message.
9998 * tests/example_unit_test.c: Likewise.
9999 * tests/printf_unit_test.c: Likewise.
10001 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
10003 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
10004 relaxation of protective MBR requirements.
10006 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
10008 * configure.ac: Add condition for COND_HOST_XNU.
10009 * Makefile.util.def (10_xnu): New script.
10010 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
10012 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
10014 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
10017 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
10019 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
10020 Binary on other platforms stays identical.
10022 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10024 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
10027 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10029 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
10031 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10033 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
10034 rather than defining size_t ourselves to avoid conflict.
10036 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10038 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
10039 initialisation to avoid __bzero reference.
10041 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10043 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
10045 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
10046 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
10047 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
10048 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
10049 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
10051 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10053 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
10054 * grub-core/kern/misc.c: Likewise.
10055 * grub-core/loader/i386/xnu.c: Likewise.
10056 * include/grub/i386/tsc.h: Likewise.
10057 * include/grub/symbol.h: Likewise.
10059 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10061 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
10062 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
10065 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10067 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
10068 Implement Apple flavour.
10069 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
10071 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10073 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
10074 (memmove) [__APPLE__]: Likewise.
10075 (memcpy) [__APPLE__]: Likewise.
10076 (memset) [__APPLE__]: Likewise.
10077 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
10078 (memmove) [__APPLE__]: Likewise.
10079 (memcpy) [__APPLE__]: Likewise.
10080 (memset) [__APPLE__]: Likewise.
10082 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10084 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
10085 dependency discard.
10087 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10089 * grub-core/normal/main.c (read_config_file): Provide config_file and
10091 * util/grub.d/41_custom.in: Use config_directoy when available.
10093 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10095 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
10096 (grub_bfs_dir): Likewise.
10098 2012-05-27 Peter Jones <pjones@redhat.com>
10100 The old code gives arguments to a printf function which can't work
10101 correctly, and the compiler complains.
10103 * grub-core/tests/example_functional_test.c (example_test): Add
10105 * grub-core/tests/lib/test.c (add_failure): Rewrite.
10106 * include/grub/test.h (grub_test_assert_helper): New declaration.
10107 (grub_test_assert): Use grub_test_assert_helper.
10109 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10111 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
10112 (exfctest): ... this to avoid overlong filenames.
10115 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10117 Handle "." and ".." on squashfs.
10119 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
10120 Make inode numbers into stack.
10121 (grub_squash_read_symlink): Use stack.
10122 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
10123 (make_root_node): Fill stack.
10124 (grub_squash_open): Use stack.
10126 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10128 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
10131 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10133 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
10134 stderr on test calls.
10136 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10138 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
10140 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10142 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
10144 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10146 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
10149 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10151 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
10152 (grub_hfsplus_iterate_dir): Add "." and "..".
10154 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10156 * grub-core/fs/cpio.c (canonicalize): Handle "..".
10157 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
10159 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10161 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
10162 (find_path): Handle "." and "..".
10164 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10166 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
10167 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10168 (grub_affs_iterate_dir): Handle hardlinks.
10170 2012-05-26 Matthew Garrett <mjg@redhat.com>
10172 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10173 (grub_efi_console_fini): Likewise.
10174 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10175 (grub_video_gop_fill_mode_info): Rename to ...
10176 (grub_video_gop_fill_real_mode_info): ... this.
10177 (grub_video_gop_fill_mode_info): New function.
10178 (grub_video_gop_setup): Setup double framebuffer.
10179 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10181 (grub_video_gop_swap_buffers): Copy framebuffer.
10182 (grub_video_gop_fini): Free offscreen buffer.
10183 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10185 (grub_efi_gop_blt_pixel): New struct.
10187 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10189 * gentpl.py: Remove error disabling for objconv.
10191 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10193 * configure.ac: Remove -Wunitialized as it's not available on older
10196 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10198 Fix extent overflow comparator.
10200 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10201 (grub_hfsplus_read_block): Set type.
10202 (grub_hfsplus_cmp_extkey): Compare type.
10204 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10206 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10208 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10210 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10213 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10215 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10216 (dejavu_bold_14.pf2): New target.
10218 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10220 * configure.ac: Fix djvu font detection.
10222 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10224 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10225 ext* instead of ext2.
10227 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10229 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10232 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10234 * docs/grub-dev.texi: Remove dot from .png.
10236 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10238 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10239 protective entry in any slot.
10240 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10241 if protective entry is found in any slot.
10243 Protective entry in non-first slot make no sense but is a widespread
10246 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10248 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10250 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10252 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10254 (grub_reiserfs_open): Don't free root.
10256 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10258 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10259 after freeing for safety.
10261 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10263 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10264 Reported by: Jordan Uggla.
10266 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10268 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10269 actual implementation. Specifically, clarify that the grub menu will
10270 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10273 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10275 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10278 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10280 Remove unjustified hard dependency of normal.mod on gfxterm.
10282 * include/grub/term.h (grub_term_output): New member fullscreen.
10283 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10284 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10285 (grub_gfxterm): Set .fullscreen.
10286 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10287 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10289 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10291 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10292 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10293 Mention case-insensitive AFFS, SFS and JFS.
10295 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10297 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10299 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10301 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10304 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10306 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10307 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10309 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10311 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10312 (grub_jfs_mount): Fill caseins.
10313 (grub_jfs_find_file): Respect caseins.
10315 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10317 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10320 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10322 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10323 New argument origpath. All users updated.
10325 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10327 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10328 (read_attr): Ensure that we read start of possibly compressed block.
10330 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10332 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10333 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10336 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10338 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10339 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10340 (dejavu.pf2): Replace with ...
10341 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10344 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10346 * util/grub.d/20_linux_xen.in: Add missing line.
10348 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10350 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10351 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10352 (grub_utf16_to_utf8): Likewise.
10354 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10356 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10357 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10358 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10359 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10360 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10361 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10363 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10365 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10368 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10370 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10371 (grub_udf_read_symlink): Handle read_string failure.
10373 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10375 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10378 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10380 Fix handling of UDF symlinks.
10382 * grub-core/fs/udf.c (read_string): New argument outbuf.
10384 (grub_ufs_read_symlink): Rename to ...
10385 (grub_udf_read_symlink): ... this. All users updated.
10386 Handle symlinks with more than one component.
10388 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10390 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10391 symlinks. Replace leading colon with a slash.
10393 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10395 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10398 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10400 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10401 match in inner node.
10403 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10405 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10406 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10407 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10408 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10409 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10410 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10411 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10412 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10413 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10415 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10417 Use grub-probe and not cmp to check that disk is empty.
10419 * util/grub-install.in: Use grub-probe for zero-check.
10420 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10421 (probe): Handle PRINT_ZERO_CHECK.
10422 (argp_parser): Handle -t zero_check.
10424 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10426 Flush block cache on adding disk to device map.
10428 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10429 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10431 (read_device_map): Likewise.
10432 (open_device): Flush on opening.
10434 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10436 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10437 (handle_symlink): Fix off-by-one error.
10438 Canonicalize the target.
10439 (grub_cpio_dir): Canonicalize the name.
10442 (grub_cpio_open): Canonicalize the name.
10444 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10446 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10449 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10451 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10452 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10454 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10456 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10457 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10460 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10462 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10465 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10467 Fix UFS1 big file support.
10469 * grub-core/fs/ufs.c (INODE): Removed.
10470 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10472 (INODE_MODE): Simplify.
10473 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10474 (grub_ufs_lookup_symlink): Don't use INODE.
10476 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10478 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10480 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10481 (grub_minix_data): Replace log_block_size with block_size.
10482 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10483 (grub_minix_mount): Fill block_size.
10485 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10487 * configure.ac: Bump to beta5.
10489 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10491 Fix wrapped HFS+ handling.
10493 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10494 blocks_start. All users updated.
10495 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10497 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10499 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10501 Fix long symlinks on reiserfs.
10503 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10504 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10505 (grub_reiserfs_iterate_dir): Save size for non-directories.
10506 (grub_reiserfs_open): Don't reread stat block as we already know the
10508 (grub_reiserfs_read): Split into...
10509 (grub_reiserfs_read_real): ... and ...
10510 (grub_reiserfs_read): ...this.
10512 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10514 Fix non-indexed JFS.
10516 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10517 (grub_jfs_data): New field namecomponentlen.
10518 (grub_jfs_mount): Fill namecomponentlen.
10519 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10521 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10523 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10524 * tests/grub_script_echo1.in: Add tests.
10526 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10528 * util/grub-install.in: Ignore empty devicetree directory.
10530 2012-05-08 Bean <bean123ch@gmail.com>
10532 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10534 (free_rsm): Free header as well.
10535 (free_old_fragments): Fix memory leak.
10536 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10537 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10538 (destroy_pq): Likewise.
10539 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10541 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10543 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10544 resulting hash as a precaution.
10546 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10548 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10549 '_' in variable names.
10550 * grub-core/net/net.c (grub_net_network_level_interface_register):
10553 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10555 Fix AFFS with non-512B blocks.
10557 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10558 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10559 (grub_affs_data): Replace blocksize with log_blocksize.
10560 (grub_affs_read_block): Fix non-512B blocks.
10561 (grub_affs_read_symlink): Likewise.
10562 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10563 (grub_affs_read): Fix non-512B blocks.
10564 (grub_affs_label): Likewise.
10565 (grub_affs_mtime): Likewise.
10566 (grub_affs_mount): Fix block detection routine.
10568 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10570 Add filesystem mtime to AFFS.
10572 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10573 (aftime2ctime): New function.
10574 (grub_affs_dir): Use aftime2ctime.
10575 (grub_affs_label): Fix return value.
10576 (grub_affs_mtime): New function.
10577 (grub_affs_fs): Add mtime.
10579 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10581 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10584 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10586 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10589 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10591 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10593 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10595 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10597 (FLAGS_CASE_SENSITIVE): New enum value.
10598 (cache_entry): New struct.
10599 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10600 cache_size and cache.
10601 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10602 Add log_blocksize and fshelp_flags.
10603 (grub_sfs_read_extent): Handle non-512 blocks.
10604 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10605 (grub_sfs_read_file): Handle non-512 blocks.
10606 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10608 (grub_sfs_read_symlink): Handle non-512 blocks.
10609 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10610 (grub_sfs_dir): Free cache.
10611 (grub_sfs_close): Likewise.
10613 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10615 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10618 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10620 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10622 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10624 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10626 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10628 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10629 (grub_sfs_read_extent): Likewise.
10630 (grub_sfs_read_block): Likewise.
10631 (grub_sfs_mount): Likewise.
10632 (grub_sfs_iterate_dir): Likewise.
10633 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10634 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10636 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10638 Fix errors on compressed NTFS with 512B clusters.
10640 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10642 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10644 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10645 Relax check for inline extents.
10646 (ntfscomp): Return correct -1 on error and not 0.
10648 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10650 * util/grub-install.in: Fix handling of prefix containing spaces.
10652 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10654 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10655 (grub_squash_read_data): Fix offset byte-swapping.
10657 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10659 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10660 per common usage and preffered in several parts of code.
10661 (grub_memcmp): Likewise.
10662 (grub_strncmp): Likewise.
10663 * include/grub/misc.h (grub_strcasecmp): Likewise.
10664 (grub_strncasecmp): Likewise.
10665 * Makefile.util.def (cmp_test): New test.
10666 (grub_script_strcmp): Likewise.
10667 * tests/cmp_unit_test.c: New file.
10668 * tests/grub_script_strcmp.in: Likewise.
10669 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10671 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10673 * include/grub/pci.h: Move enums into no-asm part.
10675 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10677 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10679 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10681 * util/getroot.c (find_hurd_root_device): Try to make error message
10682 and comments to translators clearer.
10684 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10686 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10688 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10690 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10693 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10695 * docs/grub.cfg: Update.
10697 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10699 * docs/grub.texi (PXE): Remove not present variables.
10701 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10703 * grub-core/net/net.c (defserver_set_env): New function.
10704 (defserver_get_env): Likewise.
10705 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10707 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10709 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10712 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10714 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10715 * grub-core/kern/emu/hostdisk.c: Likewise.
10717 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10719 Handle hurd userspace partitions.
10721 * util/getroot.c (find_hurd_root_device): New function.
10722 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10724 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10726 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10728 Reported by: Bastian Blank.
10730 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10732 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10733 crossing page boundary.
10735 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10737 Fix B-tree search in BFS, especially in presence of non-ASCII
10740 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10741 (find_in_b_tree): Use standard bsearch + btree algorithm.
10743 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10745 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10748 2012-05-03 Matthew Garrett <mjg@redhat.com>
10749 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10751 Suspend broadcom cards in order to stop their DMA.
10753 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10754 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10755 (pci): Don't build on x86 EFI.
10756 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10757 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10759 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10760 stop_broadcom if running on EFI.
10761 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10762 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10763 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10764 (grub_pci_find_capability): New proto.
10766 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10768 * docs/grub.texi: Remove dot from the extension as it apparently
10769 doesn't work with some makeinfo versions.
10771 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10773 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10774 with GRUB expectance.
10776 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10778 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10780 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10782 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10783 zero after directory block since last entry may be not 0-terminated if
10784 it ends on block boundary. Use continue instead of if spanning whole
10787 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10789 Support 4K sectors UDF inline files.
10791 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10792 (grub_udf_extended_file_entry): Likewise.
10793 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10795 (get_fshelp_size): New function.
10796 (grub_udf_read_icb): Read whole block.
10797 (grub_udf_iterate_dir): Likewise.
10798 (grub_udf_dir): Likewise.
10799 (grub_udf_open): Likewise.
10801 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10803 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10805 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10807 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10808 inline symlinks in addition to workaround.
10810 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10812 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10814 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10816 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10818 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10820 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10822 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10824 Fix reiserfs big seek times.
10826 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10827 exact. All users updated.
10828 (grub_reiserfs_read): Use nearest btree search for seeking.
10829 Fix return value on error.
10831 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10833 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10835 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10836 * docs/grub.texi: Update menuentry description.
10838 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10840 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10841 crash when embedding onto filesystem.
10843 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10845 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10848 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10850 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10852 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10854 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10857 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10858 2012-05-01 Bean <bean123ch@gmail.com>
10860 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10862 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10864 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10865 Special behaviour for len = 0 to read whole file isn't used anywhere and
10866 can cause buffer ovewrflows in several places.
10868 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10870 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10872 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10874 Handle RAIDZ on non-512B sectors.
10876 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10877 max_children_ashift.
10878 (fill_vdev_info_real): Fill max_children_ashift.
10879 (read_device): Use max_children_ashift.
10881 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10883 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10885 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10887 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10889 * docs/grub.texi: Update device.map parts.
10891 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10893 Don't scan into non-diskfilter devices having diskfilter names.
10895 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10896 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10898 (scan_disk_hook): New function.
10900 2012-04-29 Bean <bean123ch@gmail.com>
10902 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10905 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10907 * configure.ac: Detect starfield theme font path
10908 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10910 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10912 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10913 geometry on serial consoles.
10915 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10917 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10918 because of network consoles.
10920 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10922 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10925 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10927 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10928 falls on Q syndrom.
10930 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10932 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10933 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10935 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10937 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10938 Allocate at lest 8192 for temporary buffer as required for lzo.
10940 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10942 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10943 to cluster_bits, since it's already added in.
10944 (grub_fat_read_data): Likewise.
10946 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10948 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10949 as long as cluster size is multiple of 512 bytes.
10951 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10953 * util/grub-mkrescue.in: Fix locale directory.
10955 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10957 * grub-core/kern/emu/hostdisk.c (map): Make static.
10959 2012-04-23 Bean <bean123ch@gmail.com>
10961 * util/grub-fstest.c (fstest): Add missing break.
10963 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10967 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10968 not define nr variable.
10969 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10970 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10971 grub_find_device): Do not define.
10973 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10975 Fix kfreebsd compile and behaviour.
10977 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10979 * util/getroot.c: Fix wait.h include.
10980 (grub_guess_root_devices): Error if grub_find_device fails.
10981 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10982 (grub_util_get_dev_abstraction): Likewise.
10983 (grub_util_pull_device): Likewise.
10984 (grub_util_get_grub_dev): Likewise.
10985 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10987 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10989 Fix and unify wholedisk detection.
10991 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10992 is_part. All users updated.
10993 (device_is_wholedisk): Removed.
10994 (grub_util_biosdisk_get_grub_dev): Use is_part.
10996 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10998 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
11001 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11003 * configure.ac: Bump to beta4.
11005 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11007 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
11008 --fs-uuid --set UUID syntax.
11010 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11012 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
11015 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11017 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
11019 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
11021 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
11023 2012-04-18 Mike Gilbert <floppym@gentoo.org>
11025 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
11027 2012-04-18 Bean <bean123ch@gmail.com>
11029 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
11032 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11034 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
11036 (grub_util_biosdisk_read): Handle Linux partitions not exactly
11037 corresponding to GRUB partitions.
11038 (grub_util_biosdisk_write): Likewise.
11040 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11042 Scan mdraid before LVM.
11044 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
11045 (grub_diskfilter_register_front): ... this.
11046 (grub_diskfilter_register_back): New function.
11047 All users of grub_diskfilter_register updated.
11049 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11051 * util/grub-install.in: Fix an automatic target detection bug.
11053 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11055 * util/grub-install.in: New option --efi-directory.
11057 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
11059 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
11060 boot services if we have no other choice.
11062 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
11064 * util/grub-mknetdir.in: Rename --override-directory to --directory and
11066 * tests/util/grub-shell.in: Update to --directory.
11068 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11070 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
11072 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11074 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
11075 (grub_minix_read_file): Likewise.
11076 (grub_minix_read_inode): Likewise.
11077 (grub_minix_find_file): Likewise.
11078 (grub_minix_dir): Likewise.
11080 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11082 * util/grub-setup.c (setup): Fix partition handling and blocklist
11085 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11087 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
11088 redundant buggy overlap check.
11090 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11092 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
11095 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11097 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
11098 kh.loadflags on pre-2.00 kernels.
11100 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11102 Terminate UNDI and PXE before launching the payload to avoid problems
11105 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
11106 (grub_loader_flags): ... this. All users updated.
11107 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
11108 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
11109 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
11110 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
11112 (grub_pxe_restore): Likewise.
11113 (fini_hnd): New var.
11114 (GRUB_MOD_INIT): Register shutdown hook.
11115 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
11116 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
11117 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
11118 (grub_loader_set): Rename second argument to flags.
11120 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11122 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
11124 (grub_get_num_of_utf8_bytes): New function.
11125 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
11126 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
11128 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
11129 (grub_ucs4_to_utf8): Change return type.
11131 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11133 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
11135 * grub-core/fs/bfs.c (hop_level): Likewise.
11136 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
11138 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11140 * grub-core/lib/adler32.c: Recode due to license unclearness.
11142 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11144 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
11145 (test_header): Likewise.
11147 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11149 Fix --help formatting.
11151 * util/grub-mkconfig_lib.in (print_option_help): New function.
11152 (grub_fmt): Likewise.
11153 * util/grub-install.in: Use print_option_help and grub_fmt.
11154 * util/grub-kbdcomp.in: Likewise.
11155 * util/grub-mkconfig.in: Likewise.
11156 * util/grub-mknetdir.in: Likewise.
11157 * util/grub-mkrescue.in: Likewise.
11158 * util/grub-mkstandalone.in: Likewise.
11159 * util/grub-reboot.in: Likewise.
11160 * util/grub-set-default.in: Likewise.
11161 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11163 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11165 * linguas.sh: Remove autogenerated *.po.
11167 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11169 * po/README: Move language fetcing to ...
11170 * linguas.sh: ... here.
11171 * po/README: Point to linguas.sh.
11173 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11175 * po/README: Exclude ko.po due to disclaimer problems.
11177 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11179 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11181 (grub_gettext_translate_real): Handle 0th string.
11182 (grub_gettext_translate): Ensure that "" isn't translated.
11184 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11186 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11187 TRANSLATORS comment.
11188 (grub_diskfilter_print_partmap): Propagate changing of error into
11191 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11193 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11194 to uint64_t to prevent overflow.
11195 (grub_diskfilter_lv): Increase start_extent and extent_count
11196 to uint64_t to prevent overflow.
11198 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11200 * configure.ac: Increase version.
11202 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11204 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11206 * po/Rules-translit: New file.
11207 * po/arabic.sed: Likewise.
11208 * po/cyrillic.sed: Likewise.
11209 * po/greek.sed: Likewise.
11210 * po/hebrew.sed: Likewise.
11211 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11212 * po/Makefile.in.in: Add extra_dist4.
11214 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11216 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11218 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11219 modify names. Introduce MODE_BIGENDIAN.
11220 * grub-core/fs/minix_be.c: New file.
11221 * grub-core/fs/minix2_be.c: Likewise
11222 * grub-core/fs/minix3_be.c: Likewise.
11223 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11225 * grub-core/Makefile.core.def (minix_be): New module.
11226 (minix2_be): Likewise.
11227 (minix3_be): Likewise.
11229 2012-04-01 Felix <email@hamburg.de>
11231 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11232 (devs): Add MBP 2011.
11234 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11236 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11238 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11240 * grub-core/normal/cmdline.c (print_completion): New field
11242 (grub_cmdline_get): Handle width properly.
11244 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11246 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11248 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11250 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11251 after 29th of February.
11253 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11255 Fix exfat endianness handling.
11257 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11258 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11259 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11260 Byte-swap utf16 when necessary.
11261 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11263 2012-03-31 Anton Blanchard <anton@samba.org>
11264 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11266 Fix btrfs endianness handling.
11268 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11269 (lower_bound): Make root uint64_t. Use root in le.
11270 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11271 (find_path): Fix template key init.
11272 (grub_btrfs_dir): Fix mtime byteswap.
11273 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11275 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11277 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11278 recursion_depth. Break infinite resursions. All users updated.
11280 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11282 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11284 Reported by: Peter Jones.
11286 2012-03-31 Anton Blanchard <anton@samba.org>
11288 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11291 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11293 * util/grub-install.in: Fix nvram call for PreP.
11295 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11297 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11298 the error when some elements are missing into a warning.
11300 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11302 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11304 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11306 * docs/grub.texi (Invoking grub-probe): New section.
11307 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11309 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11311 Fix tab and wide character handling in editor and menu.
11313 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11314 agglomerate control characters with combining marks.
11315 (bidi_line_wrap): Allow break on tab.
11316 (grub_unicode_get_comb_start): New function.
11317 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11319 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11321 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11322 fixed_tab_size. All users updated.
11323 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11324 (grub_term_getcharwidth): Handle \t.
11325 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11328 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11330 Handle big-endian mdraid.
11332 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11333 * grub-core/Makefile.core.def (mdraid09_be): New module.
11334 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11335 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11336 * grub-core/disk/mdraid_linux_be.c: New file.
11338 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11340 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11342 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11344 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11345 missing quotes which caused confusion among translators.
11347 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11349 * util/grub-mkconfig_lib.in: Fix typo.
11351 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11353 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11355 * tests/grub_script_leading_whitespace.in: New file.
11356 * Makefile.util.def (grub_script_leading_whitespace): New test.
11358 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11360 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11363 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11365 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11366 starts with control character.
11368 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11370 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11372 (grub_gdb_outbuf): Likewise.
11374 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11376 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11377 zero terminator. Fixes a crash.
11379 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11381 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11383 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11384 images independently of preffered adderss field.
11386 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11388 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11389 * grub-core/commands/regexp.c: Likewise.
11390 * grub-core/loader/i386/linux.c: Likewise.
11391 * grub-core/partmap/msdos.c: Likewise.
11392 * grub-core/script/execute.c: Likewise.
11393 * grub-core/term/gfxterm.c: Likewise.
11395 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11397 Add variable parsing in $"..." and fix several mismatches with bash.
11399 * Makefile.util.def (grub_script_gettext): New test.
11400 * grub-core/script/execute.c (parse_string): New function.
11401 (gettext_append): Likewise.
11402 (grub_script_arglist_to_argv): Use gettext_append.
11403 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11404 * tests/grub_script_gettext.in: New file.
11406 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11408 Fix handling of leading spaces in scripts.
11410 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11412 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11413 other than skipping \r. All users updated.
11414 * tests/grub_script_echo1.in: Add space-related tests.
11415 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11417 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11419 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11421 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11423 * configure.ac: Bump up the version to beta2.
11425 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11427 Fix gettext reload bugs (e.g. inability to disable gettext
11430 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11431 main_context and secondary_context. All functions updated.
11432 (grub_gettext_translate): Rename to ...
11433 (grub_gettext_translate_real): ... this. Return NULL on failed
11435 (grub_gettext_translate): Handle secondary context.
11436 (grub_gettext_delete_list): Close file and zero-out the context.
11437 (grub_mofile_open): Don't call grub_gettext_delete_list.
11439 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11440 if locale="" to avoid pointless error message.
11441 (grub_gettext_env_write_lang): Update lang even if load fails.
11442 Handle secondary context.
11443 (grub_gettext_reread_prefix): New function.
11444 (read_main): Likewise.
11445 (read_secondary): Likewise.
11446 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11447 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11448 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11449 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11451 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11453 * configure.ac: Decrease warning level to avoid spurious warnings and
11454 to be able to compile with GCC 4.2.
11455 * Makefile.util.def: Remove -Wno-error=logical-op.
11457 2012-03-10 William Bittner <william.bittner@gmail.com>
11459 * util/import_unicode.py: Add missing brackets around string for
11462 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11464 Fix efi chainloader on network root.
11466 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11468 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11471 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11473 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11474 unused show_text member.
11475 * docs/grub.texi: Document "text" property.
11477 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11479 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11482 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11484 Fix IMSM handling on Fedora.
11486 * util/getroot.c (grub_util_is_imsm): New function.
11487 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11489 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11491 * Makefile.am: Strip gold section.
11492 * conf/Makefile.common: Likewise.
11493 * gentpl.py: Likewise.
11494 * grub-core/Makefile.core.def: Likewise.
11495 * grub-core/genmod.sh.in: Likewise.
11497 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11499 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11500 * util/grub.d/20_linux_xen.in: Likewise.
11501 Based on Debian patch.
11503 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11505 * util/grub.d/10_linux.in: Fix syntax error resulting in
11506 Richard Laager's patch.
11507 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11509 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11511 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11514 2012-03-10 Richard Laager <rlaager@wiktel.com>
11516 * util/grub.d/10_linux.in: Fix ZFS root passing.
11518 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11520 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11521 * grub-core/commands/xnu_uuid.c: Likewise.
11522 * grub-core/loader/efi/appleloader.c: Likewise.
11523 * grub-core/script/execute.c: Likewise.
11524 * grub-core/script/main.c: Likewise.
11525 * util/grub-mkfont.c: Likewise.
11527 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11529 * util/grub-mkfont.c (options): Use more appropriate "select" that
11530 "set" for face index.
11532 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11534 * util/grub-editenv.c (options): Gettextize command summaries.
11536 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11538 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11539 "out of memory" error messagge.
11541 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11543 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11544 of diskfilter for diskfilter on diskfilter support.
11546 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11548 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11550 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11552 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11555 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11557 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11559 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11561 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11563 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11565 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11568 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11570 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11572 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11574 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11576 * util/grub-install.in: Fix and gettextize error message.
11578 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11580 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11582 * util/grub-mount.c (options): Likewise.
11584 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11586 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11588 * grub-core/commands/search_wrap.c (options): Likewise.
11590 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11592 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11594 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11596 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11598 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11601 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11603 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11604 "temporary" since it's used in identifier and is limited in space.
11606 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11608 * po/POTFILES.in: Regenerate. Include *.h since they contain
11609 translatable strings as well.
11611 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11613 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11614 byte-swap on big-endian.
11615 Reported by: Lennart Sorensen
11617 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11619 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11620 (allocate_pages): Improve dprintf.
11621 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11622 code32_start. Fill code32_start and kernel_alignment in params.
11623 (grub_cmd_initrd): Use prot_init_space.
11625 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11627 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11629 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11631 * util/grub-install.in: Add missing dot at the end of sentence.
11633 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11635 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11636 * grub-core/commands/videotest.c: Likewise.
11637 * grub-core/loader/i386/linux.c: Likewise.
11639 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11641 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11643 Reported by: Milo Casagrande.
11645 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11647 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11648 * grub-core/commands/gptsync.c: Likewise.
11649 * grub-core/commands/hashsum.c: Likewise.
11650 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11651 * grub-core/commands/legacycfg.c: Likewise.
11652 * grub-core/io/gzio.c: Likewise.
11653 * grub-core/net/net.c: Likewise.
11654 * grub-core/term/gfxterm.c: Likewise.
11655 * grub-core/term/terminfo.c: Likewise.
11656 * grub-core/tests/test_blockarg.c: Likewise.
11657 * grub-core/video/video.c: Likewise.
11658 * util/grub-install.in: Likewise.
11659 * util/grub-mkfont.c: Likewise.
11661 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11663 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11665 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11667 * grub-core/commands/search_wrap.c (options): Fix a typo.
11668 Reported by: David Prévot.
11670 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11672 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11675 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11677 * util/grub-script-check.c (main): Fix a syntax error message which was
11680 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11682 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11684 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11686 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11689 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11691 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11693 * util/grub-mount.c (options): Likewise.
11695 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11697 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11699 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11701 * grub-core/net/http.c: Add TRANSLATORS comments.
11702 * grub-core/normal/cmdline.c: Likewise.
11703 * grub-core/normal/misc.c: Likewise.
11704 * grub-core/partmap/msdos.c: Likewise.
11705 * grub-core/parttool/msdospart.c: Likewise.
11706 * grub-core/script/execute.c: Likewise.
11707 * grub-core/script/main.c: Likewise.
11708 * grub-core/term/terminfo.c: Likewise.
11709 * grub-core/video/bitmap.c: Likewise.
11710 * util/grub-install.in: Likewise.
11711 * util/grub-mkimage.c: Likewise.
11712 * util/grub-mklayout.c: Likewise.
11713 * util/grub-setup.c: Likewise.
11715 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11717 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11718 with similar messages in grub-fstest.
11720 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11722 * util/grub-install.in: Unify "option requires an argument" message
11723 with similar messages in other files.
11724 * util/grub-mkconfig.in: Likewise.
11726 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11728 * util/grub-set-default.in: Replace printf with gettext_printf (the
11729 string in in question is already translated from grub-reboot)
11731 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11733 * configure.ac: Bump up the version to beta1.
11735 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11737 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11738 case when min_align = 0.
11740 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11742 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11743 and fix a case when line_start overflows.
11745 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11747 * util/grub-reboot.in (usage): Mention id posibility.
11748 * util/grub-set-default.in (usage): Likewise.
11750 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11752 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11753 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11754 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11755 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11756 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11757 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11758 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11760 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11762 * grub-core/commands/menuentry.c (options): Remove
11763 GRUB_ARG_OPTION_REPEATABLE.
11764 Reported by: Andreas Vogel
11766 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11768 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11770 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11772 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11775 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11777 Use sort -V by the idea of Georgi Georgiev.
11779 * util/grub-mkconfig_lib.in (version_sort): New function.
11780 (version_test_numeric): Use version_sort.
11782 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11784 Use submenus in grub-mkconfig.
11786 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11787 * util/grub-mkconfig_lib.in (grub_quote): New function.
11788 (gettext_printf): Use gettext and not gettext_quoted to fix several
11790 * util/grub.d/10_hurd.in: Use submenus.
11791 * util/grub.d/10_kfreebsd.in: Likewise.
11792 * util/grub.d/10_linux.in: Likewise.
11793 * util/grub.d/10_netbsd.in: Likewise.
11794 * util/grub.d/20_linux_xen.in: Likewise.
11795 * util/grub.d/30_os-prober.in: Likewise.
11796 * util/grub.d/10_illumos.in: Add missing quoting.
11797 * util/grub.d/10_windows.in: Likewise.
11799 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11801 Fix menu title instability bug.
11803 * grub-core/commands/menuentry.c (options): New option --id.
11804 (grub_normal_add_menu_entry): New argument id. All users updated.
11805 (grub_cmd_menuentry): Handle --id.
11806 (grub_menu_init): Accept unknown arguments.
11807 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11808 feature_menuentry_options.
11809 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11811 (get_entry_number): Match with id as well.
11812 * include/grub/menu.h (grub_menu_entry): New member id.
11813 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11814 * util/grub.d/00_header.in: Define menuentry_id_option.
11815 * util/grub.d/10_hurd.in: Define id.
11816 * util/grub.d/10_illumos.in: Likewise.
11817 * util/grub.d/10_kfreebsd.in: Likewise.
11818 * util/grub.d/10_linux.in: Likewise.
11819 * util/grub.d/10_netbsd.in: Likewise.
11820 * util/grub.d/10_windows.in: Likewise.
11821 * util/grub.d/20_linux_xen.in: Likewise.
11822 * util/grub.d/30_os-prober.in: Likewise.
11824 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11826 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11827 "scope" with "body".
11829 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11831 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11832 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11833 prot_size and prot_file_size.
11835 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11837 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11838 All users updated. If easily=1 require raid-5/-6 to be full.
11839 (is_node_readable): Likewise.
11840 (scan_devices): Scan incomplete but readable LVs at the end.
11841 (grub_diskfilter_memberlist): Pull missing devices.
11842 (insert_array): Skip scanning until device is complete or scan is
11844 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11846 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11847 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11849 2012-03-03 Matthew Garrett <mjg@redhat.com>
11850 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11852 Avoid EFI boot services when loading Linux.
11854 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11855 avoid_efi_bootservices. All users updated.
11856 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11857 argument avoid_efi_bootservices. All users updated.
11858 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11859 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11860 align, min_align, relocatable, prefered_address. All users updated.
11861 Allocate avoiding boot services if kernel is relocatable.
11862 (grub_cmd_linux): Check if kernel is relocatable.
11863 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11864 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11865 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11866 avoid_efi_boot_services.
11867 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11868 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11869 (linux_kernel_params): Likewise.
11871 2012-03-03 Matthew Garrett <mjg@redhat.com>
11872 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11876 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11878 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11879 modes. Set gop_handle.
11880 (grub_video_gop_get_edid): New function.
11881 (grub_gop_get_preferred_mode): Likewise.
11882 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11883 (grub_video_efi_gop_adapter): Set .get_edid.
11884 * include/grub/efi/edid.h: New file.
11885 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11887 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11889 * util/grub-install.in: Load efivars unconditionally.
11891 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11893 * po/Rules-piglatin: Change suffix from .po-update-en to
11894 .po-update-en-piglatin.
11896 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11900 * po/piglatin.sed: New file.
11901 * po/en@piglatin.header: Likewise.
11902 * po/Rules-piglatin: Likewise.
11903 * po/README: Add en@piglatin to autogenerated languages.
11905 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11907 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11909 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11910 "Check" since we don't check anything.
11911 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11913 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11914 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11915 (grub_md_sha512_real): Likewise.
11917 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11919 * grub-core/commands/gptsync.c: Fix typographic quoting.
11920 * grub-core/commands/ieee1275/suspend.c: Likewise.
11921 * grub-core/commands/parttool.c: Likewise.
11922 * grub-core/commands/search_wrap.c: Likewise.
11923 * grub-core/commands/videoinfo.c: Likewise.
11924 * grub-core/gfxmenu/gui_label.c: Likewise.
11925 * grub-core/hello/hello.c: Likewise.
11926 * grub-core/kern/emu/main.c: Likewise.
11927 * grub-core/net/net.c: Likewise.
11928 * grub-core/normal/menu.c: Likewise.
11929 * grub-core/normal/menu_text.c: Likewise.
11930 * grub-core/normal/misc.c: Likewise.
11931 * util/grub-editenv.c: Likewise.
11932 * util/grub-install.in: Likewise.
11933 * util/grub-kbdcomp.in: Likewise.
11934 * util/grub-mkconfig.in: Likewise.
11935 * util/grub-mknetdir.in: Likewise.
11936 * util/grub-mkrescue.in: Likewise.
11937 * util/grub-mkstandalone.in: Likewise.
11938 * util/grub-reboot.in: Likewise.
11939 * util/grub-set-default.in: Likewise.
11940 * util/grub-setup.c: Likewise.
11941 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11943 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11945 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11946 * grub-core/commands/keystatus.c: Likewise.
11947 * grub-core/commands/loadenv.c: Likewise.
11948 * grub-core/commands/probe.c: Likewise.
11949 * grub-core/commands/regexp.c: Likewise.
11950 * grub-core/commands/true.c: Likewise.
11951 * grub-core/commands/videoinfo.c: Likewise.
11952 * grub-core/disk/cryptodisk.c: Likewise.
11953 * grub-core/disk/ldm.c: Likewise.
11954 * grub-core/disk/loopback.c: Likewise.
11955 * grub-core/disk/luks.c: Likewise.
11956 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11957 * grub-core/kern/disk.c: Likewise.
11958 * grub-core/kern/emu/hostdisk.c: Likewise.
11960 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11962 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11963 * util/grub-install.in: Add missing quote in the comment.
11965 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11967 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11968 * grub-core/commands/lsmmap.c: Likewise.
11969 * grub-core/commands/minicmd.c: Likewise.
11970 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11971 * grub-core/commands/regexp.c: Likewise.
11972 * grub-core/gdb/gdb.c: Likewise.
11973 * grub-core/term/gfxterm.c: Likewise.
11974 * util/grub-mkconfig.in: Likewise.
11975 * util/grub-mkfont.c: Likewise.
11976 * util/grub-mklayout.c: Likewise.
11977 * util/grub-mknetdir.in: Likewise.
11978 * util/grub-mkrescue.in: Likewise.
11979 * util/grub.d/30_os-prober.in: Likewise.
11981 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11983 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11984 with "Direct color" and "Packed" with "Packed pixel".
11985 (grub_cmd_videoinfo): Simplify legend.
11987 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11989 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11990 absolutely unclear error message.
11992 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11994 * util/grub-mkstandalone.in: Remove confusing leftover print.
11996 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11998 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
12000 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
12001 (GRUB_MOD_INIT): Likewise.
12002 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
12004 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
12006 * util/grub-install.in (usage): Likewise.
12007 Spell ID in whole letters.
12008 Add missing ending dot.
12010 * util/grub-reboot.in: Fix capitalisation.
12011 * util/grub-set-default.in: Likewise.
12013 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12015 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
12016 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
12017 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
12018 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
12019 Disable -Werror for -Wdeprecated-declarations.
12020 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
12021 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
12022 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
12023 (grub_util_get_grub_dev): Make luks handling dependent on
12024 HAVE_DEVICE_MAPPER and not __linux__.
12025 (get_win32_path): Fix format security.
12026 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
12027 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
12028 Don't try grub_find_zpool_from_dir.
12029 (grub_make_system_path_relative_to_its_root) [!__linux__]:
12030 #ifdef-out paresdir.
12032 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12034 * util/grub-pe2elf.c (usage): Add missing noreturn.
12035 (write_section_data): Rename name to shname to avoid shadowing.
12036 (write_symbol_table): Rename name to symname to avoid shadowing.
12037 Fix write_reloc_section call.
12039 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12041 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
12042 to ensure that it's after the last byte of .text.
12044 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12046 * util/ieee1275/ofpath.c (my_isdigit): New function.
12047 (trailing_digits): Use my_isdigit.
12048 (strip_trailing_digits): Likewise.
12050 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12052 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
12053 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
12055 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12057 * grub-core/kern/i386/pc/startup.S: Define __start.
12059 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12061 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
12062 strip already transforms he format.
12064 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12066 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
12068 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12070 * util/grub-install.in: Add missing gettext init.
12071 * util/grub-kbdcomp.in: Likewise.
12072 * util/grub-mkconfig.in: Likewise.
12073 * util/grub-mknetdir.in: Likewise.
12074 * util/grub-mkrescue.in: Likewise.
12075 * util/grub-mkstandalone.in: Likewise.
12076 * util/grub-reboot.in: Likewise.
12077 * util/grub-set-default.in: Likewise.
12078 * util/grub.d/00_header.in: Likewise.
12079 * util/grub.d/10_hurd.in: Likewise.
12080 * util/grub.d/10_windows.in: Likewise.
12081 * util/grub.d/30_os-prober.in: Likewise.
12082 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12084 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12086 * po/Rules-swiss: Fix header comment.
12088 2012-02-29 Andreas Vogel <anvoit>
12090 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
12091 resulted in leak of arguments.
12093 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12095 * grub-core/boot/i386/pc/startup_raw.S: Use separate
12096 reed_solomon_size const definition instead of computing it since
12097 Apple assembler doesn't support the later.
12099 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12101 * gentpl.py (kernel): Rewrite Apple part.
12103 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12105 * include/grub/kernel.h (FOR_MODULES): Check module magic.
12107 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12109 * util/grub-mkimagexx.c (locate_sections): Support non-standard
12111 (load_image): Likewise.
12113 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12115 * configure.ac: Fix a typo in previous commit.
12117 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12119 Don't add -Wl,-N on Apple platform.
12121 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
12122 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
12124 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12126 * grub-core/Makefile.core.def (lzma_decompress): Use
12127 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
12129 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12131 * grub-core/genmod.sh.in: Rewrite the Apple part.
12133 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12135 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
12138 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12140 * acinclude.m4 (grub_CHECK_PIC): New test.
12141 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
12143 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12145 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
12146 to avoid the warning.
12148 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12150 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
12151 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
12152 after. All users updated.
12154 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12156 Use the common size routine in hostfs so we can read disks as well.
12158 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
12159 (grub_util_get_fd_size): ... this. Return size in bytes.
12161 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
12162 grub_util_get_fd_size.
12164 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12166 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
12167 Add blocksize retrieval.
12169 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12171 * configure.ac: Restore CFLAGS after efiemu check.
12173 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12175 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12178 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12180 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12182 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12184 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12185 (grub_cmd_halt): Likewise.
12187 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12189 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12190 for local arithmetics.
12191 Break %sp init into 2 instructions.
12192 Add 0 byte at the end.
12194 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12196 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12199 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12201 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12204 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12206 * grub-core/disk/ldm.c (make_vg): Init part.name.
12207 (grub_ldm_detect): Silence spurious warning.
12208 (grub_util_is_ldm): Likewise.
12210 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12212 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12213 sane value to avoid a spurious warning.
12215 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12217 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12218 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12220 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12222 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12223 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12225 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12227 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12228 hardcoding the relevant info.
12230 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12232 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12233 missing const qualifiers.
12234 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12236 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12238 * util/getroot.c [__APPLE__]: Add missing includes.
12239 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12241 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12243 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12245 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12247 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12250 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12252 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12254 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12256 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12257 and grub_file_close call.
12259 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12261 Add LZSS Mach-O support (needed for new xnu kernelcache).
12263 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12264 * grub-core/loader/lzss.c: New file.
12265 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12266 on Mach-O open failure.
12267 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12268 Don't free cmdsXX in uncompressedXX is set.
12269 (grub_macho_file): Init new fields.
12270 New argument is_64bit. All users updated.
12271 Handle compressed. Error out if no suitable architecture is found.
12273 (grub_macho_open): New argument is_64bit. All users updated.
12274 * grub-core/loader/macho32.c: Add defines for new fields.
12275 * grub-core/loader/macho64.c: Likewise.
12276 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12277 (grub_macho_parse): Handle compressed.
12278 Defer actual processing if compressed.
12279 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12280 "filename". All users updated.
12281 (grub_macho_size): New argument "filename". All users updated.
12282 (grub_macho_get_entry_point): Likewise.
12283 (grub_macho_load): Handle compressed.
12284 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12285 (GRUB_MACHO_LZSS_OFFSET): New define.
12286 (grub_decompress_lzss): New proto.
12287 * include/grub/machoload.h (grub_macho_file): New fields to handle
12289 (grub_macho_contains_macho64): Remove proto.
12290 (grub_macho_contains_macho32): Likewise.
12291 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12293 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12295 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12297 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12301 * Makefile.am (starfield_theme_files): New var.
12302 (starfield_DATA): Use starfield_theme_files.
12303 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12304 Add bootcheck-related files.
12305 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12306 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12307 and font_char_metrics.txt.
12308 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12309 (setjmp): Add lib/ia64/longjmp.S.
12310 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12311 * po/POTFILES.in: Regenerate.
12312 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12313 DISTFILES.common.extra1.
12314 * util/devicemap.c: Removed.
12315 * grub-core/lib/i386/relocator_backward.S: Likewise.
12316 * util/import_gcry.py: Remove unused files. Add extra_dist for
12319 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12321 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12322 grub_gettext_delete_list before changing grub_gettext_max to avoid
12323 running out of array bounds.
12325 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12327 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12328 grub_vga_text_init/grub_vga_text_fini.
12330 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12332 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12334 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12336 * configure.ac: Bump to 2.00~beta0.
12338 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12340 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12341 missing initialisation.
12343 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12345 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12347 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12349 Support v2 xnu boot arguments.
12351 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12352 New argument fsbfreq_out.
12353 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12354 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12356 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12358 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12359 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12360 (grub_xnu_boot_params): Rename to ...
12361 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12362 (grub_xnu_boot_params_v2): New struct.
12364 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12366 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12367 zeroing of CRC field before computing CRC.
12369 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12371 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12372 Change order of allocations to decrease fragmentation.
12374 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12376 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12378 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12380 Use write-combining MTRR to speed up video with buggy BIOSes.
12382 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12383 (cpuid): New define.
12386 (mtrr_base): Likewise.
12387 (mtrr_mask): Likewise.
12388 (grub_vbe_enable_mtrr_entry): New function.
12389 (grub_vbe_enable_mtrr): Likewise.
12390 (grub_vbe_disable_mtrr): Likewise.
12391 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12392 control off to BIOS.
12393 (grub_video_vbe_init): Fill mtrr.
12394 (grub_video_vbe_fini): Disable mtrr.
12395 (grub_video_vbe_get_info_and_fini): Likewise.
12396 (grub_video_vbe_setup): Enable mtrr.
12398 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12400 * include/grub/partition.h (grub_partition_map): Change prototype of
12401 embed to take a maximum value for nsectors.
12402 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12403 * include/grub/fs.h (grub_fs): Likewise.
12404 * grub-core/partmap/msdos.c (embed_signatures): New array.
12405 (pc_partition_map_embed): Check for and avoid sectors matching any
12406 of the signatures in embed_signatures, up to max_nsectors.
12407 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12408 returned sector map to max_nsectors.
12409 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12410 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12411 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12412 * util/grub-setup.c (setup): Allow for the embedding area being
12413 split into multiple blocklists. Tell dest_partmap->embed the
12414 maximum number of sectors we care about.
12416 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12418 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12419 Specify blocklist_install and reserver_first_sector for all fs.
12420 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12423 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12425 * util/grub-install.in: Clarify strings.
12426 Fix source dir check.
12428 2012-02-27 Richard Laager <rlaager@wiktel.com>
12430 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12431 "zfs" and "fuse.zfs" as synonyms.
12433 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12435 * configure.ac: Put platform and target_cpu substitutions back since
12436 they are used for directories.
12438 2012-02-27 Richard Laager <rlaager@wiktel.com>
12439 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12441 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12442 * util/grub.d/20_linux_xen.in: Likewise.
12444 2012-02-27 Richard Laager <rlaager@wiktel.com>
12446 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12449 2012-02-27 Richard Laager <rlaager@wiktel.com>
12451 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12454 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12456 Don't use insecure popen in getroot.
12458 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12459 (exec_pipe): ... here.
12460 (find_root_devices_from_poolname): Use exec_pipe.
12462 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12464 Remove platform and target_cpu replacement.
12466 * configure.ac: Remove platform and target_cpu substitutions.
12467 * tests/util/grub-shell.in: Use modinfo.
12468 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12471 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12473 Autodetect platform in grub-install but allow override.
12475 * util/grub-install.in: Autodetect platform. Support --target and
12476 --directory. Read platform from modinfo.sh.
12478 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12480 Support btrfs multi-volume probe.
12482 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12483 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12484 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12485 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12486 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12487 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12488 grub_find_root_devices_from_btrfs if on btrfs.
12490 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12492 Remove any awareness of *.c util files about target.
12494 * Makefile.util.def (grub-setup): Split to ...
12495 (grub-bios-setup): ... and this.
12496 (grub-sparc64-setup): ... and this.
12497 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12498 * docs/man/grub-setup.h2m: Split into ...
12499 * docs/man/grub-sparc64-setup.h2m: ... this.
12500 * docs/man/grub-bios-setup.h2m: ... and this.
12501 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12502 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12503 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12504 (grub_target_addr_t): Remove.
12505 (grub_target_size_t): Remove.
12506 (grub_target_ssize_t): Remove.
12507 * util/grub-install.in: Use new grub-*-setup.
12508 * util/grub-mkimagexx.c (Elf_Word): New define.
12509 (Elf_Half): Likewise.
12510 (Elf_Section): Likewise.
12511 (ELF_ST_TYPE): Likewise.
12512 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12513 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12515 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12517 Replace grub_target_addr with more appropriate types.
12519 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12520 grub_target_addr with grub_addr.
12521 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12522 grub_target_addr with grub_port.
12523 (grub_cmd_write): Likewise.
12524 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12525 grub_target_addr with grub_addr.
12526 (grub_cmd_write): Likewise.
12527 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12529 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12531 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12532 const qualifier for vendor_guid.
12534 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12536 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12538 (efiemu_memequal): Likewise.
12539 (find_variable): Likewise.
12541 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12543 Fix missing console prototype on qemu-mips.
12545 * include/grub/mips/qemu_mips/console.h: New file.
12547 2012-02-27 Matthew Garrett <mjg@redhat.com>
12548 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12550 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12551 * include/grub/efi/efi.h: Likewise.
12552 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12553 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12554 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12555 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12556 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12557 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12559 2012-02-27 Matthew Garrett <mjg@redhat.com>
12561 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12563 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12565 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12568 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12570 * configure.ac: Remove inappropriate use of program_transform_name
12571 on grubdir and bootdir but allow explicit specification of those
12574 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12576 * util/grub-mknetdir.in (grub_prefix): Removed.
12577 (subdir): Use @bootdirname@ and @grubdirname@.
12579 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12581 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12583 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12585 * po/POTFILES.in: Regenerated.
12587 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12589 Remove improper use of program_transform_name on pkglibrootdir.
12591 * configure.ac (pkglibrootdir): Removed.
12592 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12593 * util/grub-mkimage.c: Likewise.
12595 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12597 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12600 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12602 * util/grub-install.in: Use file identifier if no UUID is available
12603 or user explicitly prompted for it.
12605 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12607 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12608 (freebsd_get_zfs): New function.
12609 (grub_freebsd_boot): Pass zfs UUID.
12610 (grub_cmd_freebsd): Set zfs UUID.
12612 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12614 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12617 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12619 Add configure flag to control libzfs integration.
12621 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12623 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12625 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12627 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12630 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12632 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12633 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12634 be used on non-modules.
12636 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12637 Rename to grub_boot_init.
12638 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12639 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12640 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12641 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12642 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12643 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12644 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12645 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12647 (grub_machine_init): Remove empty inits.
12648 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12650 (grub_machine_init): Remove empty inits.
12651 * grub-core/term/arc/console.c: Remove explicit proto.
12652 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12653 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12654 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12655 grub_at_keyboard_fini.
12656 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12657 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12658 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12660 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12661 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12662 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12664 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12665 * grub-core/term/serial.c (GRUB_MOD_INIT)
12666 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12667 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12669 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12670 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12671 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12672 grub_terminfo_fini.
12673 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12674 (GRUB_MOD_FINI): Likewise.
12675 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12676 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12677 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12678 grub_video_radeon_fuloong2e_fini.
12679 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12680 [LOONGSON]: Rename to grub_video_sis315pro_init.
12681 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12682 grub_video_sis315pro_fini.
12683 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12684 [LOONGSON]: Rename to grub_video_sm712_init.
12685 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12686 grub_video_sm712_fini.
12687 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12688 (grub_at_keyboard_fini): Likewise.
12689 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12690 Don't declare grub_{modname}_init.
12691 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12692 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12694 (grub_keylayouts_fini) [!EMU]: Likewise.
12695 * include/grub/serial.h (grub_serial_init) [!EMU]:
12697 (grub_serial_fini) [!EMU]: Likewise.
12698 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12700 (grub_terminfo_fini) [!EMU]: Likewise.
12701 * include/grub/video.h (grub_font_init) [!EMU]:
12703 (grub_font_fini) [!EMU]: Likewise.
12704 (grub_gfxterm_init) [!EMU]: Likewise.
12705 (grub_gfxterm_fini) [!EMU]: Likewise.
12706 (grub_video_sm712_init) [!EMU]: Likewise.
12707 (grub_video_sm712_fini) [!EMU]: Likewise.
12708 (grub_video_sis315pro_init) [!EMU]: Likewise.
12709 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12710 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12711 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12713 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12715 Make nand a prefix for nand devices.
12717 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12719 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12721 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12722 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12724 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12726 * include/grub/env.h (grub_env_find): Remove prototype.
12727 * grub-core/kern/env.c (grub_env_find): Make static.
12728 (grub_env_set): Remove useless set.
12730 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12732 * grub-core/kern/i386/realmode.S: Remove useless align.
12734 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12736 * include/grub/dl.h (grub_dl_load_file): Don't export.
12738 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12740 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12743 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12745 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12747 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12748 not reloading whole superblock but only the part which is really needed.
12749 Remove useless grub_errors.
12750 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12753 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12755 Don't export grub_get_rtc.
12757 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12758 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12760 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12762 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12764 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12766 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12767 argument since it can be deduced from diskfilter. All users updated.
12769 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12773 * include/grub/list.h (grub_prio_list): Removed.
12774 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12775 GRUB_COMMAND_PRIO_MASK.
12776 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12777 GRUB_COMMAND_FLAG_ACTIVE.
12778 (grub_prio_list_insert): Removed.
12779 (grub_prio_list_remove): Likewise.
12780 (GRUB_AS_PRIO_LIST): Likewise.
12781 (GRUB_AS_PRIO_LIST_P): Likewise.
12782 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12783 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12784 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12785 * grub-core/kern/command.c (grub_register_command_prio): Inline
12786 the prio_list code.
12787 (grub_unregister_command): Likewise.
12789 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12791 Fix interrupt mixup from previous commit.
12793 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12794 (grub_realidt): New var.
12795 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12797 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12799 (grub_relocator16_boot): Set grub_relocator16_idt.
12800 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12801 (LOCAL(realidt)): ... this.
12802 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12803 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12804 (grub_realidt): New variable.
12806 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12808 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12809 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12810 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12811 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12813 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12814 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12815 * po/POTFILES.in: Regenerate.
12817 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12819 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12822 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12824 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12826 (add_length): Likewise.
12828 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12829 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12831 GDB serial and backtrace support.
12833 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12834 (prot_to_real): Likewise.
12835 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12836 * grub-core/Makefile.core.def (backtrace): New module.
12838 * grub-core/gdb/cstub.c: New file.
12839 * grub-core/gdb/gdb.c: Likewise.
12840 * grub-core/gdb/i386/idt.c: Likewise.
12841 * grub-core/gdb/i386/machdep.S: Likewise.
12842 * grub-core/gdb/i386/signal.c: Likewise.
12843 * grub-core/lib/i386/backtrace.c: Likewise.
12844 * grub-core/lib/backtrace.c: Likewise.
12845 * include/grub/backtrace.h: Likewise.
12846 * include/grub/gdb.h: Likewise.
12847 * include/grub/i386/gdb.h: Likewise.
12849 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12851 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12853 (add_length): Likewise.
12854 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12855 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12857 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12858 __argp_get_display_len.
12860 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12862 $"..." support in scripts.
12864 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12865 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12866 * grub-core/script/yylex.l: Likewise.
12867 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12870 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12872 * gentpl.py: Remove obsolete pkglib_DATA handling.
12874 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12876 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12879 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12880 * util/grub-kbdcomp.in: Likewise.
12881 * util/grub-mkconfig.in: Likewise.
12882 * util/grub-mkconfig_lib.in: Likewise.
12883 * util/grub-mknetdir.in: Likewise.
12884 * util/grub-mkrescue.in: Likewise.
12885 * util/grub-mkstandalone.in: Likewise.
12886 * util/grub-reboot.in: Likewise.
12887 * util/grub-set-default.in: Likewise.
12888 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12890 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12892 Remove GRUB_PREFIX.
12894 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12895 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12896 used for backward compatibility.
12898 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12900 Add new all_video module.
12902 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12903 * grub-core/Makefile.core.def (all_video): New module.
12904 * grub-core/genmoddep.awk: Generate dependency of all_video from
12906 * grub-core/lib/fake_module.c: New file.
12907 * grub-core/normal/main.c (features): Add feature_all_video_module.
12908 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12909 don't do explicit search again.
12910 insmod all_video in load_video if available.
12912 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12914 Another round of string clarification and adding TRANSLATORS comments.
12916 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12918 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12920 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12922 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12924 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12925 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12927 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12929 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12930 trailing newline implicitly. All users updated.
12932 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12934 Implement serial on IEEE1275 and EFI.
12936 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12937 on emu. Mention arc and emu as the only platforms without serial
12939 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12940 ieee1275 platforms.
12941 * grub-core/term/efi/serial.c: New file.
12942 * grub-core/term/ieee1275/serial.c: Likewise.
12943 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12944 specification if no ns8250 driver is available.
12945 (grub_cmd_serial): Likewise.
12946 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12947 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12948 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12949 (grub_efi_parity_type_t): New type.
12950 (grub_efi_stop_bits_t): Likewise.
12951 (grub_efi_serial_io_interface): New struct.
12952 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12953 available for all interfaces.
12954 Add EFI and IEEE1275 fields.
12955 (grub_ofserial_init): New proto.
12956 (grub_efiserial_init): Likeiwse.
12957 * util/grub.d/00_header.in: Don't check for the presence of serial
12960 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12962 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12963 name as if it was an alias.
12965 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12967 * grub-core/commands/lsacpi.c (options): Fix typo.
12969 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12971 Convert grub-emu to argp.
12973 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12975 * util/argp_common.c: Rename to ...
12976 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12977 Add missing includes.
12978 * grub-core/kern/emu/main.c: Convert to argp.
12979 * po/POTFILES.in: Regenerate.
12980 * util/grub-install.in (usage): Make first letter lowcase in messages
12982 * util/grub-setup.c (options): Likewise.
12984 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12986 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12987 Put back accidently commented-out code.
12989 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12991 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12992 loop check using Brent algorithm.
12993 (grub_hfsplus_btree_search): Likewise.
12995 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12997 * util/grub-install.in: Fix usage of wrong device for PreP install.
12999 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13001 * conf/Makefile.common (CFLAGS_GNULIB): Add
13002 -Wno-unsafe-loop-optimizations.
13003 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
13005 * grub-core/commands/legacycfg.c: Add pragma to skip
13006 -Wunsafe-loop-optimizations.
13007 (check_password_md5_real): Fix loop counter type.
13008 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
13010 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
13011 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
13013 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
13014 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
13015 * grub-core/net/net.c (grub_net_route_address): Add safety loop
13017 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
13018 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
13019 avoid possible infinite loops.
13020 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
13021 and -Wunsafe-loop-optimizations.
13022 * grub-core/script/yylex.l: Likewise.
13023 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
13024 (print_glyphs): Avoid infinite loops.
13025 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
13027 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
13029 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
13030 to avoid infinite loop.
13031 (disp_acpi_rsdt_table): Likewise.
13033 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13035 * grub-core/font/font.c (grub_font_load): Add support for default
13036 path for fonts ($prefix/fonts).
13037 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
13038 for checking if string is a path.
13039 * grub-core/normal/main.c (features): Add feature_default_font_path.
13040 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
13041 * util/grub.d/00_header.in: Use default directory if possible.
13042 * util/grub-install.in: Install unicode.pf2.
13044 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13046 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
13047 * po/Rules-swiss: New file.
13048 * po/swiss.sed: Likewise.
13050 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
13052 * grub-core/fs/btrfs.c (find_device): Fix typos.
13053 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
13054 * util/grub-mkrelpath.c (argp_parser): Likewise.
13055 Reported by: Yuri Chornoivan.
13057 2012-02-23 Dalet Omega <daletomega@gmail.com>
13059 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
13060 for usual informative messages.
13062 2012-02-23 Dalet Omega <daletomega@gmail.com>
13066 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
13067 * conf/Makefile.common: Define starfielddir.
13068 * configure.ac: Configure starfield.
13069 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
13070 * themes/starfield/README: Likewise.
13071 * themes/starfield/blob_w.png: Likewise.
13072 * themes/starfield/boot_menu_c.png: Likewise.
13073 * themes/starfield/boot_menu_e.png: Likewise.
13074 * themes/starfield/boot_menu_n.png: Likewise.
13075 * themes/starfield/boot_menu_ne.png: Likewise.
13076 * themes/starfield/boot_menu_nw.png: Likewise.
13077 * themes/starfield/boot_menu_s.png: Likewise.
13078 * themes/starfield/boot_menu_se.png: Likewise.
13079 * themes/starfield/boot_menu_sw.png: Likewise.
13080 * themes/starfield/boot_menu_w.png: Likewise.
13081 * themes/starfield/slider_c.png: Likewise.
13082 * themes/starfield/slider_n.png: Likewise.
13083 * themes/starfield/slider_s.png: Likewise.
13084 * themes/starfield/src/blob_nw.xcf: Likewise.
13085 * themes/starfield/src/bootmenu/: Likewise.
13086 * themes/starfield/src/bootmenu/center.xcf: Likewise.
13087 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
13088 * themes/starfield/src/bootmenu/side.xcf: Likewise.
13089 * themes/starfield/src/slider_c.xcf: Likewise.
13090 * themes/starfield/src/slider_n.xcf: Likewise.
13091 * themes/starfield/src/slider_s.xcf: Likewise.
13092 * themes/starfield/src/terminalbox/: Likewise.
13093 * themes/starfield/src/terminalbox/center.xcf: Likewise.
13094 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
13095 * themes/starfield/src/terminalbox/side.xcf: Likewise.
13096 * themes/starfield/starfield.png: Likewise.
13097 * themes/starfield/terminal_box_c.png: Likewise.
13098 * themes/starfield/terminal_box_e.png: Likewise.
13099 * themes/starfield/terminal_box_n.png: Likewise.
13100 * themes/starfield/terminal_box_ne.png: Likewise.
13101 * themes/starfield/terminal_box_nw.png: Likewise.
13102 * themes/starfield/terminal_box_s.png: Likewise.
13103 * themes/starfield/terminal_box_se.png: Likewise.
13104 * themes/starfield/terminal_box_sw.png: Likewise.
13105 * themes/starfield/terminal_box_w.png: Likewise.
13106 * themes/starfield/theme.txt: Likewise.
13108 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
13110 * util/grub.d/00_header.in: Add missing export theme.
13112 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13114 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
13116 Reported by: Eren D.
13118 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13120 * conf/Makefile.common (grubdatadir): Removed.
13121 (Makefile.am): Move eveything grubdata to pkgdata.
13123 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13125 * grub-core/commands/acpihalt.c (get_sleep_type):
13126 Remove unused variable.
13128 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13130 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
13131 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
13132 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
13133 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
13134 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
13135 i18n with gettext no-op.
13136 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
13137 GRUB_ACPI_OPCODE_STRING_CONST.
13138 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
13139 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
13141 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13143 * po/POTFILES.in: Regenerate.
13145 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13147 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
13148 -Wno-error=missing-noreturn.
13150 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13152 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
13153 condition to avoid possibly infinite loops.
13154 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
13155 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
13157 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13159 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
13160 condition to avoid possibly infinite loops.
13162 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13164 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
13167 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13169 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13171 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13173 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13175 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13177 * util/bin2h.c (usage): Add missing attribute noreturn.
13179 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13181 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13182 if the size isn't divisible by 512.
13184 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13186 Make list_push and list_remove functions rather than inline functions
13187 to decrease size and avoid aliasing violations.
13189 * include/grub/list.h (grub_list_push): Move to ...
13190 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13191 * include/grub/list.h (grub_list_remove): Move to ...
13192 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13194 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13196 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13197 and -Wunused-result.
13199 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13201 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13202 Reported by: Seth Goldberg
13204 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13206 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13208 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13210 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13211 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13213 * docs/grub.texi (Simple configuration): Document
13214 GRUB_CMDLINE_GNUMACH.
13216 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13218 * conf/Makefile.common (platform_SCRIPTS): New variable.
13219 (platform_PROGRAMS): Likewise.
13220 * gentpl.py: Mark *,module and *.image for install.
13221 * grub-core/gdb_grub.in: Add a notice of expected environment.
13222 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13223 (gmodule.pl): Likewise.
13225 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13227 Replace grub_checkkey with grub_getkey_noblock.
13229 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13230 (grub_getkey_noblock): ... this. All users updated.
13232 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13234 * grub-core/kern/emu/console.c: Move to ...
13235 * grub-core/term/emu/console.c: ...here.
13236 (grub_ncurses_getkey): Fix return value if no key is detected.
13238 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13240 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13241 (grub_unit_test_fini): Likewise.
13242 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13244 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13246 * include/grub/test.h (GRUB_UNIT_TEST)
13248 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13250 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13251 Better error handling.
13252 (grub_script_return): Likewise.
13253 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13255 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13257 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13258 rimplicit redifinition.
13260 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13262 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13265 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13267 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13268 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13271 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13273 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13274 as GRUB_ERR_BUG. Don't malloc if no device is available.
13276 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13278 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13279 Mark calling with invalid term as GRUB_ERR_BUG.
13281 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13283 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13284 packets rather than raising an error.
13286 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13288 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13291 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13293 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13294 diagnostic to dprintf.
13295 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13297 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13299 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13302 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13304 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13305 (grub_ntfs_iterate_dir): Likewise.
13307 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13309 Efiemu stylistic fixes and gettext.
13311 * grub-core/efiemu/i386/loadcore32.c
13312 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13313 * grub-core/efiemu/i386/loadcore64.c
13314 (grub_arch_efiemu_relocate_symbols64): Likewise.
13315 * grub-core/efiemu/i386/pc/cfgtables.c
13316 (grub_machine_efiemu_init_tables): Likewise.
13317 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13318 (grub_efiemu_loadcore_initXX): Add a filename argument.
13320 Improved error message.
13321 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13322 Add a filename argument.
13324 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13325 Reclassify double relocation as GRUB_ERR_BUG.
13327 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13329 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13332 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13334 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13337 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13339 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13341 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13343 Improve string. Gettextize.
13345 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13347 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13349 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13351 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13353 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13354 [GRUB_UTIL]: New function.
13355 (insert_array) [GRUB_UTIL]: Store partmaps.
13356 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13358 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13359 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13360 (probe_abstraction): Print diskfilter and not raid.
13361 Reported by: Lennart Sorensen
13363 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13365 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13366 * util/grub-mkimagexx.c (MASK3): New define.
13367 (add_value_to_slot_20b): Use MASK3.
13368 (add_value_to_slot_21): Likewise.
13369 (relocate_addresses): Fix format specification.
13370 (load_image): Explicitly init symtab_section.
13372 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13374 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13375 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13377 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13379 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13381 Reported by: Lennart Sorensen
13383 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13385 * gentpl.py: Add missing license header.
13386 * docs/grub.texi: Update copyright year.
13388 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13390 Source grub-mkconfig_lib from the build directory at build time.
13391 Suggested by: Vladimir Serbinenko.
13393 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13394 * util/grub-install.in: Define pkgdatadir if not already set, and source
13395 grub-mkconfig_lib from there.
13396 * util/grub-kbdcomp.in: Likewise.
13397 * util/grub-mkconfig.in: Likewise.
13398 * util/grub-mknetdir.in: Likewise.
13399 * util/grub-mkrescue.in: Likewise.
13400 * util/grub-mkstandalone.in: Likewise.
13401 * util/grub-reboot.in: Likewise.
13402 * util/grub-set-default.in: Likewise.
13403 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13405 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13407 Increase warning level.
13409 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13410 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13411 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13412 (TARGET_CFLAGS): Likewise.
13413 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13414 * grub-core/Makefile.core.def (decompressor_xz): Add
13415 -Wno-unreachable-code.
13416 (normal): Add -Wno-redundant-decls.
13417 (xzio): Add -Wno-unreachable-code.
13418 (lzopio): Add -Wno-redundant-decls -Wno-error.
13419 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13420 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13421 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13422 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13423 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13424 * grub-core/kern/i386/coreboot/init.c: Add exception to
13425 -Wsuggest-attribute=noreturn.
13426 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13427 * grub-core/kern/ia64/dl_helper.c: Likewise.
13428 * grub-core/kern/mips/dl.c: Likewise.
13429 * grub-core/kern/sparc64/dl.c: Likewise.
13430 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13431 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13432 (memcmp): Likewise.
13433 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13434 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13435 * grub-core/loader/mips/linux.c: Likewise.
13436 * grub-core/loader/multiboot_elfxx.c: Likewise.
13437 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13438 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13439 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13440 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13442 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13443 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13446 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13448 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13451 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13453 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13454 Avoid improper use of strings.
13455 (grub_cmd_legacy_initrdnounzip): Likewise.
13457 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13459 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13461 (grub_util_info): Likewise.
13462 (grub_util_error): Likewise.
13464 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13466 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13467 * util/grub-fstest.c (fstest): Likewise.
13469 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13471 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13472 (grub_md_sha512_real): Likewise.
13473 (grub_util_get_geli_uuid): Likewise.
13474 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13475 (grub_util_biosdisk_open): Fix format specification.
13476 Respect format security.
13477 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13478 (xrealloc): Likewise.
13479 (xasprintf): Likewise.
13481 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13483 * util/import_gcry.py: Include grub/crypto.h in init.c.
13485 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13487 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13488 (generate_image): Make prefix a const char *.
13489 Fix format specifications. Respect format security.
13490 Avoid void * arithmetics.
13492 (argp_parser): Remove unused variable. Respect format security.
13493 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13494 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13495 (count_funcs): Remove unused variable.
13496 (relocate_addresses): Fix format specification.
13497 Disable x86-64 with elf32. Remove unused variables.
13498 (add_fixup_entry): Avoid shadowing.
13499 (make_reloc_section): Fix format specification.
13501 (locate_sections): Fix format specifications.
13502 (load_image): Avoid shadowing.
13504 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13506 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13507 Fix format specifications. Respect format security.
13508 Don't translate already translated grub_errmsg.
13509 (argp_parser): Remove unused variable
13511 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13513 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13515 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13517 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13518 (main): Likewise. Use xmalloc. Respect format security.
13520 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13522 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13524 (argp_parser): Remove unused variable.
13526 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13528 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13529 (add_pixel): Make static.
13530 (add_font): Likewise.
13531 (write_string_section): Make name and str a const char *.
13532 (write_be16_section): Make name a const char *.
13533 (print_glyphs): Make static.
13534 (write_font_ascii_bitmap): Likewise.
13535 (write_font_width_spec): Likewise.
13536 (write_font_pf2): Likewise.
13537 (argp_parser): Remove unused variable.
13538 Respect format security.
13539 (main): Avoid shadowing. Respect format security.
13541 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13543 * util/grub-editenv.c (argp_parser): Make static.
13544 (create_envblk_file): Use xmalloc.
13545 (open_envblk_file): Likewise.
13546 Resepect format security.
13547 (set_variables): Respect format security.
13549 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13551 * util/getroot.c (grub_find_device): Respect format security.
13552 (get_mdadm_uuid): Remove unused variable.
13553 (grub_util_pull_device): Dont call gettext on already translated
13555 (find_system_device): Remove unused variable.
13556 (grub_util_get_grub_dev): Likewise.
13557 (grub_make_system_path_relative_to_its_root): Respect format security.
13559 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13561 * util/grub-fstest.c (execute_command): Make first argument
13563 (read_file): Avoid shadowing.
13564 Reuse underlying error message if device open fails.
13565 (cmd_cmp): Respect format security.
13566 (root): Make const char *.
13567 (fstest): Remove args argument and use global copy.
13568 Respect format security.
13569 (argp_parser): Make static.
13570 (main): Make default_root const char *.
13572 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13574 * util/grub-mount.c (root): Make const char *.
13575 (execute_command): Make first argument a const char *.
13576 (fuse_init): Respect format security.
13577 (argp_parser): Make static. Remove unused variable.
13578 (main): Make default_root a const char *.
13579 Respect format security.
13581 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13583 * util/grub-probe.c (probe): Don't call gettext on already translated
13585 Remove unused variables.
13586 (argp_parser): Remove unused variable.
13588 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13590 * util/grub-script-check.c (argp_parser): Remove unused variable.
13591 (main): Rename read to curread to avoid shadowing.
13593 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13595 * util/misc.c (grub_util_write_image_at): Fix format specification.
13596 (grub_util_write_image): Likewise.
13597 (grub_script_execute_argument_to_string): Removed (unused).
13598 (grub_script_execute_menuentry): Likewise.
13599 (grub_putchar): Likewise.
13601 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13603 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13604 (FUNCTION) [GRUB_UTIL]: Likewise.
13605 (VARIABLE) [GRUB_UTIL]: Likewise.
13607 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13609 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13610 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13612 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13614 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13617 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13619 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13620 (LzmaEnc_SaveState): Removed (unused).
13621 (LzmaEnc_RestoreState): Likewise.
13622 (LzmaEnc_InitPriceTables): Made static.
13623 (LzmaEnc_Construct): Likewise.
13624 (LzmaEnc_FreeLits): Likewise.
13625 (LzmaEnc_Destruct): Likewise.
13626 (LzmaEnc_Init): Likewise.
13627 (LzmaEnc_InitPrices): Likewise.
13628 (LzmaEnc_Finish): Likewise.
13629 (LzmaEnc_PrepareForLzma2): Removed (unused).
13630 (LzmaEnc_MemPrepare): Likewise.
13631 (LzmaEnc_GetNumAvailableBytes): Likewise.
13632 (LzmaEnc_GetCurBuf): Likewise.
13633 (LzmaEnc_CodeOneMemBlock): Likewise.
13635 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13637 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13638 (grub_util_ldm_embed): Likewise.
13640 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13642 * util/grub-editenv.c (print_var): Rename name to varname to
13644 (main): Rename index to curindex to avoid shadowing.
13645 Make filename a const char *.
13647 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13649 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13650 to arg_getline to avoid shadowing.
13652 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13654 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13655 disk_ to avoid shadowing.
13657 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13659 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13660 curindex to avoid shadowing.
13662 (MatchFinder_GetNumAvailableBytes): Make static.
13664 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13666 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13669 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13671 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13672 argument from encrypt to do_encrypt to avoid shadowing.
13674 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13676 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13677 incorrect nesting of #if's.
13679 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13681 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13682 checks which are always false on some platforms.
13683 (grub_cmd_lsacpi): Likewise.
13684 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13685 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13688 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13690 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13691 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13693 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13695 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13696 re_dfa_t to avoid breaking alignment invariants.
13697 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13698 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13700 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13702 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13703 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13705 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13707 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13710 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13712 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13713 conserve alignment invariants.
13714 (grub_ehci_ehcc_read16): Likewise.
13715 (grub_ehci_oper_read32): Likewise.
13716 (grub_ehci_oper_write32): Likewise.
13717 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13718 Conserve alignment invariants.
13720 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13722 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13723 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13726 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13728 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13729 Remove unused variable.
13731 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13733 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13736 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13738 * include/grub/net.h: Remove double declarations.
13740 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13742 Remove "payload" command in ia64 Linux loader since I couldn't
13743 find any evidence of it being used for anything.
13744 Replace "relocate" command with an environment variable
13746 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13748 (ia64_boot_payload): Removed.
13749 (last_payload): Likewise.
13750 (RELOCATE_OFF): Likewise.
13751 (RELOCATE_ON): Likewise.
13752 (RELOCATE_FORCE): Likewise.
13753 (relocate): Likewise.
13754 (free_pages): Don't free payloads.
13755 (grub_load_elf64): Use common error messages.
13756 Use "linux_relocate" variable.
13757 Increase the space after boot_params.
13758 (grub_cmd_payload): Removed.
13759 (grub_cmd_relocate): Likewise.
13760 (grub_cmd_fpswa): Improve messages.
13761 (cmd_payload): Removed.
13762 (cmd_relocate): Likewise.
13763 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13764 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13766 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13768 Convert UHCI to DMA framework.
13770 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13771 (grub_uhci_pci_iter): Fill new members
13772 (grub_alloc_td): Use P2V and V2P functions.
13773 (grub_free_queue): Likewise.
13774 (grub_alloc_qh): Likewise.
13775 (grub_uhci_setup_transfer): Likewise.
13776 (grub_uhci_check_transfer): Likewise.
13778 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13780 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13781 Remove assignment in if while on it.
13783 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13785 * util/grub-mkstandalone.in: Fix modules directory.
13787 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13789 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13791 (argp_parser): Accept "auto" as compression specification.
13793 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13795 Fix `help' with unloaded modules.
13797 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13798 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13799 (grub_dyncmd_dispatcher): Small stylistic fix.
13800 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13801 explicit help is requested.
13803 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13805 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13806 Explicitly init restart while on it.
13808 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13810 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13813 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13815 * util/grub-mknetdir.in: Use . rather than source for POSIX
13818 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13820 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13822 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13824 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13827 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13829 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13832 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13834 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13836 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13838 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13839 iteration of partitions.
13841 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13843 Improve gettext support. Stylistic fixes and error handling fixes while
13846 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13848 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13849 part. Instead setup the correct stack in RM.
13850 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13852 * include/grub/i386/relocator_private.h: New file.
13854 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13856 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13858 * util/grub-fstest.c (options): Add missing DEVICE part.
13860 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13862 Clarify and unify messages.
13864 * grub-core/commands/hashsum.c (options): Unify messages.
13865 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13866 literal-only message as translatable.
13867 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13868 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13869 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13871 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13872 key, not the key used to unlock. Clarify what it's used for.
13873 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13874 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13875 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13876 * util/grub-editenv.c (options): Unify "verbose" message.
13877 * util/grub-fstest.c (read_file): Unify error message.
13878 (fstest): Add quotes around commands.
13879 (options): Unify "verbose" message.
13880 * util/grub-install.in: Add quotes around variable name.
13881 * util/grub-kbdcomp.in: Unify error message.
13882 * util/grub-mkfont.c (main): Likewise.
13883 * util/grub-mkrescue.in: Likewise.
13884 * util/grub-mklayout.c (options): Unify "verbose" message.
13885 * util/grub-mkstandalone.in: Unify help and verbose messages.
13886 * util/grub-mount.c (options): Unify "verbose" message.
13887 * util/grub-probe.c (options): Likewise.
13888 * util/grub-script-check.c (options): Likewise.
13889 * util/grub-setup.c (setup): Unify no-terminator message.
13890 (options): Use DEVICE and not DEV.
13891 Unify "verbose" message.
13892 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13894 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13896 Improve and unify messages.
13898 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13899 name. All users updated.
13900 Print filename in error.
13901 (read_device_map): Print filename in error.
13902 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13903 (grub_util_get_os_disk): Likewise.
13904 (grub_util_biosdisk_get_grub_dev): Likewise.
13905 (grub_util_check_block_device): Likewise.
13906 (grub_util_check_char_device): Likewise.
13907 (grub_make_system_path_relative_to_its_root): Likewise.
13908 * util/grub-editenv.c (create_envblk_file): Likewise.
13909 (open_envblk_file): Likewise.
13910 (write_envblk): Likewise.
13911 * util/grub-fstest.c (cmd_cp): Likewise.
13912 (cmd_cat): Likewise.
13913 (cmd_cmp): Likewise.
13914 * util/grub-menulst2cfg.c (main): Likewise.
13915 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13916 (write_font_width_spec): Likewise.
13917 (write_font_pf2): Likewise.
13918 * util/grub-mkimage.c (generate_image): New argument outname.
13920 Remove unreacheable message.
13921 (options): Unify messages.
13922 (help_filter): Likewise.
13923 * util/grub-mklayout.c (usage): Removed (unused).
13924 (main): Print filename in error.
13925 * util/grub-mkrescue.in: Fix wrong quoting.
13926 * util/grub-setup.c (setup): Print filename in error.
13927 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13928 (check_sas): Likewise.
13929 * util/misc.c (grub_util_get_fp_size): Removed.
13930 (grub_util_get_image_size): Print filename in error.
13931 (grub_util_read_at): Removed.
13932 (grub_util_read_image): Print filename in error.
13933 (grub_util_load_image): Likewise.
13934 (grub_util_write_image_at): New argument filename. All users updated.
13935 Print filename in error.
13936 (grub_util_write_image): New argument filename. All users updated.
13937 Print filename in error.
13938 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13939 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13941 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13943 * grub-core/Makefile.core.def (pxechain): New module.
13944 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13945 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13947 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13948 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13950 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13952 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13953 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13954 * include/grub/err.h (grub_error_saved): New struct.
13955 (grub_errmsg): Make array size explicit.
13956 * include/grub/misc.h (grub_error_save): New function.
13957 (grub_error_load): Likewise.
13958 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13959 (grub_error_push): Update `errno' member name.
13960 (grub_error_pop): Likewise
13961 * grub-core/net/tftp.c (tftp_data): New member save_err.
13962 (tftp_receive): Save error.
13963 (tftp_open): Restore error.
13965 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13967 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13968 to real mode down to execute A20-related code in protected mode as
13971 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13973 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13974 NULL when the argument `level' has an unexpected value.
13976 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13978 Move platform-dependent files from $prefix to $prefix/$platform.
13980 * config.h.in (GRUB_TARGET_CPU): New definition.
13981 (GRUB_PLATFORM): Likewise.
13982 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13983 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13984 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13985 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13986 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13987 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13988 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13989 * grub-core/normal/term.c (read_terminal_list): Likewise.
13990 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13992 (grub_gettext_init_ext): Likewise.
13993 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13995 * util/grub-install.in: Update directories.
13996 * util/grub-mknetdir.in: Likewise.
13997 * util/grub-mkrescue.in: Likewise.
13999 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
14001 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
14002 grub_error framework. All users updated.
14004 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
14006 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
14007 lists (by always binsearching), improve caching (cache strings
14008 used for binsearch, not only results), improve
14009 maintainability (by using more structured binary search) and correct
14012 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
14014 * grub-core/script/execute.c (grub_script_return): Fix warning.
14016 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
14018 * grub-core/script/execute.c (grub_script_return): Fix potential
14020 Reported by: Jim Meyering.
14022 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14024 * po/POTFILES.in: Regenerate.
14025 * util/grub-install.in: Gettextize the strings missed in first pass.
14027 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14029 * Makefile.util.def (grub-mkdevicemap): Removed.
14030 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
14031 * include/grub/util/deviceiter.h: Removed.
14032 * util/deviceiter.c: Likewise.
14033 * util/getroot.c (grub_util_get_os_disk): New function.
14034 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
14035 replacement for EFI.
14036 * util/grub-mkdevicemap.c: Removed.
14037 * util/grub-probe.c (probe): Handle PRINT_DISK.
14038 (argp_parser): Handle -t disk.
14040 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14042 * util/grub-mkfont.c: Migrate to argp.
14043 * util/grub-mklayout.c: Likewise.
14044 * util/grub-mkpasswd-pbkdf2.c: Likewise.
14045 * util/grub-mkrelpath.c: Likewise.
14046 * util/grub-probe.c: Likewise.
14047 * util/grub-script-check.c: Likewise.
14049 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14051 * util/grub-reboot.in: Add missing datarootdir.
14052 Add missing newline.
14053 * util/grub-set-default.in: Add missing datarootdir.
14054 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
14055 * util/grub-mkrescue.in: Likewise.
14057 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14059 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
14061 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14063 * util/grub-kbdcomp.in: Add decent help and gettextize.
14064 * docs/man/grub-kbdcomp.h2m: New file.
14066 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14068 Migrate grub-mkimage.c to argp.
14070 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
14071 (grub-setup): Likewise.
14072 * util/grub-setup.c (print_version): Move to ...
14073 * util/argp_common.c (print_version): ... here.
14074 * util/grub-setup.c (argp_program_version_hook): Move to ...
14075 * util/argp_common.c (argp_program_version_hook): ... here.
14076 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
14078 * util/grub-mkimage.c (main): Migrate to argp.
14080 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14082 * util/grub-mkrescue.in: Use same message as
14083 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
14084 for better translations.
14086 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14088 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
14089 options with generic grub-mkrescue.in with the goal of future
14092 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14094 * grub-core/kern/mm.c: Add missing include of i18n.h
14095 * grub-core/lib/relocator.c: Likewise.
14097 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14099 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
14101 (allocate_pages): Check return value.
14102 Replace fatal with error.
14103 (grub_linux_boot): Replace printf with dprintf.
14104 Check find_mmap_size return value.
14105 Replace fatal with error.
14106 Don't call grub_machine_fini.
14107 (grub_load_elf64): Replace printf with dprintf.
14108 (grub_cmd_linux): Likewise.
14109 (grub_cmd_initrd): Likewise.
14110 (grub_cmd_payload): Likewise.
14112 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14114 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
14116 * grub-core/video/radeon_fuloong2e.c
14117 (grub_video_radeon_fuloong2e_setup): Likewise.
14118 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
14119 * grub-core/video/video.c (grub_video_set_mode): Don't override
14120 standard out of memory message.
14122 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14124 NetBSD disk wedge support.
14126 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
14127 [__NetBSD__]: Handle NetBSD disk wedges.
14128 * util/getroot.c (convert_system_partition_to_system_disk)
14129 [__NetBSD__]: Likewise.
14131 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
14133 * util/grub-mkconfig.in: Use umask rather than chmod to create
14134 grub.cfg.new to avoid insecure grub.cfg.
14136 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14138 * grub-core/commands/ls.c: Gettextize.
14139 * grub-core/commands/setpci.c: Likewise.
14140 * grub-core/commands/videotest.c: Likewise.
14141 * grub-core/disk/geli.c: Likewise.
14142 * grub-core/kern/mm.c: Likewise.
14143 * grub-core/lib/relocator.c: Likewise.
14144 * grub-core/loader/efi/appleloader.c: Likewise.
14145 * grub-core/loader/i386/xnu.c: Likewise.
14146 * grub-core/loader/ia64/efi/linux.c: Likewise.
14147 * grub-core/loader/xnu.c: Likewise.
14148 * grub-core/net/dns.c: Likewise.
14149 * grub-core/net/net.c: Likewise.
14150 * grub-core/script/lexer.c: Likewise.
14151 * grub-core/script/parser.y: Likewise.
14152 * grub-core/script/yylex.l: Likewise.
14153 * util/getroot.c: Likewise.
14154 * util/grub-setup.c: Likewise.
14156 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14158 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
14161 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14163 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
14165 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14167 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14169 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14170 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14172 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14174 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14175 * util/grub-install.in: Gettextize.
14176 * util/grub-mkconfig.in: Likewise.
14177 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14179 (grub_warn): Gettextize.
14180 * util/grub-mknetdir.in: Gettextize.
14181 * util/grub-mkrescue.in: Likewise.
14182 * util/grub-mkstandalone.in: Likewise.
14183 * util/grub-reboot.in: Likewise.
14184 * util/grub-set-default.in: Likewise.
14185 * util/grub.d/00_header.in: Likewise.
14186 * util/grub.d/10_hurd.in: Likewise.
14187 * util/grub.d/10_kfreebsd.in: Likewise.
14188 * util/grub.d/10_linux.in: Likewise.
14189 * util/grub.d/10_netbsd.in: Likewise.
14190 * util/grub.d/10_windows.in: Likewise.
14191 * util/grub.d/20_linux_xen.in: Likewise.
14192 * util/grub.d/30_os-prober.in: Likewise.
14193 * po/POTFILES-shell.in: Regenerate.
14195 2012-02-03 Richard Laager <rlaager@wiktel.com>
14197 * util/grub-mkimage.c (main): Fix format-security warning.
14198 * util/grub-mkrelpath.c (main): Likewise.
14199 * util/grub-probe.c (main): Likewise.
14201 2012-02-03 Richard Laager <rlaager@wiktel.com>
14203 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14205 Put back lost PRINT_DRIVE.
14207 2012-02-03 Richard Laager <rlaager@wiktel.com>
14209 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14210 (grub_guess_root_devices): Replace strlen with sizeof.
14212 (find_root_devices_from_poolname): Remove unused variable.
14215 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14217 Support install on multi-device filesystems.
14219 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14220 (grub_guess_root_devices): ...this. Return char **. All users updated.
14221 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14223 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14224 (find_root_devices_from_poolname): ... here.
14225 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14227 (grub_guess_root_device): Rename to ...
14228 (grub_guess_root_devices): ... this. Return char **. All users updated.
14229 * util/grub-install.in: Handle multi-device filesystems.
14230 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14231 argument. All users updated.
14232 Handle multi-device filesystems.
14233 Use 'delim' as separator.
14234 Remove device check to allow filesystems on file.
14235 (main): Support -0 argument. Handle multi-device.
14236 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14237 Fix a cross-device check while on it.
14238 (arguments): Remove root_dev.
14239 (argp_parser): Remove -r.
14240 (main): Remove root_dev.
14242 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14244 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14246 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14248 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14250 Reported by: NODA, Kai <nodakai>.
14252 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14256 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14258 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14259 (grub_ehci_setup_qh): Likewise.
14260 (grub_ehci_find_qh): Likewise.
14261 (grub_ehci_transaction): Likewise.
14262 (grub_ehci_setup_transfer): Likewise.
14263 (grub_ehci_check_transfer): Likewise.
14264 (grub_ehci_portstatus): Likewise.
14265 (grub_ehci_detect_dev): Likewise.
14266 (grub_ehci_transfer_controller_data): New field td_last_phys.
14267 (grub_ehci_setup_transfer): Fill td_last_phys.
14268 (grub_ehci_check_transfer): Use td_last_phys.
14270 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14272 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14273 if no submenu is present.
14275 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14279 * include/grub/usb.h (grub_usbms_protocol_t): New values
14280 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14281 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14282 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14283 (grub_usbms_dev): Add subclass, protocol and intrpt.
14284 Remove in_maxsz and out_maxsz.
14285 (grub_usbms_reset): Rename to ...
14286 (grub_usbms_bo_reset): .. this.
14287 (grub_usbms_cbi_cmd): New function.
14288 (grub_usbms_cbi_reset): Likewise.
14289 (grub_usbms_reset): Likewise.
14290 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14291 (grub_usbms_transfer): Rename to ...
14292 (grub_usbms_transfer_bo): ... this.
14293 (grub_usbms_transfer_cbi): Likewise.
14294 (grub_usbms_transfer): Likewise.
14296 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14297 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14299 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14300 the support for the CS5536 modification thereos and few bugfixes.
14302 * grub-core/Makefile.core.def (ehci): New module.
14303 * grub-core/bus/usb/ehci.c: New file.
14304 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14305 port and hubaddr. All users updated.
14306 Save port and hubaddr into dev structure.
14307 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14309 * include/grub/pci.h (grub_dma_phys2virt): New function.
14310 (grub_dma_virt2phys): Likewise.
14311 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14313 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14315 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14316 check as some mkfs implementations omit it.
14318 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14320 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14322 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14324 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14325 Add new member volname2.
14326 (grub_jfs_label): Use volname2 if available.
14328 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14330 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14331 over last_mounted as seen in image generated by mkfs.nilfs2.
14332 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14334 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14336 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14337 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14338 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14340 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14342 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14345 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14347 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14348 subvolume name (by removing a bogus and useless check).
14350 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14352 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14353 sizeof while on it.
14355 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14357 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14358 (grub_scsi_read_capacity10): ... this.
14359 (grub_scsi_read_capacity16): New function.
14360 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14362 Fix off-by-one error.
14363 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14365 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14366 (grub_scsi_read_capacity10): ... this.
14367 (grub_scsi_read_capacity_data): Rename to ...
14368 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14369 (grub_scsi_read_capacity16): New struct.
14370 (grub_scsi_read_capacity16_data): Likewise.
14371 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14372 grub_scsi_cmd_read_capacity10.
14373 New command grub_scsi_cmd_read_capacity16.
14375 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14377 SCSI >2TiB support.
14379 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14380 (grub_scsi_write16): Likewise.
14381 (grub_scsi_read): Use read16 when necessary.
14382 (grub_scsi_write): Likewise.
14383 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14384 (grub_scsi_write16): Likewise.
14385 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14387 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14389 SCSI write support (for usbms mainly).
14391 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14393 (grub_scsi_write): Implement.
14394 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14396 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14398 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14401 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14403 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14405 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14407 * po/POTFILES.in: Regenerate.
14409 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14411 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14412 with grub_printf to avoid unnecessary fatal failure.
14414 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14416 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14417 (INT_MAX): Likewise.
14418 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14419 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14420 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14421 (strcpy): Likewise.
14422 (strstr): Likewise.
14423 (strchr): Likewise.
14424 (strncpy): Likewise.
14425 (strcat): Likewise.
14426 (strncat): Likewise.
14427 (strcoll): Likewise.
14428 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14429 (GRUB_INT_MAX): Likewise.
14431 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14433 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14435 (optimize_utf8): Likewise.
14436 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14438 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14440 * grub-core/boot/i386/pc/lnxboot.S: Use
14441 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14442 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14444 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14446 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14448 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14450 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14451 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14452 now to avoid double free.
14453 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14455 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14456 * util/grub-probe.c (escape_of_path): Always return a new copy.
14457 (print_full_name): Escape path.
14458 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14459 Fix hints on abstractions.
14461 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14463 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14464 Don't add "root" line if no compatibility hont is available.
14465 Suggested by: Seth Goldberg.
14467 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14469 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14470 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14471 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14472 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14474 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14476 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14478 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14480 * util/grub-pe2elf.c (ehdr): Make static.
14482 (num_sections): Likewise.
14483 (offset): Likewise.
14485 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14487 Eliminate ofpath limits and possible overflows.
14489 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14490 (OF_PATH_MAX): Removed.
14491 (MAX_DISK_CAT): New const.
14492 (find_obppath): Use allocated rather than preallocated buffer.
14493 Return result. Argument of_path removed. All users updated.
14494 Add missing fdstat.
14495 (xrealpath): New function.
14496 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14497 Allocate rather than use preallocated buffer. All users updated.
14498 (__of_path_common): Use allocated rather than preallocatecd buffer.
14499 Return result. Argument of_path removed. All users updated.
14500 (vendor_is_ATA): Read only needed part form the file.
14501 (check_sas): Allocate depending on contents rather than fixed.
14502 (main) [STANDALONE]: Handle NULL result.
14504 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14506 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14508 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14510 Cryptodisk write support.
14512 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14513 (grub_cryptodisk_decrypt): Moved logic to ...
14514 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14515 (grub_cryptodisk_write): Implement.
14516 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14517 (grub_util_fd_write): ... this. Make global.
14518 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14520 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14522 * include/grub/list.h (grub_list_remove): Don't crash if element is
14525 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14527 Rename ofconsole to console.
14529 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14530 as sysnonym to console.
14531 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14532 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14533 Rename grub_ofconsole_ to grub_console_. All users updated
14534 (grub_console_term_output): Rename "ofconsole" to "console".
14535 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14538 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14540 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14542 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14543 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14544 GRUB_DISK_DEVICE_FILE_ID.
14546 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14548 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14549 and improve performance.
14551 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14553 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14554 missing ieee1275/ prefix on whole disk.
14556 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14558 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14559 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14561 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14563 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14565 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14567 Merge common RAID and LVM logic to an abstract diskfilter.
14568 Add LDM support using the same framework.
14570 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14571 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14572 (libgrubmods): Remove grub-core/disk/raid.c and
14573 grub-core/partmap/gpt.c.
14574 * grub-core/Makefile.core.def (ldm): New module.
14575 (raid): Renamed to diskfilter. All users updated.
14576 * grub-core/disk/raid.c: Moved to ...
14577 * grub-core/disk/diskfilter.c: ... here.
14578 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14580 (find_array): Renamed to ...
14581 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14582 (grub_is_array_readable): Renamed to ...
14583 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14584 (insert_array): New argument id.
14585 (is_node_readable): New function.
14586 (scan_device): Rename to ...
14587 (scan_disk): .. this. Restrict to one disk.
14588 (scan_devices): New function.
14589 (grub_diskfilter_iterate): Support multi-LV.
14590 Skip invisible and nameless LVs.
14591 (grub_diskfilter_memberlist): Support multi-LV.
14592 (grub_diskfilter_read_node): New function.
14593 (grub_raid_read): Most of logic moved to ...
14594 (read_segment): ... here
14595 (read_lv): New function.
14596 (grub_diskfilter_get_vg_by_uuid): New function.
14597 (grub_diskfilter_make_raid): Likewise.
14598 * grub-core/disk/ldm.c: New file.
14599 * grub-core/disk/lvm.c (vg_list): Removed.
14600 (lv_count): Likewise.
14601 (scan_depth): Likewise.
14602 (is_lv_readable): Likewise.
14603 (grub_lvm_getvalue): Advance pointer past the number.
14604 (find_lv): Removed.
14605 (do_lvm_scan): Refactored into ...
14606 (grub_lvm_detect): ... this. Support raid.
14607 (grub_lvm_iterate): Removed.
14608 (grub_lvm_memberlist): Likewise.
14609 (grub_lvm_open): Likewise.
14610 (grub_lvm_close): Likewise.
14611 (read_lv): Likewise.
14612 (read_node): Likewise.
14613 (is_node_readable): Likewise.
14614 (is_lv_readable): Likewise.
14615 (grub_lvm_read): Likewise.
14616 (grub_lvm_write): Likewise.
14617 (grub_lvm_dev): Use diskfilter
14618 (GRUB_MOD_INIT): Likewise.
14619 (GRUB_MOD_FINI): Likewise.
14620 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14622 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14623 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14624 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14625 grub_diskfilter_read_node.
14626 Fix a bug with xor.
14627 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14628 grub_diskfilter_read_node.
14629 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14630 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14631 (grub_disk_dev_iterate): Move from here...
14632 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14633 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14635 (grub_hostdisk_find_partition_start): Likewise.
14636 (grub_hostdisk_os_dev_to_grub_drive): New function.
14637 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14638 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14639 * util/getroot.c (make_device_name): ... here.
14640 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14642 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14643 * grub-core/kern/emu/hostdisk.c
14644 (convert_system_partition_to_system_disk): Move to ...
14645 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14646 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14647 * util/getroot.c (device_is_wholedisk): ... here.
14648 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14649 * util/getroot.c (find_system_device): ... here.
14650 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14652 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14653 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14655 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14657 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14659 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14660 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14661 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14663 * include/grub/raid.h: Renamed to ...
14664 * include/grub/diskfilter.h: ... this.
14665 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14666 (GRUB_RAID_LAYOUT_*): Make into array.
14667 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14668 (grub_diskfilter_vg): New struct.
14669 (grub_diskfilter_pv_id): Likewise.
14670 (grub_raid_member): Removed.
14671 (grub_raid_array): Likewise.
14672 (grub_diskfilter_pv): New struct.
14673 (grub_diskfilter_lv): Likewise.
14674 (grub_diskfilter_segment): Likewise.
14675 (grub_diskfilter_node): Likewise.
14676 (grub_diskfilter_get_vg_by_uuid): New proto.
14677 (grub_raid_register): Inline.
14678 (grub_diskfilter_unregister): Likewise.
14679 (grub_diskfilter_make_raid): New proto.
14680 (grub_diskfilter_vg_register): Likewise.
14681 (grub_diskfilter_read_node): Likewise.
14682 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14683 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14684 (grub_util_is_ldm): Likewise.
14685 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14686 (grub_hostdisk_find_partition_start): Likewise.
14687 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14688 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14690 (grub_gpt_partition_map_iterate): New proto.
14691 * include/grub/lvm.h (grub_lvm_vg): Removed.
14692 (grub_lvm_pv): Likewise.
14693 (grub_lvm_lv): Likewise.
14694 (grub_lvm_segment): Likewise.
14695 (grub_lvm_node): Likewise.
14696 * util/getroot.c [...]
14697 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14698 (probe_abstraction): Likewise.
14699 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14700 (main): Remove dead logic.
14702 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14704 Simplify root device discover and don't fail when trying to open
14707 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14709 (get_diskname_from_path): Likewise.
14710 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14713 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14715 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14717 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14719 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14722 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14724 * util/grub-install.in: Add missing \.
14725 Reported by: gentoofan
14727 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14729 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14730 (direct_read): Use correct compressed size.
14731 (grub_squash_read_data): Likewise.
14733 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14735 * docs/grub.texi (Platform limitations): New section.
14736 (Platform-specific operations): Likewise.
14737 * docs/grub-dev.texi (Porting): Likewise.
14739 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14741 IEEE1275 disk write support.
14743 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14745 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14746 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14747 and seek loginc to ...
14748 (grub_ofdisk_prepare): ... here.
14749 (grub_ofdisk_write): Implement.
14751 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14753 ARC disk write support.
14755 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14756 (reopen): New argument writable. All users updated.
14757 Handle required access mode.
14758 (grub_arcdisk_write): Implement.
14759 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14760 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14762 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14764 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14765 (read_sblock): Don't attempt to read superblocks outside the disk size.
14767 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14769 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14770 first superblock to find the second one when possible.
14772 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14774 * util/grub-install.in: Fix an ARC bug.
14775 Print a warning if no platform-specific setup is available.
14777 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14779 Use static allocation rather than scratch pointer in reed_solomon.
14780 It decreases its size significantly and avoids a variable in .text.
14782 * grub-core/lib/reed_solomon.c (scratch): Removed.
14783 (chosenstat): New const or static array.
14785 (errpot): Likewise.
14786 (errpos): Likewise.
14789 (errvals): Likewise.
14790 (eqstat): Likewise.
14791 (pol_evaluate): Replace x with log_x argument. All users updated.
14792 (syndroms): Removed.
14793 (gauss_solve): Use statically allocated arrays.
14794 (rs_recover): Likewise.
14795 Calculate syndroms directly.
14796 (decode_block): Use statically allocated arrays.
14797 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14798 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14800 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14802 Eliminate fixed limit on reed solomon decoder length.
14804 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14805 rather than hardcoding the address.
14806 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14807 no_reed_solomon_length.
14808 Move gate_a20 to no-reed-solomon part.
14809 Don't force a particular size of no reed-solomon part.
14810 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14812 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14813 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14815 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14817 * grub-core/commands/wildcard.c (match_files): Handle filenames
14818 without explicit device.
14819 (wildcard_expand): Don't add explicit device if not already present.
14820 * tests/grub_script_echo1.in: Add a new expansion test.
14822 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14824 Replace single-linked with double-linked lists. It results in more
14825 compact and more efficient code.
14827 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14828 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14829 (grub_list_remove): Moved from here ...
14830 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14831 (grub_prio_list_insert): Set prev.
14832 * include/grub/list.h (grub_list): Add prev. All users updated.
14834 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14836 Handle newer autotools. Add some missing quotes while on it.
14838 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14839 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14840 (pkgdata_DATA): ... here.
14841 * Makefile.util.def (update-grub_lib): Removed.
14842 * conf/Makefile.common (pkglib_DATA): Removed.
14843 (pkglib_SCRIPTS): Likewise.
14844 (pkgdata_DATA): New variable.
14845 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14847 Add missing quotes.
14848 Remove unused variable while on it.
14849 * tests/util/grub-shell.in: Likewise.
14850 * util/grub-install.in: Likewise.
14851 * util/grub-mkconfig.in: Likewise.
14852 * util/grub-mknetdir.in: Likewise.
14853 * util/grub-mkrescue.in: Likewise.
14854 * util/grub-mkstandalone.in: Likewise.
14855 * util/grub.d/00_header.in: Likewise.
14856 * util/grub.d/10_hurd.in: Likewise.
14857 * util/grub.d/10_illumos.in: Likewise.
14858 * util/grub.d/10_kfreebsd.in: Likewise.
14859 * util/grub.d/10_linux.in: Likewise.
14860 * util/grub.d/10_netbsd.in: Likewise.
14861 * util/grub.d/10_windows.in: Likewise.
14862 * util/grub.d/20_linux_xen.in: Likewise.
14863 * util/grub.d/30_os-prober.in: Likewise.
14864 * util/update-grub_lib.in: Removed.
14866 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14868 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14869 a workaround for intel problem.
14871 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14872 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14873 2012-01-23 pfsmorigo
14875 * util/grub-install.in: Support dd'in into PreP partition.
14876 * util/grub-probe.c (probe): Support discovering partition type.
14877 (main): Support -t msdos_parttype.
14879 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14881 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14882 infinite recursion using counter.
14883 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14884 init to skip it if the magic check fails.
14885 (dec_stream_header): Init s->crc32.
14887 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14888 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14889 2012-01-22 Richard Laager <rlaager@wiktel.com>
14891 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14893 (find_bestub): Determine correct size.
14894 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14895 (scan_disk): Align the size down.
14896 Call check pool before find_bestub to have ashift.
14898 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14900 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14901 dprintf in no-malloc zone.
14903 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14905 * configure.ac: Add back in test for limits.h.
14907 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14909 Support 4K-sector NTFS.
14911 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14912 (grub_ntfs_data): Remove blocksize.
14913 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14914 Remove data argument. All users updated.
14916 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14918 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14919 being in .text to avoid dprel references.
14920 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14921 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14922 (grub_arch_highmemsize): Likewise.
14923 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14924 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14925 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14927 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14929 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14931 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14932 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14934 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14936 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14938 (grub_set_datetime_cmos): Likewise.
14940 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14942 Make XZ compression parameters dependent on target and not host CPU.
14944 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14945 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14947 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14949 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14950 set but not used variable.
14952 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14954 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14955 created when no uuid support is compiled into mkfs.reiser.
14957 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14959 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14960 (utf8_to_macroman): Do the opposite.
14961 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14963 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14965 * configure.ac: Refise build qemu_mips w/o unifont.
14967 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14969 Eliminate grub_min/grub_max prone to overflow usage.
14971 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14972 (poll_nonroot_hub): Likewise.
14973 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14974 (grub_affs_label): Likewise.
14975 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14976 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14977 (grub_hfs_label): Likewise.
14978 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14979 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14980 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14981 (zap_leaf_array_get): Likewise.
14982 (dnode_get_path): Likewise.
14983 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14984 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14985 * grub-core/script/execute.c (grub_script_break): Likewise.
14986 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14988 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14989 * include/grub/misc.h (grub_min): Removed.
14990 (grub_max): Likewise.
14992 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14994 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14997 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14999 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
15001 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15003 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
15005 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15007 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
15008 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
15010 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15012 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
15013 rather than a hack for grub_strncasemap.
15015 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15017 Support multiple initrds
15018 Note: part of this was accidently committed in r3739.
15020 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
15022 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
15023 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
15024 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15025 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15026 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15028 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15030 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
15031 disks with unknown size.
15032 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
15034 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15036 Remove defines pertaining to arbitrary limits not affecting GRUB
15039 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
15040 (EXT2_MAX_SYMLINKCNT): Likewise.
15041 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
15042 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
15043 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
15044 (GRUB_PXE_MAX_BLKSIZE): Likewise.
15045 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
15046 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
15047 (DN_MAX_OBJECT_SHIFT): Likewise.
15048 (DN_MAX_OFFSET_SHIFT): Likewise.
15049 (DN_MAX_OBJECT): Likewise.
15050 (DNODES_PER_LEVEL_SHIFT): Likewise.
15051 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
15052 (SPA_MAXBLOCKSIZE): Likewise.
15053 (SPA_BLOCKSIZES): Likewise.
15054 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
15055 (MZAP_MAX_BLKSZ): Likewise.
15057 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15059 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
15060 handle NULL appropriately.
15063 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15067 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
15069 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
15070 * configure.ac: Fix efiemu check.
15072 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15074 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
15076 Reported by: adamwill
15078 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
15080 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
15082 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15084 Fix handling of wide characters in gfxterm.
15086 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
15087 (clear_char): Likewise.
15088 (paint_char): Skip code == NULL chars.
15089 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
15091 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15093 * grub-core/normal/charset.c: Move comment to right place.
15095 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15097 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
15098 (GRUB_AFFS_FLAG_FFS): Put back where it was.
15099 (grub_affs_mount): Revert the correct version checking.
15101 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15103 * docs/grub.texi (Unicode): Mention several other unsupported features.
15105 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15107 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
15108 case statements as compile-time one.
15109 (direct_read): Prevent spurious warnings.
15110 (grub_squash_read_data): Likewise.
15112 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15114 Various squash4 fixes and LZO and XZ support.
15116 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
15117 Add xzembed source files.
15118 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
15119 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
15120 (grub_squash_inode): New subtype long_dir.
15121 (SQUASH_TYPE_LONG_DIR): New inode type.
15122 (COMPRESSION): New enum.
15123 (XZBUFSIZ): New const.
15124 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
15125 (read_chunk): Use data->decompress.
15126 (zlib_decompress): New function.
15127 (lzo_decompress): Likewise.
15128 (xz_decompress): Likewise.
15129 (squash_mount): Set new data fields.
15130 (grub_squash_iterate_dir): Handle long dir.
15131 (squash_unmount): Free xzdec and xzbuf.
15132 (grub_squash_open): Check ino type.
15133 (direct_read): Stylistic fixes. Use data->decompress.
15134 (grub_squash_read_data): Likewise.
15135 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
15136 (get_byte): Likewise.
15137 (grub_zlib_disk_read): Removed.
15138 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
15139 (GRUB_POSIX_BOOL_DEFINED): New define.
15140 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
15141 * grub-core/lib/xzembed/xz.h: Addmissing includes.
15142 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
15143 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
15145 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15147 Don't override more informative errors.
15149 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
15150 * grub-core/font/font.c (open_section): Likewise.
15151 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
15152 filename. Don't override errors.
15153 (grub_cmd_openbsd_ramdisk): Don't override errors.
15154 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
15155 (grub_cmd_initrd): Likewise.
15156 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15157 (grub_cmd_initrd): Likewise.
15158 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
15159 (grub_cmd_linux): Likewise.
15160 (grub_cmd_initrd): Likewise.
15161 (grub_cmd_payload): Likewise.
15162 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15163 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
15164 (grub_cmd_module): Likewise.
15165 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15166 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15167 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15168 (grub_cmd_xnu_mkext): Likewise.
15169 (grub_cmd_xnu_ramdisk): Likewise.
15170 (grub_xnu_check_os_bundle_required): Likewise.
15171 (grub_xnu_load_kext_from_dir): Likewise.
15172 (grub_cmd_xnu_kextdir): Likewise.
15173 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15175 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15177 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15178 as 1024 in block size field. Found on one of my test images.
15179 Small optimisation while on it.
15181 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15183 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15184 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15185 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15186 performance fixes while on it.
15187 (grub_sfs_close): Fix memory leak while on it.
15188 (grub_sfs_label): Convert Latin1 to UTF-8.
15190 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15192 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15193 space to avoid overflows.
15194 (grub_hfs_label): Convert from macroman to UTF-8.
15196 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15198 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15200 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15202 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15204 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15206 * unicode: Import Unicode 6.0 data.
15208 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15210 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15213 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15215 Avoid cutting in the middle of UTF-8 character.
15217 * include/grub/charset.h (grub_getend): New function.
15218 * grub-core/script/function.c (grub_script_function_find): Use
15220 * grub-core/normal/completion.c (add_completion): Likewise.
15222 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15224 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15225 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15226 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15227 (GRUB_UNICODE_TAG_END): Likewise.
15228 (GRUB_UNICODE_LAST_VALID): Likewise.
15230 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15232 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15233 len and make it smaller. All users updated.
15234 * util/import_unicode.py: Put length and not end character.
15237 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15239 Make better Unicode-compliant and unify some UTF-8 code pathes.
15241 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15243 (grub_is_valid_utf8): Use grub_utf8_process.
15244 Check resulting code range.
15245 (grub_utf8_to_ucs4): Use grub_utf8_process.
15246 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15249 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15251 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15253 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15255 * docs/grub.texi (Filesystems): Mention AFS.
15257 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15259 * docs/grub.texi (Filesystems): Clarify restrictions.
15260 (Regexp): Mention non-Unicode regexp behaviour.
15261 (Other): Mention non-Unicode matching behaviour.
15263 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15265 Make HFS implementation use MacRoman.
15267 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15268 (macroman): New const array.
15269 (macroman_to_utf8): New function.
15270 (utf8_to_macroman): Likewise.
15271 (grub_hfs_find_dir): Use utf8_to_macroman.
15272 (grub_hfs_dir): Use macroman_to_utf8.
15273 Set case_insensitive.
15275 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15277 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15279 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15281 Integrate hints into autogeneration scripts.
15283 * docs/grub.texi (Filesystems): Add a hostdisk example.
15284 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15285 (grub-probe): Add ofpath.
15286 * gentpl.py: Remove group nosparc64.
15287 * grub-core/commands/search.c (cache_entry): New struct.
15289 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15290 * grub-core/commands/search_wrap.c (options): Add platform-specific
15292 (grub_cmd_search): Handle platform-specific hints.
15293 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15294 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15295 (grub_util_biosdisk_data): Likewise.
15296 (grub_util_biosdisk_open): Set device_map.
15297 (read_device_map): Handle "" as indication of no map.
15299 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15300 (grub_util_biosdisk_get_compatibility_hint): New function.
15301 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15302 * include/grub/emu/hostdisk.h
15303 (grub_util_biosdisk_get_compatibility_hint): New proto.
15304 * util/grub-install.in: Don't call grub-mkdevicemap.
15305 Add platform-specific hint to load.cfg.
15306 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15307 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15308 hints. Set root preliminary to compatibility hint, not to OS name.
15309 * util/grub-probe.c (PRINT_*): Add hints.
15310 (print): Make static.
15311 (escape_of_path): New function.
15312 (guess_bios_drive): Likewise.
15313 (guess_efi_drive): Likewise.
15314 (guess_baremetal_drive): Likewise.
15315 (print_full_name): Likewise.
15316 (probe): Handle hints.
15318 * util/ieee1275/devicemap.c: Removed.
15319 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15321 (grub_util_devname_to_ofpath): Return NULL on failure.
15323 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15325 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15327 * po/POTFILES.in: Regenerated.
15329 Allow purely long options
15331 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15332 (SHORT_ARG_USAGE): Likewise.
15333 (grub_arg_show_help): Compare opt with help_options.
15334 (parse_option): Receive opt as argument. If makes big simplificatons.
15337 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15339 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15340 Restructure to avoid warning.
15342 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15344 * util/grub-install.in: Account for possible escaped comma in device
15347 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15349 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15352 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15354 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15355 allocation and zero-setting.
15356 (grub_ieee1275_get_devname): Check that alias is complete.
15358 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15360 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15361 unaligned segments.
15363 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15365 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15367 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15368 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15369 Add ieee1275 prefix.
15371 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15373 * docs/grub.texi (Filesystems): Update.
15375 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15377 Support odc, newc and bigendian cpio formats.
15379 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15380 * grub-core/Makefile.core.def (newc): New module.
15382 (cpio_be): Likewise.
15383 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15385 (MAGIC2): Likewise.
15386 (head) [MODE_ODC]: Adapt for the format.
15387 (head) [MODE_NEWC]: Likewise.
15388 (head) [!MODE_*]: Write fields of interest as arrays.
15389 (MAGIC_USTAR): Removed.
15390 (read_number) [MODE_NEWC]: Change to hex.
15391 (read_number) [!MODE_*]: Parse binary arrays.
15392 (grub_cpio_find_file): Factor out the code for better structure and
15393 always use read_number.
15394 (grub_cpio_mount): Use MAGIC and MAGIC2.
15395 (grub_cpio_dir): Exit on first hook non-0 return.
15396 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15397 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15398 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15399 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15400 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15401 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15402 * grub-core/fs/newc.c: New file.
15403 * grub-core/fs/odc.c: Likewise.
15404 * grub-core/fs/cpio_be.c: Likewise.
15406 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15408 Fix handling of tar numbers occupying the whole field.
15410 * grub-core/fs/cpio.c (read_number): New function.
15411 (grub_cpio_find_file): Use read_number instead of strtoull.
15413 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15415 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15416 occupying the whole field size.
15418 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15420 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15422 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15424 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15426 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15428 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15429 TARGET_IMG_LDFLAGS.
15431 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15433 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15434 (mountinfo_entry): Increase the field size to take escaping into
15436 (find_root_device_from_libzfs): Add one byte to size of strings for
15439 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15441 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15443 * util/grub-setup.c (setup): Likewise.
15445 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15447 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15450 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15452 * docs/grub.texi (Internationalisation): New section.
15454 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15456 * docs/grub.texi (Loopback booting): New section.
15458 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15460 * util/grub-mkstandalone.in: Fix minor typo errors.
15462 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15464 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15466 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15467 net/icmp.c and net/icmp6.c.
15468 (http): New module.
15469 (priority_queue): Likewise.
15470 * grub-core/io/bufio.c: Rewritten.
15471 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15472 TYPE_WITH_CONFIGFILE_OPTION.
15473 (legacy_commands): Add bootp and dhcp.
15474 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15475 (grub_legacy_parse): Likewise.
15476 * grub-core/lib/priority_queue.c: New file.
15477 * grub-core/net/arp.c: Add missing license header.
15478 (arp_find_entry): Removed.
15479 (arp_find_entry): Likewise.
15480 (grub_net_arp_resolve): Rename to ...
15481 (grub_net_arp_send_request): ...this.
15482 (grub_net_arp_receive): New card argument.
15483 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15484 Set router and DNS server.
15485 (grub_net_configure_by_dhcp_ack): Handle routing information.
15486 (grub_cmd_bootp): Set checksum.
15487 (grub_bootp_init): Remove net_dhcp.
15488 * grub-core/net/dns.c: New file.
15489 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15491 (get_card_packet): Handle allocation.
15492 (grub_efinet_findcards): Set mtu.
15493 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15494 (get_card_packet): Handle allocation.
15495 (emucard): Set mtu.
15496 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15497 (GRUB_MOD_INIT): Set mtu.
15498 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15500 (get_card_packet): Handle allocation.
15501 (grub_ofnet_findcards): Set mtu.
15502 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15504 (grub_net_recv_ethernet_packet): Handle IPv6.
15505 * grub-core/net/http.c: New file.
15506 * grub-core/net/icmp.c: Likewise.
15507 * grub-core/net/icmp6.c: Likewise.
15508 * grub-core/net/ip.c (ip6addr): New type.
15509 (ip6hdr): Likewise.
15510 (reassemble): Likewise.
15511 (cmp): New function.
15512 (reassembles): New variable.
15513 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15514 (id): New variable.
15515 (send_fragmented): New function.
15516 (grub_net_send_ip_packet): Rename to ...
15517 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15519 (grub_net_recv_ip_packets): Rename to ...
15520 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15521 (free_rsm): New function.
15522 (free_old_fragments): Likewise.
15523 (grub_net_recv_ip4_packets): New function.
15524 (grub_net_send_ip6_packet): Likewise.
15525 (grub_net_send_ip_packet): Likewise.
15526 (grub_net_recv_ip6_packets): Likewise.
15527 (grub_net_recv_ip_packets): Likewise.
15528 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15529 (LINK_LAYER_CACHE_SIZE): New const.
15530 (link_layer_find_entry): New function.
15531 (grub_net_link_layer_add_address): Likewise.
15532 (grub_net_link_layer_resolve_check): Likewise.
15533 (grub_net_link_layer_resolve): Likewise.
15534 (grub_net_ipv6_get_slaac): Likewise.
15535 (grub_net_ipv6_get_link_local): Likewise.
15536 (grub_cmd_ipv6_autoconf): Likewise.
15537 (parse_ip): Handle one number representation.
15538 (parse_ip6): New functoion.
15539 (match_net): Handle IPv6.
15540 (grub_net_resolve_address): Handle IPv6 and DNS.
15541 (grub_net_resolve_net_address): Handle IPv6.
15542 (route_cmp): New function.
15543 (grub_net_route_address): Find best route.
15544 (grub_net_addr_to_str): Handle IPv6.
15545 (grub_net_addr_cmp): New function.
15546 (grub_net_add_addr): Register local route.
15547 (print_net_address): Handle net address.
15548 (grub_net_poll_cards): Retransmit TCP.
15549 (grub_net_poll_cards_idle_real): Likewise.
15550 (have_ahead): New function.
15551 (grub_net_seek_real): Use underlying seek.
15552 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15553 * grub-core/net/tcp.c: New file.
15554 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15555 (cmp): New function.
15557 (tftp_receive): Handle unordered input.
15558 (destroy_pq): New function.
15559 (tftp_close): Close pq.
15560 * grub-core/net/udp.c: Put missing license header.
15561 (grub_net_udp_socket): New function.
15562 (udp_socket_register): Likewise.
15563 (grub_net_udp_close): Likewise.
15564 (grub_net_recv_udp_packet): Check checksum.
15565 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15566 * include/grub/misc.h (grub_memchr): New function.
15567 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15568 (grub_net_card_driver): Return buf in recv.
15569 (grub_net_slaac_mac_list): New struct.
15570 (grub_network_level_protocol_id): Add ipv6.
15571 (grub_net_network_level_addr): Likewise.
15572 (grub_net_network_level_net_addr): Likewise.
15573 (grub_net_app_protocol): Add seek.
15574 (grub_net_socket): Removed.
15575 (grub_net_sockets): Likewise.
15576 (grub_net_socket_register): Likewise.
15577 (grub_net_socket_unregister): Likewise.
15578 (FOR_NET_SOCKETS): Likewise.
15579 (grub_net_add_addr): Add const.
15580 (GRUB_NET_BOOTP_*): New enum.
15581 (grub_net_addr_cmp): New proto.
15582 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15583 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15584 (grub_net_hwaddr_to_str): NEw proto.
15585 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15586 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15587 (grub_dns_init): New proto.
15588 (grub_dns_fini): Likewise.
15589 (grub_net_tcp_retransmit): Likewise.
15590 (grub_net_link_layer_add_address): Likewise.
15591 (grub_net_link_layer_resolve_check): Likewise.
15592 (grub_net_link_layer_resolve): Likewise.
15593 (grub_net_dns_lookup): Likewise.
15594 (grub_net_add_dns_server): Likewise.
15595 (grub_net_remove_dns_server): Likewise.
15596 (GRUB_NET_TRIES): New const.
15597 (GRUB_NET_INTERVAL): Likewise.
15598 * include/grub/net/arp.h: Mostly rewritten.
15599 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15600 * include/grub/net/ip.h: Mostly rewritten.
15601 * include/grub/net/netbuff.h: Indent.
15602 * include/grub/net/tcp.h: New file.
15603 * include/grub/net/udp.h: Mostly rewritten.
15604 * include/grub/priority_queue.h: New file.
15605 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15606 (grub_swap_bytes64_compile_time): Likewise.
15607 (grub_cpu_to_be16_compile_time): Likewise.
15608 (grub_cpu_to_be32_compile_time): Likewise.
15609 (grub_cpu_to_be64_compile_time): Likewise.
15610 (grub_be_to_cpu64_compile_time): Likewise.
15612 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15614 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15615 UINT_TO_PTR with cast.
15617 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15619 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15622 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15624 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15627 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15629 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15632 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15634 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15635 Add missing const attribute.
15636 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15638 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15641 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15643 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15645 (serpent_setkey): Likewise.
15646 (serpent_encrypt_internal): Likewise.
15647 (serpent_decrypt_internal): Likewise.
15648 (serpent_encrypt): Don't put an alignment-increasing cast.
15649 (serpent_decrypt): Likewise.
15650 (serpent_test): Likewise.
15652 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15654 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15656 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15658 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15660 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15662 (PTR_TO_UINT64): Likewise.
15663 (PTR_TO_UINT32): Likewise.
15665 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15667 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15669 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15672 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15674 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15675 text_width > available width a bit more gracefully.
15677 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15679 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15680 current address calculation.
15682 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15684 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15686 (encode_block): Likewise.
15688 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15690 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15693 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15695 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15696 non-RS part to avoid RS messing with GDT.
15697 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15698 Increase to suit in realmode routines.
15700 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15702 * grub-core/kern/i386/realmode.S: Increase alignment.
15703 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15705 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15707 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15709 (syndroms): Compute 0 syndrom.
15710 (rs_recover): Use 0 syndrom.
15712 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15714 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15716 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15718 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15721 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15723 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15725 (get_top_pad): Likewise.
15726 (get_right_pad): Likewise.
15727 (get_bottom_pad): Likewise.
15729 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15731 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15733 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15735 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15736 attribute as the structure isn't guaranteed to be properly aligned.
15737 (grub_efi_pci_device_path): Likewise.
15738 (grub_efi_pccard_device_path): Likewise.
15739 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15740 specify the size of `memory_type'.
15741 (grub_efi_vendor_device_path): Likewise.
15742 (grub_efi_controller_device_path): Likewise.
15743 (grub_efi_acpi_device_path): Likewise.
15744 (grub_efi_expanded_acpi_device_path): Likewise.
15745 (grub_efi_atapi_device_path): Likewise.
15746 (grub_efi_scsi_device_path): Likewise.
15747 (grub_efi_fibre_channel_device_path): Likewise.
15748 (grub_efi_1394_device_path): Likewise.
15749 (grub_efi_usb_device_path): Likewise.
15750 (grub_efi_usb_class_device_path): Likewise.
15751 (grub_efi_i2o_device_path): Likewise.
15752 (grub_efi_mac_address_device_path): Likewise.
15753 (grub_efi_ipv4_device_path): Likewise.
15754 (grub_efi_ipv6_device_path): Likewise.
15755 (grub_efi_infiniband_device_path): Likewise.
15756 (grub_efi_uart_device_path): Likewise.
15757 (grub_efi_vendor_messaging_device_path): Likewise.
15758 (grub_efi_hard_drive_device_path): Likewise.
15759 (grub_efi_cdrom_device_path): Likewise.
15760 (grub_efi_vendor_media_device_path): Likewise.
15761 (grub_efi_file_path_device_path): Likewise.
15762 (grub_efi_protocol_device_path): Likewise.
15763 (grub_efi_piwg_device_path): Likewise.
15764 (grub_efi_bios_device_path): Likewise.
15766 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15768 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15769 (grub_ucs4_to_utf8_alloc): Likewise.
15770 (grub_ucs4_to_utf8): Likewise.
15771 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15772 (grub_ucs4_to_utf8_alloc): Likewise.
15774 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15776 AFFS never uses unicode.
15778 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15779 (grub_latin1_to_utf8): New inline function.
15780 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15782 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15784 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15787 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15789 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15790 (grub_squash_dirent_header): Likewise.
15791 (read_chunk): Don't double swap.
15792 (grub_squash_iterate_dir): Fix swap sizes.
15794 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15796 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15798 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15800 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15801 (grub_hfs_iterate_dir): Likewise.
15803 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15805 Fix video on platforms where unaligned access is forbidden.
15806 Make several optimisations while on it.
15808 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15809 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15810 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15811 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15813 (grub_video_fbblit_replace_16bit_1bit):
15814 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15815 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15816 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15817 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15818 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15819 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15820 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15821 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15822 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15823 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15824 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15825 (grub_video_fbblit_replace_index_RGB888): Likewise.
15826 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15827 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15828 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15829 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15830 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15831 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15832 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15834 (grub_video_fbblit_blend_XXX565_1bit):
15835 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15836 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15837 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15839 * grub-core/video/fb/video_fb.c (common_blitter)
15840 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15841 (grub_video_fb_create_render_target_from_pointer)
15842 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15843 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15844 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15846 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15848 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15850 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15851 HH22 and HM10 relocations.
15853 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15855 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15857 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15859 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15860 allocation succeeded.
15862 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15864 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15865 argument a u8 pointer. All users updated.
15866 Handle unaligned buffers.
15868 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15870 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15871 add_part to workaround compiler bug.
15873 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15875 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15877 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15879 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15880 Reserve alignment invariants.
15881 (grub_multiboot_load): Likewise.
15882 (retrieve_video_parameters): Likewise.
15883 (grub_multiboot_make_mbi): Likewise.
15885 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15887 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15890 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15892 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15893 (grub_pata_pio_write): Likewise.
15895 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15897 Add noreturn attributes and remove unreachable code.
15899 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15901 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15902 code. Mark as noreturn.
15903 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15904 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15905 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15907 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15908 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15909 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15910 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15911 * include/grub/kernel.h (grub_main): Mark as noreturn.
15912 * include/grub/reader.h (grub_rescue_run): Likewise.
15914 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15916 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15917 redundant declaration.
15919 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15921 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15922 redundant declaration.
15923 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15925 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15927 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15928 to ensure alignment.
15929 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15930 alignment. Ensure tmp alignment.
15931 (grub_cmd_hdparm): Ensure buf alignment.
15932 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15933 to ensure alignment.
15934 (grub_ata_dumpinfo): Ensure text alignment.
15935 (grub_atapi_identify): Preserve alignment invariant.
15936 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15938 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15940 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15941 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15942 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15943 * include/grub/misc.h (grub_reboot)
15944 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15945 (grub_halt) [__mips__]: Likewise.
15947 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15949 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15950 Remove redundant declaration.
15951 (grub_mmap_get_post64): Likewise.
15952 (grub_mmap_get_upper): Likewise.
15953 (grub_mmap_get_lower): Likewise.
15955 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15957 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15958 uint32_t * to ensure alignment.
15959 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15961 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15963 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15964 uint16_t * to ensure alignment.
15965 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15968 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15970 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15971 to ensure alignment.
15972 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15974 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15976 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15977 Handle unaligned pointers.
15980 (fixup): Use byte access instead of v16at.
15981 (find_attr): Fix imporper usage of v32at.
15982 (read_data): Likewise.
15983 (list_file): Handle byte-swapping and unaligned strings.
15984 (grub_ntfs_label): Likewise.
15986 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15988 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15989 as it's not necessarily aligned.
15991 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15993 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15994 redundant declaration.
15995 (grub_serial_init): Likewise.
15996 (grub_terminfo_init): Likewise.
15998 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16000 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
16002 (ZAP_HASH_IDX): Likewise.
16003 (ZAP_LEAF_HASH_SHIFT): Likewise.
16004 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
16005 (LEAF_HASH): Likewise.
16006 (ZAP_LEAF_NUMCHUNKS): Likewise.
16007 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
16008 alignment invariants. Return pointer. All users updated.
16009 (ZAP_LEAF_ENTRY): Make into inline function.
16012 (xor_out): Use grub_crypto_xor.
16013 (dnode_get_path): Use grub_get_unaligned.
16014 (nvlist_find_value): Likewise.
16015 (grub_zfs_nvlist_lookup_uint64): Likewise.
16016 (grub_zfs_nvlist_lookup_string): Likewise.
16017 (get_nvlist_size): Likewise.
16018 (grub_zfs_open): Likewise.
16019 (fill_fs_info): Likewise.
16020 (grub_zfs_dir): Likewise.
16021 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
16022 alignment invariants.
16023 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
16024 necessarily aligned.
16026 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16028 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
16030 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16032 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
16033 arithmetic to conserve alignment invariants.
16035 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16037 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
16038 redundant declaration.
16039 (grub_efiemu_mm_obtain_request): Likewise.
16040 (grub_efiemu_prepare): Likewise.
16042 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16044 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
16047 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16049 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
16050 case of aunaligned recptr.
16051 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
16053 (grub_hfsplus_btree_search): Handle unaligned index.
16055 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16057 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
16058 to get freetag and skip.
16060 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16062 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
16064 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
16065 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
16067 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16069 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
16070 name for checksum and fix allocation algorithm.
16072 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16074 * include/grub/types.h (grub_properly_aligned_t): New type.
16075 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
16076 (grub_get_unaligned16): Add explicit casts.
16077 (grub_get_unaligned32): Likewise.
16078 (grub_get_unaligned64): Likewise.
16079 (grub_set_unaligned16): New function.
16080 (grub_set_unaligned32): Likewise.
16082 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16084 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16086 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16088 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
16089 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
16090 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
16092 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16094 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
16097 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16099 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
16100 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
16102 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16104 Unify and improve RAID and crypto xor.
16106 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
16107 changed to grub_crypto_xor
16108 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
16109 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
16110 Use bigger types when possible.
16112 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16114 * grub-core/disk/raid.c (scan_devices): Fix condition.
16116 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16118 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
16119 Make name a const ptr.
16121 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16123 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
16124 first argument a const pointer.
16125 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
16126 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
16128 (grub_children_iterate): Likewise.
16129 (grub_machine_mmap_iterate): Remove redundant declaration.
16131 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16133 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
16134 (grub_cmd_acpi) [!x86]: Disable EBDA.
16136 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16138 Enable UTF8 in gnulib regexp.
16140 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
16141 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
16142 (isupper): Use grub_isupper.
16143 (isascii): New inline function.
16144 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
16145 * grub-core/lib/posix_wrap/wctype.h: Likewise.
16146 * grub-core/normal/charset.c (grub_utf8_process): New function.
16147 (grub_utf8_to_utf16): Use grub_utf8_process.
16148 (grub_encode_utf8_character): New function.
16149 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
16150 * include/grub/charset.h (grub_utf8_process): New declaration.
16151 (grub_encode_utf8_character): Likewise.
16152 * include/grub/misc.h (grub_islower): New inline function.
16153 (grub_isupper): Likewise.
16154 (grub_strchrsub): Moved down to fix the definitions.
16156 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16158 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
16161 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16163 * include/grub/loader.h (grub_loader_register_preboot_hook):
16164 Use struct preboot * and not void * for handle. All users updated.
16165 (grub_loader_unregister_preboot_hook): Likewise.
16167 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16169 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16170 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16171 UTF-16-BE. All users updated.
16172 (grub_hfsplus_cmp_catkey): Fix unicode handling.
16173 (grub_hfsplus_iterate_dir): Likewise.
16174 (grub_hfsplus_label): Likewise.
16176 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16178 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16180 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16182 Add missing const qualifiers.
16184 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16185 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16186 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16187 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16188 (grub_lvm_check_flag): Likewise.
16189 * grub-core/efiemu/i386/coredetect.c
16190 (grub_efiemu_get_default_core_name): Likewise
16191 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16192 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16193 * grub-core/fs/ntfs.c (fixup): Likewise.
16194 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16195 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16196 (fzap_lookup): Likewise.
16197 (zap_lookup): Likewise.
16198 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16199 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16200 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16201 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16202 (grub_freebsd_add_meta_module): Likewise.
16203 (grub_cmd_freebsd_module): Likewise.
16204 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16205 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16206 (grub_xnu_writetree_get_size): Likewise.
16207 (grub_xnu_writetree_toheap_real): Likewise.
16208 (grub_xnu_find_key): Likewise.
16209 (grub_xnu_create_key): Likewise.
16210 (grub_xnu_create_value): Likewise.
16211 (grub_xnu_register_memory): Likewise.
16212 (grub_xnu_check_os_bundle_required): Likewise.
16213 (grub_xnu_scan_dir_for_kexts): Likewise.
16214 (grub_xnu_load_kext_from_dir): Likewise.
16215 * grub-core/normal/color.c (color_list): Likewise.
16216 * grub-core/normal/completion.c (current_word): Likewise.
16217 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16218 * grub-core/term/serial.c (grub_serial_find): Likewise.
16219 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16220 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16222 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16223 (grub_freebsd_add_meta_module): Likewise.
16224 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16225 * include/grub/net.h (grub_net_card_driver): Likewise.
16226 (grub_net_card): Likewise.
16227 (grub_net_app_protocol): Likewise.
16228 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16229 * include/grub/serial.h (grub_serial_find): Likewise.
16230 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16231 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16232 (grub_xnu_create_value): Likewise.
16233 (grub_xnu_find_key): Likewise.
16234 (grub_xnu_scan_dir_for_kexts): Likewise.
16235 (grub_xnu_load_kext_from_dir): Likewise.
16237 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16238 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16239 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16240 Moved from here ...
16241 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16243 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16245 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16247 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16249 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16250 (read_device): Fix size calculation.
16252 2011-11-25 Robert Millan <rmh@gnu.org>
16254 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16255 (find_root_device_from_libzfs): Add zpool output parser to be used
16256 as fallback when libzfs isn't available.
16258 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16260 * po/Makefile.in.in: Add missing escape-continuation.
16262 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16264 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16266 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16268 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16270 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16272 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16274 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16276 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16278 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16280 * grub-core/lib/adler32.c: Add missing license specification.
16281 * grub-core/lib/crc64.c: Likewise.
16282 * grub-core/loader/i386/pc/plan9.c: Likewise.
16283 * grub-core/partmap/plan.c: Likewise.
16285 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16287 Add facility to debug GRUB with gdb under qemu.
16289 * grub-core/gdb_grub.in: New file.
16290 * grub-core/gmodule.pl.in: Likewise.
16291 * grub-core/Makefile.core.def (gmodule.pl): New script.
16292 (gdb_grub): Likewise.
16294 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16296 * util/grub-mount.c (argp_parser): Accept relative pathes.
16297 * util/grub-fstest.c (argp_parser): Likewise.
16299 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16303 * Makefile.util.def (libgrubmods): Add
16304 grub-core/partmap/plan.c.
16305 * docs/grub.texi: Notice Plan9 support.
16306 * grub-core/Makefile.core.def (plan9): New module.
16307 (part_plan): Likewise.
16308 * grub-core/loader/i386/pc/plan9.c: New file.
16309 * grub-core/partmap/plan.c: Likewise.
16310 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16312 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16313 * include/grub/mm.h (grub_extend_alloc): New inline function.
16315 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16317 Make Reed-Solomon faster by using power of generator representation of
16320 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16321 (gf_double_t): Likewise.
16322 (gf_invert): Removed.
16323 (gf_powx): New array.
16324 (gf_powx_inv): Likewise.
16325 (scratch): Move higher.
16326 (gf_reduce): Removed.
16327 (gf_mul): Use powx.
16328 (gf_invert): Likewise.
16329 (init_inverts): Replaced with ...
16330 (init_powx): ...this. All users updated.
16331 (pol_evaluate): Replace multiplications with additions.
16332 (rs_encode): Likewise.
16333 (gauss_eliminate): Call gf_invert.
16334 (grub_reed_solomon_add_redundancy): Call init_powx.
16335 (grub_reed_solomon_recover): Call init_powx unconditionally.
16337 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16339 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16341 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16343 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16344 disk->partiton for safety.
16346 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16348 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16350 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16352 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16354 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16356 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16358 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16360 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16362 Fix spaces handling in proc/self/mountinfo.
16364 * util/getroot.c (unescape): New function.
16365 (grub_find_root_device_from_mountinfo): Use unescape.
16367 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16369 Support ZFS embedding.
16371 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16372 (grub_zfs_fs): Register grub_zfs_embed.
16374 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16376 Fix MIPS compilation.
16378 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16379 * include/grub/offsets.h: Rename decompressor fields from
16380 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16381 * util/grub-mkimage.c (image_targets): Use new names.
16383 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16385 Defer multiboot device parsing until we're in compressed part.
16387 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16388 bsd_part. setdevice has fallen into disuse.
16389 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16390 (bsd_part): Likewise.
16391 (boot_dev): New variable.
16392 (multiboot_trampoline): Don't parse multiboot device.
16393 Pass multiboot device in %edx.
16394 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16396 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16398 * grub-core/kern/i386/pc/startup.S: Save edx.
16399 (grub_boot_drive): Removed.
16400 (grub_install_dos_part): Likewise.
16401 (grub_install_bsd_part): Likewise.
16402 (grub_boot_device): New variable.
16403 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16404 (grub_install_bsd_part): Likewise.
16405 (grub_boot_drive): Likewise.
16406 (grub_boot_device): New variable.
16407 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16409 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16410 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16411 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16412 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16413 * util/grub-install.in: Remove redundant condition.
16415 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16417 Fix bug introduced by previous commit.
16419 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16421 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16423 Use decompressors framework on i386-pc. It increases core size
16424 by 46 bytes but improves compatibility and maintainability.
16426 * grub-core/Makefile.core.def (lzma_decompress): New image.
16427 (kernel): Add i386_pc_ldflags.
16428 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16429 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16430 to real_to_prot, prot_to_real and device info.
16431 * include/grub/offsets.h: Renamed decompressor offsets.
16432 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16433 (image_target_desc): Remove raw_size and rename decompressor fields.
16434 (compress_kernel): Handle lzma.
16435 (generate_image): Handle decompressors on i386-pc.
16437 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16439 * configure.ac: Add -fno-asynchronous-unwind-tables.
16441 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16443 Move assembly code to C by using intwrap. It increases core size
16444 by 88 bytes but improves compatibility and maintainability.
16446 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16447 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16448 ... here. Translated to C.
16449 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16450 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16451 ... here. Translated to C.
16452 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16453 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16454 ... here. Translated to C.
16455 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16456 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16457 ... here. Translated to C.
16458 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16459 * grub-core/term/i386/pc/console.c (grub_console_cls):
16460 ... here. Translated to C.
16461 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16462 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16463 ... here. Translated to C.
16464 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16465 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16467 * grub-core/term/i386/pc/console.c (int10_9): New function.
16468 (grub_console_putchar): Likewise.
16469 * include/grub/i386/pc/console.h: Removed the not anymore shared
16472 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16474 Move grub_chainloader_real_boot out of the kernel.
16476 * grub-core/Makefile.am: Remove machine/loader.h.
16477 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16479 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16481 (grub_relocator16_keep_a20_enabled): Likewise.
16482 (grub_relocator16_boot): Fill new variables.
16483 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16484 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16486 (grub_chainloader_unload): Likewise.
16487 (grub_chainloader_cmd): Likewise.
16488 * include/grub/i386/pc/loader.h: Removed.
16489 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16490 and esi. All initialisers updated.
16492 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16493 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16495 * Makefile.util.def (grub-mount): New util.
16496 * .bzrignore: Add grub-mount.
16497 * configure.ac: Check for fuse and enable grub-mount if available.
16498 * docs/man/grub-mount.h2m: New file.
16499 * util/grub-mount.c: Likewise.
16501 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16503 * grub-core/commands/efi/fixvideo.c: Gettextize.
16504 * grub-core/commands/hashsum.c: Likewise.
16505 * grub-core/commands/i386/cmostest.c: Likewise.
16506 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16507 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16508 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16509 * grub-core/commands/lsmmap.c: Likewise.
16510 * grub-core/commands/menuentry.c: Likewise.
16511 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16512 * grub-core/commands/setpci.c: Likewise.
16513 * grub-core/loader/i386/bsd.c: Likewise.
16514 * grub-core/loader/i386/linux.c: Likewise.
16515 * util/getroot.c: Likewise.
16516 * util/grub-editenv.c: Likewise.
16517 * util/grub-fstest.c: Likewise.
16518 * util/grub-mkfont.c: Likewise.
16519 * util/grub-mkimage.c: Likewise.
16520 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16521 * util/grub-pe2elf.c: Likewise.
16522 * util/grub-probe.c: Likewise.
16523 * util/grub-setup.c: Likewise.
16524 * util/ieee1275/ofpath.c: Likewise.
16525 * util/misc.c: Likewise.
16526 * util/raid.c: Likewise.
16528 2011-11-11 Robert Millan <rmh@gnu.org>
16530 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16531 __attribute__((unused)) from `os_dev', which *is* being used.
16533 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16535 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16537 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16538 GRUB_IA64_DL_GOT_ALIGN.
16539 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16540 GRUB_IA64_DL_TRAMP_ALIGN.
16542 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16544 Replace grub_fatal with normal errors in i386 linux loader.
16546 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16547 (allocate_pages): Check find_efi_mmap_size return value.
16548 (grub_e820_add_region): Return error.
16549 (grub_linux_boot): Check mmap return value.
16551 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16553 * grub-core/commands/acpihalt.c: Gettextized.
16554 * grub-core/commands/cacheinfo.c: Likewise.
16555 * grub-core/commands/cmp.c: Likewise.
16556 * grub-core/commands/efi/loadbios.c: Likewise.
16557 * grub-core/commands/gptsync.c: Likewise.
16558 * grub-core/commands/ieee1275/suspend.c: Likewise.
16559 * grub-core/commands/legacycfg.c: Likewise.
16560 * grub-core/commands/memrw.c: Likewise.
16561 * grub-core/commands/minicmd.c: Likewise.
16562 * grub-core/commands/parttool.c: Likewise.
16563 * grub-core/commands/time.c: Likewise.
16564 * grub-core/commands/videoinfo.c: Likewise.
16565 * grub-core/disk/geli.c: Likewise.
16566 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16567 * grub-core/disk/luks.c: Likewise.
16568 * grub-core/disk/lvm.c: Likewise.
16569 * grub-core/font/font_cmd.c: Likewise.
16570 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16571 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16572 * grub-core/gfxmenu/view.c: Likewise.
16573 * grub-core/kern/emu/hostdisk.c: Likewise.
16574 * grub-core/kern/emu/main.c: Likewise.
16575 * grub-core/kern/emu/misc.c: Likewise.
16576 * grub-core/kern/emu/mm.c: Likewise.
16577 * grub-core/kern/mips/arc/init.c: Likewise.
16578 * grub-core/kern/mips/loongson/init.c: Likewise.
16579 * grub-core/kern/partition.c: Likewise.
16580 * grub-core/lib/i386/halt.c: Likewise.
16581 * grub-core/lib/mips/arc/reboot.c: Likewise.
16582 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16583 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16584 * grub-core/loader/i386/xnu.c: Likewise.
16585 * grub-core/loader/multiboot.c: Likewise.
16586 * grub-core/net/bootp.c: Likewise.
16587 * grub-core/net/net.c: Likewise.
16588 * grub-core/normal/term.c: Likewise.
16589 * grub-core/partmap/bsdlabel.c: Likewise.
16590 * grub-core/parttool/msdospart.c: Likewise.
16591 * grub-core/term/gfxterm.c: Likewise.
16592 * grub-core/term/terminfo.c: Likewise.
16593 * grub-core/video/i386/pc/vbe.c: Likewise.
16594 * util/grub-menulst2cfg.c: Likewise.
16595 * util/grub-mkdevicemap.c: Likewise.
16596 * util/grub-mklayout.c: Likewise.
16597 * util/grub-mkrelpath.c: Likewise.
16598 * util/grub-script-check.c: Likewise.
16599 * util/ieee1275/grub-ofpathname.c: Likewise.
16600 * util/resolve.c: Likewise.
16602 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16604 Support %1$d syntax.
16606 * tests/printf_unit_test.c: New file.
16607 * Makefile.util.def (printf_test): New test.
16608 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16610 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16612 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16615 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16617 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16619 * grub-core/font/font.c (grub_font_load): Likewise.
16621 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16623 * util/grub-macho2img.c: Add comment concerning gettext.
16624 * grub-core/lib/legacy_parse.c: Likewise.
16626 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16628 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16629 (grub_xvasprintf): Likewise.
16631 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16633 Add const keyword to grub_env_get and gettextize week days.
16635 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16636 (grub_read_hook_datetime): Return const char *.
16637 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16639 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16641 (grub_get_weekday_name): Return const char *. Call gettext.
16642 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16643 char * and len as the argument. All users updated.
16644 (grub_script_argv_split_append): Receive const char *.
16645 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16646 * include/grub/env.h (grub_env_get): Likewise.
16647 (grub_env_read_hook_t): Return const char *.
16648 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16649 (grub_script_argv_split_append): Likewise.
16651 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16653 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16655 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16657 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16658 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16660 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16662 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16665 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16667 Fix mips compilation.
16669 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16671 (hashes): Use in embed decoder as well (for sizes).
16672 (dec_stream_header): Fix embed decompressor logic.
16673 (dec_stream_footer): Likewise.
16675 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16677 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16678 an error and not a fatal on unrecognised relocation types.
16680 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16682 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16683 Issue error rather than printf on unknown arguments.
16685 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16687 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16690 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16692 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16695 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16697 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16698 leftover debug printf.
16700 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16702 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16704 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16706 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16709 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16711 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16713 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16715 Allow all modules to perform serial IO
16717 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16718 * include/grub/serial.h (grub_serial_port_configure): New inline
16720 (grub_serial_port_fetch): Likewise.
16721 (grub_serial_port_put): Likewise.
16722 (grub_serial_port_fini): Likewise.
16723 (grub_serial_find): New proto.
16725 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16727 Put symlink at the end of the node and fix a potential
16730 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16731 Make symlink into an array.
16732 (set_rockridge): Set have_symlink and alloc_dirents.
16733 (grub_iso9660_read_symlink): Use new layout.
16734 (grub_iso9660_iterate_dir): Fix memory corruption.
16736 (grub_iso9660_dir): Set have_symlink.
16737 (grub_iso9660_open): Likewise.
16739 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16741 Remove local keyword.
16743 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16744 (version_test_gt): Likewise.
16745 (version_find_latest): Likewise.
16746 (gettext_printf): Likewise.
16747 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16749 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16751 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16753 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16755 Fix ZFS memory and resource leaks.
16757 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16760 (fill_vdev_info): New parameter inserted. All users updated.
16761 (check_pool_label): Likewise.
16762 (scan_disk): Likewise.
16763 (scan_devices): Close non-inserted disks.
16764 (fzap_iterate): Free l.
16765 (unmount_device): Free children descripto memory.
16767 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16769 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16770 argument (access out of bounds).
16772 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16774 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16777 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16779 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16782 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16784 Fix several memory leaks.
16786 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16787 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16788 (grub_cpio_dir): Likewise.
16789 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16790 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16791 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16792 (grub_romfs_label): Likewise.
16793 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16794 (squash_unmount): New function.
16795 (grub_squash_dir): Fix memory leak.
16796 (grub_squash_open): Likewise.
16797 (grub_squash_read): Likewise.
16798 (grub_squash_mtime): Likewise.
16799 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16800 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16801 * util/grub-fstest.c (fstest): Likewise.
16803 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16805 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16806 avoid accessing beyond the array.
16808 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16810 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16812 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16814 Several AFFS fixes.
16816 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16817 (GRUB_AFFS_FLAG_FFS): Removed.
16818 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16819 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16820 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16821 (grub_fshelp_node): Make block 32-bit.
16822 Add block_cache and last_block_cache.
16823 (grub_affs_read_block): Fill and use block cache.
16824 (grub_affs_read_file): Removed.
16825 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16827 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16829 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16831 (grub_affs_close): Free block cache.
16832 (grub_affs_read): Use grub_fshelp_read_file directly.
16834 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16836 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16839 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16841 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16843 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16846 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16848 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16850 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16851 byteswap when needed.
16853 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16855 Fix FreeBSD compilation.
16857 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16858 to avoid circular dependency.
16859 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16860 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16861 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16863 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16865 Fix ZFS crypto error types.
16867 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16868 (grub_gcm_decrypt): Likewise.
16869 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16872 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16876 * Makefile.util.def (10_illumos): New script.
16877 * configure.ac: Set COND_HOST_ILLUMOS.
16878 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16879 Support Illumos calls.
16880 (find_partition_start) [__sun__]: Likewise.
16881 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16882 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16883 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16884 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16886 * util/grub-probe.c (probe) [__sun__]: Do character check.
16887 * util/grub.d/10_illumos.in: New file.
16889 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16891 Support escaped commas in hostdisk.
16893 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16894 (find_grub_drive): Use unescape_cmp.
16895 (make_device_name): Escape commas.
16897 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16899 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16901 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16903 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16906 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16908 Support trampoline jumps on powerpc.
16910 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16912 (grub_dl_load_segments): Set mod->sz.
16913 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16915 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16917 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16919 (trampoline): New struct.
16920 (trampoline_template): New const.
16921 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16922 * include/grub/dl.h (grub_dl): Add sz element.
16923 [__powerpc__]: Follow __ia64__.
16924 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16925 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16926 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16927 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16929 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16931 ZFS crypto support.
16933 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16934 * grub-core/Makefile.core.def (zfscrypt): New module.
16935 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16936 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16937 it. All users updated.
16938 (grub_zfs_decrypt): New var.
16939 (grub_zfs_load_key): Likewise.
16940 (zio_checksum_functions): Add SHA256+MAC.
16941 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16942 (zio_read): Handle encrypted blocks.
16943 (zap_verify): Remove incorrect check.
16944 (fzap_iterate): Handle non-standard fzap.
16945 (zap_iterate): Likewise.
16946 (zap_iterate_u64): New function.
16947 (dnode_get_fullpath): Load keys.
16948 * grub-core/fs/zfs/zfscrypt.c: New file.
16949 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16950 (grub_crypto_ecb_encrypt): Make input const.
16951 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16952 (grub_crypto_ecb_encrypt): Make input const.
16953 (GRUB_CIPHER_AES): New macro.
16954 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16955 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16956 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16957 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16958 prefix. All users updated.
16959 (grub_zfs_add_key): New proto.
16960 (grub_zfs_decrypt): Likewise.
16961 (grub_zfs_load_key): Likewise.
16962 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16963 * util/grub-fstest.c (options): Add -K option.
16964 (argp_parser): Likewise.
16966 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16968 Support zle compression on ZFS.
16970 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16971 (decomp_table): Add zle.
16972 * include/grub/zfs/zio.h (zio_compress): Add zle.
16974 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16976 Support BtrFS embedding.
16978 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16979 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16980 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16981 * util/grub-setup.c (setup): Use fs embedding if available.
16982 Add additional sanity check.
16984 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16986 * util/grub-install.in: Fix condition for config_opt.
16988 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16990 Support third redundancy strip on raidz3.
16992 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16993 Return error on singularity. All users updated.
16994 (read_device): Don't stop on 3rd failure on raidz3.
16996 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16998 Support case-insensitive ZFS subvolumes.
17000 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
17002 (zap_hash): Likewise.
17003 (name_cmp): New function.
17004 (zap_leaf_array_equal): New parameter case_insensitive.
17006 (zap_leaf_lookup): Likewise.
17007 (fzap_lookup): Likewise.
17008 (zap_lookup): Likewise.
17009 (dnode_get_path): New parameter case_insensitive. Retrieve case
17010 sensitiviness of a volume. All users updated.
17011 (dnode_get_fullpath): New parameter case_insensitive.
17013 (grub_zfs_dir): Set info.case_insensitiveness.
17015 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17017 Support second redundancy strip on raidz(2,3).
17019 * grub-core/fs/zfs/zfs.c (powx): New array.
17020 (powx_inv): Likewise.
17022 (xor_out): New function.
17023 (gf_mul): Likewise.
17024 (recovery): Likewise.
17025 (read_device): Use second redundancy strip.
17027 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17029 Use a power of generator representation of GF(256) multiplication group
17030 to save space time and complexity.
17032 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
17033 (raid6_table2): Likewise.
17035 (powx_inv): Likewise.
17037 (grub_raid_block_mul): Replace with ...
17038 (grub_raid_block_mulx): ...this.
17039 (grub_raid6_init_table): Rewritten.
17040 (grub_raid6_recover): Use power of generator representation.
17042 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17044 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
17045 for the right device.
17047 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17049 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
17050 expected by grub-mkimage and it's more clear since there is no implicit
17053 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17055 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
17057 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17059 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
17061 * util/grub-mkrescue.in: Fix handling xorriso option.
17063 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17065 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
17068 2011-11-03 crocket <crockabiscuit@gmail.com>
17070 * util/grub.d/10_linux.in: Add Slackware initrd naming.
17072 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17074 XZ CRC64 and SHA256 support.
17076 * Makefile.util.def (libgrubmods): Add crc64.c.
17077 * grub-core/Makefile.core.def (crc64): New module.
17078 * grub-core/lib/crc64.c: New file.
17079 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
17080 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
17082 (MAX_HASH_SIZE): New define.
17083 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
17084 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
17085 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17086 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17087 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
17088 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
17089 Handle non-crc32 hashes.
17090 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
17091 (dec_stream_header): Handle non-crc32 hashes.
17092 (dec_stream_footer): Likewise.
17093 (dec_block_header): Likewise.
17094 (dec_main): Likewise.
17095 (xz_dec_init): Likewise.
17096 (xz_dec_reset): Likewise.
17097 (xz_dec_end): Likewise.
17098 * util/import_gcry.py: Add CRC64 line.
17100 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17102 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
17105 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17107 Make reiserfs label retrieval similar to other *_label functions.
17109 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
17110 (REISERFS_MAX_LABEL_LENGTH): Removed.
17111 (REISERFS_LABEL_OFFSET): Likewise.
17112 (grub_reiserfs_label): Rewritten.
17114 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17116 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
17119 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17121 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
17123 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17125 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
17126 drive failure on both raidz and raidz2.
17128 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17130 Fix RAIDZ(2) for >= 5 devices.
17132 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
17133 asize argument. All users updated.
17135 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17139 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
17140 (fill_vdev_info_real): Set ashift.
17141 (read_device): Rewrite RAIDZ part based on reverse engineering.
17143 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17145 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
17146 don't report potentially unavialiable fields in debug output.
17147 (find_path): Fix double-free and memory leak.
17149 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17151 Read label on UFS1.
17153 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
17154 (grub_ufs_fs): Always set .label.
17156 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17160 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
17161 (grub_ufs_data): New field log2_blksz.
17162 (grub_ufs_read_file): Use shifts.
17163 (grub_ufs_mount): Check block size and logarithm it.
17165 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17167 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17170 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17172 Handle symlinks and long names on tar and cpio.
17174 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17175 (ATTR_FILE): Likewise.
17176 (ATTR_DIR): Likewise.
17177 (ATTR_LNK): Likewise.
17178 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17179 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17181 (grub_cpio_mount): Zero-fill data.
17182 (handle_symlink): New function.
17183 (grub_cpio_dir): Handle symlinks.
17184 (grub_cpio_open): Likewise.
17185 (grub_cpio_close) [MODE_USTAR]: Free linkname.
17187 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17189 Fix iso9660 filename limitations and fix memory leaks.
17191 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17192 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17194 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17196 Fix JFS file name length limitations.
17198 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17199 (grub_jfs_diropen): Fix maximum filename length.
17200 (grub_jfs_getent): Fix filename length.
17201 (grub_jfs_lookup_symlink): Fix size checks.
17203 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17205 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17208 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17210 Leverage BFS implementation to read AFS.
17212 * Makefile.util.def (libgrubmods): Add afs.c.
17213 * grub-core/Makefile.core.def (afs): New module
17214 * grub-core/fs/afs.c: New file.
17215 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17217 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17219 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17221 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17223 * grub-core/fs/bfs.c: Run indent.
17225 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17227 BFS implementation based on the specification.
17229 * grub-core/fs/bfs.c: New file.
17230 * Makefile.util.def (libgrubmods): Add bfs.c.
17231 * grub-core/Makefile.core.def (bfs): New module.
17233 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17235 * util/grub-fstest.c (cmd_cp): Clarify error message.
17236 (cmd_cmp): Likewise.
17238 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17240 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17243 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17245 Remove afs and befs because of copyright problem.
17247 * grub-core/fs/afs.c: Removed.
17248 * grub-core/fs/afs_be.c: Removed.
17249 * grub-core/fs/befs.c: Removed.
17250 * grub-core/fs/befs_be.c: Removed.
17251 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17252 * grub-core/Makefile.core.def (afs): Removed.
17253 (afs_be): Likewise.
17255 (befs_be): Likewise.
17257 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17259 Prefer rockridge over Joliet.
17261 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17263 (set_rockridge): ... here.
17264 (grub_iso9660_mount): Check rockridge on the primary label when
17265 discovering. Ignore Joliet if Rockridge is present.
17267 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17269 Use shifts in nilfs2.
17271 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17272 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17273 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17274 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17275 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17276 (grub_nilfs2_entries_per_block): Replaced with ...
17277 (grub_nilfs2_log_entries_per_block_log): ... this.
17278 (grub_nilfs2_blocks_per_group): Replaced with ...
17279 (grub_nilfs2_blocks_per_group_log): ... this.
17280 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17281 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17282 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17283 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17284 (grub_nilfs2_palloc_entry_offset): Replaced ...
17285 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17286 (grub_nilfs2_dat_translate): Use shifts.
17287 (grub_nilfs2_read_inode): Likewise.
17288 (GRUB_MOD_INIT): Ensure that logs are correct.
17290 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17292 Use shifts in minix filesystem.
17294 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17295 (GRUB_MINIX_ZONE2SECT): Likewise.
17296 (grub_minix_data): Replace block_size with log_block_size.
17297 (grub_minix_read_file): Use shifts.
17298 (grub_minix_mount): Check block size and take a logarithm.
17300 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17302 Use shifts in squash4.
17304 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17305 (squash_mount): Check block size and take logarithm.
17306 (direct_read): Use shifts.
17308 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17310 Correct befs block counting logic.
17312 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17313 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17314 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17315 (grub_afs_read_inode): Use block_shift.
17316 (RANGE_SHIFT): New definition.
17317 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17318 unexpected conditions, use shifts and appropriate types.
17319 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17321 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17323 * grub-core/disk/raid.c (scan_devices): Check partition.
17324 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17326 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17328 Support BFS (befs) UUID.
17330 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17331 (grub_afs_small_data_element_header): New struct.
17332 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17333 (grub_afs_read_attribute) [MODE_BFS]: New function.
17334 (grub_afs_iterate_dir): Allocate for complete inode.
17335 (grub_afs_mount): Likewise.
17336 (grub_afs_uuid) [MODE_BFS]: New function.
17337 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17339 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17341 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17342 (zfs_unmount): Fix memory leak.
17344 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17346 Support NTFS reparse points.
17348 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17349 (symlink_descriptor): New struct.
17350 (grub_ntfs_read_symlink): New function.
17351 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17352 (grub_ntfs_open): Likewise.
17354 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17356 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17358 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17360 fstest xnu_uuid subcommand.
17362 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17363 grub-core/commands/xnu_uuid.c.
17364 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17365 (fstest): Handle xnu_uuid.
17366 (options): Document xnu_uuid.
17367 (argp_parser): Parse xnu_uuid.
17369 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17371 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17372 -l argument. Add newline at the end if printing.
17373 (GRUB_MOD_INIT): Document -l.
17375 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17377 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17379 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17381 ZFS multi-device and version 33 support.
17383 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17384 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17385 (grub_zfs_data): Add multidev-ice-related fields.
17386 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17387 (dva_get_offset): Make dva const.
17388 (zfs_fetch_nvlist): New function.
17389 (fill_vdev_info_real): Likewise.
17390 (fill_vdev_info): Likewise.
17391 (check_pool_label): Likewise.
17392 (scan_disk): Likewise.
17393 (scan_devices): Likewise.
17394 (read_device): Likewise.
17395 (read_dva): Likewise.
17396 (zio_read_gang): Use read_dva.
17397 (zio_read_data): Likewise.
17398 (zap_leaf_lookup): Add missing endian conversion.
17399 (zap_verify): Add missing endian conversion. All users updated.
17400 (fzap_lookup): Likewise.
17401 (fzap_iterate): Likewise.
17402 (dnode_get_path): Handle SA bonus.
17403 (nvlist_find_value): Make input const. All users updated.
17404 (unmount_device): New function.
17405 (zfs_unmount): Use unmount_device.
17406 (zfs_mount): Use scan_disk.
17407 (zfs_mtime): New function.
17408 (grub_zfs_open): Handle system attributes.
17409 (fill_fs_info): Likewise.
17410 (grub_zfs_dir): Likewise.
17411 (grub_zfs_fs): Add mtime.
17412 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17413 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17414 (SA_MTIME_OFFSET): Likewise.
17415 (SA_SYMLINK_OFFSET): Likewise.
17416 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17417 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17418 (fstest): Support zfsinfo.
17419 (argp_parser): Likewise.
17421 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17423 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17426 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17430 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17431 sharing the same block. Iterate over correct number of indices.
17432 (dnode_get_path): Handle symlinks correctly.
17434 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17436 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17438 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17440 Read label on HFS+.
17442 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17443 (grub_hfsplus_btree_search): Fix types.
17444 (grub_hfsplus_label): Implement.
17446 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17448 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17450 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17452 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17454 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17456 Fix symlink handling on iso9660.
17458 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17460 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17461 (grub_iso9660_read_symlink): Moved most of code ...
17462 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17464 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17466 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17467 Use union to avoid breaking strict-aliasing rules.
17469 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17471 Support multi-extent iso files.
17473 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17475 (grub_fshelp_node): Revamp. All users updated.
17476 (FLAG_*): New enum.
17477 (read_node): New function.
17478 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17480 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17481 (get_node_size): New function.
17482 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17484 Fix memory leak on . and ..
17485 (grub_iso9660_read): Use read_node.
17486 (grub_iso9660_close): Free node.
17488 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17490 Fix tar 4G limit and handle paths containing dot.
17492 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17493 (canonicalize): New function.
17494 (grub_cpio_find_file): Use canonicalize. Store offs in
17496 (grub_cpio_dir): Use grub_disk_addr_t.
17497 (grub_cpio_open): Likewise.
17499 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17501 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17503 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17505 (grub_squash_inode): Add long_file and block_size.
17506 (grub_squash_cache_inode): New struct.
17507 (grub_squash_dirent): Make types into enum.
17508 (SQUASH_TYPE_LONG_REGULAR): New type.
17509 (grub_squash_frag_desc): Add field size.
17510 (SQUASH_BLOCK_FLAGS): New enum.
17511 (grub_squash_data): Use grub_squash_cache_inode.
17512 (grub_fshelp_node): Make ino_chunk 64-bit.
17513 (read_chunk): Minor argument change. All users updated.
17514 (squash_mount): Use correct le_to_cpu.
17515 (grub_squash_open): Handle LONG_REGULAR.
17516 (direct_read): New function.
17517 (grub_squash_read_data): Handle blocks correctly.
17519 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17521 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17523 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17525 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17527 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17529 Fix 2G limit on ZFS.
17531 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17533 (uberblock_verify): Likewise.
17534 (dmu_read): Likewise.
17535 (grub_zfs_read): Likewise. Remove invalid cast.
17537 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17539 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17540 (grub_jfs_blkno): Fix incorrect shift.
17541 (grub_jfs_read_file): Use more appropriate types.
17543 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17545 Support triple indirect on minix2 and minix3.
17547 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17548 Declare triple_indir_zone.
17549 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17552 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17556 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17557 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17558 Rename ctime to mtime. All users updated.
17559 (grub_minix_get_file_block): Fix types and double indirect computations.
17561 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17563 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17564 if no label is found.
17565 (grub_fat_iterate_dir): Fix file size type.
17566 (grub_fat_iterate_dir): Likewise.
17568 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17570 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17572 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17573 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17575 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17577 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17579 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17581 * util/import_gcry.py: Accept space between # and include.
17583 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17585 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17587 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17589 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17591 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17592 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17594 * grub-core/script/yylex.l: Add fine-grained #pragma.
17596 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17598 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17599 New inline function.
17600 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17602 (memset) [GRUB_UTIL]: Likewise.
17603 (memcmp) [GRUB_UTIL]: Likewise.
17605 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17607 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17608 inline function rather than a define.
17610 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17612 * util/grub-setup.c: Add missing include.
17614 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17616 * util/ieee1275/grub-ofpathname.c: Add missing include.
17618 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17620 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17621 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17624 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17626 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17629 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17631 * util/grub-install.in: Add datarootdir as per automake manual
17633 * util/grub-mknetdir.in: Likewise.
17635 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17637 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17639 * util/grub.d/10_kfreebsd.in: Likewise.
17640 * util/grub.d/10_linux.in: Likewise.
17641 * util/grub.d/10_netbsd.in: Likewise.
17642 * util/grub.d/10_windows.in: Likewise.
17643 * util/grub.d/20_linux_xen.in: Likewise.
17645 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17647 Remove redundant grub_kernel_image_size.
17649 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17651 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17652 the small code. It moves it only by few bytes but simplifies the code.
17653 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17655 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17656 (grub_kernel_image_size): Removed.
17657 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17658 (grub_kernel_image_size): Removed.
17659 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17660 compiled with Apple toolchain.
17661 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17662 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17663 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17664 (grub_total_module_size): Likewise.
17665 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17667 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17668 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17669 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17670 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17671 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17672 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17673 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17674 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17676 (grub_total_module_size): Removed.
17677 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17678 (image_targets): Likewise.
17679 Set .compressed_size to no field on sparc.
17680 (generate_image): Remove kernel_image_size handling.
17682 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17684 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17685 NULL pointer dereference.
17687 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17689 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17690 done with a dedicated section.
17692 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17693 Ensure the correct position of boot_path.
17694 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17695 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17697 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17698 * include/grub/boot.h: Removed. All references removed.
17699 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17701 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17703 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17705 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17708 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17710 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17712 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17714 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17715 Don't add the bogus brackets.
17717 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17721 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17722 * grub-core/Makefile.core.def (exfat): New module.
17723 * grub-core/fs/exfat.c: New file.
17724 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17725 (GRUB_FAT_ATTR_*): Make into an enum.
17726 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17727 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17728 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17729 (GRUB_FAT_MAXFILE): Removed.
17730 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17731 (grub_current_fat_bpb_t): New type.
17732 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17733 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17734 (grub_fat_dir_node_t): New type.
17735 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17736 (fat_log2) [MODE_EXFAT]: Removed.
17737 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17738 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17739 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17740 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17741 (grub_fat_label) [MODE_EXFAT]: New function.
17742 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17743 reserved_first_sector to 0.
17745 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17747 Move grub_reboot out of the kernel.
17749 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17750 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17751 * grub-core/lib/efi/reboot.c: ... here.
17752 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17753 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17754 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17755 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17756 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17757 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17758 * grub-core/lib/ieee1275/reboot.c: ... here.
17759 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17760 * grub-core/lib/mips/arc/reboot.c: ... here.
17761 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17762 * grub-core/lib/mips/loongson/reboot.c: ...here.
17763 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17764 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17765 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17766 * include/grub/i386/reboot.h: New file.
17767 * include/grub/mips/loongson/ec.h: Fix includes.
17768 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17769 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17770 * grub-core/lib/i386/reboot.c: New file.
17772 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17774 Make grub_prefix into module to fix the arbitrary limit and save
17777 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17778 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17779 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17780 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17781 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17782 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17783 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17784 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17785 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17786 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17787 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17788 * include/grub/ia64/efi/kernel.h: Removed.
17789 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17790 (grub_prefix): Removed.
17791 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17792 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17793 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17794 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17795 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17796 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17797 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17798 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17799 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17800 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17801 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17802 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17803 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17804 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17805 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17806 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17807 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17808 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17809 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17810 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17811 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17812 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17813 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17814 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17815 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17816 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17817 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17818 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17819 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17821 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17823 (image_targets): Likewise.
17824 (generate_image): Put prefix as a module.
17826 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17828 Replace grub_module_iterate with FOR_MODULES.
17830 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17831 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17832 (grub_efi_modules_addr): ...this.
17833 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17834 (grub_efi_init): Set grub_modbase.
17835 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17836 (grub_modbase): New variable.
17837 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17838 (grub_modbase): New variable.
17839 (grub_machine_init): Set grub_modbase.
17840 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17841 (grub_modbase): New variable.
17842 (grub_machine_init): Set grub_modbase.
17843 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17844 (grub_modbase): New variable.
17845 (grub_machine_init): Set grub_modbase.
17846 * grub-core/kern/main.c (grub_module_iterate): Remove.
17847 (grub_modules_get_end): Use grub_modbase.
17848 (grub_load_modules): Use FOR_MODULES.
17849 (grub_load_config): Likewise.
17850 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17851 (grub_modbase): New variable.
17852 (grub_machine_init): Set grub_modbase.
17853 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17854 (grub_modbase): New variable.
17855 (grub_machine_init): Set grub_modbase.
17856 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17858 (grub_modbase): New variable.
17859 (grub_machine_init): Set grub_modbase.
17860 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17861 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17862 (grub_module_iterate): Likewise.
17863 (grub_modbase): New variable declaration.
17864 (FOR_MODULES): New macro.
17866 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17868 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17869 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17871 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17873 Fix few obvious type discrepancies.
17875 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17876 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17877 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17879 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17880 and connected types.
17881 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17883 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17884 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17885 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17886 and connected types.
17888 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17890 Fix python 3.x incompatibilities.
17892 * gentpl.py: Put brackets around print strings.
17893 * util/import_gcry.py: Open explicitly as utf-8.
17894 Use in instead of has_key.
17896 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17898 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17899 (GRUB_XFS_INO_AGBITS): Make into inline function.
17900 (GRUB_XFS_INO_INOINAG): Likewise.
17901 (GRUB_XFS_INO_AG): Likewise.
17902 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17903 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17904 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17905 (GRUB_XFS_EXTENT_SIZE): Likewise.
17906 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17907 (GRUB_XFS_NEXT_DIRENT): Likewise.
17908 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17909 (grub_xfs_read_file): Fix offset type.
17911 2011-10-15 Robert Millan <rmh@gnu.org>
17913 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17915 2011-10-15 Robert Millan <rmh@gnu.org>
17917 Fix build problem on FreeBSD and GNU/kFreeBSD.
17919 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17921 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17923 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17925 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17927 (grub_hfsplus_btree_recoffset): Likewise.
17928 (grub_hfsplus_btree_recptr): Likewise.
17929 (grub_hfsplus_find_block): Likewise.
17930 (grub_hfsplus_btree_search): Likewise.
17931 (grub_hfsplus_read_block): Likewise.
17932 (grub_hfsplus_read_file): Likewise.
17933 (grub_hfsplus_mount): Likewise.
17934 (grub_hfsplus_btree_iterate_node): Likewise.
17935 (grub_hfsplus_btree_search): Likewise.
17936 (grub_hfsplus_iterate_dir): Likewise.
17937 (grub_hfsplus_read): A small code simplification.
17939 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17941 * grub-core/kern/emu/hostdisk.c
17942 (convert_system_partition_to_system_disk): Don't assume that children
17943 of mapper nodes are mapper nodes.
17945 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17947 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17948 * include/grub/misc.h (grub_isxdigit): New function.
17949 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17950 switched to grub_isxdigit.
17951 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17952 number starting with a letter.
17954 2011-10-09 Robert Millan <rmh@gnu.org>
17956 LVM support for FreeBSD and GNU/kFreeBSD.
17958 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17960 (LVM_DEV_MAPPER_STRING): Move from here ...
17961 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17962 * util/getroot.c: Include `<grub/util/lvm.h>'.
17963 (grub_util_get_dev_abstraction): Enable
17964 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17965 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17966 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17967 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17969 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17971 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17972 when LVM abstraction is required for ${GRUB_DEVICE}.
17974 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17976 Add support for LZO compression in GRUB:
17977 - import of minilzo library,
17978 - LZO decompression for btrfs,
17979 - lzop files decompression.
17981 * grub-core/io/lzopio.c: New file.
17982 * grub-core/lib/adler32.c: Likewise.
17983 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17984 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17985 * grub-core/lib/minilzo/minilzo.c: Likewise.
17986 * grub-core/lib/minilzo/minilzo.h: Likewise.
17987 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17988 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17989 grub-core/lib/minilzo/minilzo.c to common.
17990 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17991 cflags in cppflags.
17992 * grub-core/Makefile.core.def (btrfs): Likewise.
17993 * grub-core/Makefile.core.def (lzopio): New module.
17994 (adler32): Likewise.
17995 * grub-core/fs/btrfs.c: Include minilzo.h.
17996 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17997 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17998 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17999 (grub_btrfs_lzo_decompress): New function.
18000 (grub_btrfs_extent_read): Add support for LZO compression type.
18001 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
18002 (GRUB_USHRT_MAX): Likewise.
18003 (GRUB_UINT_MAX): Likewise.
18004 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
18005 (UINT_MAX): Likewise.
18006 (CHAR_BIT): Likewise.
18007 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
18008 grub-core/lib/posix_wrap/limits.h
18009 (UCHAR_MAX): Likewise.
18010 * include/grub/file.h (grub_file_filter_id): New compression filter
18011 GRUB_FILE_FILTER_LZOPIO.
18012 * include/grub/file.h (grub_file_filter_id): Set
18013 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
18014 * include/grub/types.h (grub_get_unaligned16): New function.
18015 (grub_get_unaligned32): Likewise.
18016 (grub_get_unaligned64): Likewise.
18017 * util/import_gcry.py (cryptolist): Add adler32.
18019 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
18021 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
18022 in perspective decreases the complexity of build system and fixes
18023 compilation right now.
18025 2011-10-01 Ales Nesrsta <starous@volny.cz>
18027 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
18028 (fixed problem related to using UHCI with coreboot).
18030 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18032 * gentpl.py: Use Autogen macros so that the output template file
18033 (Makefile.tpl) size is reduced.
18035 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
18037 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
18040 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18042 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
18043 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
18045 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18047 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
18050 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18052 Remove extra declaration of sleep for mingw32.
18054 * util/misc.c (sleep) [__MINGW32__]: Removed.
18055 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
18057 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
18059 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
18061 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
18063 (NETBSD_BTINFO_BOOTWEDGE): New definition.
18064 (grub_netbsd_btinfo_bootwedge): New struct.
18065 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
18067 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
18069 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
18071 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
18074 2011-09-28 Andreas Born <futur.andy@googlemail.com>
18076 Fix incorrect identifiers in bash-completion.
18078 * util/bash-completion.d/grub-completion.bash.in
18079 (_grub_mkpasswd-pbkdf2): Rename to ...
18080 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
18081 (_grub_script-check): Rename to ...
18082 (_grub_script_check): ... this. All users updated.
18084 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
18086 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
18087 Return 0 if disk isn't biosdisk.
18089 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18091 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
18093 * Makefile.util.def (grub-fstest): Likewise.
18095 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18097 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
18098 Get sector size from disk label.
18100 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
18102 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
18103 */README* as well as README*.
18104 Reported by: Axel Beckert.
18106 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18108 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
18109 case of less than 256 MiB of RAM.
18111 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18113 * grub-core/commands/wildcard.c (make_regex): Handle @.
18115 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18117 * util/grub-install.in: Move cryptodisk logic to appropriate place.
18119 2011-08-21 Szymon Janc <szymon@janc.net.pl>
18121 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
18122 AC_LANG_CONFTEST macros.
18124 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18126 Add grub-fstest option to uncompress data for commands.
18128 * util/grub-fstest.c (uncompress): New var.
18129 (options): New option -u.
18131 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18133 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
18134 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
18136 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18138 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
18139 file type was not recognized correctly (not gzip or corrupted).
18141 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18143 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
18144 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
18146 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18148 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
18150 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18151 video_radeon_fuloong2e.
18152 * grub-core/video/radeon_fuloong2e.c: New file.
18153 * include/grub/video.h (grub_video_id_t): Add new ID
18154 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
18156 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18158 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
18160 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
18161 that PRID matches the detected subplatform and reset the subplatform
18164 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18166 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18168 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18170 Fix PCI iterating on functions >= 4.
18172 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18173 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18175 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18176 (grub_pci_read): Fix bitmask.
18177 (grub_pci_read_word): Likewise.
18178 (grub_pci_read_byte): Likewise.
18179 (grub_pci_write): Likewise.
18180 (grub_pci_write_word): Likewise.
18181 (grub_pci_write_byte): Likewise.
18183 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18185 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18186 can still be specified in TARGET_CFLAGS)
18188 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18190 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18192 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18193 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18194 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18195 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18196 (FULOONG): Rename to ...
18197 (FULOONG2F): ... this. All users updated.
18198 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18199 (machtype_fuloong2f_str): ... this.
18200 (machtype_fuloong2e_str): New string.
18201 Check for machtype_fuloong2e_str.
18202 * grub-core/loader/mips/linux.c (loongson_machtypes)
18203 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18204 * grub-core/term/serial.c (loongson_defserial)
18205 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18206 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18207 loongson_defserial.
18208 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18210 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18211 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18212 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18213 to IMAGE_FULOONG2F_FLASH. All users updated.
18214 (image_targets): Rename images.
18215 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18217 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18219 Make enable of disk cache statistics code configurable.
18221 * configure.ac: --enable-cache-stats added.
18222 * config.h.in (DISK_CACHE_STATS): New define.
18223 * grub-core/Makefile.core.def (cacheinfo): New command.
18224 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18225 * grub-core/commands/cacheinfo.c: New file.
18226 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18227 moved to cacheinfo.c.
18228 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18230 * include/grub/disk.h: Likewise.
18232 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18234 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18235 * grub-core/Makefile.am: Likewise.
18237 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18239 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18242 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18244 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18246 (grub_jfs_lookup_symlink): Use correct starting inode.
18248 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18250 * util/grub-setup.c (main): Add missing gcry initialisation.
18252 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18254 Don't accept text modes on EFI when booting Linux.
18256 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18257 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18259 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18260 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18262 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18263 use of "/path/.." as in grub-install for EFI as well as handling
18264 symlinks correctly.
18265 Fixes Debian bug #637768.
18267 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18269 * util/grub-probe.c: Remove duplicate #include.
18271 2011-08-10 Robert Millan <rmh@gnu.org>
18273 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18275 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18277 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18278 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18280 2011-08-03 Robert Millan <rmh@gnu.org>
18282 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18283 la_array as packed.
18284 Reported by: Zachary Bedell
18286 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18288 * configure.ac: The Loongson port requires grub-mkfont due to its
18289 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18292 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18294 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18295 processing arguments (otherwise help2man fails when GRUB has not yet
18298 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18300 New script grub-mkstandalone.
18302 * Makefile.util.def (grub-mkstandalone): New script.
18303 * docs/man/grub-mkstandalone.h2m: New file.
18304 * util/grub-mkstandalone.in: Likewise.
18306 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18308 Support ATA disks with 4K sectors.
18310 * include/grub/ata.h (grub_ata): New member log_sector_size.
18311 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18312 (grub_ata_identify): Read sector size.
18313 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18315 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18317 * util/grub-install.in: Don't use uhci outside of x86.
18319 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18321 * util/grub-mkrescue.in: Add missing quotes.
18323 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18325 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18328 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18330 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18332 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18334 * include/grub/video.h: add missing EXPORT_FUND on
18335 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18337 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18339 * include/grub/mips/kernel.h: Fix define conflict.
18341 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18343 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18346 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18348 Preferred resolution detection for VBE.
18350 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18351 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18352 the Flat Panel extension, in line with the X.org VESA driver.
18353 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18355 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18356 (grub_vbe_bios_read_edid): Likewise.
18357 (grub_vbe_get_preferred_mode): Likewise.
18358 (grub_video_vbe_setup): When the mode is "auto", try to get the
18359 preferred mode from VBE, and use the largest mode that is no larger
18360 than the preferred mode (some BIOSes expose a preferred mode that is
18361 not in their mode list!). If this fails, fall back to 640x480 as a
18362 safe conservative choice.
18363 (grub_video_vbe_get_edid): New function.
18364 (grub_video_vbe_adapter): Add get_edid.
18365 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18366 (struct grub_video_adapter): Add get_edid.
18367 (grub_video_edid_checksum): Add prototype.
18368 (grub_video_edid_preferred_mode): Likewise.
18369 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18372 * grub-core/commands/videoinfo.c (print_edid): New function.
18373 (grub_cmd_videoinfo): Print EDID if available.
18375 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18376 is more appropriate on a wider range of platforms than 640x480.
18377 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18380 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18382 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18384 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18386 * po/POTFILES.in: Regenerate.
18388 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18390 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18391 incorrect memory usage.
18393 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18395 * util/grub-install.in: Source grub-mkconfig_lib.
18397 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18399 Remove getroot.c from core on emu platform.
18401 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18403 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18405 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18406 * util/getroot.c (get_win32_path): ... here.
18407 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18408 * util/getroot.c (fini_libzfs): ... here.
18409 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18410 * util/getroot.c (grub_get_libzfs_handle): ... here.
18411 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18413 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18414 * grub-core/kern/emu/misc.c
18415 (grub_make_system_path_relative_to_its_root): Moved from here...
18416 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18417 * grub-core/kern/emu/getroot.c: Moved from here ...
18418 * util/getroot.c: ... here. All users updated.
18419 * grub-core/kern/emu/raid.c: Moved from here ...
18420 * util/raid.c: ... here. All users updated.
18422 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18424 * po/POTFILES.in: Regenerate.
18426 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18428 Fix compilation on GNU/Linux.
18430 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18432 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18433 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18434 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18436 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18437 2011-07-07 Michael Gorven <michael@gorven.za.net>
18438 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18440 LUKS and GELI support.
18442 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18443 grub-core/disk/luks.c, grub-core/disk/geli.c,
18444 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18445 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18446 grub-core/lib/arg.c.
18447 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18448 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18449 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18450 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18451 (grub-bin2h): Add libgcry.a.
18452 (grub-mkimage): Likewise.
18453 (grub-mkrelpath): Likewise.
18454 (grub-script-check): Likewise.
18455 (grub-editenv): Likewise.
18456 (grub-mkpasswd-pbkdf2): Likewise.
18457 (grub-pe2elf): Likewise.
18458 (grub-fstest): Likewise.
18459 (grub-mkfont): Likewise.
18460 (grub-mkdevicemap): Likewise.
18461 (grub-probe): Likewise.
18462 (grub-ofpath): Likewise.
18463 (grub-mklayout): Likewise.
18464 (example_unit_test): Likewise.
18465 (grub-menulst2cfg): Likewise.
18466 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18467 * grub-core/Makefile.core.def (cryptodisk): New module.
18470 * grub-core/disk/AFSplitter.c: New file.
18471 * grub-core/disk/cryptodisk.c: Likewise.
18472 * grub-core/disk/geli.c: Likewise.
18473 * grub-core/disk/luks.c: Likewise.
18474 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18476 (grub_util_get_dm_abstraction): New function.
18477 (grub_util_follow_gpart_up): Likewise.
18478 (grub_util_get_geom_abstraction): Likewise.
18479 (grub_util_get_dev_abstraction): Use new functions.
18480 (grub_util_pull_device): Pull GELI and LUKS.
18481 (grub_util_get_grub_dev): Handle LUKS and GELI.
18482 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18483 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18484 (follow_geom_up): Removed.
18485 (grub_util_fd_seek): New function.
18486 (open_device): Use grub_util_fd_seek.
18487 (nread): Rename to ..
18488 (grub_util_fd_read): ... this. All users updated.
18489 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18490 (grub_crypto_cbc_decrypt): Likewise.
18491 (grub_crypto_hmac_write): Likewise.
18492 (grub_crypto_hmac_buffer): Likewise.
18493 (grub_password_get): Extend to util.
18494 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18495 New member modname.
18496 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18497 * include/grub/cryptodisk.h: New file.
18498 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18499 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18501 (grub_util_follow_gpart_up): New proto.
18502 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18503 (grub_util_fd_read): Likewise.
18504 (grub_cryptodisk_cheat_mount): Likewise.
18505 (grub_util_cryptodisk_print_uuid): Likewise.
18506 (grub_util_get_fd_sectors): Likewise.
18507 * util/grub-fstest.c (mount_crypt): New var.
18508 (fstest): Mount crypto if requested.
18509 (options): New option -C.
18510 (argp_parser): Parse -C.
18511 (main): Init and fini gcry.
18512 * util/grub-install.in: Support cryptodisk install.
18513 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18514 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18516 (prepare_grub_to_access_device): Likewise.
18517 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18518 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18519 (probe_cryptodisk_uuid): New function.
18520 (probe_abstraction): Likewise.
18521 (probe): Use new functions.
18522 * util/import_gcry.py: Create Makefile.utilgcry.def.
18523 Add modname member.
18525 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18527 Lazy device scanning.
18529 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18530 (grub-setup): Remove util/raid.c.
18531 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18532 * grub-core/disk/lvm.c (scan_depth): New variable.
18533 (grub_lvm_iterate): Rescan if necessary.
18534 (find_lv): New function based on grub_lvm_open.
18535 (grub_lvm_open): Use find_lv. Rescan on error.
18536 (is_node_readable): New function.
18537 (is_lv_readable): Likewise.
18538 (grub_lvm_scan_device): Skip already found disks.
18539 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18540 Stop if searched device is found and readable.
18541 * grub-core/disk/raid.c (inscnt): New variable.
18542 (scan_depth): Likewise.
18543 (scan_devices): New function based on grub_raid_register. Abort if
18544 looked for device is found.
18545 (grub_raid_iterate): Rescan if needed.
18546 (find_array): NEw function based on -grub_raid_open.
18547 (grub_raid_open): Use find_array and rescan.
18548 (insert_array): Set became_readable_at.
18549 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18550 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18552 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18553 (grub_util_pull_device): New function.
18554 (grub_util_get_grub_dev): Call grub_util_pull_device.
18555 * util/raid.c: Moved to ..
18556 * grub-core/kern/emu/raid.c: ... here.
18557 (grub_util_raid_getmembers): New parameter "bootable".
18558 All users updated. Support 1.x.
18559 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18561 * include/grub/disk.h (grub_disk_pull_t): New enum.
18562 (grub_disk_dev): Change iterate prototype.
18564 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18566 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18567 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18568 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18569 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18571 * include/grub/util/raid.h: Removed.
18573 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18575 * po/POTFILES.in: Regenerate.
18577 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18579 Unify sparc init with other ieee1275.
18581 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18582 instead of kern/sparc64/ieee1275/init.c.
18583 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18584 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18585 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18586 grub/machine/kernel.h.
18587 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18588 (grub_claim_heap) [__sparc__]: Use sparc version.
18589 (grub_machine_init): Moved args parsing to
18590 (grub_parse_cmdline): ...this.
18591 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18592 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18594 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18596 Move BOOTP to separate file.
18598 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18599 * grub-core/net/net.c: Move all BOOTP functions to
18600 * grub-core/net/bootp.c: ... here.
18602 Use frame interface on PXE.
18604 * grub-core/Makefile.core.def (pxecmd): Removed.
18605 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18606 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18607 * grub-core/i386/pc/pxe.c: Moved from here ...
18608 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18609 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18610 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18612 EFI network support.
18614 * grub-core/Makefile.core.def (efinet): New module.
18615 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18617 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18619 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18620 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18621 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18622 * grub-core/net/drivers/efi/efinet.c: New file.
18623 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18624 (grub_efi_net_config): New extern var.
18626 Various cleanups and bugfixes.
18628 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18630 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18631 disk declared as partition.
18632 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18634 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18635 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18636 (grub_debug_zalloc): Likewise.
18637 (grub_debug_realloc): Likewise.
18638 (grub_debug_memalign): Likewise.
18639 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18640 Check that target is IPv4.
18641 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18642 local-mac-address as fallback.
18643 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18645 * grub-core/net/ip.c (ipchksum): Rename to ...
18646 (grub_net_ip_chksum): ... this. All users updated.
18647 (grub_net_recv_ip_packets): Special handling for DHCP.
18648 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18650 Unify prefix handling
18652 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18653 (grub_machine_get_bootlocation): ... this.
18654 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18655 (grub_machine_get_bootlocation): ... this.
18656 (grub_prefix): New variable.
18658 (root_dev): New variable.
18660 (main): Use new variables.
18661 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18663 (grub_machine_get_bootlocation): ... this.
18664 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18665 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18666 (grub_machine_get_bootlocation): ... this.
18667 (grub_machine_set_prefix): Removed.
18668 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18669 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18671 (grub_machine_get_bootlocation): ... this.
18672 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18673 (grub_set_prefix_and_root): ... this. All users updated.
18674 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18676 (grub_machine_get_bootlocation): ... this.
18677 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18678 (grub_machine_get_bootlocation): New proto.
18679 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18681 Less intrusive and more reliable seek on network implementation.
18683 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18684 (grub_file_seek): Don't call grub_file_net_seek.
18685 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18686 (grub_net_fs_read_real): .. this.
18687 (grub_net_seek_real): Use net->offset.
18688 (grub_net_fs_read): Seek if necessary.
18690 Unify IEEE1275 netwotk config with the other platforms.
18692 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18694 (grub_machine_get_bootlocation): Support network.
18695 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18696 Support type and device parsing.
18697 (grub_ieee1275_get_device_type): New function.
18698 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18700 (grub_ieee1275_net_config_real): ... this.
18701 (grub_ofnet_probecards): Removed.
18702 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18703 * include/grub/ieee1275/ofnet.h: Removed.
18704 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18706 (grub_ieee1275_get_device_type): New function.
18708 Unify network device closing across platforms and make more robust.
18710 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18712 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18714 * grub-core/net/net.c (grub_net_network_level_interface_register):
18716 (grub_net_card_unregister): Close all interfaces.
18717 (receive_packets): Don't poll if no iterfaces are registered.
18719 (grub_net_fini_hw): New function.
18720 (grub_net_restore_hw): Likewise.
18721 (fini_hnd): New variable.
18722 (GRUB_MOD_INIT): Register preboot hook.
18723 (GRUB_MOD_FINI): Run and unregister preboot hook.
18725 Poll network cards when idle.
18727 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18728 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18729 * grub-core/net/net.c (receive_packets): Save last poll time.
18730 (grub_net_poll_cards_idle_real): New function.
18731 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18732 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18733 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18735 Rename ofnet interfaces.
18737 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18738 (grub_ofnet_findcards): Use ofnet_%s names.
18740 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18742 Cleanup socket opening.
18744 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18745 (grub_net_fs_close): Likewise.
18746 (grub_net_fs_read_real): Use eof member.
18747 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18748 (+grub_net_udp_close): New inline function.
18750 * include/grub/net/tftp.h: Moved to the top of ...
18751 * grub-core/net/tftp.c: ... here.
18752 * include/grub/net/ip.h: Moved mostly to the top of ...
18753 * grub-core/net/ip.c: ... here.
18754 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18755 * grub-core/net/ethernet.c: ... here.
18757 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18759 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18762 * include/grub/net/ip.h (ipv4_ini): Removed.
18763 (ipv4_fini): Likewise.
18765 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18766 (grub_net_send_ip_packets): Likewise.
18768 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18770 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18771 grub_read_cmos prototype.
18773 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18775 VGA text support in qemu-mips
18777 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18778 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18779 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18781 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18782 * grub-core/kern/vga_init.c: ... this.
18783 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18784 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18785 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18787 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18788 GRUB_MACHINE_PCI_IO_BASE.
18790 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18792 MIPS qemu flash support.
18794 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18796 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18797 (grub_machine_init): Probe memory if its size isn't known.
18798 * util/grub-mkimage.c (image_targets): Add flash targets.
18799 (generate_image): Handle flash targets.
18801 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18803 MIPS qemu at_keyboard support.
18805 * gentpl.py (videoinkernel): Add qemu-mips.
18806 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18807 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18808 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18810 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18811 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18812 * grub-core/term/serial.c (grub_serial_register)
18813 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18815 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18817 CMOS support on sparc.
18819 * gentpl.py (cmos): Add powerpc and sparc.
18820 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18822 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18823 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18824 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18825 grub_set_datetime_cmos.
18826 * grub-core/lib/ieee1275/cmos.c: New file.
18827 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18828 (find_rtc): Set no_ieee1275_rtc on error.
18829 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18830 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18831 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18832 fail. Move value to argument. All users updated
18833 (grub_cmos_write): Likewise.
18834 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18835 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18836 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18837 grub_get_datetime_cmos and grub_set_datetime_cmos.
18839 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18841 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18842 sourcing grub-mkconfig_lib.
18843 * util/update-grub_lib.in: Likewise.
18844 * util/grub.d/00_header.in: Likewise.
18845 * util/grub.d/10_hurd.in: Likewise.
18846 * util/grub.d/10_kfreebsd.in: Likewise.
18847 * util/grub.d/10_linux.in: Likewise.
18848 * util/grub.d/10_netbsd.in: Likewise.
18849 * util/grub.d/10_windows.in: Likewise.
18850 * util/grub.d/20_linux_xen.in: Likewise.
18851 * util/grub.d/30_os-prober.in: Likewise.
18853 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18855 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18856 default_bg_color rather than black.
18857 (grub_gfxterm_fullscreen): Likewise.
18858 (grub_gfxterm_background_color_cmd): Save new background color in
18861 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18863 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18865 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18867 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18870 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18872 Chainloading on coreboot support.
18874 * grub-core/Makefile.core.def (chain): Add coreboot.
18875 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18877 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18879 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18882 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18884 Implement time command.
18886 * grub-core/Makefile.core.def (time): New module.
18887 * grub-core/commands/time.c: New file.
18888 * grub-core/script/parser.y: Remove "time" keyword.
18889 * grub-core/script/yylex.l: Likewise.
18891 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18893 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18895 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18897 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18898 when handling leftovers.
18900 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18902 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18903 so that help2man doesn't fail.
18905 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18907 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18908 type in pointers on sparc64.
18909 (get_card_packet): Likewise.
18911 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18913 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18915 (grub_cmd_videoinfo): Fetch current video mode.
18917 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18919 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18920 because of underlying system restrictions.
18922 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18924 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18927 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18929 Coreboot video support.
18931 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18933 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18934 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18936 * grub-core/kern/i386/int.S: ... here.
18937 * grub-core/video/i386/pc/vbe.c: Updated includes.
18938 * grub-core/video/i386/pc/vga.c: Likewise.
18939 * include/grub/i386/coreboot/memory.h
18940 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18941 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18942 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18943 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18944 Disable interrupts.
18945 * include/grub/i386/pc/vga.h: Removed. All users updated.
18947 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18949 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18950 definitions for dprintf.
18951 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18953 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18955 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18957 (get_card_packet): Likewise.
18959 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18961 Display the path of the file when file is not found
18963 * grub-core/fs/fat.c: Display the filename when file is not found.
18964 * grub-core/fs/fshelp.c: Likewise.
18965 * grub-core/fs/hfs.c: Likewise.
18966 * grub-core/fs/jfs.c: Likewise.
18967 * grub-core/fs/minix.c: Likewise.
18968 * grub-core/fs/ufs.c: Likewise.
18969 * grub-core/fs/btrfs.c: Likewise.
18970 * grub-core/commands/i386/pc/play.c: Likewise.
18972 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18974 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18975 pointer checks before calling grub_free().
18976 * grub-core/commands/wildcard.c (match_devices): Likewise.
18977 * grub-core/commands/wildcard.c (match_files): Likewise.
18978 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18979 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18980 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18981 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18982 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18983 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18984 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18985 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18986 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18988 2011-06-25 Patrick <p55@mailinator.com>
18990 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18992 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18994 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18995 (grub_pxe_send): Likewise.
18996 (GRUB_MOD_INIT): Fix types.
18998 2011-06-24 Szymon Janc <szymon@janc.net.pl>
19000 * grub-core/io/xzio.c: Fix code style issues
19002 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19003 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
19005 Network infrastructure.
19006 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
19008 * include/grub/net/arp.h: New file.
19009 * include/grub/net/device.h: Likewise.
19010 * include/grub/net/ethernet.h: Likewise.
19011 * include/grub/net/ip.h: Likewise.
19012 * include/grub/net/netbuff.h: Likewise.
19013 * include/grub/net/tftp.h: Likewise.
19014 * include/grub/net/udp.h: Likewise.
19015 * include/grub/ieee1275/ofnet.h: Likewise.
19016 * include/grub/emu/export.h: Likewise.
19017 * include/grub/net.h: Likewise.
19018 * grub-core/net/arp.c: Likewise.
19019 * grub-core/net/ethernet.c: Likewise.
19020 * grub-core/net/ip.c: Likewise.
19021 * grub-core/net/udp.c: Likewise.
19022 * grub-core/net/tftp.c: Likewise.
19023 * grub-core/net/netbuff.c: Likewise.
19024 * grub-core/net/net.c: Likewise.
19025 * grub-core/net/drivers/emu/emunet.c: Likewise.
19026 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
19027 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
19029 * grub-core/Makefile.core.def (net): New module.
19032 (emunet): Likewise.
19033 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
19035 * grub-core/kern/device.c (grub_net_open) : New variable.
19036 (grub_device_open): Handle network device.
19037 (grub_device_close): Likewise.
19038 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
19039 (grub_grubnet_fini): Likewise.
19040 (grub_file_seek): Seek in network device.
19041 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
19042 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
19044 (grub_machine_fini): Call grub_grubnet_fini.
19045 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
19047 (grub_ieee1275_get_aliasdevname): New function.
19048 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
19049 Add unofficial Solaris network info.
19050 (grub_multiboot_make_mbi): Likewise.
19051 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
19052 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
19053 * include/grub/device.h (grub_fs): Removed.
19054 * include/grub/err.h (grub_err_t): Add network-related values.
19055 * include/grub/i386/pc/pxe.h: Removed bootp parts.
19056 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
19057 (grub_ieee1275_get_aliasdevname): New proto.
19058 * include/grub/net.h: Rewritten.
19060 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19062 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
19065 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19067 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
19068 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
19069 it truncates the output.
19070 Reported by: Ximin Luo.
19072 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19074 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
19076 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19078 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
19079 partmap before abstraction.
19081 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
19083 * util/grub-mkconfig_lib.in: Add missing quotes.
19085 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19087 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
19088 old method if mountinfo would return /dev/root and /dev/root doesn't
19091 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19095 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
19096 (decomp_table): Add zlib entries.
19097 (zio_read): USe 8 bits for compression function rather than 3.
19098 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
19100 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19102 * grub-core/disk/ahci.c: Add missing license statements.
19103 * grub-core/fs/romfs.c: Likewise.
19104 * grub-core/lib/ia64/setjmp.S: Likewise.
19105 * grub-core/loader/i386/pc/freedos.c: Likewise.
19106 * grub-core/loader/ia64/efi/linux.c: Likewise.
19107 * grub-core/video/colors.c: Likewise.
19108 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
19110 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19114 * grub-core/Makefile.core.def (ata_pthru): Removed.
19115 (ahci): New module.
19117 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
19119 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
19121 (grub_hdparm_do_check_powermode_cmd): Likewise.
19122 (grub_hdparm_do_smart_cmd): Likewise.
19123 (grub_hdparm_set_val_cmd): Likewise.
19124 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
19125 * grub-core/disk/ahci.c: New file.
19126 * grub-core/disk/ata.c: Factor out the low-level part into ...
19127 * grub-core/disk/pata.c: ... here.
19128 * grub-core/disk/ata_pthru.c: Contents moved to ...
19129 * grub-core/disk/pata.c: ... here.
19130 * grub-core/disk/scsi.c (grub_scsi_names): New array.
19131 (grub_scsi_iterate): Use grub_scsi_names.
19132 (grub_scsi_open): Likewise.
19133 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
19134 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
19135 (grub_ata_regs_t): New struct.
19136 (grub_disk_ata_pass_through_parms): Likewise.
19137 (grub_ata_device): Renamed to ...
19138 (grub_ata): ... this.
19139 (grub_ata_dev): New struct.
19140 Removed all low-level inline functions.
19141 * include/grub/scsi.h: Add PATA and AHCI subsystems.
19142 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
19143 iterate hooks and open. All users updated.
19144 * util/grub-install.in: Handle AHCI disk module.
19146 2011-06-23 Szymon Janc <szymon@janc.net.pl>
19148 Add support for DRI and RSTn markers in JPEG files.
19150 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
19151 (JPEG_MARKER_RST0): Likewise.
19152 (JPEG_MARKER_RST1): Likewise.
19153 (JPEG_MARKER_RST2): Likewise.
19154 (JPEG_MARKER_RST3): Likewise.
19155 (JPEG_MARKER_RST4): Likewise.
19156 (JPEG_MARKER_RST5): Likewise.
19157 (JPEG_MARKER_RST6): Likewise.
19158 (JPEG_MARKER_RST7): Likewise.
19159 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
19160 (grub_jpeg_decode_dri): New function.
19161 (grub_jpeg_decode_sos): Move image data related part into
19162 grub_jpeg_decode_data function.
19163 (grub_jpeg_decode_data): New function.
19164 (grub_jpeg_reset): New function.
19165 (grub_jpeg_decode_jpeg): Handle new markers.
19167 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19169 * util/ieee1275/ofpath.c (check_sas): Close fd.
19170 (main): Free of_path.
19171 Reported by: David Volgyes <dvolgyes>.
19173 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19175 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19176 Reported by: David Volgyes <dvolgyes>.
19178 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19180 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19182 Reported by: David Volgyes <dvolgyes>.
19184 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19186 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19188 Reported by: David Volgyes <dvolgyes>.
19190 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19192 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19193 Prevent memory leak.
19195 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19197 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19198 (main): Close file.
19199 Reported by: David Volgyes <dvolgyes>.
19201 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19203 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19204 to continue if allocation is failed.
19206 Reported by: David Volgyes <dvolgyes>.
19208 2011-06-23 David Volgyes <dvolgyes>
19210 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19213 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19215 Fix spurious warning.
19217 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19218 (acorn_partition_map_find): Use .bin member.
19220 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19222 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19223 /dev/root as a valid device.
19225 2011-06-23 Jim Meyering <meyering@redhat.com>
19227 Avoid NULL deref in grub_device_open.
19229 * grub-core/kern/device.c (grub_device_open): Don't dereference
19230 a NULL pointer upon failed grub_env_get.
19232 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19234 Support non-512B sectors and agglomerate reads.
19236 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19237 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19238 (disk_io_guid): Removed.
19239 (make_devices): Locate solely by BlockIO.
19240 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19241 (grub_efidisk_read): Use read_blocks.
19242 (grub_efidisk_write): Use write_blocks.
19243 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19245 (get_safe_sectors): Handle non-512B sectors.
19246 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19248 (grub_biosdisk_write): Handle non-512B sectors.
19249 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19250 (grub_scsi_read): Remove special non-512B block handling (now handled
19252 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19253 and do sanity checks.
19254 (grub_disk_adjust_range): Handle non-512B sectors.
19255 (transform_sector): New function.
19256 (grub_disk_read_small): Likewise.
19257 (grub_disk_read): Rewritten.
19258 (grub_disk_write): Handle non-512B sectors.
19259 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19261 (open_device): Use log_sector_size.
19262 (grub_util_biosdisk_read): Likewise.
19263 (grub_util_biosdisk_write): Likewise.
19264 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19266 (pc_partition_map_embed): Likewise.
19267 * include/grub/disk.h (grub_disk): New field log_sector_size.
19268 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19269 (GRUB_DISK_CACHE_BITS): Increased to 6.
19270 * util/grub-fstest.c (fstest): New command testload.
19271 (argp_parser): Likewise.
19273 2011-06-16 Robert Millan <rmh@gnu.org>
19275 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19276 `ata' driver on kernel of FreeBSD 9.
19278 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19279 (get_ataraid_disk_name): New functions.
19280 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19281 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19282 get_ataraid_disk_name() and get_ada_disk_name().
19284 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19286 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19289 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19291 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19292 `ftp.gnu.org' for `alpha.gnu.org'.
19294 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19296 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19297 partitions under /dev/disk/by-id/.
19299 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19301 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19302 after ten consecutive open failures. Scanning all the way up to
19303 10000 is excessive and can cause serious performance problems in
19304 some configurations.
19305 Fixes Ubuntu bug #787461.
19307 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19309 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19312 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19313 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19315 Don't stat devices unless we have to.
19317 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19318 dir == /dev/mapper.
19319 (grub_guess_root_device): Use already known os_dev if possible.
19320 * grub-core/kern/emu/hostdisk.c
19321 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19322 if device is known to be a dm one.
19324 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19326 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19327 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19328 Reported by: Pawel Tecza.
19330 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19332 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19333 (lsefisystab): Likewise.
19335 (lsefimmap): Likewise.
19336 (hdparm): Enable on qemu-mips.
19337 (setjmp): Add ia64 nodist.
19338 (serial): Simplify tags.
19340 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19342 * Makefile.util.def (grub-ofpathname): Install manual page.
19344 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19346 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19348 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19350 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19352 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19354 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19357 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19359 Use full 64-bit division.
19361 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19362 (grub_divmod64): ... this.
19363 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19366 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19368 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19371 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19373 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19374 to avoid accidents when debugging with 'sh -x'.
19375 * grub-core/gensyminfo.sh.in: Likewise.
19376 * tests/example_scripted_test.in: Likewise.
19377 * tests/grub_cmd_regexp.in: Likewise.
19378 * tests/grub_script_blanklines.in: Likewise.
19379 * tests/grub_script_dollar.in: Likewise.
19380 * tests/grub_script_expansion.in: Likewise.
19381 * tests/grub_script_final_semicolon.in: Likewise.
19382 * tests/partmap_test.in: Likewise.
19383 * tests/util/grub-shell-tester.in: Likewise.
19384 * tests/util/grub-shell.in: Likewise.
19386 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19388 Move gfxmenu color handling to video, so that gfxterm can use it
19391 * grub-core/gfxmenu/named_colors.c: Move to ...
19392 * grub-core/video/colors.c: ... here. Rename
19393 grub_gui_get_named_color to grub_video_get_named_color.
19394 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19395 * grub-core/video/colors.c (my_isxdigit): ... here.
19396 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19398 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19399 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19401 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19403 * include/grub/gui.h (grub_gui_color_t): Move to ...
19404 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19405 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19406 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19407 * include/grub/gui.h (grub_gui_map_color): Move to ...
19408 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19409 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19411 * include/grub/video.h (grub_video_get_named_color): ... here.
19412 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19413 * include/grub/video.h (grub_video_parse_color): ... here.
19415 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19417 (gfxmenu): Remove gfxmenu/named_colors.c.
19418 (video) [videomodules]: Add video/colors.c.
19420 Add a background_color command.
19422 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19424 (GRUB_MOD_INIT): Register background_color command.
19425 (GRUB_MOD_FINI): Unregister background_color command.
19426 (redraw_screen_rect): Allow blend/replace of text layer to be
19427 controlled independently from whether there is a background bitmap.
19428 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19431 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19433 Patch BPB in ntldr and chainloader --bpb.
19435 * grub-core/fs/fat.c: Include grub/fat.h.
19436 (grub_fat_bpb): Moved to ...
19437 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19438 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19440 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19442 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19444 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19446 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19447 (GRUB_MOD_INIT): Show --bpb.
19448 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19449 * grub-core/normal/main.c (features): New variable.
19450 (GRUB_MOD_INIT): Set feature_* variables.
19451 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19453 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19455 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19457 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19460 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19462 FreeDOS direct loading support.
19464 * docs/grub.texi (Supported OS): Add FreeDOS.
19465 * grub-core/Makefile.core.def (freedos): New module.
19466 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19468 (grub_relocator16_boot): Handle %ebx.
19469 * grub-core/lib/i386/relocator16.S: Likewise.
19470 * grub-core/loader/i386/pc/freedos.c: New file.
19472 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19474 Long Linux command line support.
19476 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19477 (maximal_cmdline_size): New variable.
19478 (allocate_pages): Use maximal_cmdline_size.
19479 (grub_cmd_linux): Set and use maximal_cmdline_size.
19480 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19481 (allocate_pages): Use maximal_cmdline_size.
19482 (grub_cmd_linux): Set and use maximal_cmdline_size.
19483 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19484 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19487 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19488 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19490 Improve devmapper support
19492 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19493 (grub_util_is_lvm): New function.
19494 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19495 than lvm if not dmraid.
19496 Handle mapped md nodes.
19497 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19498 (grub_util_device_is_mapped): ... this. Make always available. All users
19500 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19501 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19503 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19505 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19507 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19509 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19510 * grub-core/modinfo.sh.in: New file.
19511 * grub-core/Makefile.core.def (modinfo.sh): New script.
19512 * util/grub-mknetdir.in: Use modinfo.sh.
19513 * util/grub-mkrescue.in: Likewise.
19515 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19517 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19518 Fix potential usage of Elf32 instead of Elf64 when compiling on
19519 32-bit architecture. Add endianness macros while on it.
19521 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19523 Use mipsel- rather than mips- in directories involving mipsel ports to
19524 allow both endiannesses coexist.
19526 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19527 mips. All conditions adjusted.
19528 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19530 * util/grub-install.in: Adjust conditions to take renaming into account.
19531 * util/grub-mkimage.c (image_targets): Likewise. New target
19532 mips-qemu_mips-elf for bigendian mips.
19534 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19536 Avoid unnecessary copying on MIPS.
19538 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19539 early if src == dest.
19540 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19541 compression is none.
19543 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19545 Reduce memory footprint on SGI by putting modules before the kernel
19546 as opposed to after.
19548 * grub-core/Makefile.core.def (kernel): Increase linking address.
19549 (none_decompress): Likewise.
19550 (xz_decompress): Likewise.
19551 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19553 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19555 (grub_arch_modules_addr): New function.
19556 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19557 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19558 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19560 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19561 (grub_total_modules_size): ... this. Make global.
19562 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19563 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19565 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19566 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19567 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19568 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19569 * util/grub-mkimage.c (image_target_desc): New flag
19570 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19571 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19572 (generate_image): Handle images with modules before kernel.
19574 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19576 Prevent potential loss of memory map by overwrite on qemu-mips.
19578 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19579 Save ram size in $s4.
19580 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19581 All users changed to grub_arch_memsize.
19582 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19584 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19585 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19586 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19589 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19591 * .bzrignore: Remove grub-dumpbios.
19593 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19595 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19596 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19597 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19598 existing options which append).
19599 * docs/grub.texi (Simple configuration): Document new options.
19600 Reported by: Ian Jackson. Fixes Debian bug #617538.
19602 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19604 * util/grub-fstest.c (cmd_cat): New function.
19605 (fstest): Handle CMD_CAT.
19606 (options): Add cat.
19607 (argp_parser): Handle cat.
19609 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19611 * Makefile.util.def (grub-bin2h): Don't install.
19612 * docs/man/grub-bin2h.h2m: Remove.
19614 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19616 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19619 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19621 Reenable qemu-mips port.
19623 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19624 Fix small arc bug while on it.
19625 * gentpl.py: Handle qemu_mips.
19626 * grub-core/Makefile.am: Likewise.
19627 * grub-core/Makefile.core.def: Likewise.
19628 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19629 inappropriate includes.
19630 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19631 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19632 * grub-core/kern/main.c (grub_modules_get_end)
19633 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19634 * grub-core/kern/mips/qemu-mips: Moved to ..
19635 * grub-core/kern/mips/qemu_mips: ... this.
19636 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19637 (grub_machine_init): Call terminfo_init and serial_init.
19638 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19639 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19641 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19643 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19644 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19645 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19646 * include/grub/mips/qemu_mips/cmos.h: New file.
19647 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19648 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19650 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19651 Use correct mips-style address.
19652 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19653 (GRUB_TICKS_PER_SECOND): Removed.
19654 (grub_get_rtc): Likewise.
19655 (grub_cpu_idle): Likewise.
19656 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19658 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19659 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19660 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19661 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19662 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19663 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19664 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19665 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19667 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19671 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19672 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19674 * configure.ac: New target mips-arc.
19675 * gentpl.py: Likewise.
19676 * grub-core/Makefile.am: Likewise.
19677 * grub-core/Makefile.core.def: Likewise.
19678 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19679 (none_decompress): Likewise.
19680 (lsdev): New module.
19681 (datetime): Use lib/arc/datetime.c on ARC.
19682 (part_dvh): New module.
19683 * grub-core/commands/arc/lsdev.c: New file.
19684 * grub-core/disk/arc/arcdisk.c: Likewise.
19685 * grub-core/kern/mips/arc/init.c: Likewise.
19686 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19688 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19690 (grub_arch_dl_relocate_symbols): Likewise.
19691 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19692 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19693 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19695 * grub-core/lib/arc/datetime.c: New file.
19696 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19697 pci.h on non-loongson.
19698 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19699 (grub_linux_boot): Set unused registers to 0.
19700 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19701 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19702 * grub-core/mmap/mips/uppermem.c: ...here.
19703 * grub-core/partmap/dvh.c: New file.
19704 * grub-core/term/arc/console.c: Likewise.
19705 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19706 (grub_terminfo_set_current): Add terminal "arc".
19707 (grub_terminfo_readkey): Support ARC sequences.
19708 * include/grub/arc/arc.h: New file.
19709 * include/grub/arc/console.h: Likewise.
19710 * include/grub/disk.h (grub_disk_dev_id): Add
19711 GRUB_DISK_DEVICE_ARCDISK_ID.
19712 * include/grub/mips/arc/kernel.h: New file.
19713 * include/grub/mips/arc/memory.h: Likewise.
19714 * include/grub/mips/arc/time.h: Likewise.
19715 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19716 * include/grub/mips/kernel.h (grub_halt): ... here.
19717 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19719 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19720 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19721 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19722 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19724 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19726 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19727 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19728 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19729 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19730 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19731 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19732 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19733 (grub_phys_addr_t): Moved from here ...
19734 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19735 (grub_vtop): Moved from here ...
19736 * include/grub/mips/memory.h (grub_vtop): ... here.
19737 (grub_map_memory): Moved from here ...
19738 * include/grub/mips/memory.h (grub_map_memory): ... here.
19739 (grub_unmap_memory): Moved from here ...
19740 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19741 (grub_machine_mmap_iterate): Moved from here ...
19742 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19743 (grub_mmap_get_lower): Moved from here ...
19744 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19745 (grub_mmap_get_upper): Moved from here ...
19746 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19747 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19749 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19750 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19752 * include/grub/mips/time.h (grub_get_rtc): ... here.
19753 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19755 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19756 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19758 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19759 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19761 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19762 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19763 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19764 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19765 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19766 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19767 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19768 (GRUB_MACHINE_LINK_ADDR): Likewise.
19769 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19771 * util/grub-install.in: Run dvhtool on ARC.
19772 * util/grub-mkimage.c (image_targets): Add mips-arc.
19773 (generate_image): Handle ECOFF output for mips-arc.
19775 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19777 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19780 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19782 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19783 after enabling port.
19785 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19787 Skip incorrect USB devices.
19789 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19791 * include/grub/usb.h (grub_usb_err_t): New enum value
19792 GRUB_USB_ERR_BADDEVICE.
19794 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19796 Fuloong video init support.
19798 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19800 (grub_vga_read_arx): New function.
19801 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19803 (framebuffer): New members io, mmioptr and mmiobase.
19804 (read_sis_cmd): New function.
19805 (write_sis_cmd): Likewise.
19806 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19807 rather than 640x400.
19808 * grub-core/video/sis315_init.c: New file.
19810 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19812 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19814 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19815 to grub_dl_register_symbol.
19817 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19819 Fix compilation errors.
19821 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19822 potentially unused.
19823 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19824 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19825 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19826 to loongson machines.
19828 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19830 Several FS mtime support.
19832 * grub-core/fs/affs.c (grub_affs_time): New struct.
19833 (grub_affs_file): New field mtime.
19834 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19835 type. Removed 'size'. New field 'di'. All users updated.
19836 (grub_affs_mount): Simplify checsum checking.
19837 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19838 (grub_affs_dir): Handle mtime.
19839 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19840 (grub_cpio_dir): Likewise.
19841 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19842 (grub_hfs_filerec): New field mtime.
19843 (grub_hfs_dir): Handle mtime.
19844 (grub_hfs_mtime): New function.
19845 (grub_hfs_fs): Register grub_hfs_mtime.
19846 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19847 (grub_iso9660_dir): New field mtime.
19848 (grub_fshelp_node): New field dirent.
19849 (iso9660_to_unixtime): New function.
19850 (iso9660_to_unixtime2): Likewise.
19851 (grub_iso9660_read_symlink): Use node->dirent.
19852 (grub_iso9660_iterate_dir): Likewise.
19853 (grub_iso9660_dir): Set mtime.
19854 (grub_iso9660_mtime): New function.
19855 (grub_iso9660_fs): Register grub_iso9660_mtime.
19856 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19857 (grub_jfs_inode): New fields atime, ctime and mtime.
19858 (grub_jfs_dir): Set mtime.
19859 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19860 * grub-core/fs/ntfs.c (list_file): Set mtime.
19861 (grub_ntfs_dir): Likewise.
19862 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19863 (grub_reiserfs_iterate_dir): Set mtime.
19864 (grub_reiserfs_dir): Likewise.
19865 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19866 (grub_fshelp_node): Likewise.
19867 (grub_sfs_iterate_dir): Set mtime.
19868 (grub_sfs_dir): Likewise.
19869 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19870 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19871 (grub_xfs_inode): New fields atime, mtime, ctime.
19872 (grub_xfs_dir): Set mtime.
19873 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19874 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19875 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19877 Support UDF symlinks.
19879 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19880 (grub_ufs_read_symlink): New function. All users updated.
19882 Check amiga partmap checksum.
19884 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19885 (grub_amiga_partition): Likewise.
19886 (amiga_partition_map_checksum): New function.
19887 (amiga_partition_map_iterate): Check checksum.
19889 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19893 * Makefile.util.def (libgrubmods.a): Add romfs.
19894 * grub-core/Makefile.core.def (romfs): New module.
19895 * grub-core/fs/romfs.c: New file.
19897 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19899 Squashfs v4 support.
19901 * Makefile.util.def (libgrubmods.a): Add squash4.
19902 * grub-core/Makefile.core.def (squash4): New module.
19903 * grub-core/fs/squash4.c: New file.
19904 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19905 disk_input_start, disk_input.
19906 (get_byte): Handle disk_input.
19907 (grub_zlib_disk_read): New function.
19908 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19910 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19911 2011-05-15 Feiran Zheng <famcool@gmail.com>
19913 * Makefile.util.def (libgrubmods.a): Add minix3.
19914 * grub-core/Makefile.core.def (minix3): New module.
19915 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19916 (GRUB_MINIX_BSIZE): Removed.
19917 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19918 (grub_minix_ino_t): New type.
19919 (grub_minix_le_to_cpu_ino): New macro.
19920 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19921 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19922 (grub_minix_data): New field block_size.
19923 (grub_minix_read_file): Handle 64-bit correctly.
19924 * grub-core/fs/minix3.c: New file.
19926 2011-05-15 Tristan Gingold <gingold@free.fr>
19927 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19928 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19932 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19933 * configure.ac: Add ia64-efi target.
19934 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19935 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19936 * gentpl.py: Add ia64_efi platform.
19937 Rename x86_efi to efi and Add ia64-efi. All users updated.
19938 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19939 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19940 Remove kern/generic/rtc_get_time_ms.c on EFI.
19941 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19942 kern/ia64/dl_helper.c on ia64-efi.
19943 Add kern/emu/cache.c on emu.
19944 (linux): Use on loader/ia64/efi/linux.c on ia64.
19945 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19946 whether symbol is a function.
19947 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19948 (grub_symbol): New field 'isfunc'.
19949 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19950 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19951 (grub_dl_load_segments): Place all sections into the same region.
19952 [__ia64__]: Create trampolines and got.
19953 [GRUB_MACHINE_EMU]: Call mprotect.
19954 (grub_dl_resolve_symbols): Resolve symbol type as well.
19955 [__ia64__]: Create function descriptors.
19956 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19957 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19958 (grub_get_rtc): New function.
19959 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19960 * grub-core/kern/emu/cache.S: Renamed to ...
19961 * grub-core/kern/emu/cache_s.S: ... this.
19962 [__ia64__]: Add a nop.
19963 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19964 [__ia64__]: New function.
19965 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19966 * grub-core/kern/ia64/dl.c: New file.
19967 * grub-core/kern/ia64/dl_helper.c: Likewise.
19968 * grub-core/kern/ia64/efi/init.c: New file.
19969 * grub-core/kern/ia64/efi/startup.S: Likewise.
19970 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19971 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19972 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19973 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19974 * grub-core/loader/ia64/efi/linux.c: New file.
19975 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19976 (GRUB_MOD_DEP): Likewise.
19977 (grub_dl) [__ia64__]: New fields got and tramp.
19978 (grub_dl): New field 'base'.
19979 (grub_dl_register_symbol): New argument isfunc. All users updated.
19980 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19981 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19982 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19983 (grub_ia64_dl_get_tramp_got_size): New proto.
19984 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19985 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19986 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19987 * include/grub/efi/api.h: Skip call wrappers on ia64.
19988 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19989 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19990 * include/grub/elf.h (ELF_ST_INFO): New definition.
19991 * include/grub/ia64/efi/kernel.h: New file.
19992 * include/grub/ia64/efi/memory.h: Likewise.
19993 * include/grub/ia64/efi/time.h: Likewise.
19994 * include/grub/ia64/kernel.h: Likewise.
19995 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19996 * include/grub/ia64/time.h: New file.
19997 * include/grub/ia64/types.h: Likewise.
19998 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19999 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
20001 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
20002 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
20003 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
20004 * util/grub-mkimage.c (image_target_desc): New field pe_target.
20006 (EFI64_HEADER_SIZE): New definition. All users updated.
20007 (image_targets): Add ia64-efi.
20008 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
20009 jumpers_addr. All users updated.
20010 Create function descriptors.
20011 (count_funcs): New function.
20012 (unaligned_uint32): New struct.
20013 (MASK20): New definition.
20014 (MASK19): Likewise.
20015 (MASKF21): Likewise.
20016 (add_value_to_slot_20b): New function.
20017 (add_value_to_slot_21_real): Likewise.
20018 (add_value_to_slot_21): Likewise.
20019 (ia64_kernel_trampoline): New struct.
20020 (nopm): New variable.
20022 (make_trampoline): New function.
20023 (relocate_addresses): Handle ia64.
20024 (make_reloc_section): Likewise.
20025 (load_image): Likewise.
20027 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
20029 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
20030 warning. Move variables before code while on it.
20032 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
20036 * configure.ac: Rename yeeloong platform to loongson. All users updated.
20037 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
20038 * grub-core/boot/mips/loongson/fuloong.S: New file.
20039 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
20040 Explicitly init CS5536.
20041 [FULOONG]: Don't use serial until CS5536 is available.
20042 Set GPIO based on dumps.
20043 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
20044 [FULOONG]: Handle GPIO and memory controller differences.
20045 Parse machine type in $a2.
20046 * grub-core/boot/mips/startup_raw.S: Determine and save the
20048 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
20049 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
20050 init on architecture type.
20051 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
20052 SIS315E. Don't init at_keyboard on fuloong.
20053 (grub_halt): Support Fuloong.
20054 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
20055 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
20056 (loongson_machtypes): New array.
20057 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
20059 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
20060 config. All users updated. Handle CS5536 serial.
20061 * grub-core/term/serial.c (grub_serial_register): Conditionalise
20062 default port on machine type. Register serial as inactive.
20063 * grub-core/video/sis315pro.c: New file.
20064 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
20066 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
20067 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
20068 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
20069 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
20070 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
20071 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
20073 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
20074 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
20076 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
20077 (grub_arch_machine): New extern var.
20078 * include/grub/mips/loongson/serial.h
20079 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
20080 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
20081 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
20082 (GRUB_MACHINE_SERIAL_PORT0): ... this.
20083 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
20084 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
20085 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
20086 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
20087 * include/grub/term.h (grub_term_register_input_inactive): New inline
20089 (grub_term_register_output_inactive): Likewise.
20090 * include/grub/video.h (grub_video_driver_id): New value
20091 GRUB_VIDEO_DRIVER_SIS315PRO.
20092 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
20093 New field "names". All users updated.
20094 New field value IMAGE_FULOONG_FLASH.
20095 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
20097 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
20099 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
20100 and add some clarification.
20102 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20104 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
20105 platforms if kernel is compressed.
20107 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20109 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
20110 unused modules since currently referrence counter isn't reliable and
20111 there isn't much memory to recover there anyway.
20113 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20115 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
20116 rather than resetting it to allow modules to reference themselves
20119 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20121 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
20122 counter on dependencies since grub_dl_unref already handles this.
20124 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20126 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
20127 on error if not already done.
20129 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20131 Fix few potential memory misusage.
20133 * grub-core/font/font.c (load_font_index): Don't free char_index to
20135 (grub_font_load): Zero-fill font at alloc for safety.
20136 Close file on error.
20137 (free_font): Free bmp_idx.
20139 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20141 * docs/grub.texi (Installation): Fix several outdated claims.
20143 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20145 Handle module_license on windows.
20147 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
20149 (insert_string): Make argument const char * instead of char *.
20150 (write_section_data): Handle long section names.
20151 Handle module_license.
20153 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20155 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
20156 handle class-free menuentries.
20157 (grub_normal_add_menu_entry): Add a check to be sure.
20159 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20161 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
20164 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20166 * configure.ac: Bump version to 1.99.
20168 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20170 Give ATA device a bit more time on first try in order to allow disks
20173 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20174 if dev->present is 1. Reset dev->present on failure.
20175 (grub_ata_device_initialize): Set dev->present to 1.
20176 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20177 (grub_ata_device): New member 'present'.
20179 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20181 * util/grub-mkimage.c (generate_image): Update hash.
20183 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20185 Flush caches on DMA memory.
20187 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20188 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20189 (grub_dma_free): Likewise.
20190 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20192 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20194 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20195 to avoid asm treating ld and sd as macros.
20197 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20199 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20202 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20204 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20205 grub_decompress_core since later would fail if grub_decompress_core
20208 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20210 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20211 R_MIPS_JALR since it's used by newer compiler.
20213 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20215 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20217 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20219 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20220 file_path to 0 for surety.
20221 (grub_chainloader_boot): Set exit_data to NULL.
20222 Unset the loader once done.
20223 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20225 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20227 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20228 unknown key into a dprintf.
20230 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20232 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20233 on first non-existant partition.
20235 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20237 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20239 Reported by: Mark Korenberg.
20241 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20243 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20246 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20248 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20249 before closing to ensure that it will be readable by grub-setup.
20251 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20253 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20254 (devpath_1): Use MAKE_PIWG_PATH.
20255 (devpath_2): Likewise.
20256 (devpath_3): Likewise.
20257 (devpath_4): Likewise.
20258 (devpath_5): Likewise.
20259 (devpath_6): Likewise.
20261 The appleldr.mod was checked that to be binary identical to previous
20264 2011-05-05 Zach <mikezackles>
20266 Support 2010 Macbooks.
20268 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20269 (devs): Add devpath_6.
20271 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20273 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20274 /dev/random. /dev/urandom is good enough for our purposes (salting).
20276 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20278 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20280 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20282 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20285 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20287 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20288 and not 0 on failure.
20290 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20292 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20293 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20294 disk; otherwise grub_fs_probe will not fall back to the next
20296 (grub_pxefs_open): Likewise, for consistency.
20297 Reported and tested by: Ezekiel Grave.
20299 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20301 * tests/partmap_test.in: Don't hardcode path to parted.
20302 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20304 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20306 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20307 of `ls' to find out which devices are available.
20309 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20311 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20312 than source address for efi mmap buffer.
20314 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20316 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20317 wrong action on non-detecting the magic.
20319 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20321 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20322 already supplied by another part of the module (fixes compilation on
20325 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20327 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20328 match the one used by mdadm.
20330 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20332 * po/README: Add instructions for creating po/LINGUAS.
20334 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20336 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20339 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20340 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20341 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20342 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20343 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20344 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20345 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20346 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20347 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20348 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20349 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20350 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20351 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20352 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20353 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20354 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20355 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20356 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20357 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20358 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20359 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20360 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20362 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20364 * grub-core/kern/emu/getroot.c
20365 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20366 test that was incorrectly reintroduced in r3214.
20367 Reported by: Ian Dall. Fixes Savannah bug #33133.
20369 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20371 Fix stack pointer handling in 16-bit relocator.
20373 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20374 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20375 Fixes Ubuntu bug #683904.
20377 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20379 * configure.ac: Bump version to 1.99~rc2.
20381 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20383 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20384 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20385 * grub-core/lib/x86_64/setjmp.S: Likewise.
20386 * grub-core/lib/mips/setjmp.S: Likewise.
20387 * grub-core/lib/powerpc/setjmp.S: Likewise.
20388 * grub-core/lib/sparc64/setjmp.S: Likewise.
20390 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20392 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20393 * grub-core/lib/efi/datetime.c: Likewise.
20395 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20397 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20399 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20400 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20401 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20403 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20405 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20407 (grub_gfxterm_term_init): Likewise.
20409 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20411 Take into account the decorations the computing menu entry width.
20413 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20414 (grub_gfxmenu_create_box): Register get_border_width.
20415 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20417 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20420 2011-04-18 Endres Puschner <code@e7p.de>
20422 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20423 Don't skip first class.
20425 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20427 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20429 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20431 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20433 Complete 64-bit division support.
20435 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20436 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20437 * include/grub/misc.h (grub_divmod64): Rename to ...
20438 (grub_divmod64_full): ... this.
20439 (grub_divmod64): New inline function.
20441 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20443 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20445 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20447 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20448 performing the necessary test.
20450 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20452 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20453 (kfreebsd.elf): Likewise.
20454 (pc-chainloader.elf): Likewise.
20455 (ntldr.elf): Likewise.
20457 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20459 Identify RAID by its UUID rather than (guessed) name.
20461 * grub-core/disk/raid.c (ascii2hex): New function.
20462 (grub_raid_open): Accept mduuid/%s specification.
20463 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20464 (get_mdadm_uuid): ... this.
20465 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20467 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20469 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20472 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20474 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20476 * util/grub.d/20_linux_xen.in: Likewise.
20478 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20480 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20481 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20483 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20484 Build a list of relevant visible mounts using the mnt_id and
20485 parent_mnt_id fields, and then scan that list at the end.
20487 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20489 * docs/grub.texi (normal): New section.
20490 (normal_exit): New section.
20491 (Embedded configuration): Add reference to normal.
20492 (GRUB only offers a rescue shell): Likewise.
20493 * docs/grub-dev.texi (Error Handling): Fix typo.
20495 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20497 * NEWS: Drop obsolete entry about probe-only btrfs support.
20499 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20501 * util/import_gcry.py: Fix typo.
20503 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20505 * NEWS: Add btrfs support.
20507 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20508 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20510 BtrFS support. Written by me (Vladimir) with important bugfixes and
20511 even more important testing by Colin.
20513 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20514 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20515 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20516 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20517 mem_input_off and mem_input. All users updated to accept in-RAM input.
20518 (gzio_seek): New function.
20519 (test_zlib_header): Likewise.
20520 (grub_gzio_read): Likewise.
20521 (grub_zlib_decompress): Likewise.
20522 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20523 Accept partial and non-virtual mounts.
20524 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20525 avoid receiving /dev/dm-X as device.
20526 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20527 Handle bind and partial mounts.
20528 * grub-core/lib/crc.c: New file.
20529 * include/grub/deflate.h: Likewise.
20530 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20532 * include/grub/lib/crc.h: New file.
20534 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20536 Implement automatic module license checking according to new GNU
20539 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20540 (grub_dl_load_core): Use grub_dl_check_license.
20541 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20542 (GRUB_MOD_LICENSE): Likewise.
20543 (GRUB_MOD_DUAL_LICENSE): Likewise.
20544 All modules updated.
20546 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20548 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20549 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20551 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20553 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20555 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20557 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20559 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20562 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20564 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20565 parenthesis in the middle of the filename.
20567 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20569 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20570 rather than trying to put initrd way too high.
20571 Reported by: Ryan Lortie <desrt@desrt.ca>
20573 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20575 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20576 improperly removed string.
20578 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20580 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20582 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20583 (open_device) Likewise.
20584 (grub_util_biosdisk_close): Likewise.
20585 Reported by: Mark Korenberg.
20587 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20589 * util/grub-mkconfig_lib.in: Add missing quotes.
20591 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20593 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20596 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20598 Dynamically count the number of lines for the lower banner.
20600 * grub-core/normal/menu_entry.c (per_term_screen): New member
20602 (print_down): Use num_entries.
20603 (update_screen): Likewise.
20604 (grub_menu_entry_run): Set num_entries.
20605 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20607 (grub_print_message_indented): Move real part to ...
20608 (grub_print_message_indented_real): ... here. Additional argument
20610 (draw_border): Additional argument num_entries.
20611 (print_message): Additional argument dry_run.
20612 (print_entries): Receive menu viewer data.
20613 (grub_menu_init_page): New argment num_entries.
20614 (menu_text_set_chosen_entry): Use num_entries.
20615 (grub_menu_try_text): Likewise.
20616 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20618 (grub_ucs4_count_lines): New function.
20619 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20620 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20621 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20622 (grub_term_border_height): Likewise.
20623 (grub_term_num_entries): Likewise.
20625 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20627 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20628 Remove now unused string.
20630 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20632 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20634 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20636 (Comment): Fix typo.
20637 (Getting started): General copy-editing.
20638 (Typical Development Experience): Likewise.
20639 (Error Handling): Likewise.
20640 (Video API): Likewise.
20642 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20644 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20647 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20649 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20652 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20654 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20655 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20658 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20660 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20661 grub_strcpy since the lines aren't necessarily 0-terminated.
20663 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20665 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20668 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20670 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20671 (GRUB_MOD_INIT): DEVICE isn't optional.
20673 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20675 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20676 word on new line if it's too long anyway. Fixes a hang.
20678 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20680 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20682 * util/grub-setup.c (main): Reuse md device name if available.
20683 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20684 not GRUB name as argument.
20685 Based on patch by: Florian Wagner <fwagner>.
20687 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20689 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20690 Place mbi on low memory for better compatibility.
20692 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20694 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20696 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20697 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20699 * autogen.sh: Ensure that collate and ctype locale is C.
20700 * conf/Makefile.common: Likewise.
20702 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20704 * grub-core/normal/menu.c: Add missing include.
20706 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20708 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20710 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20712 * util/grub-mkconfig.in: Ignore emacsen backup.
20714 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20716 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20718 (grub_util_biosdisk_close): Likewise.
20720 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20722 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20723 const attribute and use grub_isdigit.
20725 2011-04-06 Andrey <dev_null@ukr.net>
20727 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20730 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20732 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20733 useful grub_dprintf's.
20735 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20737 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20739 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20741 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20743 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20745 Output errors if theme loading failed.
20747 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20748 grub_gfxterm_fullscreen on error paths to ...
20749 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20750 theme loading error.
20752 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20754 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20755 space for older compilers.
20756 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20758 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20760 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20761 and report them as not RAID members since they are useless for GRUB.
20762 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20764 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20766 Increase LVM implementation robustness in order not to crash on
20767 configurations like pvmove. Previously code assumed that in some places
20768 only lvs or only pvs are used whereas it seems that they are used
20771 * grub-core/disk/lvm.c (read_node): New function.
20772 (read_lv): Use read_node.
20773 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20774 Match volumes only at the end when all lvs are found. Take both
20775 pvs (first) and lvs (second) into account.
20776 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20777 mirror_* into node_*. All users updated.
20778 (grub_lvm_stripe): Merge this ...
20779 (grub_lvm_mirror): ... and this ...
20780 (grub_lvm_node): ... into this. All users updated.
20782 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20784 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20785 of function to allow further scanning for LVMs.
20787 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20789 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20790 on failed seek as it breaks open fd reusage.
20792 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20794 * util/grub-install.in: Add a recommendation to use --recheck before
20797 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20799 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20802 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20804 GRUB developper manual based on existing Internals section and
20805 contributions by the various authors with active copyright assignment.
20807 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20808 * docs/font_char_metrics.png: New file.
20809 * docs/font_char_metrics.txt: Likewise.
20810 * docs/grub-dev.texi: Likewise.
20811 * docs/grub.texi (Internals): Move from here ...
20812 * docs/grub-dev.texi: ... here.
20814 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20816 Store the loopback device as data on loopback grub_disk structures,
20817 rather than the file it points to. This fixes use of freed memory
20818 if an existing loopback device is replaced.
20820 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20821 disk->data, not dev->file.
20822 (grub_loopback_read): Adjust file assignment to match.
20823 Fixes Ubuntu bug #742967.
20825 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20827 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20828 when replacing an existing device.
20830 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20832 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20833 memory corruptions.
20835 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20837 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20838 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20839 (grub_jfs_read_inode): Likewise.
20840 (grub_jfs_opendir): Likewise. Remove now useless casts.
20841 (grub_jfs_getent): Likewise.
20842 Make ino a grub_uint32_t rather than int.
20843 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20844 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20845 division and module with bit operations.
20846 (grub_jfs_find_file): Make ino a grub_uint32_t.
20847 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20849 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20851 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20852 warning. (This was in fact always initialised before use, but GCC
20853 wasn't smart enough to prove that.)
20854 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20856 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20858 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20860 (efi_wrap_1): Likewise.
20861 (efi_wrap_2): Likewise.
20862 (efi_wrap_3): Likewise.
20863 (efi_wrap_4): Likewise.
20864 (efi_wrap_5): Likewise.
20865 (efi_wrap_6): Likewise.
20866 (efi_wrap_10): Likewise.
20867 Based on information by: Red Hat/Peter Jones.
20869 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20871 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20872 set-but-not-used variable.
20874 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20876 * docs/grub.texi (Simple configuration): Be more explicit about
20877 GRUB_DEFAULT, and add an example.
20878 Reported by: Leslie Rhorer.
20880 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20882 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20885 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20887 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20888 * util/grub.d/20_linux_xen.in: Likewise.
20890 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20892 * util/grub.d/10_linux.in: Try alternative config filenames where
20893 we parse config file.
20894 * util/grub.d/20_linux_xen.in: Likewise.
20896 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20898 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20899 * util/grub.d/20_linux_xen.in: Likewise.
20901 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20903 * grub-core/disk/raid.c (insert_array): Add few potentially
20904 useful grub_util_info.
20905 (grub_raid_register): Likewise.
20907 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20909 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20910 Preserve partition number in mdadm code path.
20912 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20914 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20915 few potentially useful grub_util_info.
20917 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20919 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20921 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20923 * docs/grub.texi (default): Use @example rather than nested
20924 itemized lists to avoid breaking gendocs.
20926 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20928 * docs/grub.texi (Future): Update.
20930 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20932 * docs/grub.texi (Environment): New chapter.
20933 (Changes from GRUB Legacy): Link to "Environment block" section for
20934 details of limitations.
20935 (Simple configuration): Likewise. Link to documentation of gfxmode
20936 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20938 (Shell-like scripting): Note that normal variables are stored in the
20940 (gettext): Link to documentation of lang and locale_dir.
20941 (list_env): New section.
20942 (load_env): New section.
20943 (save_env): New section.
20945 (Reporting bugs): Fix typo.
20947 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20949 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20952 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20954 * grub-core/term/at_keyboard.c (set_scancodes)
20955 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20957 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20959 * docs/grub.texi (Menu-specific commands): Remove some semantics
20960 that were true in GRUB Legacy but not in GRUB 2.
20961 (submenu): New section.
20962 (false): New section.
20963 (read): New section.
20964 (true): New section.
20966 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20968 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20970 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20972 * docs/grub.texi (Simple configuration): Explain some of the
20973 current limitations of grub-mkconfig.
20974 Reported by: Leslie Rhorer.
20976 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20978 Old macs search for boot.efi rather than for bootia32.efi.
20980 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20981 * util/grub-mkrescue.in: Likewise.
20982 Suggested by: Peter Jones.
20984 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20986 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20988 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20990 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20991 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20992 (grub_lvm_mirror): New struct.
20993 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20994 (grub_lvm_iterate): Iterate only visible volumes.
20995 (grub_lvm_read): Factor out to ..
20996 (read_lv): ... this. Support mirrors.
20997 (grub_lvm_read): New wrapper function.
20998 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20999 stripped or mirrored.
21001 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21003 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
21005 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
21007 * docs/grub.texi (loopback): New section.
21009 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
21011 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
21014 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
21016 * docs/grub.texi (BIOS installation): New section, partly based on
21017 previous text in other sections.
21018 (Installing GRUB using grub-install): Replace BIOS discussion with a
21020 (Images): Likewise.
21022 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21024 * grub-core/kern/emu/hostdisk.c (find_partition_start)
21025 [HAVE_DIOCGDINFO]: Add safety checks.
21027 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21029 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
21030 per default compiled in kernel and prior to 8.0 isn't shipped at all.
21032 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
21034 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
21035 real_sb->size is zero (e.g. RAID-0), get the disk size from
21036 real_sb->data_size instead.
21037 Fixes Ubuntu bug #743136.
21039 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21041 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
21042 printf clauses for printing size and start.
21044 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21046 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
21047 Reported and tested by: Timothy Nikkel.
21049 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21051 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
21052 (dirty_region_add_real): ... this.
21053 (dirty_region_add): Don't discard margin refresh when performing
21056 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21058 * grub-core/lib/relocator.c (allocate_regstart)
21059 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
21060 terminals are capabple of malloc-free operation.
21061 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
21062 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
21064 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
21066 * util/grub-setup.c: Copy the partition table zone if floppy support
21067 is disabled, even if no partition table is found.
21069 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
21070 during POST if an invalid partition table is contained in the PBR
21071 of the active partition when GRUB is installed to a partition.
21073 2011-03-28 Colin Watson <cjwatson@debian.org>
21075 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
21078 2011-03-28 Colin Watson <cjwatson@debian.org>
21080 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
21081 to be specific about what kind of RAID device we're scanning for.
21083 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
21085 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
21086 return freed string.
21088 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21090 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
21092 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21094 Use libgeom on FreeBSD to detect partitions.
21096 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
21097 (grub-mkrelpath): Likewise.
21098 (grub-script-check): Likewise.
21099 (grub-editenv): Likewise.
21100 (grub-mkpasswd-pbkdf2): Likewise.
21101 (grub-fstest): Likewise.
21102 (grub-mkfont): Likewise.
21103 (grub-mkdevicemap): Likewise.
21104 (grub-probe): Likewise.
21105 (grub-setup): Likewise.
21106 (grub-ofpathname): Likewise.
21107 (grub-mklayout): Likewise.
21108 (example_unit_test): Likewise.
21109 (grub-menulst2cfg): Likewise.
21110 * grub-core/Makefile.core.def (grub-emu): Likewise.
21111 (grub-emu-lite): Likewise.
21112 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
21113 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
21114 define HAVE_DIOCGDINFO.
21115 (follow_geom_up) [FreeBSD]: New function.
21116 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
21117 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
21118 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
21119 unconditionally of HAVE_DIOCGDINFO.
21121 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21123 Fix FreeBSD compilation problem.
21125 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
21126 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
21128 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
21130 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
21131 Switch back to page zero before loading a kernel, since some kernel
21132 drivers expect that.
21133 Thanks to: Felix Kuehling.
21135 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21137 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
21138 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
21139 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
21141 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21143 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
21144 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
21146 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21148 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
21149 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
21150 malloc is disabled.
21152 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21154 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
21155 for modules headers when counting the needed allocation size.
21157 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21159 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
21160 if no ASCII character is found to prevent crash.
21162 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
21164 * grub-core/video/bitmap.c (match_extension): Ignore case.
21166 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21168 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21170 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21172 * grub-core/script/parser.y: Declare "time" as valid argument.
21174 2011-03-23 Peter Jones <pjones@redhat.com>
21176 Fix incorrect assert failure reporting.
21178 * grub-core/tests/example_functional_test.c (example_test): Add
21180 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21181 (failure_start): ...this. Check that malloc succeeded.
21182 Don't call xvasprintf. Return failure struct.
21183 (failure_append_vtext): New function.
21184 (failure_append_text): Likewise.
21185 (add_failure): Likewise.
21186 (grub_test_assert_helper): Likewise.
21187 * include/grub/test.h (grub_test_assert_helper): New declaration.
21188 (grub_test_assert): Macro rewritten.
21190 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21192 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21194 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21196 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21198 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21200 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21201 into GRUB-style one.
21203 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21205 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21206 error and not grub_errno.
21207 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21209 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21211 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21212 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21214 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21216 * grub-core/efiemu/i386/pc/cfgtables.c
21217 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21218 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21219 (grub_xnu_unlock): Likewise.
21220 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21222 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21224 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21225 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21226 * grub-core/commands/hashsum.c (aliases): Likewise.
21227 * grub-core/commands/setpci.c (pci_registers): Likewise.
21228 * grub-core/disk/usbms.c (attach_hook): Likewise.
21229 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21230 (zio_checksum_table): Likewise.
21231 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21232 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21233 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21234 * grub-core/lib/relocator.c (leftovers): Likewise.
21235 (extra_blocks): Likewise.
21236 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21237 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21238 (modules_last): Likewise.
21239 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21240 (devices): Likewise.
21241 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21242 (modules_last): Likewise.
21243 * grub-core/normal/auth.c (users): Likewise.
21244 * grub-core/normal/context.c (initial_menu): Likewise.
21245 (current_menu): Likewise.
21246 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21247 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21248 (grub_serial_terminfo_input_template): Likewise.
21249 (grub_serial_terminfo_output_template): Likewise.
21250 (grub_serial_terminfo_input): Likewise.
21251 (grub_serial_terminfo_output): Likewise.
21252 (registered): Likewise.
21253 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21255 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21257 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21258 grub_video_mode_type_t.
21259 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21260 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21261 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21263 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21265 * util/grub-install.in: Correct the x86-64 name as x86_64.
21267 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21269 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21270 initial chunk read from the kernel always includes GRUB's multiboot
21271 header, which is now outside the first sector.
21273 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21275 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21276 cached mmap_size, so that this works correctly when called multiple
21278 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21280 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21282 * docs/grub.texi (Simple configuration): Tidy up formatting.
21284 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21286 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21287 Set-but-not-used variable removed.
21289 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21291 Workaround yet another IEEE1275 bug.
21293 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21294 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21295 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21296 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21298 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21299 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21301 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21303 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21306 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21308 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21309 empty, since in that case we can only generate either nothing or a
21310 syntactically invalid configuration file.
21311 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21313 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21315 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21316 (Making a GRUB bootable CD-ROM): Likewise.
21317 (Invoking grub-mkrescue): New section.
21318 Reported by: Yann Dirson. Fixes Debian bug #612585.
21320 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21322 * util/grub-install.in: Remove unnecessary brackets from tr
21324 * util/grub.d/10_hurd.in: Likewise.
21325 * util/grub.d/10_kfreebsd.in: Likewise.
21326 * util/grub.d/10_linux.in: Likewise.
21327 * util/grub.d/20_linux_xen.in: Likewise.
21328 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21330 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21332 * include/grub/file.h (not_easly_seekable): Rename to ...
21333 (not_easily_seekable): ... this. Update all users.
21335 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21337 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21340 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21342 * util/grub-mkimage.c (generate_image): Refuse to create the images
21343 bigger than the actual flash (512K) in Loongson machines. 512K is also
21344 the biggest chip supported by them.
21346 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21348 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21350 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21352 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21353 super_offset field.
21355 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21357 * util/grub-install.in: Ignore install device on platforms
21358 where it doesn't make sense. Always use UUIDs except on pc, efi and
21360 Reported by: Daniel Kahn Gillmor.
21362 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21364 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21366 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21368 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21369 (iterate_real): Don't rely on partition being non-NULL.
21371 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21373 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21374 supported platforms. Put a compile time assert for this rather than
21375 generate a warning with 32-bit shift.
21377 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21379 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21380 logical expression more readable.
21382 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21384 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21385 even if some elements have a name.
21386 Reported by: Alexander GQ Gerasiov.
21388 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21390 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21391 path unreadable if `grub-probe -t abstraction' fails, for example if
21392 memberlist fails on an LVM volume group.
21393 Reported by: Darius Jahandarie.
21395 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21397 * docs/grub.texi (Simple configuration): Document
21398 GRUB_PRELOAD_MODULES.
21400 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21402 * .bzrignore: Remove nonexistent grub-pbkdf2.
21404 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21406 * configure.ac: Bump version to 1.99~rc1.
21408 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21410 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21413 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21415 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21418 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21420 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21422 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21424 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21427 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21429 Fix compilation on cygwin.
21431 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21432 -R .drectve on cygwin.
21433 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21434 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21435 (COND_CYGWIN): New condition.
21436 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21437 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21438 not @TARGET_OBJ2ELF@.
21439 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21440 type to determine whether aux is to be used.
21442 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21444 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21445 realpath'ed device string.
21446 Handle floppy (somewhat).
21447 Issue error in unknown case rather than garbage.
21448 Reported by: Axel Beckert.
21450 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21452 * util/grub.d/00_header.in (load_video): Handle the case when no video
21454 Thanks to: Axel Beckert.
21456 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21458 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21459 variable. Fixes problem on big endian platforms.
21461 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21463 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21464 It doesn't work well there.
21466 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21468 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21470 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21471 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21474 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21476 Use alias->path rather than buggy "canon".
21478 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21479 (ofdisk_hash_add): New argument curcan. All users updated.
21481 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21483 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21485 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21487 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21488 loadmask before doing any calculations. Use correct type for offset.
21489 (grub_linux_load64): Likewise.
21491 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21493 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21495 (console_grub_equivalences_unshift): Likewise.
21496 Reported by: Daniel Dehennin.
21498 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21500 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21501 (set_env_limn_ro): Likewise.
21502 (GRUB_MOD_INIT): Likewise.
21503 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21504 ARRAY_SIZE while on it.
21505 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21506 * grub-core/normal/context.c (grub_env_export): Move from here ...
21507 * grub-core/kern/env.c (grub_env_export): ... here.
21508 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21510 * grub-core/kern/main.c (grub_main): Export root and prefix.
21511 * include/grub/env.h (grub_env_export): Export.
21512 Reported by: Seth Goldberg.
21514 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21516 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21517 Take into account space used by ELF sections and multiboot palette.
21518 Reported by: Grégoire Sutre.
21520 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21524 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21526 Pass more appropriate video id to Linux.
21528 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21529 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21531 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21532 shift params->lfb_size.
21533 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21535 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21537 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21539 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21541 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21542 separator and pass bootpath/devid even if only one of them is available.
21543 Reported by: Seth Goldberg.
21545 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21547 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21548 implementations bug on them.
21550 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21552 (filter_memory_map): Likewise.
21554 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21556 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21557 Reported by: nebuchadnezzar.
21559 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21561 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21562 Reported by: nebuchadnezzar.
21564 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21566 Submenu default support.
21568 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21569 auto_boot. All users updated.
21571 Handle chosen and default with submenus.
21572 (grub_menu_execute_with_fallback): Declared static.
21573 Don't notify failure if autobooted. Upper level does it.
21574 (menuentry_eq): New function.
21575 (get_entry_number): Use menuentry_eq.
21576 (show_menu): New parameter "autobooted". All users updated.
21577 (grub_show_menu): Likewise.
21578 * include/grub/normal.h (grub_show_menu): Likewise.
21579 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21580 (grub_menu_execute_with_fallback): Likewise.
21582 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21584 * util/grub-mklayout.c (usage): Update help text.
21586 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21588 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21590 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21592 * util/grub-menulst2cfg.c (main): Trim the line.
21594 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21596 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21597 (grub_machine_init): Don't check amount of low memory as reportedly
21598 INT 12h can be broken and if low memory is too low we wouldn't have
21599 gotten into grub_machine_init anyway.
21601 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21603 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21604 (grub_machine_mmap_iterate): Take low memory into account
21606 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21608 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21610 Reported by: TiCPU.
21612 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21614 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21617 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21619 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21620 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21622 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21624 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21625 openbsd and netbsd types being in part_bsd module.
21627 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21629 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21630 (_FILE_OFFSET_BITS): Likewise.
21631 Reported by: Seth Goldberg.
21633 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21635 * configure.ac: Check for libdevmapper header.
21637 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21639 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21641 (fzap_lookup): Likewise.
21642 (dnode_get): Likewise.
21643 (make_mdn): Likewise.
21644 (zfs_mount): Likewise.
21645 (fzap_iterate): Use temporary pointer to avoid aliasing.
21646 (grub_zfs_read): Likewise.
21647 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21648 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21649 pointers to avoid aliasing.
21650 (grub_cmd_xnu_kernel64): Likewise.
21651 (grub_xnu_load_driver): Likewise.
21653 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21655 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21657 (grub_cmd_terminal_output): Likewise.
21658 Reported and tested by: Grégoire Sutre.
21660 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21662 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21664 Reported and tested by: Grégoire Sutre.
21666 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21668 * configure.ac: Do CPU substitution even if it's specified explicitly.
21669 Reported and tested by: Alain Greppin.
21671 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21673 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21674 Reported and tested by: Alain Greppin.
21676 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21678 Satisfy some bison versions need for inttypes.h.
21680 * grub-core/lib/posix_wrap/inttypes.h: New file.
21681 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21682 (int16_t): Likewise.
21683 (int32_t): Likewise.
21684 (int64_t): Likewise.
21685 Reported and tested by: Alain Greppin.
21687 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21689 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21690 Silence spurious warning.
21691 Reported and tested by: Alain Greppin.
21693 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21695 * docs/grub.texi (Support automatic decompression): Update with xz
21696 decompression support.
21698 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21700 Improve loaders' kernel command line handling.
21702 * grub-core/lib/cmdline.c: New file.
21703 * include/grub/lib/cmdline.h: Likewise.
21704 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21705 grub_create_loader_cmdline to create kernel command line.
21706 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21707 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21708 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21709 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21710 (linux): Add lib/cmdline.c on common.
21712 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21714 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21715 inopos might be unaligned.
21717 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21719 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21720 endian transformations.
21721 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21722 Based on report by: Doug Nazar.
21724 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21726 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21727 array->members[i].start_sector.
21728 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21730 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21732 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21733 Reported and tested by: Grégoire Sutre.
21735 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21737 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21738 avoid causing test failures by clearing the screen.
21740 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21742 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21743 Fix prefix check to handle the case where dir ends with a slash
21744 (most significantly, "/" itself).
21745 Reported by: Michael Vogt.
21747 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21749 Run terminfo_cls on initing terminfo output to clear the screen and
21750 move the cursor to (0,0).
21752 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21753 Call grub_terminfo_output_init.
21754 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21755 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21756 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21758 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21760 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21763 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21765 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21768 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21770 The E820 type 5 is BADRAM, not EXEC_CODE.
21772 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21773 (GRUB_E820_BADRAM): New define.
21774 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21775 into reserved. Propagate BADRAM.
21776 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21777 (GRUB_E820_BADRAM): New define.
21779 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21781 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21782 Ignore the memory post-4G.
21783 (grub_relocator_firmware_alloc_region): Additional debug statement.
21785 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21787 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21789 Reported by: David Pravec.
21791 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21793 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21796 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21798 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21800 (grub_reed_solomon_recover): Likewise.
21802 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21804 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21806 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21808 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21811 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21813 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21814 descriptions of extract_legacy_entries_source and
21815 extract_legacy_entries_configfile.
21816 Reported by: Seung Soo, Ha.
21818 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21820 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21821 on devices that do not implement function 0.
21823 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21825 * grub-core/fs/hfsplus.c: Make parent unsigned.
21826 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21828 (grub_hfsplus_cmp_extkey): Likewise
21830 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21832 * util/grub-install.in: Correctly use bootloader_id and not
21833 GRUB_DISTRIBUTOR on efibootmgr line.
21835 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21837 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21839 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21841 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21842 Xen and reorder menu item wording to make it clearer that this entry
21843 will launch Xen. Print separate messages when loading Xen and
21846 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21848 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21849 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21850 loop in case of incorrect amiga partmap.
21852 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21854 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21855 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21858 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21860 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21862 Reported by: crocket
21864 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21866 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21868 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21870 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21872 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21874 (grub_cmd_xnu_kextdir): Likewise.
21875 (grub_cmd_xnu_splash): Likewise.
21877 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21879 Avoid using Reed-Solomon with 0 redundancy.
21881 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21882 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21884 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21885 (grub_reed_solomon_recover): Likewise.
21887 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21889 Don't use disk subsystem in freebsd_boot.
21891 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21892 (freebsd_biosdev): Likewise.
21893 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21894 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21896 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21898 Handling of files of unknown size is currently limited. They can't be
21899 used e.g. for initrd or modules. Moreover gzip handling of not
21900 easily seekable files is buggy. Disable unknown file size for now. May
21901 be inefficient but works.
21903 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21904 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21906 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21908 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21911 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21913 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21915 2010-12-25 Shea Levy <shlevy>
21917 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21919 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21921 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21922 Windows Server 2008.
21923 Reported by: Devin Giddings.
21925 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21927 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21928 writing an error message because of async power management.
21929 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21930 (grub_reboot): Likewise.
21932 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21934 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21935 keep unit tests from failing when they shouldn't.
21937 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21939 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21940 previous patch increased the size of the RS code by 20 bytes (at
21941 least with gcc-4.4), so increase this by 20 bytes to match.
21942 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21944 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21946 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21947 scratch area. Make sure to initialise chosen in standalone mode as
21948 well as non-standalone.
21949 Reported by: Robert Hooker and Andy Whitcroft.
21950 Tested by: Andy Whitcroft.
21952 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21954 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21955 constructing a new unescaped string and passing it to grub_xputs in
21956 one go, rather than passing characters to grub_printf one at a time.
21958 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21960 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21961 initialising utf16.
21963 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21965 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21966 comment. Add an extra layer of quotation, requiring the output of
21967 this function to be used in a printf format string.
21968 (gettext_printf): New function.
21969 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21970 Extract translatable strings from here-documents and use a temporary
21971 variable instead, so that xgettext can find them.
21972 * util/grub.d/10_kfreebsd.in: Likewise.
21973 * util/grub.d/10_linux.in: Likewise.
21974 * util/grub.d/20_linux_xen.in: Likewise.
21976 * po/grub.d.sed: New file.
21977 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21978 arguments. Set c-format flags on all strings extracted from
21979 util/grub.d/ (xgettext refuses to include these itself for strings
21980 it extracted from a shell file, but these really are c-format).
21982 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21984 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21985 Avoid next pointing to nowhere.
21987 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21989 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21990 rather than assuming than rootblock is exactly in the middle.
21991 (grub_affs_label): Likewise.
21993 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21995 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21996 reserved_first_sector to 0.
21997 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21998 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21999 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
22001 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
22003 Fix handling of UTF-16 UDF labels.
22005 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
22006 (read_string): .. here.
22007 (grub_udf_label): Use read_string.
22009 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
22011 * grub-core/normal/menu_entry.c (run): Execute commands from menu
22012 editor under argument scope.
22013 Reported by: Jordan Uggla
22015 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
22017 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
22019 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
22021 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
22022 line, and other keys scroll an entire page (previous handling was
22023 for \r and \n to scroll a page and other keys to scroll two lines).
22025 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
22027 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
22028 Set ptrdest to correct get_physical_target_address rather than
22029 incorrect get_virtual_current_address.
22031 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
22033 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
22034 correct cat to grub_uint8_t * rather than grub_uint32_t *.
22036 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
22038 * .bzrignore: Ignore grub-core/rs_decoder.S.
22040 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
22042 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
22043 .mo/.mo.gz opening sequence to ...
22044 (grub_mofile_open_lang): ... here.
22045 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
22046 * util/grub.d/00_header.in (grub_lang): Include country part of
22048 Reported by: Mario Limonciello.
22050 2010-12-09 Robert Millan <rmh@gnu.org>
22052 * NEWS: Document addition of ZFS support.
22054 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
22056 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
22057 rather than `/ 2', as the latter requires -Wa,--divide which would
22058 require bumping our minimum binutils version.
22060 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
22062 * util/grub-script-check.c (main): Print script line number on
22065 2010-12-01 Robert Millan <rmh@gnu.org>
22067 * grub-core/fs/zfs/zfs.c: New file.
22068 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
22069 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
22070 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
22071 * grub-core/fs/zfs/zfsinfo.c: Likewise.
22073 * include/grub/zfs/dmu.h: Likewise.
22074 * include/grub/zfs/dmu_objset.h: Likewise.
22075 * include/grub/zfs/dnode.h: Likewise.
22076 * include/grub/zfs/dsl_dataset.h: Likewise.
22077 * include/grub/zfs/dsl_dir.h: Likewise.
22078 * include/grub/zfs/sa_impl.h: Likewise.
22079 * include/grub/zfs/spa.h: Likewise.
22080 * include/grub/zfs/uberblock_impl.h: Likewise.
22081 * include/grub/zfs/vdev_impl.h: Likewise.
22082 * include/grub/zfs/zap_impl.h: Likewise.
22083 * include/grub/zfs/zap_leaf.h: Likewise.
22084 * include/grub/zfs/zfs.h: Likewise.
22085 * include/grub/zfs/zfs_acl.h: Likewise.
22086 * include/grub/zfs/zfs_znode.h: Likewise.
22087 * include/grub/zfs/zil.h: Likewise.
22088 * include/grub/zfs/zio.h: Likewise.
22089 * include/grub/zfs/zio_checksum.h: Likewise.
22091 * Makefile.util.def: Build ZFS into libgrubmods.
22092 * grub-core/Makefile.core.def: Build zfs.mod.
22094 2010-11-30 Szymon Janc <szymon@janc.net.pl>
22096 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
22098 * grub-core/commands/wildcard.c (match_files): Likewise.
22100 2010-11-30 Robert Millan <rmh@gnu.org>
22102 * grub-core/loader/i386/bsd.c
22103 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
22104 whether kernel is loaded using grub_loader_is_loaded(), rather
22105 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
22106 certain error conditions.
22108 2010-11-30 Robert Millan <rmh@gnu.org>
22110 * grub-core/commands/echo.c: Include `<grub/term.h>'.
22111 (grub_cmd_echo): Call grub_refresh() after printing a message.
22113 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22115 Avoid using tricks for initialising endian variables.
22117 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
22119 (GRUB_MOD_INIT): Don't byte-swap.
22120 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22121 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
22122 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
22123 (grub_swap_bytes32_compile_time): Likewise.
22124 (grub_cpu_to_le32_compile_time): Likewise.
22125 (grub_cpu_to_le16_compile_time): Likewise.
22127 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22129 * util/grub-setup.c (setup): Stop recommending --force. People who
22130 understand the dangers of blocklists are able to find this option
22131 anyway and the ones who don't shouldn't use it anyway.
22133 2010-11-26 Robert Millan <rmh@gnu.org>
22135 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
22138 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
22140 Fix LVM-on-RAID probing.
22142 * util/grub-probe.c (probe): Remember which disk was detected as
22143 RAID (perhaps an LVM physical volume). Use that disk's raidname
22144 rather than that of the top-level disk.
22146 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
22148 Fix cmdline argument quotes for setparams command of menuentry
22151 * grub-core/commands/menuentry.c (setparams_prefix): Use single
22152 quotes for arguments.
22153 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
22154 grub_strchrsub function instead.
22156 * include/grub/misc.h (grub_strchrsub): New function.
22158 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22160 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
22161 effort by skipping "." and ".." entries up-front.
22162 Suggested by: Michael Lazarev.
22164 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22166 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
22167 ldflags to ldadd, to fix link line ordering.
22168 (none_decompress): Likewise.
22170 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22172 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22174 (grub-emu-lite): Remove kern/emu/cache.S.
22176 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22178 * util/deviceiter.c (compare_devices): If the by-id link for a
22179 device couldn't be resolved, fall back to sorting by the by-id link
22180 rather than segfaulting.
22181 Reported and tested by: Daniel Mierswa.
22183 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22185 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22186 ldflags, to fix link line ordering.
22188 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22190 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22191 linkers are picky about this.
22193 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22195 * grub-core/Makefile.am (command.lst): Adjust sed expression
22196 ordering so that extended and priority commands aren't treated as
22199 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22201 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22202 Remove byte-swapping function calls, which are not valid in
22203 structure initialisers.
22204 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22206 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22207 grub_gpt_partition_type_bios_boot.
22209 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22211 Fix test program build on GNU/kFreeBSD.
22213 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22214 $(LIBNVPAIR)' library dependencies.
22216 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22218 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22220 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22222 * util/grub-install.in: Remove excessive quoting that broke
22223 installations to RAID devices.
22225 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22227 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22228 bootloader version instead of 0.
22230 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22232 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22235 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22237 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22238 retrieve the metadat sector if size isn't known.
22239 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22241 2010-11-18 Robert Millan <rmh@gnu.org>
22243 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22244 with grub_memcmp().
22246 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22248 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22250 Reported by: Jordan Uggla.
22252 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22254 Make better UTF compliant.
22256 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22257 sequences as incorrect.
22258 (grub_is_valid_utf8): Likewise.
22259 (grub_utf8_to_ucs4): Likewise.
22260 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22261 (grub_ucs4_to_utf8_alloc): Likewise.
22262 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22264 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22266 Make legacy_source behave like source.
22268 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22270 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22272 2010-11-16 Colin Watson <cjwatson@debian.org>
22274 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22275 (-Wunused implies -Wunused-parameter, but not vice versa).
22277 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22279 * configure.ac: Make error messages less confusing by testing for
22280 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22281 accepted, but produces a diagnostic if something else is wrong).
22283 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22285 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22286 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22288 (grub_keyboard_controller_init)
22289 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22290 read the initial state since controller isn't inited yet.
22292 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22294 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22295 allocate_regbeg may need to create new chunk header.
22297 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22299 Fix quoting in legacy parser.
22301 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22303 (grub_legacy_parse): Likewise.
22304 Reported by: Jordan Uggla.
22305 Tested by: Jordan Uggla.
22307 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22309 Don't add -lgcc on i386 and x86_64.
22311 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22312 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22313 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22315 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22317 * configure.ac: Add -Wno-trampolines when supported.
22319 2010-11-14 Modestas Vainius <modax@debian.org>
22321 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22324 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22326 Add generic logical block size support for UDF.
22328 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22329 (GRUB_UDF_BLKSZ): Removed.
22330 (struct grub_udf_data): New field "lbshift" to hold the logical block
22331 size of the file system in log2 format. All users updated.
22332 (sblocklist): Change type to unsigned.
22333 (grub_udf_mount): Change type of "sblklist" to unsigned.
22334 Move AVDP search before VRS recognition, because the latter requires
22335 knowledge of the logical block size, which is detected during the
22337 Detect and validate logical block size during AVDP search, adding
22338 support for block sizes 512, 1024 and 4096.
22339 Make VRS recognition independent of block size.
22341 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22343 Properly handle deleted files on UDF.
22345 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22346 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22349 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22351 Support reading files larger than 2 GiB.
22353 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22354 "offset" to grub_off_t.
22355 (grub_udf_read_file): Likewise for parameter "pos".
22357 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22359 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22361 (Simple configuration): Refer to Changes from GRUB Legacy about
22362 save_env availability.
22364 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22366 * util/grub-install.in: Ignore empty partition table detection
22367 instead of trying to include part_ module.
22369 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22371 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22372 LVM on RAID support.
22374 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22376 Properly define WORDS_BIGENDIAN in wrapped environments.
22378 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22380 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22382 Reported by: Manoel Rebelo Abranches.
22383 Tested by: Manoel Rebelo Abranches.
22385 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22387 * util/grub-mkconfig.in: Fix quoting.
22389 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22391 Support big ext2 files.
22393 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22394 (grub_ext2_read_block): Support triple indirect blocks.
22395 (grub_ext2_read_file): Use 64-bit types and read size_high.
22396 (grub_ext2_open): Read size_high.
22397 Reported by: Ximin Luo.
22398 Tested by: Manoel Rebelo Abranches.
22400 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22402 * util/grub-install.in: Handle filenames containing spaces.
22403 Reported by: Jordan Uggla.
22404 Tested by: Jordan Uggla.
22406 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22408 * util/grub-mkconfig.in (grub_script_check): New variable.
22409 Use grub_script_check instead of grub-script-check.
22410 Reported by: Barry Jackson.
22412 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22414 * docs/grub.texi (menu): Correct the order.
22415 Reported by: D. Hugh Redelmeier.
22417 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22419 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22422 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22424 * include/grub/elfload.h (grub_elf32_size): New parameter.
22426 Return maximum segments alignment.
22427 (grub_elf64_size): Likewise.
22428 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22429 Return maximum segments alignment.
22430 (grub_elf64_size): Likewise.
22431 * grub-core/loader/powerpc/ieee1275/linux.c:
22432 (grub_linux_claimmap_iterate): New function. Uses the
22433 "available" property in the "memory" node for memory allocation
22434 for kernel in the PowerPC loader.
22435 (grub_linux_load32): Correctly find linux entry point offset.
22436 (grub_linux_load64): Likewise.
22438 2010-11-07 Robert Millan <rmh@gnu.org>
22440 On mips-yeeloong, build with -march=loongson2f when this flag is
22441 available (GCC >= 4.4).
22442 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22444 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22445 or otherwise add -march=mips3.
22447 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22449 Suppress shell expansion on echo '*' and echo "*" like cases.
22450 Reported by: Jordan Uggla.
22452 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22453 string arguments before shell expansion.
22454 * tests/grub_cmd_echo.in: New testcases.
22456 2010-11-07 Robert Millan <rmh@gnu.org>
22458 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22461 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22463 * grub-core/kern/emu/hostdisk.c
22464 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22466 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22468 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22469 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22470 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22472 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22474 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22476 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22478 * util/grub-install.in: Replace useless recomendation to pass
22479 --modules with a recomendation to report a bug.
22481 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22483 Properly register serial terminfo.
22484 Reported by: Jordan Uggla
22486 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22488 (grub_serial_terminfo_output_template): Likewise.
22489 (grub_cmd_serial): Register "serial" with terminfo.
22490 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22491 grub_serial_terminfo_output.
22493 2010-11-05 Robert Millan <rmh@gnu.org>
22495 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22498 2010-11-05 Robert Millan <rmh@gnu.org>
22500 On Yeeloong, pass machine type information to Linux.
22502 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22503 (LOONGSON_MACHTYPE): New macro, set to
22504 "machtype=lemote-yeeloong-2f-8.9inches".
22505 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22506 additional argument to Linux.
22508 2010-11-04 Robert Millan <rmh@gnu.org>
22510 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22511 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22512 (its SATA disks are detected as slaveless IDE master drives on
22514 Reported by Carsten Aulbert.
22516 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22518 * util/bin2h.c (main): Fix spelling error in generated output.
22520 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22522 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22524 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22526 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22527 vga= option is supplied.
22529 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22531 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22532 * util/grub.d/10_kfreebsd.in: Likewise.
22533 * util/grub.d/10_linux.in: Likewise.
22534 * util/grub.d/20_linux_xen.in: Likewise.
22536 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22538 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22539 argument as an argument to no-argument option.
22541 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22543 * util/grub.d/10_linux.in: Add missing load_video with explicit
22544 GRUB_GFXPAYLOAD_LINUX.
22546 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22548 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22550 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22552 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22553 elements with invlid index.
22554 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22555 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22557 * include/grub/raid.h (grub_raid_member): New struct.
22558 (grub_raid_array): Transform devices and start_sector into usage of
22559 grub_raid_member. All users updated
22560 (allocated_devs): New member.
22562 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22564 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22567 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22569 NetBSD build fix for getline function conflict from gnulib.
22571 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22572 components that depend on gnulib headers.
22573 (libgrubmods.a): Renamed from earlier libgrub.a.
22574 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22576 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22578 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22579 install rather than creating a broken install.
22581 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22583 * util/grub-setup.c (argp): Remove misleading example of installing to
22586 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22588 * util/grub-setup.c (setup): Clarify the error message.
22590 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22592 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22594 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22596 * grub-core/kern/emu/misc.c
22597 (grub_make_system_path_relative_to_its_root)
22598 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22600 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22602 * grub-core/kern/emu/misc.c
22603 (grub_make_system_path_relative_to_its_root): Revert r2882.
22605 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22607 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22608 useless field head. All users updated.
22609 (free_subchunk): Correct handling of IN_REGION subchunk.
22611 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22613 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22614 (Supported kernels): Likewise.
22616 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22618 Make mktemp invocations portable.
22620 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22621 exit if mktemp fails.
22622 * tests/grub_script_blockarg.in: Likewise.
22623 * tests/partmap_test.in: Likewise.
22624 * tests/util/grub-shell-tester.in: Likewise.
22625 * tests/util/grub-shell.in: Likewise.
22626 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22627 * Makefile.am: Likewise, and chain shell commands with `&&'
22629 * util/grub-mkrescue.in: Use the same explicit template as above, and
22630 exit if mktemp fails.
22632 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22634 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22635 Linux kernel, reported by Dennis Schridde.
22637 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22639 * grub-core/normal/auth.c (grub_auth_check_authentication):
22640 Set-but-not-used variable removed.
22642 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22644 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22645 32-bit linux protocol.
22647 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22649 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22650 cursor shape for sanity.
22652 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22654 * docs/grub.texi (Installation): Document buggy BIOS install.
22656 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22658 * docs/grub.texi (Installation): Indent.
22660 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22662 * util/grub-setup.c (setup): New parameter allow_floppy.
22663 (arguments): New member allow_floppy.
22664 (argp_parser): Handle --allow-floppy.
22665 (main): Pass allow_floppy.
22666 * util/grub-install.in: New option --allow-floppy passed though to
22669 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22671 * util/grub-install.in: Handle partitionless disks.
22673 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22675 * util/grub-setup.c (setup): Don't clean blocklists before readability
22678 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22680 * docs/grub.texi (Installation): Document embedding zone. Remove
22681 obsolete grub-install example.
22683 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22685 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22686 Set-but-not-used variable ifdef'ed.
22687 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22688 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22690 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22691 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22692 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22693 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22694 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22695 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22696 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22697 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22698 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22699 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22700 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22703 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22705 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22706 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22709 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22711 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22712 synonym to _S5_. Needed for some DSDTs.
22714 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22716 Userspace ACPI parser debugging.
22718 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22719 headers and add relevant defines. Don't include standard headers.
22720 (main) [GRUB_DSDT_TEST]: New function.
22721 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22722 Don't declare functions.
22724 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22726 Remove dead grub_efi_mm_fini.
22728 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22729 (ALLOCATED_PAGES_SIZE): Likewise.
22730 (MAX_ALLOCATED_PAGES): Likewise.
22731 (allocated_pages): Likewise.
22732 (grub_efi_allocate_pages): Don't record allocated pages.
22733 (grub_efi_free_pages): Likewise.
22734 (grub_efi_mm_init): Likewise.
22735 (grub_efi_mm_fini): Removed.
22737 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22739 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22740 (grub_efi_mm_init): Take into account the memory map size increase.
22742 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22744 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22745 (serial_hw_put): Wait based on real time rather than port reads. Don't
22747 * include/grub/serial.h (grub_serial_port): New field broken.
22749 2010-10-16 Robert Millan <rmh@gnu.org>
22751 * grub-core/kern/emu/misc.c
22752 (grub_make_system_path_relative_to_its_root): Fix premature return
22753 when processing non-root ZFS filesystems.
22754 Reported by Sergio Talens-Oliag.
22756 2010-10-15 Robert Millan <rmh@gnu.org>
22758 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22759 guarantee compressed ones are processed first.
22761 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22763 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22764 grub_efiemu_autocore.
22766 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22768 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22770 (grub_console_getkey): Use correct jae opcode rather than ja.
22772 2010-10-12 Robert Millan <rmh@gnu.org>
22774 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22775 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22776 variable. All references updated.
22778 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22780 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22782 Correctly distinguish mdraid flavours.
22784 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22785 (insert_array): New argument raid.
22786 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22787 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22788 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22790 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22792 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22793 handling of special keys.
22795 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22797 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22798 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22800 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22802 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22803 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22805 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22806 Use right endpoint when querying descriptor.
22808 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22810 Clear out 0x80 color bit on EFI.
22812 Reported by: decoder and meta tech.
22814 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22815 (grub_console_setcolorstate): Clear out 0x80 bit.
22816 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22817 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22818 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22820 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22822 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22825 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22827 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22828 mo_file after freeing.
22830 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22832 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22834 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22836 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22839 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22841 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22844 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22846 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22848 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22849 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22850 and terminfo.h when needed.
22851 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22852 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22853 (terminfo): Enable only on terminfokernel.
22854 (extcmd): Likewise.
22855 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22856 * include/grub/lib/arg.h: Likewise.
22857 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22858 incorrect usage of ->.
22860 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22862 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22863 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22865 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22867 Fix coreboot compilation.
22869 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22870 Take VBE info into account even if only text is supported.
22871 (fill_vbe_info): Take into account the case when only VGA text
22873 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22874 on coreboot, multiboot and qemu.
22876 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22878 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22880 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22882 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22884 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22887 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22889 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22890 if they were BSD-style.
22892 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22894 * grub-core/boot/i386/pc/lnxboot.S: Replace
22895 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22896 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22898 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22900 Write embedding zone using Reed-Solomon.
22902 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22903 * grub-core/Makefile.am (rs_decoder.S): New target.
22904 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22905 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22906 (multiboot): Move to RS part.
22907 (post_reed_solomon): New label.
22908 (grub_boot_drive): Move to non-RS part since it's modified in memory
22910 Include rs_decoder.S.
22911 * grub-core/lib/reed_solomon.c: New file.
22912 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22914 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22915 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22916 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22917 * include/grub/partition.h (grub_partition_map): Change prototype of
22918 embed to allow returning additional sectors.
22919 * include/grub/reed_solomon.h: New file.
22920 * util/grub-setup.c (setup): Handle Reed-Solomon.
22922 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22924 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22925 i386 and x86-64 definedness tests.
22927 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22929 Fix generation of kernel_syms.lst
22931 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22934 2010-09-26 Robert Millan <rmh@gnu.org>
22936 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22938 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22939 the pool is an array of devices, iterate through it and return the
22940 first device that passes a stat() test (instead of blindly returning
22943 2010-09-26 Robert Millan <rmh@gnu.org>
22945 Build fixes for GNU/kFreeBSD.
22947 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22948 to programs that require ZFS conversion.
22949 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22950 kernels that don't have FLOPPY_MAJOR.
22952 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22954 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22956 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22958 Fix grub-emu build.
22960 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22961 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22962 mdraid09 and mdraid1x.
22964 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22966 Re-enable grub-extras.
22968 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22969 avoid confusing Automake. Run autogen only twice, once for the top
22970 level and once for grub-core. Add Makefile.util.def and
22971 Makefile.core.def from extra modules to the appropriate autogen
22972 invocations. If Makefile.common exists in an extra module, include
22973 it in both Makefile.util.am and grub-core/Makefile.core.am;
22974 similarly, include any Makefile.util.common file in Makefile.util.am
22975 and any Makefile.core.common file in grub-core/Makefile.core.am.
22976 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22977 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22978 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22979 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22981 * gentpl.py (gvar_add): Turn GVARS into a set.
22982 (global_variable_initializers): Sort global variables on output.
22983 (vars_init): New function.
22984 (first_time): Likewise.
22985 (library): Ensure that non-global variable initialisations are
22986 emitted before the first time we emit code for a library block.
22987 Append to variables rather than setting them. Only emit
22988 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22989 each conditional path.
22990 (program): installdir() emits an Autogen macro, so must be passed to
22991 var_add rather than gvar_add.
22993 (script): Likewise.
22994 (rules): New function, centralising handling for different target
22995 types. Set up Guile association lists for first_time and vars_init,
22996 and send most output to a diversion so that variable initialisations
22997 can be emitted first.
22998 (module_rules): Use new rules function.
22999 (kernel_rules): Likewise.
23000 (image_rules): Likewise.
23001 (library_rules): Likewise.
23002 (program_rules): Likewise.
23003 (script_rules): Likewise.
23004 (data_rules): Likewise.
23006 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
23008 * .bzrignore: Add contrib and grub-core/contrib. Remove
23009 grub-core/Makefile.gcry.am.
23011 2010-09-24 Yves Blusseau <blusseau@zetam.org>
23013 * grub-core/lib/LzFind.c: Add missing include.
23014 * grub-core/lib/LzmaEnc.c: Likewise.
23015 * grub-core/script/lexer.c: Likewise.
23016 * grub-core/script/yylex.l: Likewise.
23017 * util/grub-macho2img.c: Likewise.
23018 * util/grub-menulst2cfg.c: Likewise.
23019 * util/grub-mklayout.c: Likewise.
23020 * util/grub-mkpasswd-pbkdf2.c
23021 * util/grub-mkrelpath.c: Likewise.
23022 * util/resolve.c: Likewise.
23024 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
23026 * Makefile.util.def (example_unit_test): Add
23027 grub-core/gnulib/libgnu.a.
23029 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
23031 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
23033 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
23035 Support xz compression on yeeloong.
23037 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
23038 * configure.ac: Check for LZMA.
23039 * grub-core/Makefile.core.def (xz_decompress): New target.
23040 (none_decompress): Likewise.
23041 * grub-core/boot/decompressor/minilib.c: New file.
23042 * grub-core/boot/decompressor/none.c: Likewise.
23043 * grub-core/boot/decompressor/xz.c: Likewise.
23044 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
23045 * grub-core/kern/mips/cache_flush.S: Likewise.
23046 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
23047 * grub-core/kern/mips/startup.S: Move first stage to ...
23048 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
23050 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
23051 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
23052 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
23053 Allocate statically.
23054 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
23055 Allocate statically or use scratch. Don't check CRC32.
23056 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
23057 Allocate statically. Don't check CRC32.
23058 * include/grub/decompressor.h: New file.
23059 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
23061 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
23062 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
23063 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
23064 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
23065 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
23066 * util/grub-mkimage.c (grub_compression_t): New type.
23067 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
23068 (image_target_desc): New field default_compression.
23069 (image_targets): Adjust yeeloong targets.
23070 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
23071 (compress_kernel): New parameter comp.
23072 (generate_image): Likewise. Handle new compression case.
23073 (options): New option --compression
23075 (main): Handle new option.
23077 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
23079 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
23081 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
23083 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
23084 typo in __i386__ conditional.
23086 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
23088 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
23091 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
23093 Implement EFI and ACPI multiboot2 extensions.
23095 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
23096 new tags as supported.
23097 (acpiv2_size): New function.
23098 (grub_multiboot_get_mbi_size): Take new tags into account.
23099 (grub_multiboot_make_mbi): Add new tags.
23100 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
23102 2010-09-21 Aleš Nesrsta <starous@volny.cz>
23104 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
23105 Added missing configuration of USB device.
23107 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23109 * grub-core/normal/menu_entry.c (run): Make sure we always return
23112 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23114 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
23115 NumberOfPages is UINT64 according to the UEFI specification, not
23116 UINTN. Fix printf format.
23118 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23120 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
23121 `err' to grub_usb_err_t.
23122 Reported and tested by: KESHAV P.R.
23124 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23126 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
23127 tpart non-const, so that we can assign to it. (Since this is a
23128 typedef, the constness refers to the pointer rather than what it
23131 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23133 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
23134 $(top_srcdir)/grub-core/gnulib as well as
23135 $(top_builddir)/grub-core/gnulib.
23136 Reported by: KESHAV P.R.
23138 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23140 * util/grub-install.in: Fix the bootloader ID option to be
23141 consistently --bootloader-id, not --bootloader_id.
23142 Reported by: KESHAV P.R.
23144 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23146 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
23147 check hash checksum." consistently translatable.
23149 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23151 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
23154 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23156 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
23157 (GRUB_MOD_INIT): Register sha1sum command.
23158 (GRUB_MOD_FINI): Unregister sha1sum command.
23160 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23162 Keep boot and grub directory names in sync with utils scripts
23164 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
23165 * config.h.in: Add previous macros.
23166 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
23167 * util/grub-install.in: Use $bootdir and $grubdir variables.
23169 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23171 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23172 convert partition names to disk names if the new `convert' parameter
23174 (grub_util_biosdisk_get_grub_dev): If opening the disk device
23175 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23176 disk in its own right. This can happen with Xen disk images.
23178 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23180 * util/grub-editenv.c: Update strings to avoid warnings when generating
23182 * util/grub-setup.c: Likewise.
23184 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23186 * configure.ac: Change version to 1.99~beta0.
23188 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23190 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23192 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23194 * include/multiboot.h: Resynced with specification.
23195 * include/multiboot2.h: Likewise.
23197 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23199 Fix po directory handling.
23201 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23202 * grub-core/gnulib/Makefile.am: Import gettext module.
23203 * m4/gnulib-cache.m4: Likewise.
23204 * m4/gnulib-comp.m4: Likewise.
23205 * m4/gettext.m4: New file, from gnulib.
23206 * m4/glibc2.m4: Likewise.
23207 * m4/iconv.m4: Likewise.
23208 * m4/intdiv0.m4: Likewise.
23209 * m4/intl.m4: Likewise.
23210 * m4/intldir.m4: Likewise.
23211 * m4/intlmacosx.m4: Likewise.
23212 * m4/intmax.m4: Likewise.
23213 * m4/inttypes-pri.m4: Likewise.
23214 * m4/lcmessage.m4: Likewise.
23215 * m4/lib-ld.m4: Likewise.
23216 * m4/lib-link.m4: Likewise.
23217 * m4/lib-prefix.m4: Likewise.
23218 * m4/lock.m4: Likewise.
23219 * m4/nls.m4: Likewise.
23220 * m4/po.m4: Likewise.
23221 * m4/printf-posix.m4: Likewise.
23222 * m4/progtest.m4: Likewise.
23223 * m4/threadlib.m4: Likewise.
23224 * m4/uintmax_t.m4: Likewise.
23225 * m4/visibility.m4: Likewise.
23226 * po/Makefile.am: Remove.
23227 * po/Makefile.in.in: New file, from gettext.
23228 ($(DOMAIN).pot-update): Support POTFILES-shell.
23229 * po/Makevars: New file.
23230 * po/POTFILES-shell: Rename to ...
23231 * po/POTFILES-shell.in: ... this. Update.
23232 * po/POTFILES: Rename to ...
23233 * po/POTFILES.in: ... this. Update.
23234 * po/Rules-quot: New file, from gettext.
23235 * po/boldquot.sed: Likewise.
23236 * po/en@boldquot.header: Likewise.
23237 * po/en@quot.header: Likewise.
23238 * po/insert-header.sin: Likewise.
23239 * po/quot.sed: Likewise.
23240 * po/remove-potcdate.sin: Likewise.
23242 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23244 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23246 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23248 * util/grub.d/20_linux_xen.in: Use submenus.
23250 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23254 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23255 parameter submenu. All users updated.
23256 * grub-core/normal/main.c (free_menu): Rename to ...
23257 (grub_normal_free_menu): ... this. Made global.
23258 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23260 * grub-core/normal/menu_entry.c (screen): New field submenu.
23261 (make_screen): Set submenu.
23262 (run): Open new context if requested.
23263 * include/grub/menu.h (grub_menu_entry): New field submenu.
23264 * include/grub/normal.h (grub_normal_free_menu): New proto.
23266 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23268 Menu entries extractor.
23270 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23272 (GRUB_MOD_INIT): Register new variants.
23273 (GRUB_MOD_FINI): Unregister new variants.
23274 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23275 into grub_cmd_legacy_source.
23276 (grub_cmd_legacy_source): Implement extractor variants.
23277 (GRUB_MOD_INIT): Register new variants.
23278 (GRUB_MOD_FINI): Unregister new variants.
23279 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23281 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23282 search as an extractor.
23283 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23284 test as an extractor.
23285 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23287 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23288 (grub_env_new_context): New function.
23289 (grub_env_context_open): Likewise.
23290 (grub_env_extractor_open): Likewise.
23291 (grub_env_extractor_close): Likewise.
23292 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23293 grub_extractor_level.
23294 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23295 * include/grub/env.h (grub_env_extractor_open): New proto.
23296 (grub_env_extractor_close): Likewise.
23297 * include/grub/normal.h (grub_extractor_level): New external variable.
23299 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23301 Make cutmem accept a region specification.
23302 Suggested by: Samuel Thibault
23304 * grub-core/mmap/mmap.c (parsemem): New function.
23305 (grub_cmd_cutmem): Handle new arguments.
23307 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23309 New command cutmem.
23311 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23312 (GRUB_MOD_INIT): Register new command.
23313 (GRUB_MOD_FINI): Unregister new command.
23315 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23317 Support some annoying BSD and Minix subpartitions.
23319 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23320 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23321 Properly handle concatenation.
23322 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23323 * grub-core/normal/completion.c (iterate_partition): Likewise.
23324 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23325 contain partition. All users updated.
23326 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23328 (grub_openbsdlabel_partition_map): Likewise.
23329 (bsdlabel_partition_map_iterate): Rename to ..
23330 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23331 (bsdlabel_partition_map_iterate): New function.
23332 (netopenbsdlabel_partition_map_iterate): Likewise.
23333 (netbsdlabel_partition_map_iterate): Likewise.
23334 (openbsdlabel_partition_map_iterate): Likewise.
23335 (GRUB_MOD_INIT): Register new partmaps.
23336 (GRUB_MOD_FINI): Unregister new partmaps.
23337 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23338 (grub_partition_msdos_iterate): ... this. All users updated.
23339 Don't support embedding other than in a minix partition.
23340 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23342 * include/grub/partition.h (grub_partition): New field msdostype.
23343 * util/grub-install.in: Handle openbsd and netbsd types being in
23346 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23348 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23350 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23351 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23352 (mdraid09): ... this.
23353 (mdraid1x): New module.
23354 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23355 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23357 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23359 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23362 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23364 * grub-core/commands/efi/lsefimmap.c: Correct header.
23367 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23369 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23370 as printf format strings; the translations might contain '%' which
23371 could cause a crash.
23373 * util/grub-fstest.c (argp_parser): Likewise.
23374 * util/grub-setup.c (argp_parser): Likewise.
23377 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23379 Use argp in grub-fstest.
23381 * util/grub-fstest.c: Don't include getopt.h.
23383 (root): New variable.
23384 (args_count): Likewise.
23386 (num_disks): Likewise.
23387 (images): Likewise.
23389 (debug_str): Likewise.
23391 (options): Transformed to argp.
23393 (main): Split argument parsing into ...
23394 (argp_parser): ... this. Changed to argp format.
23395 (argp): New variable.
23396 (main): Use argp_parse.
23398 2010-09-20 Tristan Gingold <gingold@free.fr>
23399 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23400 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23402 * grub-core/commands/efi/lsefimmap.c: New file.
23403 * grub-core/Makefile.core.def (lsefimmap): New module.
23404 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23406 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23408 Pause the execution (10s max) if any errors are displayed so the user
23409 has a chance to see them.
23411 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23412 (grub_print_error): Increment grub_err_printed_errors.
23413 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23414 execution if any errors were displayed.
23415 (show_menu): Remove old code for pause.
23416 * grub-core/normal/menu_entry.c (run): Likewise.
23417 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23419 (grub_normal_get_char_counter): Likewise.
23420 * include/grub/err.h (grub_err_printed_errors): New external variable.
23421 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23423 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23425 Support multiboot VBE info.
23427 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23428 Take VBE info into account.
23429 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23430 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23431 Call fill_vbe_info when appropriate.
23432 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23433 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23435 (grub_multiboot_get_mbi_size): Take new tags into account.
23436 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23437 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23438 Call fill_vbe_tag when appropriate.
23439 (grub_multiboot_make_mbi): Properly align tags.
23440 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23442 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23444 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23446 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23448 Suport manual terminal geometry specification.
23450 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23451 Save state in grub_ofconsole_terminfo_output.
23452 (grub_ofconsole_term): Use grub_terminfo_getwh.
23453 (grub_ofconsole_getwh): Removed.
23454 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23455 (grub_serial_term): Use grub_terminfo_getwh.
23456 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23457 (options): New struct.
23458 (OPTION_*): New enum.
23459 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23460 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23462 (grub_terminfo_getwh): New proto.
23463 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23465 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23467 Handle legacy "terminal" command.
23469 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23471 (legacy_commands): Add terminal and title.
23472 (grub_legacy_parse): Handle terminal. Simplify title handling.
23474 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23476 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23477 parameters overflow.
23479 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23481 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23484 * docs/grub.texi (Shell-like scripting): Document `!'.
23485 (Network): Simplify using new i386-pc-pxe format. Mention
23490 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23492 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23493 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23496 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23498 * grub-core/commands/efi/lsefisystab.c: Correct header.
23499 * grub-core/commands/efi/lssal.c: Likewise.
23500 * grub-core/commands/testload.c: Likewise.
23502 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23504 * util/grub-mkrescue.in: Add explicit root argument to --set to
23505 prevent the UUID being interpreted as an argument to --set (matches
23506 previous change to prepare_grub_to_access_device).
23508 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23510 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23511 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23512 the verbosity of later #ifs.
23513 (find_partition_start): Define this function on FreeBSD too.
23514 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23516 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23519 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23521 * util/grub-editenv.c: Use argp instead of getopt.
23523 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23525 * util/grub-setup.c: Use argp instead of getopt.
23527 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23529 Use gnulib-tool to create gnulib source files.
23531 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23532 grub-core/gnulib directories
23533 * .bzignore: Add **/.deps and autogenerated gnulib files
23534 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23535 of gnulib macros, add grub-core/gnulib/Makefile
23536 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23537 include m4 directory to aclocal.
23538 * Makefile.util.def: Remove direct compilation of gnulib source files
23539 and use the new grub-core/gnulib/libgnu.a.
23540 * build-aux/config.rpath: move config.rpath from top directory to
23542 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23544 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23545 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23546 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23548 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23551 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23553 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23554 grub-core/genmod.sh and grub-core/gensyminfo.sh
23556 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23558 Add a test for echo command options.
23560 * tests/grub_cmd_echo.in: New test.
23561 * Makefile.util.def: Rules for new test.
23563 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23565 Remove crc.mod and move crc command to hashsum.mod.
23566 Remove lib/crc.c - users updated to use gcrypt implementation.
23568 * grub-core/commands/crc.c: Removed.
23569 * grub-core/Makefile.core.def (crc): Module removed.
23570 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23571 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23572 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23573 * grub-core/lib/crc.c: Removed.
23574 * include/grub/lib/crc.h: Removed.
23575 * Makefile.util.def (crc): Remove lib/crc.c
23576 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23577 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23578 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23579 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23580 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23581 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23583 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23585 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23587 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23589 Split config.h for util and core.
23591 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23592 (ADDR32): Likewise.
23593 (DATA32): Likewise.
23594 (BSS_START_SYMBOL): Likewise.
23595 (END_SYMBOL): Likewise.
23596 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23597 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23598 * config.h.in: New file.
23599 * configure.ac: Use config-util.h as config define file.
23600 Rename MACHINE into GRUB_MACHINE. All users updated.
23601 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23603 (NESTED_FUNC_ATTR): Likewise.
23604 Substitue new variables.
23605 (COND_HAVE_ASM_USCORE): New conditional.
23606 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23607 (kernel_syms.lst): Use ASM_PREFIX.
23608 * grub-core/kern/emu/console.c: Include config-util.h.
23609 * grub-core/kern/emu/misc.c: Likewise.
23610 * grub-core/kern/emu/mm.c: Likewise.
23611 * include/grub/emu/misc.h: Likewise.
23612 * include/grub/libgcc.h: Likewise.
23614 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23616 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23618 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23619 Fix GRUB_TERM_KEY_* constants usage.
23620 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23622 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23624 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23626 * grub-core/bus/usb/uhci.c: Remove empty define.
23627 (grub_uhci_check_transfer): Add missing cast.
23628 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23630 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23632 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23634 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23636 * grub-core/Makefile.core.def (legacycfg): Add
23637 lib/i386/pc/vesa_modes_table.c on emu.
23639 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23641 Reduce number of temporary files generated by build system.
23643 * grub-core/gencmdlist.sh: Removed.
23644 * grub-core/genfslist.sh: Removed.
23645 * grub-core/genhandlerlist.sh: Removed.
23646 * grub-core/genmodsrc.sh: Removed.
23647 * grub-core/genpartmaplist.sh: Removed.
23648 * grub-core/genparttoollist.sh: Removed.
23649 * grub-core/gentermiinallist.sh: Removed.
23650 * grub-core/genvideolist.sh: Removed.
23652 * grub-core/genmod.sh.in: New file.
23653 * grub-core/gensyminfo.sh.in: New file.
23655 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23656 * conf/Makefile.extra-dist: Update with new files.
23657 * gentpl.py: Remove rules related to unnecessary temporary files.
23658 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23660 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23662 * grub-core/bus/usb/uhci.c: Remove empty #define.
23663 * grub-core/genmoddep.awk: Updated with new syminfo format.
23664 * util/bash-completion.d/Makefile.am: Add config.log to
23667 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23669 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23671 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23673 * util/grub-mkconfig.in: Check the config script for syntax errors
23676 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23677 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23679 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23681 * util/grub-install.in: Add EFI and IEEE1275 support.
23682 * util/i386/efi/grub-install.in: Removed.
23683 * util/ieee1275/grub-install.in: Likewise.
23685 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23687 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23688 (grub_cmd_cmosclean): Likewise.
23689 (GRUB_MOD_INIT): Register command cmosclean.
23690 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23691 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23693 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23694 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23695 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23697 Add keyboard layouts support.
23699 * Makefile.util.def (grub-mklayout): New file.
23700 (grub-kbdcomp): New script.
23701 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23702 Add keyboard_layouts.h.
23703 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23704 commands/boot.c on yeeloong.
23705 (keylayouts): New module.
23706 * grub-core/bus/usb/ohci.c
23707 * grub-core/bus/usb/uhci.c
23708 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23709 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23710 (attach_root_port): Likewise.
23711 (poll_nonroot_hub): Likewise.
23712 (grub_usb_poll_devices): Likewise.
23713 (detach_device): Close transfer.
23714 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23716 (grub_usb_bulk_setup_readwrite): Likewise.
23717 (grub_usb_bulk_finish_readwrite): Likewise.
23718 * grub-core/commands/keylayouts.c: New file.
23719 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23720 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23722 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23723 support scancode 2.
23724 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23725 * include/grub/keyboard_layouts.h: New file.
23726 * util/grub-mklayout.c: New file.
23727 * util/grub-kbdcomp.in: Likewise.
23729 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23731 Unify memory types.
23733 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23734 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23736 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23737 (grub_upper_mem): Likewise.
23738 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23739 * include/grub/memory.h (grub_memory_type_t): New enum.
23742 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23744 * grub-core/Makefile.core.def (lsapm): New module.
23745 * grub-core/commands/i386/pc/lsapm.c: New file.
23746 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23747 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23749 * include/grub/i386/pc/apm.h: New file.
23750 * include/multiboot.h (multiboot_apm_info): New struct.
23752 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23754 GRUB-legacy configuration file support.
23756 * Makefile.util.def (grub-menulst2cfg): New util.
23757 * docs/man/grub-menulst2cfg.h2m: New file.
23758 * grub-core/Makefile.core.def (legacycfg): New module.
23759 * grub-core/commands/legacycfg.c: New file.
23760 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23761 (grub_normal_add_menu_entry): ... this.
23762 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23763 (grub_normal_set_password): ...this.
23764 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23765 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23766 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23767 * grub-core/lib/legacy_parse.c: New file.
23768 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23769 * include/grub/i386/pc/vesa_modes_table.h: New file.
23770 * include/grub/legacy_parse.h: Likewise.
23771 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23772 * util/grub-menulst2cfg.c: New file.
23774 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23776 * grub-core/kern/emu/hostdisk.c
23777 (convert_system_partition_to_system_disk): Initialise node.
23779 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23781 * grub-core/kern/emu/hostdisk.c
23782 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23784 Reported and based on patch by: Modestas Vainius.
23786 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23788 Fix DM-RAID probing with recent versions of device-mapper udev
23791 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23792 canonicalise device paths under /dev/mapper/.
23793 (convert_system_partition_to_system_disk): Compare the
23794 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23795 path, since device nodes under /dev/mapper/ are often symlinks.
23797 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23799 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23801 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23803 * configure.ac: Avoid some annoying error messages if freetype-config
23804 program is not found.
23806 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23808 Support RAID on virtio devices, and others.
23810 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23812 [__MINGW32__] (grub_find_device): ... this.
23813 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23814 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23815 reasonable default if dir is NULL.
23816 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23818 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23819 (grub_guess_root_device): Update callers.
23820 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23822 * util/raid.c (grub_util_getdiskname): Remove.
23823 (grub_util_raid_getmembers): Use grub_find_device rather than
23824 grub_util_getdiskname.
23826 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23828 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23829 needing to be compiled with serial support.
23830 (ls): Indicate that multiple files are accepted.
23831 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23832 indicate that multiple files are accepted.
23834 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23836 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23837 libgrub_a_init.c, and util/bash-completion.d/grub.
23839 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23841 * util/grub-setup.c (setup): Fix incorrect container semantics.
23843 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23845 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23847 Reported by: J. Nick Terry
23849 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23851 Move embedding routines to partmap sources files.
23853 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23854 [GRUB_UTIL]: New variable.
23855 (gpt_partition_map_iterate): Set part.parent.
23856 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23857 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23858 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23860 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23861 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23862 (grub_partition_map) [GRUB_UTIL]: New field embed.
23863 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23864 (setup): Use ->embed.
23866 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23868 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23870 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23871 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23873 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23875 Add function to get completions from usage.
23877 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23878 completions from usage. Use LC_ALL=C to get options properly.
23880 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23882 * grub-core/gnulib/basename-lgpl.c: Imported.
23883 * grub-core/gnulib/basename.c: Likewise.
23884 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23885 * grub-core/gnulib/dirname.c: Likewise.
23886 * grub-core/gnulib/dirname.h: Likewise.
23887 * grub-core/gnulib/stripslash.c: Likewise.
23889 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23891 * grub-core/gnulib/error.c: Resynced.
23892 * grub-core/gnulib/getopt.c: Likewise.
23893 * grub-core/gnulib/getopt_int.h: Likewise.
23894 * grub-core/gnulib/regex.h: Likewise.
23895 * grub-core/gnulib/regex_internal.c: Likewise.
23896 * grub-core/gnulib/regex_internal.h: Likewise.
23898 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23900 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23901 CRC calculations and validity checks.
23902 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23905 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23907 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23909 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23911 Fix incorrect echo options handling.
23912 Reported by: Yves Blusseau.
23914 * include/grub/command.h (grub_command_flags_t): New flags
23915 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23916 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23917 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23919 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23921 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23923 (GRUB_COMMAND_FLAG_MENU): Likewise.
23924 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23925 (GRUB_COMMAND_FLAG_TITLE): Removed.
23926 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23927 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23928 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23929 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23930 (grub_command_flags_t): New enum. All users updated.
23932 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23934 Fix solaris compilation.
23936 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23937 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23938 (grub-emu-list): Likewise.
23940 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23942 Remove deprecated root command.
23944 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23947 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23949 * util/i386/pc/grub-setup.c: Merge this ...
23950 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23951 * util/grub-setup.c: ... into this.
23952 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23955 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23957 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23960 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23962 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23965 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23967 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23968 explicit root argument to set to prevent UUID to be interpreted as
23971 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23973 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23975 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23977 Don't export grub_gate_a20.
23979 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23980 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23982 (grub_gate_a20): ... this. All users updated.
23983 * include/grub/i386/pc/init.h: Removed. All users updated.
23985 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23987 Create euro.pf2 which supports most European languages.
23989 * Makefile.am (grubdata_DATA): Add euro.pf2.
23990 (euro.pf2): New target.
23991 (CLEANFILES): Add euro.pf2.
23993 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23995 * configure.ac: Disable emu-usb by default to prevent inadvertent
23998 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24000 Disable usbserial on grub-emu since our libusb code isn't good enough
24003 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
24004 (usbserial_pl2303): Likewise.
24005 (usbserial_ftdi): Likewise.
24007 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24009 * include/grub/disk.h (grub_disk): Remove has_partitions.
24011 * disk/loopback.c (grub_loopback): Remove has_partitions.
24013 (options): Remove partitions. All users updated.
24014 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
24015 * util/i386/pc/grub-setup.c (setup): copy partition table only when
24016 actual partition table is found.
24018 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24020 Remove readability checks (too many false negatives).
24022 * util/grub-install.in: Remove readability checks.
24023 * util/grub-mkconfig.in: Likewise.
24024 * util/grub.d/10_hurd.in: Likewise.
24025 * util/grub.d/10_kfreebsd.in: Likewise.
24026 * util/grub.d/10_linux.in: Likewise.
24027 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
24030 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24032 Enable acpi shutdown on all ACPI platforms.
24034 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
24035 on coreboo, multiboot and EFI.
24036 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
24037 (grub_acpi_halt): Likewise.
24038 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
24039 (grub_cmd_halt): Don't call grub_acpi_halt directly.
24040 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
24041 * grub-core/lib/i386/halt.c (grub_halt)
24042 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
24044 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24046 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
24049 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24051 * grub-core/video/efi_gop.c: Fix over-80-chars line.
24052 * grub-core/video/efi_uga.c: Likewise.
24054 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24056 Filter devaliases and never open same device twice.
24058 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
24059 (last_ihandle): Likewise.
24060 (ofdisk_hash_ent): New member shortest.
24061 (ofdisk_hash_add): Add canonical path too.
24062 (scan): New function.
24063 (grub_ofdisk_iterate): Iterate over hashed entries.
24064 (compute_dev_path): Don't add :0.
24065 (grub_ofdisk_open): Don't really open the disk.
24066 (grub_ofdisk_close): Avoid closing unrelated disk.
24067 (grub_ofdisk_read): Implement reopen logic.
24068 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
24070 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
24073 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24077 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
24078 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
24079 right address. Add sparc64_ieee1275_ldflags.
24080 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
24081 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
24082 to grub_host_to_target_addr
24083 (load_image): Likewise.
24085 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24087 * grub-core/normal/completion.c (complete_file): Handle device
24089 Fix based on patch by Doug Nazar.
24091 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24093 grub-mknetdir script.
24095 * Makefile.util.def (grub-mknetdir): New module.
24096 * tests/util/grub-shell.in: Support boot=net
24097 * util/grub-mknetdir.in: New file.
24099 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24101 videoinfo on non-vbe.
24103 * grub-core/Makefile.core.def (vbeinfo): Removed.
24104 (vbetest): Removed.
24105 (videoinfo): New module.
24106 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
24107 * grub-core/commands/i386/pc/vbetest.c: Removed.
24108 * grub-core/commands/videoinfo.c: New file.
24109 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
24111 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
24113 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
24114 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
24115 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
24116 mode_number. New parameter mode. All users updated.
24117 (grub_video_gop_iterate): New function.
24118 (grub_video_efi_gop): New member iterate.
24119 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
24120 (grub_vbe_set_video_mode): Remove setting useless fields.
24121 (vbe2videoinfo): New function.
24122 (grub_video_vbe_iterate): Likewise.
24123 (grub_video_vbe_setup): Use vbe2videoinfo.
24124 (grub_video_vbe_print_adapter_specific_info): New function.
24125 (grub_video_vbe_adapter): New fields iterate and
24126 print_adapter_specific_info.
24127 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
24129 (grub_video_mode_info): New field mode_number.
24130 (grub_video_adapter): New fields iterate and
24131 print_adapter_specific_info.
24133 2010-09-13 Tristan Gingold <gingold@free.fr>
24134 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
24135 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24137 * grub-core/commands/efi/lsefisystab.c: New file.
24138 * grub-core/commands/efi/lssal.c: Likewise.
24139 * grub-core/Makefile.core.def (lsacpi): New module.
24140 (lsefisystab): Likewise.
24141 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
24142 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
24143 (grub_efi_sal_system_table): New struct.
24144 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
24145 (grub_efi_sal_system_table_memory_descriptor): Likewise.
24146 (grub_efi_sal_system_table_platform_features): Likewise.
24147 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
24148 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
24149 (grub_efi_sal_system_table_ap_wakeup): Likewise.
24150 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
24152 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24154 Support explicit user claim that a device is BIOS-visible.
24156 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
24157 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
24158 * grub-core/kern/emu/hostdisk.c
24159 (convert_system_partition_to_system_disk): Support mdX.
24160 (find_system_device): New parameter add. All users updated.
24161 (grub_util_biosdisk_is_present): New function.
24162 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
24165 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24167 Search hints support.
24169 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24172 2010-09-13 Yves Blusseau <blusseau@zetam.org>
24174 Bash completion script for util commands
24176 * Makefile.am: Add util/bash-completion.d directory
24177 * configure.ac: Likewise.
24178 * util/bash-completion.d/Makefile.am: New file.
24179 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24181 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24183 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24184 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24185 Reported by: Yves Blusseau.
24187 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24189 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24190 partition size and offset.
24192 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24194 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24196 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24198 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24200 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24202 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24203 (grub_xvasprintf): Likewise.
24205 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24207 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24209 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24211 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24212 args ending with NULL.
24214 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24216 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24219 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24221 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24223 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24225 Shutdown using ACPI.
24227 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24228 * grub-core/commands/acpihalt.c: New file.
24229 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24230 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24231 (grub_acpi_halt): New proto.
24232 (GRUB_ACPI_SLP_EN): New const.
24233 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24234 (GRUB_ACPI_OPCODE_*): New enum.
24235 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24237 2010-09-11 Tristan Gingold <gingold@free.fr>
24238 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24239 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24241 * commands/lsacpi.c: New file.
24242 * grub-core/Makefile.core.def (lsacpi): New module.
24243 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24244 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24245 (grub_acpi_madt_entry_header): New struct.
24246 (grub_acpi_madt): Likewise.
24247 (grub_acpi_madt_entry_interrupt_override): Likewise.
24248 (grub_acpi_madt_entry_sapic): Likewise.
24249 (grub_acpi_madt_entry_lsapic): Likewise.
24250 (grub_acpi_madt_entry_platform_int_source): Likewise.
24251 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24252 (PRIuGRUB_UINT32_T): Likewise.
24253 (PRIxGRUB_UINT64_T): Likewise.
24255 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24257 Implement loading palette on ieee1275_fb.
24259 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24260 (have_setcolors): Likewise.
24261 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24262 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24263 (grub_video_ieee1275_set_palette): Implement.
24265 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24266 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24268 * util/grub-install.in (grub_partition): New variable.
24269 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24270 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24271 Fixes a bug reported by Yves Blusseau.
24273 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24277 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24278 =grub_cpu_flush_cache on all mips and not only yeeloong.
24279 * configure.ac (COND_mips): New conditional.
24280 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24282 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24283 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24284 [GRUB_LINKER_HAVE_INIT]: New function.
24285 (grub_emu_post_init): Likewise.
24286 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24287 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24288 * include/grub/cache.h (_mips): Include mips/cache.h.
24289 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24290 LVM and RAID prototypes.
24291 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24292 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24295 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24297 * util/grub-install.in: Don't try to verify core.img until after
24298 running grub-mkimage to create it.
24300 2010-09-10 Robert Millan <rmh@gnu.org>
24302 * util/grub.d/10_hurd.in: Add misc readability checks.
24303 * util/grub.d/10_kfreebsd.in: Likewise.
24304 * util/grub.d/10_linux.in: Likewise.
24306 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24308 * util/grub-install.in: ${imgext} won't be defined here until the
24309 install branch is merged. For the meantime, only verify core.img on
24310 i386-pc and sparc64-ieee1275 platforms.
24312 2010-09-10 Robert Millan <rmh@gnu.org>
24314 Solaris support in grub_find_zpool_from_dir(). Thanks
24315 Seth Goldberg for referring to getextmntent() facility.
24317 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24319 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24321 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24322 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24323 method for finding zpool name.
24325 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24327 grub-fstest needs the host and hostfs modules while other utilities
24328 actively require those modules to be absent, so grub-fstest needs
24329 its own initialisation and finalisation code.
24331 * Makefile.am (grub_fstest.pp): New target.
24332 (grub_fstest_init.lst): Likewise.
24333 (grub_fstest_init.c): Likewise.
24334 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24336 2010-09-10 Robert Millan <rmh@gnu.org>
24338 * configure.ac: Check for `struct statfs.f_fstypename' and
24339 `struct statfs.f_mntfromname'.
24341 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24342 kFreeBSD-specific code.
24344 2010-09-10 Robert Millan <rmh@gnu.org>
24346 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24347 on ZFS. Now non-main filesystems are supported as / too.
24349 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24351 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24352 and grub-core/disk/host.c to ...
24353 (grub-fstest): ... here. Having the host disk implementation
24354 present confuses grub-probe and other utility programs.
24356 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24357 when writing to a file, not when writing to stdout.
24359 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24361 * tests/partmap_test.in: New test for partitions.
24362 * Makefile.util.def: Rules for new test.
24364 2010-09-09 Robert Millan <rmh@gnu.org>
24366 * util/grub-probe.c (probe): Fix a pair of unhandled error
24369 2010-09-09 Robert Millan <rmh@gnu.org>
24371 Basic Btrfs support (detection and UUID).
24373 * grub-core/fs/btrfs.c: New file.
24374 * Makefile.util.def (library): Register btrfs.c.
24375 * grub-core/Makefile.core.def: Likewise.
24377 2010-09-08 Robert Millan <rmh@gnu.org>
24379 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24380 with (optional) parameters to specify device and relative path.
24381 * util/grub-install.in: Use is_path_readable_by_grub() to
24382 verify readability of a few critical files.
24383 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24384 verify readability of grub.cfg.new.
24386 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24388 Split minix.mod into minix.mod and minix2.mod.
24390 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24391 * grub-core/Makefile.core.def (minix2): New module.
24392 * grub-core/fs/minix.c: Use definitions instead of runtime version
24394 * grub-core/fs/minix2.c: New file.
24396 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24398 Add new --boot-directory option to replace --root-directory
24400 * util/grub-install.in: Add new --boot-directory option
24401 * util/grub-reboot.in: Likewise.
24402 * util/grub-set-default.in: Likewise.
24404 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24406 * util/grub-mkconfig.in: Use new variable.
24408 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24410 * configure.ac: Define some useful variables.
24412 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24414 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24415 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24416 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24417 Use terminfo and don't use cursor-on/cursor-off unless it's known
24419 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24420 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24422 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24424 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24425 starts with "(,", fill the drive containing the loaded image in
24426 between those two characters, but expect that a full partition
24427 specification including partition map names will follow.
24429 2010-09-08 Robert Millan <rmh@gnu.org>
24431 * configure.ac: Remove `--enable-grub-fstest' option.
24432 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24434 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24435 `grub-fstest' instead of `grub-probe' for readability verification.
24436 * util/grub-probe.c (probe): Remove readability verification kludge.
24438 2010-09-08 Robert Millan <rmh@gnu.org>
24440 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24441 initializing `GRUB_FS'.
24443 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24445 Not command (!) support to GRUB script.
24447 * tests/grub_script_not.in: New test.
24448 * Makefile.util.def: Rules for new test.
24450 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24451 ! command as a special case.
24452 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24454 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24456 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24459 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24461 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24463 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24465 * docs/grub.texi (Shell-like scripting): Documentation for break,
24466 continue, shift and return commands.
24468 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24470 Rename CD-ROM to cd on BIOS.
24472 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24474 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24476 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24478 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24479 * util/grub-probe.c (main): Likewise.
24480 * util/i386/pc/grub-setup.c (main): Likewise.
24481 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24482 Reported and debugged by: alexxy
24484 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24486 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24489 2010-09-05 Jo Shields <directhex@apebox.org>
24491 * util/grub.d/30_os-prober.in: Add missing classes.
24493 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24495 * docs/grub.texi (Theme file format): Document new position format.
24497 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24499 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24500 a table. Use @code instead of @verbatim.
24502 2010-09-05 Colin D Bennett <colin@gibibit.com>
24504 Gfxmenu documentation.
24506 * docs/grub.texi (Theme file format): New chapter.
24508 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24510 * grub-core/Makefile.core.def (xzio): New module.
24511 * grub-core/io/xzio.c: New file.
24512 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24513 * grub-core/lib/xzembed/xz_config.h: Likewise.
24514 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24515 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24516 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24517 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24518 * grub-core/lib/xzembed/xz_private.h: Likewise.
24519 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24520 * include/grub/file.h (grub_file_filter_id): New compression filter
24521 GRUB_FILE_FILTER_XZIO.
24523 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24525 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24526 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24529 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24531 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24532 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24534 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24536 Uncompressed checksum support.
24538 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24539 (check_list): New parameter uncompress.
24540 (grub_cmd_hashsum): Handle --uncompress.
24542 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24544 Reintroduce testload.
24546 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24548 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24549 (GRUB_MOD_INIT): New function.
24550 (GRUB_MOD_FINI): Likewise.
24551 * grub-core/Makefile.core.def (testload): New module.
24553 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24555 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24556 (uint8_t): New type.
24557 (uint16_t): Likewise.
24558 (uint32_t): Likewise.
24559 (uint64_t): Likewise.
24561 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24563 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24565 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24567 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24569 (grub_gzfile_open): Removed. All users updated.
24570 (GRUB_MOD_INIT): New function.
24571 (GRUB_MOD_FINI): Likewise.
24572 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24573 (grub_file_filters_enabled): Likewise.
24574 (grub_file_open): Handle filters.
24575 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24576 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24577 * include/grub/file.h (grub_file_filter_id_t): New type.
24578 (grub_file_filter_t): Likewise.
24579 (grub_file_filters_all): New extern variable.
24580 (grub_file_filters_enabled): Likewise.
24581 (grub_file_filter_register): New inline function.
24582 (grub_file_filter_unregister): Likewise.
24583 (grub_file_filter_disable): Likewise.
24584 (grub_file_filter_disable_compression): Likewise.
24585 * include/grub/gzio.h: Removed.
24587 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24589 Filename expansion support for wildcards in GRUB script.
24591 * tests/grub_script_expansion.in: New test.
24592 * Makefile.util.def: Rule for new test.
24594 * grub-core/commands/wildcard.c: New file, implements filename
24595 expansion support for GRUB script.
24596 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24597 * grub-core/script/argv.c: Cosmetic changes.
24598 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24599 Refactored to perform wildcard expansion on arguments.
24600 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24603 * tests/util/grub-shell.in: Fix quoting for read input.
24605 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24607 Support for updating environment variables with matched substrings
24610 * tests/grub_cmd_regexp.in: New test.
24611 * Makefile.util.def: Rule for new test.
24613 * grub-core/commands/regexp.c: New option -s to update environment
24614 variables with regexp matches.
24616 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24618 * include/grub/file.h (grub_file): New member not_easly_seekable.
24619 (grub_file_seekable): New inline function.
24620 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24622 (grub_gzio_open): Set not_easly_seekable.
24623 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24624 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24626 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24628 Support for options to appear multiple times on cmdline.
24630 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24631 * grub-core/commands/extcmd.c: Support for repeatable option.
24632 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24633 repeatable option support.
24635 Refactor menuentry into a regular command.
24637 * grub-core/commands/menuentry.c: New file, menuentry command
24639 * grub-core/Makefile.core.def: Rule update for normal.mod.
24640 * grub-core/normal/main.c: Moved menuentry creation to
24641 grub-core/commands/menuentry.c.
24642 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24643 (grub_menu_execute_entry_real): Removed.
24644 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24646 (grub_script_execute_menuentry): Removed.
24647 * grub-core/script/parser.y (menuentry): Removed.
24648 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24649 * grub-core/script/yylex.l (menuentry): Removed.
24650 * include/grub/menu.h (grub_menu_init): New prototype.
24651 (grub_menu_fini): New prototype.
24652 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24653 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24654 (grub_script_execute_sourcecode): New prototype.
24656 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24658 "return" command for GRUB script functions.
24660 * tests/grub_script_return.in: New test.
24661 * Makefile.util.def: Rules for new test.
24663 * grub-core/script/execute.c (grub_script_return): New function.
24664 * grub-core/script/main.c: Register/unregister return commaond.
24665 * include/grub/script_sh.h (grub_script_return): New prototype.
24667 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24669 "setparams" command to update positional parameters.
24671 * tests/grub_script_setparams.in: New test.
24672 * Makefile.util.def: Rules for new test.
24674 * grub-core/script/argv.c (grub_script_argv_make): New function.
24675 * grub-core/script/execute.c (replace_scope): New function.
24676 (grub_script_setparams): New function.
24677 * grub-core/script/lexer.c: Remove unused variables.
24678 * grub-core/script/main.c: Register/unregister setparams command.
24679 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24680 (grub_script_setparams): New prototype.
24682 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24684 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24687 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24689 Support for passing block of commands as an argument to extcmds.
24691 * Makefile.util.def: Rules for new test.
24692 * tests/grub_script_blockarg.in: New test.
24693 * grub-core/tests/test_blockarg.c: New file, block argument
24694 command used in the test.
24696 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24697 (grub_register_extcmd_prio): New function prototype.
24698 (grub_extcmd_dispatcher): New function prototype.
24699 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24701 * include/grub/script_sh.h (struct grub_script): New members
24702 `children', `next_siblings' and `refcnt' for block arguments and
24703 reference counting.
24704 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24705 (grub_script_arg): New member `script' for block argument.
24706 (grub_script_argv): New member `script' for block argument.
24707 (grub_parser_param): New member `scripts' for block argument.
24708 (grub_script_mem_free): New extern function prototype.
24709 (grub_script_ref): New function prototype.
24710 (grub_script_unref): New function prototype.
24712 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24713 extcmd form to support block arguments.
24714 * grub-core/script/argv.c: Block arguments support.
24715 * grub-core/script/execute.c: Likewise.
24716 * grub-core/script/lexer.c: Likewise.
24717 * grub-core/script/main.c: Likewise.
24718 * grub-core/script/script.c: Likewise.
24719 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24722 * grub-core/commands/acpi.c: Update extcmd implementations with
24723 grub_extcmd_context_t.
24724 * grub-core/commands/cat.c: Likewise.
24725 * grub-core/commands/echo.c: Likewise.
24726 * grub-core/commands/extcmd.c: Likewise.
24727 * grub-core/commands/hashsum.c: Likewise.
24728 * grub-core/commands/hdparm.c: Likewise.
24729 * grub-core/commands/help.c: Likewise.
24730 * grub-core/commands/hexdump.c: Likewise.
24731 * grub-core/commands/i386/cpuid.c: Likewise.
24732 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24733 * grub-core/commands/i386/pc/halt.c: Likewise.
24734 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24735 * grub-core/commands/iorw.c: Likewise.
24736 * grub-core/commands/keystatus.c: Likewise.
24737 * grub-core/commands/loadenv.c: Likewise.
24738 * grub-core/commands/ls.c: Likewise.
24739 * grub-core/commands/lspci.c: Likewise.
24740 * grub-core/commands/memrw.c: Likewise.
24741 * grub-core/commands/probe.c: Likewise.
24742 * grub-core/commands/search_wrap.c: Likewise.
24743 * grub-core/commands/setpci.c: Likewise.
24744 * grub-core/commands/sleep.c: Likewise.
24745 * grub-core/disk/loopback.c: Likewise.
24746 * grub-core/hello/hello.c: Likewise.
24747 * grub-core/loader/i386/bsd.c: Likewise.
24748 * grub-core/loader/xnu.c: Likewise.
24749 * grub-core/term/gfxterm.c: Likewise.
24750 * grub-core/term/serial.c: Likewise.
24751 * grub-core/tests/lib/functional_test.c: Likewise.
24753 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24755 Multi-line quoted strings support.
24757 * grub-core/script/lexer.c (append_newline): Removed.
24758 (grub_script_lexer_yywrap): Refactored.
24759 (grub_script_lexer_init): Refactored.
24760 * grub-core/script/yylex.l (yywrap): New function.
24761 (grub_lexer_resplit): New function.
24762 (grub_lexer_unput): New function.
24763 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24765 * tests/grub_script_echo1.in: Added few more testcases.
24767 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24769 * grub-core/kern/misc.c: Don't add abort alias in utils.
24770 Reported by: echoline.
24772 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24774 Add missing files into "make dist" tarball for other platforms.
24776 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24777 * conf/Makefile.common (dist_noinst_DATA): New variable.
24778 * conf/Makefile.extra-dist: Added missing make dist files.
24779 * grub-core/Makefile.core.def: Likewise.
24781 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24783 Compress grub_prefix.
24785 * grub-core/boot/i386/pc/lnxboot.S: Use
24786 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24787 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24788 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24789 GRUB_MACHINE_PREFIX_END. All users updated.
24790 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24791 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24793 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24794 * util/grub-mkimage.c (image_target_desc): Change data_end to
24795 prefix_end. All users updated.
24797 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24799 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24801 (grub_openbsd_boot): Likewise.
24802 (grub_netbsd_boot): Likewise.
24803 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24804 (grub_xnu_boot): Likewise.
24806 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24808 * configure.ac: Clean LIBS variable after tests.
24810 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24812 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24814 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24816 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24817 echo if libdevmapper will be used.
24819 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24821 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24822 constant for the same file.
24824 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24826 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24828 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24830 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24833 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24835 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24836 required by the boot protocol.
24838 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24839 ebp and edi members.
24840 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24841 state.ebp and state.edi.
24842 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24843 %ebp and %edi according to grub_relocator32_ebp and
24844 grub_relocator32_edi respectively.
24845 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24848 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24850 Add i386-pc-pxe image target.
24852 * util/grub-mkimage.c (image_target_desc): New enum value
24854 (image_targets): New target i386-pc-pxe.
24855 (generate_image): Handle i386-pc-pxe image.
24857 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24861 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24862 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24864 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24865 (grub_pxe_pxenv): Correct type.
24867 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24869 * NEWS: Document most of the important changes since 1.98.
24871 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24873 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24874 generated manual page) a little.
24876 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24878 * docs/grub.texi: Add myself as an author.
24880 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24882 * Makefile.util.def (libgrub.a): Add missing sunpc.
24883 Reported by: Seth Goldberg.
24885 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24887 Interrupt wrapping and code simplifications.
24889 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24890 x86_noieee1275 which are functionaly equivalent in this case.
24891 (grub-install): Make source on each platform explicit. Enable on
24893 * gentpl.py (x86_efi_pc): Removed group.
24894 (x86_noefi): Likewise.
24895 (i386_noefi): Likewise.
24896 (x86_noieee1275): Likewise.
24897 (i386_noieee1275): Likewise.
24898 (i386_noefi_noieee1275): Likewise.
24899 (i386_pc_qemu_coreboot): Likewise.
24900 (i386_coreboot_multiboot): Likewise.
24901 (i386_pc_coreboot_multiboot_qemu): Likewise.
24902 (x86_noefi_mips): Likewise.
24903 (noieee1275): Likewise.
24904 (ieee1275_mips): Likewise.
24905 (noemu_noieee1275): Likewise.
24908 (videoinkernel): Likewise.
24909 (videomodules): Likewise.
24910 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24911 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24912 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24913 include/grub/loader.h, include/grub/msdos_partition.h,
24914 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24915 include/grub/machine/console.h, include/grub/machine/vga.h,
24916 include/grub/machine/vbe.h, include/grub/machine/init.h,
24917 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24918 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24919 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24920 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24921 * grub-core/Makefile.core.def (kernel): Explicit the source for
24922 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24923 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24924 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24925 Use videoinkernel tag.
24926 (usb): Enable on all usb.
24927 (usbserial_common): Likewise.
24928 (usbserial_pl2303): Likewise.
24929 (usbserial_ftdi): Likewise.
24930 (uhci): Enable on all x86.
24931 (ohci): Enable on all pci.
24932 (cmostest): Enable on all CMOS.
24933 (acpi): Include commands/acpi.c on all platforms.
24934 (halt): Add relevant lib/*/halt.c.
24935 (hdparm): Enable on all pci.
24937 (usbtest): Enable on all usb.
24938 (ata): Enable on all pci.
24939 (ata_pthru): Likewise.
24940 (usbms): Enable on all usb.
24941 (usb_keyboard): Likewise.
24942 (font): Use tag videomodules.
24944 (datetime): Use tag cmos. Enable on all noemu.
24945 (mmap): Use tags common and x86.
24946 (gfxterm): Use tag videomodules.
24947 (bitmap): Likewise.
24948 (bitmap_scale): Likewise.
24949 (video_fb): Likewise.
24951 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24952 adjust padding accordingly. All users updated.
24953 (grub_ohci_transaction): Fix bad format specification.
24954 (GRUB_MOD_INIT): Add asserts for struct size.
24955 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24956 (grub_alloc_td): Likewise.
24957 (grub_free_queue): Likewise.
24958 (grub_uhci_transfer): Likewise.
24959 (grub_uhci_transaction): Fix bad format specification.
24960 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24961 (grub_usb_bulk_readwrite): Likewise.
24962 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24963 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24965 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24967 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24968 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24969 Transformed into C.
24970 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24971 Moved from here ...
24972 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24973 ... here. Transformed into C. Made static.
24974 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24975 Moved from here ...
24976 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24977 ... here. Transformed into C. Made static.
24978 * grub-core/kern/i386/pc/startup.S
24979 (grub_biosdisk_check_int13_extensions): Moved from here ...
24980 * grub-core/disk/i386/pc/biosdisk.c
24981 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24983 * grub-core/kern/i386/pc/startup.S
24984 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24985 * grub-core/disk/i386/pc/biosdisk.c
24986 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24987 Transformed into C. Made static.
24988 * grub-core/kern/i386/pc/startup.S
24989 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24990 * grub-core/disk/i386/pc/biosdisk.c
24991 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24992 Transformed into C. Made static.
24993 * grub-core/kern/i386/pc/startup.S
24994 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24995 * grub-core/disk/i386/pc/biosdisk.c
24996 (grub_biosdisk_get_diskinfo_standard): ... here.
24997 Transformed into C. Made static.
24998 * grub-core/kern/i386/pc/startup.S
24999 (grub_biosdisk_get_num_floppies): Moved from here ...
25000 * grub-core/disk/i386/pc/biosdisk.c
25001 (grub_biosdisk_get_num_floppies): ... here.
25002 Transformed into C. Made static.
25003 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
25005 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
25006 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
25007 Transformed into C. Made static.
25008 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
25009 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
25010 Transformed into C. Made static.
25011 * grub-core/kern/i386/ieee1275/init.c: Removed.
25012 * grub-core/kern/i386/misc.S: Likewise.
25013 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
25014 Splitted from here ...
25015 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
25016 Transformed into C. Made static. All users updated.
25017 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
25018 Transformed into C. Made static. All users updated.
25019 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
25021 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
25022 Transformed into C. Made static. All users updated.
25023 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
25025 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
25026 Transformed into C. Made static. All users updated.
25027 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
25028 Removed (replaced by C version).
25029 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
25031 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
25032 Transformed into C. Made static.
25033 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
25035 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
25036 ... here. Transformed into C.
25037 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
25039 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
25040 ... here. Transformed into C.
25041 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
25043 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
25044 ... here. Transformed into C. Made static.
25045 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
25047 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
25048 ... here. Transformed into C.
25049 * grub-core/kern/i386/pc/startup.S
25050 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
25051 * grub-core/video/i386/pc/vbe.c
25052 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
25053 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
25055 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
25056 ... here. Transformed into C.
25057 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
25059 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
25060 ... here. Transformed into C.
25061 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
25063 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
25064 ... here. Transformed into C.
25065 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
25067 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
25068 ... here. Transformed into C.
25069 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
25071 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
25072 ... here. Transformed into C. Made static.
25073 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
25075 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
25076 ... here. Transformed into C. Made static.
25077 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
25079 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
25080 ... here. Transformed into C. Made static.
25081 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
25082 pxe_rm_entry as third argument.
25083 (grub_bios_interrupt): New function.
25084 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
25085 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
25086 of calling grub_stop.
25087 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
25088 * grub-core/lib/efi/halt.c (grub_halt): ...here.
25089 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
25090 * grub-core/lib/emu/halt.c (grub_halt): ... here.
25091 * grub-core/lib/i386/halt.c: Moved from here ...
25092 * grub-core/lib/i386/halt.c: ... here.
25093 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
25094 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
25095 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
25097 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
25098 * include/grub/i386/coreboot/init.h: Removed.
25099 * include/grub/i386/multiboot/init.h: Likewise.
25100 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
25101 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
25102 * include/grub/i386/pc/int.h: New file.
25103 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
25104 (grub_pxe_scan): Removed.
25105 (grub_pxe_call): Update prototype.
25106 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
25108 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
25109 * include/grub/i386/qemu/init.h: Removed.
25110 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
25112 (grub_halt): Likewise.
25113 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
25114 (grub_reboot): Likewise.
25115 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
25116 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
25117 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
25119 2010-08-30 Robert Millan <rmh@gnu.org>
25121 * NEWS: Document addition of ZFS support in `grub-install' and
25124 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
25126 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
25129 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25131 Remove leftover embedding of font objects.
25133 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25134 * util/grub-install.in (font): Removed.
25135 * util/grub-mkimage.c (generate_image): Remove font support. All users
25138 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25140 Remove leftover embedding of font objects.
25142 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25143 * util/grub-install.in (font): Removed.
25144 * util/grub-mkimage.c (generate_image): Remove font support. All users
25147 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25149 * docs/grub.texi (Network): Fix reference to pxe_blksize.
25150 Reported by: Ian Turner
25152 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25154 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
25155 timeout to avoid indefinite boot stalling.
25157 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25159 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
25160 (grub_env_write_color_highlight): Likewise.
25162 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25164 * grub-core/normal/term.c (print_more): Return to normal and not
25165 to standard state after printing "---MORE---".
25167 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25169 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25170 Mask out the bit 0x80 since it has other meaning that specifiing color.
25172 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25174 New relocator. Allows for more kernel support and more straightforward
25177 * Makefile.am (BOOTTARGET): New variable.
25178 (QEMU32): Likewise.
25179 (linux.init.x86_64): New target.
25180 (linux.init.i386): Likewise.
25181 (multiboot.elf): Likewise.
25182 (kfreebsd.elf): Likewise.
25183 (kfreebsd.aout): Likewise.
25184 (pc-chainloader.elf): Likewise.
25185 (pc-chainloader.bin): Likewise.
25186 (ntldr.elf): Likewise.
25187 (ntldr.bin): Likewise.
25188 (multiboot2.elf): Likewise.
25189 (kfreebsd.init.x86_64): Likewise.
25190 (kfreebsd.init.i386): Likewise.
25191 (knetbsd.init.i386): Likewise.
25192 (kopenbsd.init.i386): Likewise.
25193 (knetbsd.init.x86_64): Likewise.
25194 (kopenbsd.init.x86_64): Likewise.
25195 (linux-initramfs.i386): Likewise.
25196 (linux-initramfs.x86_64): Likewise.
25197 (kfreebsd-mfsroot.i386.img): Likewise.
25198 (knetbsd.image.i386): Likewise.
25199 (kopenbsd.image.i386): Likewise.
25200 (kopenbsd.image.x86_64): Likewise.
25201 (knetbsd.miniroot-image.i386.img): Likewise.
25202 (kfreebsd-mfsroot.x86_64.img): Likewise.
25203 (knetbsd.image.x86_64): Likewise.
25204 (knetbsd.miniroot-image.x86_64.img): Likewise.
25205 (kfreebsd-mfsroot.i386.gz): Likewise.
25206 (bootcheck-kfreebsd-i386): Likewise.
25207 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25208 (bootcheck-kfreebsd-x86_64): Likewise.
25209 (knetbsd.miniroot-image.i386.gz): Likewise.
25210 (bootcheck-knetbsd-i386): Likewise.
25211 (bootcheck-kopenbsd-i386): Likewise.
25212 (bootcheck-kopenbsd-x86_64): Likewise.
25213 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25214 (bootcheck-knetbsd-x86_64): Likewise.
25215 (bootcheck-linux-i386): Likewise.
25216 (bootcheck-linux-x86_64): Likewise.
25217 (bootcheck-linux16-i386): Likewise.
25218 (bootcheck-linux16-x86_64): Likewise.
25219 (bootcheck-multiboot): Likewise.
25220 (bootcheck-multiboot2): Likewise.
25221 (bootcheck-kfreebsd-aout): Likewise.
25222 (bootcheck-pc-chainloader): Likewise.
25223 (bootcheck-ntldr): Likewise.
25224 (CLEANFILES): Add new targets.
25225 (BOOTCHECKS): New variable.
25226 (.PHONY): Add bootchecks.
25227 (SUCCESSFUL_BOOT_STRING): New variable.
25228 (BOOTCHECK_TIMEOUT): Likewise.
25229 (bootcheck): New target
25230 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25231 * configure.ac: Correct efiemu excuse.
25232 * docs/grub.texi (Supported kernels): New chapter.
25233 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25234 include/grub/mm_private.h. Simplify inclusion of
25235 include/grub/boot.h, include/grub/loader.h
25236 and include/grub/msdos_partition.h
25237 (KERNEL_HEADER_FILES) [i386_coreboot]:
25238 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25239 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25240 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25241 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25242 include/grub/machine/loader.h.
25243 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25244 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25246 (pci.mod): Enable on i386-multiboot.
25247 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25248 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25250 (relocator.mod): Rewritten.
25251 (aout.mod): Enable on all x86.
25252 (bsd.mod): Likewise.
25253 (ntldr.mod): New module.
25254 (linux.mod): Use loader/i386/linux.c on all x86.
25255 (xnu.mod): Enable on all x86.
25256 (vga_text.mod): disable on EFI and QEMU.
25257 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25258 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25259 * grub-core/efiemu/loadcore.c: Likewise.
25260 * grub-core/efiemu/main.c: Likewise.
25261 (grub_efiemu_exit_boot_services): Removed.
25262 (grub_efiemu_finish_boot_services): Likewise.
25263 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25265 * grub-core/efiemu/i386/nocfgtables.c: New file.
25266 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25267 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25268 (grub_efi_finish_boot_services): Moved from here ...
25269 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25270 Fille finish memory map and related data.
25271 (finish_mmap_buf): New variable.
25272 (grub_efi_uintn_t finish_mmap_size): Likewise.
25273 (grub_efi_uintn_t finish_key): Likewise.
25274 (grub_efi_uintn_t finish_desc_size): Likewise.
25275 (grub_efi_uint32_t finish_desc_version): Likewise.
25276 (grub_efi_is_finished): Likewise.
25277 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25279 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25280 (grub_elf64_phdr_iterate): Likewise.
25281 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25282 (grub_os_area_size): Likewise.
25283 (grub_machine_init): Don't reserve os area.
25284 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25285 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25286 * grub-core/kern/i386/loader.S: Removed.
25287 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25288 (grub_os_area_size): Likewise.
25289 (grub_machine_init): Don't reserve os area.
25290 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25291 Don't call grub_dl_unload_all.
25292 Don't include loader.S.
25293 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25294 Declare the memory after _end as available.
25295 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25296 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25297 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25298 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25299 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25300 * include/grub/mm_private.h (grub_mm_header): ... here.
25301 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25302 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25303 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25304 (grub_mm_region): ..here. Removed addr. Added pre_size.
25306 * grub-core/kern/mm.c (base): Renamed to ...
25307 (grub_mm_base): ... this. Made global.
25308 (grub_real_malloc): Alloc from end of region.
25309 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25310 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25311 * grub-core/kern/powerpc/cache_flush.S: ... here.
25312 * grub-core/lib/efi/relocator.c: New file.
25313 * grub-core/lib/i386/relocator.c: Rewritten.
25314 * grub-core/lib/i386/relocator16.S: New file.
25315 * grub-core/lib/i386/relocator32.S: Likewise.
25316 * grub-core/lib/i386/relocator64.S: Likewise.
25317 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25318 * grub-core/lib/i386/relocator_common.S: New file.
25319 * grub-core/lib/ieee1275/relocator.c: Likewise.
25320 * grub-core/lib/mips/relocator.c: Rewritten.
25321 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25322 stylistic adjustments.
25323 * grub-core/lib/powerpc/relocator.c: New file.
25324 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25325 * grub-core/lib/relocator.c: Rewritten.
25326 * grub-core/lib/x86_64/relocator_asm.S: New file.
25327 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25328 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25329 (bsd_tag): New struct.
25330 (tags): New variable.
25331 (tags_last): Likewise.
25332 (netbsd_module): New struct.
25333 (netbsd_mods): New variable.
25334 (netbsd_mods_last): Likewise.
25335 (openbsd_opts): New parameter "serial".
25336 (OPENBSD_SERIAL_ARG): New definition.
25337 (netbsd_opts): New parameter "serial".
25338 (NETBSD_SERIAL_ARG): New definition.
25339 (grub_freebsd_add_meta): Reorganised into ...
25340 (grub_bsd_add_meta): ...this. All users updated.
25341 (grub_freebsd_add_mmap): Reorganised into ...
25342 (generate_e820_mmap): ...this...
25343 (grub_bsd_add_mmap): ...and this. All users updated.
25344 (grub_freebsd_list_modules): Use tags.
25345 (grub_netbsd_add_meta_module): New function.
25346 (grub_netbsd_list_modules): Likewise.
25347 (grub_freebsd_boot): Use relocator and finish EFI.
25348 (grub_openbsd_boot): Likewise.
25349 (grub_netbsd_setup_video): New function.
25350 (grub_netbsd_add_modules): Likewise.
25351 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25353 (grub_bsd_unload): Unload tags.
25354 (grub_bsd_load_aout): Use relocator.
25355 (grub_bsd_elf32_size_hook): New function.
25356 (grub_bsd_elf32_hook): Use relocator.
25357 (grub_bsd_elf64_size_hook): New function.
25358 (grub_bsd_elf64_hook): Use relocator.
25359 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25360 (grub_bsd_load): Zero-out openbsd_ramdisk.
25361 (grub_bsd_load): Use relocator.
25362 (grub_cmd_openbsd): Support serial.
25363 (grub_cmd_netbsd): Support modules.
25364 (grub_cmd_freebsd_module): Use relocator.
25365 (grub_netbsd_module_load): New function.
25366 (grub_cmd_netbsd_module): Likewise.
25367 (grub_cmd_openbsd_ramdisk): Likewise.
25368 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25370 (GRUB_MOD_FINI): Unregister new commands.
25371 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25372 (grub_freebsd_load_elfmodule_obj): Use relocator.
25373 (grub_freebsd_load_elfmodule): Likewise.
25374 (grub_freebsd_load_elf_meta): Likewise.
25375 (grub_netbsd_load_elf_meta): New function.
25376 (grub_openbsd_find_ramdisk): Likewise.
25377 * grub-core/loader/i386/bsd_helper.S: Removed.
25378 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25379 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25380 * grub-core/loader/i386/efi/linux.c: Likewise.
25381 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25382 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25383 (DEFAULT_VIDEO_MODE): Likewise.
25384 (real_mode_target): New variable.
25385 (prot_mode_target): Likewise.
25386 (initrd_mem_target): Likewise.
25387 (relocator): Likewise.
25388 (efi_mmap_buf): Likewise.
25389 (efi_mmap_size): Likewise.
25390 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25391 (free_pages): Use relocator.
25392 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25393 (grub_linux_setup_video): Return error.
25394 (grub_linux_trampoline_start): Removed.
25395 (grub_linux_trampoline_end): Likewise.
25396 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25397 andd video parameters depending on firmware.
25398 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25399 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25400 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25401 (grub_cmd_initrd): Use relocator.
25402 * grub-core/loader/i386/linux_trampoline.S: Removed.
25403 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25404 (elf_sec_entsize): Likewise.
25405 (elf_sec_shstrndx): Likewise.
25406 (elf_sections): Likewise.
25407 (grub_multiboot_load): Use relocator.
25408 (grub_multiboot_get_mbi_size): Account for sections.
25409 (grub_multiboot_make_mbi): Use relocator and support sections.
25410 (grub_multiboot_add_elfsyms): New function.
25411 (grub_multiboot_free_mbi): Free sections.
25412 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25413 (grub_linux_real_target): Likewise.
25414 (grub_linux_real_chunk): Likewise.
25415 (grub_linux16_prot_size): Likewise.
25416 (grub_linux16_boot): Use relocator.
25417 (grub_linux_unload): Unload relocator.
25418 (grub_cmd_linux): Use relocator.
25419 (grub_cmd_initrd): Likewise.
25420 * grub-core/loader/i386/pc/ntldr.c: New file.
25421 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25422 Don't try to guess CPU frequency.
25423 (grub_xnu_set_video): Stretch bitmap.
25424 (grub_xnu_boot): Use relocator.
25425 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25426 (grub_linux_unload): Free relocator.
25427 (grub_linux_load32): Use relocator.
25428 (grub_linux_load64): Likewise.
25429 (grub_cmd_initrd): Likewise.
25430 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25431 (grub_multiboot_unload): Unload relocator.
25432 (grub_cmd_multiboot): Use relocator.
25433 (grub_cmd_module): Likewise.
25434 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25435 Use relocator and support sections.
25436 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25437 (elf_sec_entsize): Likewise.
25438 (elf_sec_shstrndx): Likewise.
25439 (elf_sections): Likewise.
25440 (grub_multiboot_load): Use relocator.
25441 (grub_multiboot_get_mbi_size): Account for sections.
25442 (grub_multiboot_make_mbi): Use relocator and support sections.
25443 (grub_multiboot_add_elfsyms): New function.
25444 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25445 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25446 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25447 Prototype changed. All users updated.
25448 (grub_xnu_align_heap): Simplified.
25449 (grub_xnu_writetree_toheap): Likewise.
25450 (grub_xnu_unload): Unload relocator.
25451 (grub_cmd_xnu_kernel): Use relocator.
25452 (grub_cmd_xnu_kernel64): Likewise.
25453 (grub_xnu_register_memory): Simplified.
25454 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25455 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25457 (grub_console_checkkey): Likewise.
25458 (grub_console_getkey): Likewise.
25459 (grub_console_getwh): Likewise.
25460 (grub_console_getxy): Likewise.
25461 (grub_console_gotoxy): Likewise.
25462 (grub_console_cls): Likewise.
25463 (grub_console_setcolorstate): Likewise.
25464 (grub_console_setcursor): Likewise.
25465 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25466 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25467 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25468 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25469 * grub-core/tests/boot/kernel-8086.S: Likewise.
25470 * grub-core/tests/boot/kernel-i386.S: Likewise.
25471 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25472 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25473 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25474 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25475 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25476 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25477 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25478 * grub-core/tests/boot/linux.cfg: Likewise.
25479 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25480 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25481 * grub-core/tests/boot/linux16.cfg: Likewise.
25482 * grub-core/tests/boot/multiboot.cfg: Likewise.
25483 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25484 * grub-core/tests/boot/ntldr.cfg: Likewise.
25485 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25486 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25487 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25489 * include/grub/dl.h (grub_dl_unload_all): Removed.
25490 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25491 (grub_efi_finish_boot_services): Change prototype.
25492 (grub_efi_is_finished): New variable.
25493 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25495 (grub_efiemu_finish_boot_services): Removed.
25496 (grub_machine_efiemu_init_tables): New prototype.
25497 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25498 (grub_elf64_phdr_iterate): Likewise.
25499 * include/grub/i386/bsd.h: Include relocator.h.
25500 (freebsd_tag_header): New struct.
25501 (grub_openbsd_bios_mmap): Removed.
25502 (grub_unix_real_boot): Removed.
25503 (grub_freebsd_load_elfmodule32): Changed prototype.
25504 (grub_freebsd_load_elfmodule_obj64): Likewise.
25505 (grub_freebsd_load_elf_meta32): Likewise.
25506 (grub_freebsd_load_elf_meta64): Likewise.
25507 (grub_freebsd_add_meta): Removed.
25508 (grub_netbsd_load_elf_meta32): New prototype.
25509 (grub_netbsd_load_elf_meta64): Likewise.
25510 (grub_bsd_add_meta): Likewise.
25511 (grub_openbsd_ramdisk_descriptor): New struct.
25512 (grub_openbsd_find_ramdisk32): New prototype.
25513 (grub_openbsd_find_ramdisk64): Likewise.
25514 * include/grub/i386/coreboot/loader.h: Removed.
25515 * include/grub/i386/efi/loader.h: Likewise.
25516 * include/grub/i386/ieee1275/loader.h: Likewise.
25517 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25519 * include/grub/i386/loader.h: Removed.
25520 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25522 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25523 (grub_phys_addr_t): New type.
25524 (grub_vtop): New inline function.
25525 (grub_map_memory): Likewise.
25526 (grub_unmap_memory): Likewise.
25527 * include/grub/i386/multiboot/loader.h: Removed.
25528 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25529 (NETBSD_BTINFO_CONSOLE): New definition.
25530 (NETBSD_BTINFO_SYMTAB): Likewise.
25531 (NETBSD_BTINFO_MODULES): Likewise.
25532 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25533 (grub_netbsd_bootinfo): New struct.
25534 (grub_netbsd_btinfo_common): Use explicit bitsize.
25535 (grub_netbsd_btinfo_mmap_entry): Removed.
25536 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25537 (grub_netbsd_btinfo_bootdisk): New struct.
25538 (grub_netbsd_btinfo_symtab): Likewise.
25539 (grub_netbsd_btinfo_serial): Likewise.
25540 (grub_netbsd_btinfo_modules): Likewise.
25541 (grub_netbsd_btinfo_framebuf): Likewise.
25542 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25543 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25545 (grub_openbsd_bootargs): Use explicit bitsize.
25546 (grub_openbsd_bootarg_console): New struct.
25547 (GRUB_OPENBSD_COM_MAJOR): New definition.
25548 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25549 * include/grub/i386/pc/efiemu.h: Removed.
25550 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25551 * include/grub/i386/qemu/loader.h: Removed.
25552 * include/grub/i386/relocator.h: Rewritten.
25553 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25554 * include/grub/mips/memory.h: New file.
25555 * include/grub/mips/multiboot.h: Rewritten.
25556 * include/grub/mips/relocator.h: Rewritten.
25557 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25558 (grub_vtop): New function.
25559 (grub_map_memory): Likewise.
25560 (grub_unmap_memory): Likewise.
25561 * include/grub/misc.h (ALIGN_DOWN): New definition.
25562 * include/grub/mm.h (grub_mm_check_real): New proto.
25563 (GRUB_MM_CHECK): New definition.
25564 * include/grub/mm_private.h: New file.
25565 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25566 (grub_multiboot_get_mbi_size): Removed.
25567 (grub_multiboot_make_mbi): Change prottype.
25568 (grub_multiboot_set_accepts_video): New proto.
25569 (grub_multiboot_add_elfsyms): Likewise.
25570 (grub_multiboot_payload_eip): New variable.
25571 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25573 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25575 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25576 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25577 * include/grub/powerpc/ieee1275/loader.h: Removed.
25578 * include/grub/powerpc/memory.h: New file.
25579 * include/grub/powerpc/relocator.h: Likewise.
25580 * include/grub/relocator.h: Likewise.
25581 * include/grub/relocator_private.h: Likewise.
25582 * include/grub/sparc64/ieee1275/loader.h: Removed.
25583 * include/grub/x86_64/memory.h: New file.
25584 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25585 (grub_xnu_heap_malloc): Likewise.
25586 (grub_xnu_heap_real_start): Removed.
25587 (grub_xnu_heap_start): Likewise.
25588 (grub_xnu_relocator): New variable.
25589 (grub_xnu_heap_target_start): Likewise.
25590 * tests/util/grub-shell.in: Support non-pc.
25591 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25593 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25595 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25597 (grub_bidi_logical_to_visual): Check that malloc succeded.
25598 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25600 (grub_xputs_normal): Likewise.
25602 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25604 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25607 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25609 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25611 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25613 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25615 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25617 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25620 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25622 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25624 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25626 * grub-core/normal/term.c (print_more): Fix a memory leak.
25627 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25628 (grub_xputs_normal): Likewise.
25630 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25632 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25633 the begining of the string
25635 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25637 * grub-core/script/script.c (grub_script_parse): Free parsed on
25640 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25642 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25645 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25647 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25650 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25652 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25653 (scroll_up): Fix a memory leak.
25655 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25657 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25660 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25662 Handle USB pendrives exposed as floppies.
25664 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25666 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25667 Check for partitions on all devices.
25669 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25671 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25672 (readkey): Likewise.
25674 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25676 Multiple variable names support to "export" command.
25678 * normal/context.c (grub_cmd_export): "export" command supports
25679 multiple variable names.
25681 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25683 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25684 --target=drive output to Mach device name.
25686 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25688 New Automake based build system for GRUB.
25690 * ABOUT-NLS: New file.
25691 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25692 in Makefile.util.def file.
25693 * Makefile.util.def: New file. Autogen build definitions file for
25695 * conf/Makefile.common: New file. Common variables for GRUB host
25696 utils and target modules.
25697 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25698 * docs/Makefile.am: New file. Automake file for docs.
25699 * gentpl.py: New file. Python script to generate Autogen
25701 * grub-core/Makefile.am: New file. GRUB target modules' rules
25702 that doesn't fit in Makefile.core.def file.
25703 * grub-core/Makefile.core.def: New file. Autogen build
25704 definitions file for GRUB target modules.
25705 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25706 specific setjmp.S file.
25707 * po/Makefile.am: New file.
25709 * .bzrignore: New ignores.
25710 * INSTALL: New requirements, without Ruby.
25711 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25712 * autogen.sh: Updated to invoke autogen as necessary.
25713 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25714 and defines for Automake conditionals.
25715 * geninit.sh: Refactoring.
25717 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25719 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25722 * include/grub/test.h: Fix functional test modules' naming.
25723 * grub-core/tests/example_functional_test.c: Fix test module name.
25725 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25726 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25727 * util/grub-editenv.c: Likewise.
25728 * util/grub-fstest.c: Likewise.
25729 * util/grub-mkdevicemap.c: Likewise.
25730 * util/grub-mkfont.c: Likewise.
25731 * util/grub-mkimage.c: Likewise.
25732 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25733 * util/grub-probe.c: Likewise.
25734 * util/grub-script-check.c: Likewise.
25735 * util/i386/pc/grub-setup.c: Likewise.
25736 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25738 * tests/util/grub-shell.in: Fix override directory path.
25739 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25740 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25742 * util/lvm.c: Update #includes.
25743 * util/raid.c: Likewise.
25744 * util/resolve.c: Likewise.
25745 * grub-core/bus/emu/pci.c: Likewise.
25746 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25747 * grub-core/lib/posix_wrap/string.h: Likewise.
25748 * grub-core/kern/emu/main.c: Likewise.
25750 * grub-core/gensymlist.sh: New file. Script for generating kernel
25752 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25754 * grub-core/gentrigtables.c: Fix unused variable warnings.
25756 * Makefile.in: Removed.
25757 * conf/any-emu.rmk: Removed.
25758 * conf/common.rmk: Removed.
25759 * conf/i386-coreboot.rmk: Removed.
25760 * conf/i386-efi.rmk: Removed.
25761 * conf/i386-ieee1275.rmk: Removed.
25762 * conf/i386-multiboot.rmk: Removed.
25763 * conf/i386-pc.rmk: Removed.
25764 * conf/i386-qemu.rmk: Removed.
25765 * conf/i386.rmk: Removed.
25766 * conf/mips-yeeloong.rmk: Removed.
25767 * conf/mips.rmk: Removed.
25768 * conf/powerpc-ieee1275.rmk: Removed.
25769 * conf/sparc64-ieee1275.rmk: Removed.
25770 * conf/tests.rmk: Removed.
25771 * conf/x86-efi.rmk: Removed.
25772 * conf/x86_64-efi.rmk: Removed.
25773 * gendistlist.sh: Removed.
25774 * geninitheader.sh: Removed.
25775 * genkernsyms.sh.in: Removed.
25776 * genmk.rb: Removed.
25777 * gensymlist.sh.in: Removed.
25778 * mkinstalldirs: Removed.
25780 * grub-core/boot: ... to here.
25782 * grub-core/bus: ... to here.
25783 * commands: Moved ...
25784 * grub-core/commands: ... to here.
25786 * grub-core/disk: ... to here.
25787 * efiemu: Moved ...
25788 * grub-core/efiemu: ... to here.
25790 * grub-core/font: ... to here.
25792 * grub-core/fs: ... to here.
25793 * gencmdlist.sh: Moved ...
25794 * grub-core/gencmdlist.sh: ... to here.
25795 * genemuinit.sh: Moved ...
25796 * grub-core/genemuinit.sh: ... to here.
25797 * genemuinitheader.sh: Moved ...
25798 * grub-core/genemuinitheader.sh: ... to here.
25799 * genfslist.sh: Moved ...
25800 * grub-core/genfslist.sh: ... to here.
25801 * genhandlerlist.sh: Moved ...
25802 * grub-core/genhandlerlist.sh: ... to here.
25803 * genmoddep.awk: Moved ...
25804 * grub-core/genmoddep.awk: ... to here.
25805 * genmodsrc.sh: Moved ...
25806 * grub-core/genmodsrc.sh: ... to here.
25807 * genpartmaplist.sh: Moved ...
25808 * grub-core/genpartmaplist.sh: ... to here.
25809 * genparttoollist.sh: Moved ...
25810 * grub-core/genparttoollist.sh: ... to here.
25811 * genterminallist.sh: Moved ...
25812 * grub-core/genterminallist.sh: ... to here.
25813 * gentrigtables.c: Moved ...
25814 * grub-core/gentrigtables.c: ... to here.
25815 * genvideolist.sh: Moved ...
25816 * grub-core/genvideolist.sh: ... to here.
25817 * gettext: Moved ...
25818 * grub-core/gettext: ... to here.
25819 * gfxmenu: Moved ...
25820 * grub-core/gfxmenu: ... to here.
25821 * gnulib: Moved ...
25822 * grub-core/gnulib: ... to here.
25824 * grub-core/hello: ... to here.
25826 * grub-core/hook: ... to here.
25828 * grub-core/io: ... to here.
25830 * grub-core/kern: ... to here.
25832 * grub-core/lib: ... to here.
25833 * loader: Moved ...
25834 * grub-core/loader: ... to here.
25836 * grub-core/mmap: ... to here.
25837 * normal: Moved ...
25838 * grub-core/normal: ... to here.
25839 * partmap: Moved ...
25840 * grub-core/partmap: ... to here.
25841 * parttool: Moved ...
25842 * grub-core/parttool: ... to here.
25843 * script: Moved ...
25844 * grub-core/script: ... to here.
25846 * grub-core/term: ... to here
25847 * tests/example_functional_test.c: Moved ...
25848 * grub-core/tests/example_functional_test.c: ... to here.
25849 * tests/lib/functional_test.c: Moved ...
25850 * grub-core/tests/lib/functional_test.c: ... to here.
25851 * tests/lib/test.c: Moved ...
25852 * grub-core/tests/lib/test.c: ... to here.
25854 * grub-core/video: ... to here.
25856 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25858 Replace --enable-grub-emu-modules with grub-emu-lite.
25860 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25863 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25864 * kern/emu/full.c: New file. For grub-emu specific initialization.
25865 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25866 * kern/emu/main.c: Call initialization function grub_emu_init.
25868 * Makefile.in: Include grub-emu-lite in install.
25869 * commands/parttool.c: Use grub_no_autoload to differentiate
25870 between grub-emu and grub-emu-lite.
25871 * include/grub/misc.h: New variable grub_no_autoload.
25873 * conf/any-emu.rmk: New rules for grub-emu-lite.
25874 * configure.ac: Remove --enable-grub-emu-modules.
25875 * genmk.rb: Cleanup unnecessary rules.
25876 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25878 * normal/main.c: Don't load list files on grub-emu-lite.
25879 * util/misc.c (grub_arch_sync_caches): Removed.
25881 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25883 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25884 grub-mkimage rather than grub-mkelfimage.
25885 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25887 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25889 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25890 a key after CapsLock or NumLock. It's just a qemu bug.
25892 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25894 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25895 needed by libusb wrapper.
25897 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25899 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25901 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25903 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25904 --nounzip is passed.
25906 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25908 USB hotunplugging and USB serial support.
25910 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25911 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25912 (grub_uhci_transfer): Respect timeout and set *actual.
25913 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25914 non-standard length.
25915 (grub_usb_device_attach): Autoload modules.
25916 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25917 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25918 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25920 (grub_usb_add_hub): Fill nports and children.
25921 (attach_root_port): Receive hub instead of controller.
25922 All users updated. Fill hub->devices.
25923 (grub_usb_root_hub): Allocate hub->devices.
25924 (detach_device): New function.
25925 (poll_nonroot_hub): Fill children and detach devices.
25926 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25927 actual arguments. All users updated.
25928 (grub_usb_bulk_read_extended): New function.
25929 * bus/usb/serial/common.c: New file.
25930 * bus/usb/serial/ftdi.c: Likewise.
25931 * bus/usb/serial/pl2303.c: Likewise.
25932 * commands/terminal.c (handle_command): Support wildcard.
25933 * commands/usbtest.c: Output "Unknown" instead of empty string.
25934 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25935 (usbserial_common_mod_SOURCES): New variable.
25936 (usbserial_common_mod_CFLAGS): Likewise.
25937 (usbserial_common_mod_LDFLAGS): Likewise.
25938 (pkglib_MODULES): Add usbserial_pl2303.mod.
25939 (usbserial_pl2303_mod_SOURCES): New variable.
25940 (usbserial_pl2303_mod_CFLAGS): Likewise.
25941 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25942 (pkglib_MODULES): Add usbserial_ftdi.mod.
25943 (usbserial_ftdi_mod_SOURCES): New variable.
25944 (usbserial_ftdi_mod_CFLAGS): Likewise.
25945 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25946 (pkglib_MODULES): Add serial.mod.
25947 (serial_mod_SOURCES): New variable.
25948 (serial_mod_CFLAGS): Likewise.
25949 (serial_mod_LDFLAGS): Likewise.
25950 * conf/i386-pc.rmk: Likewise.
25951 * conf/mips-yeeloong.rmk: Likewise.
25952 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25953 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25954 * disk/usbms.c (first_available_slot): New variable.
25955 (grub_usbms_attach): Don't reuse free slots due to potential cache
25957 * include/grub/serial.h: Moved to ..
25958 * include/grub/ns8250.h: ...this.
25959 * include/grub/serial.h: New file.
25960 * include/grub/term.h (grub_term_poll_usb): New variable.
25961 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25962 readkey. All users updated.
25963 (grub_terminfo_output_state): Pass term to put.
25964 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25965 (grub_usb_controller_dev): Add timeout and actual arguments to
25966 transfer. All users updated.
25967 (grub_usb_interface): New field detach_data.
25968 (grub_usb_device): New fields children and nports.
25969 (grub_usb_ep_type_t): New type.
25970 (grub_usb_get_ep_type): New function.
25971 (grub_usb_bulk_read_extended): Likewise.
25972 * include/grub/usbdesc.h (grub_usb_desc): New type.
25973 * include/grub/usbserial.h: New file.
25974 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25975 * kern/term.c (grub_term_poll_usb): New variable.
25976 (grub_getkey): Call grub_term_poll_usb if set.
25977 (grub_checkkey): Likewise.
25978 (grub_getkeystatus): Likewise.
25979 * term/serial.c: Moved controller-specific parts to ...
25980 * term/ns8250.c: ... here.
25981 * term/serial.c: Mostly rewritten.
25982 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25985 2010-08-20 Robert Millan <rmh@gnu.org>
25987 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25988 a separate module and maybe other interesting combinations.
25990 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25991 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25992 (kfreebsd_entry): Add generic filesystem module load routine.
25993 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25995 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25997 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25998 "numcenter" (I misunderstood the purpose of this entry).
25999 * docs/grub.texi (sendkey): Likewise.
26001 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
26003 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
26004 status flag options; simply omitting the option is equivalent and
26005 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
26006 (keysym_table): Rename "num5numlock" to "numlock".
26007 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
26008 can uniformly say that only the last of multiple `sendkey'
26009 invocations has any effect.
26010 * docs/grub.texi (sendkey): New section.
26012 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
26014 * commands/i386/pc/sendkey.c (options): Fix three typos.
26016 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
26018 Implement sendkey support.
26020 * commands/i386/pc/sendkey.c: New file.
26021 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
26022 (sendkey_mod_SOURCES): New variable.
26023 (sendkey_mod_CFLAGS): Likewise.
26024 (sendkey_mod_LDFLAGS): Likewise.
26026 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
26028 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
26029 fix warnings from Autoconf.
26031 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
26033 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
26034 to avoid false positives with some assemblers that output things
26035 like "someprefix_func" as part of their output.
26037 2010-08-15 Robert Millan <rmh@gnu.org>
26039 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
26041 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
26042 grub_get_libzfs_handle() errors.
26044 2010-08-14 Robert Millan <rmh@gnu.org>
26046 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
26047 filesystem is not ZFS.
26049 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26051 Fix for misspelled color names defaulting to black/black (bug
26052 reported by Doug Nazar)
26054 * include/grub/normal.h (grub_parse_color_name_pair): Add return
26055 status to prototype.
26056 * normal/color.c (grub_parse_color_name_pair): Return failure
26058 (grub_env_write_color_normal): Ignore bad color names.
26059 (grub_env_write_color_highlight): Likewise.
26060 * normal/main.c (GRUB_MOD_INIT): Set default color names.
26062 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26064 "shift" command support to GRUB script.
26066 * include/grub/script_sh.h (grub_script_shift): New prototype.
26067 * script/execute.c (grub_script_shift): New function.
26068 * script/main.c (grub_script_init): Register shift command.
26069 (grub_script_fini): Unregister shift command.
26070 * util/grub-script-check.c (grub_script_cmd_shift): New function.
26072 * tests/grub_script_shift.in: New testcase.
26073 * conf/tests.rmk: Rules for new testcase.
26075 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26077 "continue" command support to GRUB script.
26079 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
26080 (grub_script_break): Continue support.
26081 * script/main.c (grub_script_init): Register continue command.
26082 (grub_script_fini): Unregister continue command.
26084 * tests/grub_script_continue.in: New testcase.
26085 * conf/tests.rmk: Rules for new testcase.
26087 2010-08-12 BVK Chaitanya <bvk@dbook>
26089 "break" command support to GRUB script.
26091 * conf/common.rmk: Rule updates to grub-script-check.
26092 * include/grub/misc.h (grub_min): New function.
26093 * include/grub/script_sh.h (grub_script_init): New prototype.
26094 (grub_script_fini): New prototype.
26095 (grub_script_break): New prototype.
26096 * script/main.c (grub_script_init): New function.
26097 (grub_script_fini): New function.
26098 * script/execute.c (grub_script_break): New function.
26099 * normal/main.c: Calls to grub_script_{init,fini}.
26100 * util/grub-script-check.c (grub_script_break): New function.
26102 * tests/grub_script_break.in: New testcase.
26103 * conf/tests.rmk: Rules for new test case.
26105 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26107 Function parameters support to GRUB script.
26109 * script/yylex.l (VARIABLE): Regular expression update.
26110 * script/function.c (grub_script_function_call): Moved ...
26111 * script/execute.c (grub_script_function_call): ... to here.
26112 (grub_script_execute_arglist_to_argv): Removed.
26113 (grub_script_arglist_to_argv): New function.
26114 * script/argv.c: New file.
26115 (grub_script_argv_free): New function.
26116 (grub_script_argv_next): Likewise.
26117 (grub_script_argv_append): Likewise.
26118 (grub_script_argv_split_append): Likewise.
26119 * include/grub/script_sh.h (grub_script_argv): New struct.
26120 (grub_script_argv_free): New function.
26121 (grub_script_argv_next): Likewise.
26122 (grub_script_argv_append): Likewise.
26123 (grub_script_argv_split_append): Likewise.
26125 * conf/common.rmk (normal.mod): New source script/argv.c.
26127 * tests/grub_script_echo1.in: More tests.
26128 * tests/grub_script_vars1.in: Likewise.
26129 * tests/grub_script_functions.in: New test case.
26130 * conf/tests.rmk: Rules for new testcase.
26132 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26134 Remove grub_script_cmdblock struct.
26136 * include/grub/script_sh.h: Remove grub_script_cmdblock.
26137 * script/parser.y: Likewise.
26138 * script/execute.c: Rename cmdblock suffix to cmdlist.
26139 * script/script.c: Likewise.
26140 * util/grub-script-check.c: Likewise.
26142 2010-08-11 Yves Blusseau <blusseau@zetam.org>
26144 * .bzrignore: add grub-macho2img
26146 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26148 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
26150 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26152 Remove the dump of sm712 initialisation sequence.
26154 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
26155 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
26156 (GRUB_VGA_IO_MISC_WRITE): Likewise.
26157 (GRUB_VGA_CR_*): Added many registers.
26158 (GRUB_VGA_SR_*): Likewise.
26159 (GRUB_VGA_GR_*): Likewise.
26160 (grub_vga_write_arx): New function.
26161 (grub_video_hw_config): New struct.
26162 (grub_vga_set_geometry): New function.
26163 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
26164 GRUB_PCI_CLASS_SUBCLASS_VGA.
26165 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
26166 * video/sm712.c (grub_sm712_write_reg): New function
26167 (grub_sm712_read_reg): Likewise.
26168 (grub_sm712_sr_write): Likewise.
26169 (grub_sm712_gr_write): Likewise.
26170 (grub_sm712_cr_write): Likewise.
26171 (grub_sm712_write_arx): Likewise.
26172 (grub_sm712_cr_shadow_write): Likewise.
26173 (grub_sm712_write_dda_lookup): Likewise.
26174 (grub_video_sm712_setup): Initialise the video rather then
26175 blindly replay the dump.
26176 (main) [TEST]: Add a routine to be able to compile as standalone for
26178 * video/sm712_init.c (sm712_init): Removed.
26179 (sm712_sr_seq1): New array.
26180 (sm712_sr_seq2): Likewise.
26182 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26184 * include/grub/vga.h: Add missing grub/pci.h include.
26186 2010-08-10 Yves Blusseau <blusseau@zetam.org>
26188 * util/grub-macho2img.c (main): fix typo
26190 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26192 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26193 (grub_vga_gr_read): Likewise.
26194 (grub_vga_cr_write): Likewise.
26195 (grub_vga_cr_read): Likewise.
26196 (grub_vga_sr_write): Likewise.
26197 (grub_vga_sr_read): Likewise.
26198 (grub_vga_palette_read): Likewise.
26199 (grub_vga_palette_write): Likewise.
26200 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26201 (grub_sm712_sr_read): New function.
26202 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26203 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26205 2010-08-09 Robert Millan <rmh@gnu.org>
26207 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26208 out unused variables on non-ZFS build.
26210 2010-08-08 Robert Millan <rmh@gnu.org>
26212 Fix path generation for sub-filesystems in ZFS.
26214 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26217 2010-08-08 Robert Millan <rmh@gnu.org>
26219 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26221 2010-08-08 Robert Millan <rmh@gnu.org>
26223 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26224 exist, issue a proper error message (rely on `ls' for translated
26227 2010-08-08 Robert Millan <rmh@gnu.org>
26229 Fix grub-probe invocation.
26231 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26233 2010-08-04 Robert Millan <rmh@gnu.org>
26235 * configure.ac: Remove checks for getfsstat() and getmntany().
26236 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26237 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26238 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26239 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26240 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26242 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26243 via find_mount_point_from_dir() and getfsstat() / getmntany().
26245 2010-08-04 Robert Millan <rmh@gnu.org>
26247 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26248 (grub_find_zpool_from_mount_point): Merge into ...
26249 (grub_find_zpool_from_dir): ... this.
26250 * kern/emu/misc.c: Likewise.
26253 (grub_make_system_path_relative_to_its_root): Replace
26254 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26255 with grub_find_zpool_from_dir().
26256 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26258 2010-08-04 Robert Millan <rmh@gnu.org>
26260 Support OpenSolaris in ZFS device resolution.
26262 * configure.ac: Check for getmntany().
26263 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26264 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26267 2010-08-03 Robert Millan <rmh@gnu.org>
26269 Fix grub-emu build.
26271 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26272 * include/grub/emu/misc.h: ... here.
26274 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26275 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26277 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26278 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26279 (grub_get_libzfs_handle): Move to ...
26280 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26281 (grub_get_libzfs_handle): ... here.
26283 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26285 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26286 as command name case.
26288 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26290 * disk/raid.c (insert_array): Select unique numbers for named arrays
26291 as well, for use as keys in the disk cache.
26293 2010-08-01 Robert Millan <rmh@gnu.org>
26295 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26296 kFreeBSD device name, except on ZFS where the filesystem label is
26298 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26299 `/boot/zfs/zpool.cache'.
26300 Set mountfrom kernel variable using ${kfreebsd_device}.
26302 2010-08-01 Robert Millan <rmh@gnu.org>
26304 Make it even harder to use uninitialized `libzfs_handle' (and
26305 make the interface a bit simpler).
26307 * include/grub/util/misc.h (grub_util_init_libzfs)
26308 (libzfs_handle): Remove.
26309 (grub_get_libzfs_handle): New prototype.
26311 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26313 (grub_util_init_libzfs): Remove.
26314 (grub_get_libzfs_handle): New function.
26316 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26317 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26318 accessing `libzfs_handle' directly.
26320 2010-08-01 Robert Millan <rmh@gnu.org>
26322 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26323 (grub_find_zpool_from_mount_point): New function prototypes.
26325 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26326 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26328 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26329 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26330 `static' attribute.
26332 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26333 finding zpool from mount point into ...
26334 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26336 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26337 requested path is part of a ZFS pool, use
26338 grub_find_zpool_from_mount_point() to detect its filesystem name,
26339 and generate a path with `/fsname@path' syntax.
26341 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26343 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26344 (void) rather than () so that this is a proper prototype.
26346 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26348 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26350 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26352 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26353 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26355 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26357 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26359 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26361 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26363 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26365 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26366 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26367 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26368 disable gfxpayload.
26369 (Shell-like scripting): Add real content.
26370 (Serial terminal): Suggest `terminal_input serial; terminal_output
26371 serial' rather than putting the two commands on separate lines,
26372 since console input will be inoperative after the first command.
26373 (menuentry): Document --class, --users, and --hotkey options.
26374 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26375 Vladimir Serbinenko).
26377 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26378 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26380 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26382 2010-08-01 Robert Millan <rmh@gnu.org>
26384 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26385 (grub_find_zpool_from_mount_point): New function prototypes.
26387 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26388 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26390 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26391 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26392 `static' attribute.
26394 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26395 finding zpool from mount point into ...
26396 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26398 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26399 requested path is part of a ZFS pool, use
26400 grub_find_zpool_from_mount_point() to detect its filesystem name,
26401 and generate a path with `/fsname@path' syntax.
26403 2010-08-01 Robert Millan <rmh@gnu.org>
26405 Prevent accidental use of uninitialized libzfs_handle.
26407 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26408 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26409 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26411 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26413 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26414 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26416 2010-08-01 Robert Millan <rmh@gnu.org>
26418 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26420 2010-07-31 Robert Millan <rmh@gnu.org>
26422 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26424 2010-07-31 Robert Millan <rmh@gnu.org>
26426 * kern/emu/misc.c: Add missing license header.
26428 2010-07-31 Robert Millan <rmh@gnu.org>
26430 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26432 * include/grub/util/libnvpair.h: Include `<config.h>'.
26433 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26434 declaring libnvpair prototypes ourselves.
26435 * include/grub/util/libzfs.h: Include `<config.h>'.
26436 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26437 declaring libzfs prototypes ourselves.
26439 (libzfs_handle): Moved to ...
26440 * include/grub/util/misc.h (libzfs_handle): ... here.
26441 Include `<grub/util/libzfs.h>'.
26443 2010-07-30 Robert Millan <rmh@gnu.org>
26445 * include/grub/emu/misc.h: Add missing license header.
26447 2010-07-30 Robert Millan <rmh@gnu.org>
26449 Enable `grub-probe -t device' resolution on ZFS.
26451 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26452 * include/grub/util/libnvpair.h: New file.
26453 * include/grub/util/libzfs.h: New file.
26455 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26456 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26457 `<grub/util/libnvpair.h>'.
26458 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26460 (find_mount_point_from_dir): New static function.
26461 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26463 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26464 find_root_device_from_libzfs() before ressorting to find_root_device().
26466 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26468 * util/misc.c: Include `<grub/util/libzfs.h>'.
26469 (grub_util_init_libzfs): New function.
26470 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26471 [HAVE_LIBZFS] (fini_libzfs): New static function.
26472 (grub_util_init_libzfs): New function.
26473 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26475 2010-07-30 Robert Millan <rmh@gnu.org>
26477 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26478 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26479 `warn_unused_result' attribute.
26480 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26481 (grub_xasprintf, grub_xvasprintf): Likewise.
26482 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26484 2010-07-29 Robert Millan <rmh@gnu.org>
26486 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26487 (probe): Handle `PRINT_FS_LABEL'.
26488 (main): Handle `-t fs_label'.
26490 2010-07-29 Robert Millan <rmh@gnu.org>
26492 * configure.ac: Remove grub-mkisofs checks.
26494 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26496 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26497 Reported by: Lennart Sorensen.
26499 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26501 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26502 prior to terminal_input/terminal_output separation. It's been over 1.5
26503 years and those versions weren't widely deployed.
26505 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26507 * disk/raid.c (insert_array): Don't count named arrays when looking
26508 for unused array numbers.
26509 Reported and tested by: Michael Guntsche.
26511 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26513 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26514 implementation of this so that grub-emu links again, with a note
26515 that this should support hotplugging in the future.
26517 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26519 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26521 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26523 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26525 (grub_loopback_close): Remove empty function.
26526 (grub_loopback_dev): Remove close method.
26528 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26530 Disable EFI cursor when the EFI console becomes inactive.
26532 * term/efi/console.c (grub_efi_console_init): New function.
26533 (grub_efi_console_fini): New function.
26534 (grub_console_term_output): Register init and fini methods.
26536 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26538 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26541 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26543 * disk/loopback.c (grub_loopback): Replace filename with file.
26544 (delete_loopback): Handle new semantics.
26545 (grub_cmd_loopback): Likewise.
26546 (grub_loopback_iterate): Likewise.
26547 (grub_loopback_close): Likewise.
26549 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26551 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26553 Reported by: Tito Keitel.
26555 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26557 * docs/grub.texi (Naming convention): Document new naming convention.
26559 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26560 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26562 Generate device.map in something closer to the old ordering.
26564 * util/deviceiter.c (struct device): New declaration.
26565 (compare_file_names): Rename to ...
26566 (compare_devices): ... this. Sort by kernel name in preference to
26567 the stable by-id name, but keep the latter as a fallback comparison.
26568 Update header comment.
26569 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26570 of `struct device' rather than of plain file names.
26572 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26574 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26577 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26579 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26581 (setv1table): Likewise.
26583 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26585 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26586 removing the homehost if present.
26587 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26588 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26589 removing the homehost if present.
26590 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26592 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26594 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26595 parameter. Set its pointer target to 0.
26596 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26597 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26598 `data_offset' value from the superblock for 1.x metadata.
26599 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26600 data on the device.
26601 (insert_array): Record the start sector of data on the device.
26602 (grub_raid_register): Pass start_sector parameters to
26603 grub_raid_list->detect and insert_array.
26604 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26606 (struct grub_raid): Add start_sector parameter to `detect'.
26608 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26609 __attribute__ ((packed)), leaving a comment.
26610 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26611 (grub_mdraid_detect_09): ... here and ...
26612 (grub_mdraid_detect_1x): ... here.
26614 2010-07-20 Peter Henn <peter.henn@web.de>
26616 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26617 chunk size and disk size, which are already given as sector counts
26618 as distinct from the 0.90 units. Fetch the correct device number
26619 from the role table instead of using the table index.
26621 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26623 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26624 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26625 (WriteMostly1): New macro.
26626 Set array->name to NULL for metadata format 0.90. Add support for
26627 metadata 1.x. Fix some comments.
26628 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26630 * util/getroot.c (grub_util_get_grub_dev): Add support for
26631 /dev/md/name style devices.
26633 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26635 * .bzrignore: Ignore 20_linux_xen.
26637 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26639 * util/import_unicode.py: Remove unnecessary imports.
26641 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26643 Hotplugging and USB hub support.
26645 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26646 (grub_ohci): Likewise.
26647 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26648 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26649 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26650 (GRUB_OHCI_CTRL_EDS): Likewise.
26651 (GRUB_OHCI_BULK_EDS): Likewise.
26652 (GRUB_OHCI_TDS): Likewise.
26653 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26654 (grub_ohci_ed_phys2virt): New function.
26655 (grub_ohci_virt_to_phys): Likewise.
26656 (grub_ohci_td_phys2virt): Likewise.
26657 (grub_ohci_td_virt2phys): Likewise.
26658 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26660 (grub_ohci_find_ed): New function.
26661 (grub_ohci_alloc_td): Likewise.
26662 (grub_ohci_free_td): Likewise.
26663 (grub_ohci_free_tds): Likewise.
26664 (grub_ohci_transfer): Use previously allocated memory.
26665 (grub_ohci_portstatus): Reset status changed bit.
26666 (grub_ohci_detect_dev): Supply status changed.
26667 (grub_ohci_fini_hw): Free memory.
26668 (grub_ohci_restore_hw): Reallocate memory.
26669 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26670 Reset status change.
26671 (grub_uhci_detect_dev): Supply status_change.
26672 * bus/usb/usb.c (attach_hooks): New var.
26673 (grub_usb_device_attach): New function.
26674 (grub_usb_register_attach_hook_class): Likewise.
26675 (grub_usb_unregister_attach_hook_class): Likewise.
26676 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26677 (grub_usb_add_hub): Reset connection changed bit.
26678 (attach_root_port): New function.
26679 (grub_usb_root_hub): Likewise.
26680 (poll_nonroot_hub): Likewise.
26681 (grub_usb_poll_devices): Likewise.
26682 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26683 * disk/usbms.c (grub_usbms_open): Use device hooks.
26684 (grub_usbms_iterate) :Poll devices.
26685 (grub_usbms_finddevs): Split into ...
26686 (grub_usbms_attach): ... this ...
26687 (grub_usbms_attach): ... and this.
26688 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26690 (grub_usb_interface): New fields attached and detach_hook.
26691 (grub_usb_attach_hook_class): New type.
26692 (grub_usb_attach_desc): New struct.
26693 (grub_usb_register_attach_hook_class): New function.
26694 (grub_usb_unregister_attach_hook_class): Likewise.
26695 (grub_usb_poll_devices): Likewise.
26696 (grub_usb_device_attach): Likewise.
26697 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26698 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26700 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26702 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26703 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26704 delta determination style. Works with most NetBSD partitions too.
26706 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26708 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26709 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26711 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26713 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26715 2010-07-14 Anton Blanchard <anton@samba.org>
26717 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26720 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26722 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26724 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26726 * kern/partition.c (grub_partition_check_containment): New function to
26727 check that a partition is physically contained in a parent. Since
26728 offsets are relative (and non-negative), this reduces to checking that
26729 the partition ends before its parent.
26730 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26731 (grub_partition_iterate): Likewise.
26732 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26734 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26735 partitions that start before their parent, and add debug printfs.
26737 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26739 * Makefile.in (.SUFFIX): Spell correctly, as ...
26740 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26741 bare module name without `.mod', e.g. `test') tried to invoke a
26744 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26746 * README: Point to the Info manual.
26748 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26750 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26751 2nd superblock position from partition size.
26753 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26755 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26756 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26757 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26760 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26762 Restructure SCSI .id handling.
26763 Reported and tested by: Aleš Nesrsta.
26765 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26766 (grub_atapi_dev): Changed .name to "ata". New field .id.
26767 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26768 (grub_usbms_dev): New field .id.
26769 * disk/scsi.c (grub_scsi_iterate): Generate name.
26770 (grub_scsi_open): Parse name.
26771 * include/grub/scsi.h (grub_make_scsi_id): New function.
26772 (grub_scsi_dev): Change iterate and open to number instead of naming
26773 busses. All users updated.
26774 (grub_scsi): Remove name. Add .bus.
26776 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26778 * commands/help.c (grub_cmd_help): Fix a typo.
26780 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26782 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26783 Reported and tested by: Colin Watson.
26785 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26787 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26790 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26792 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26794 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26796 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26799 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26801 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26802 and disk/raid6_recover.c.
26803 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26804 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26806 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26808 * term/gfxterm.c (repaint_schedulded): Rename to ...
26809 (repaint_scheduled): ... this. Update all callers.
26810 (repaint_was_schedulded): Rename to ...
26811 (repaint_was_scheduled): ... this. Update all callers.
26813 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26815 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26816 which we expect to be handled by upper layers.
26818 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26820 * bus/usb/usbhub.c: #include time.h header.
26822 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26824 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26825 entry_name also for entries without stat blocks (e.g. ".."); fixes
26826 corruption of the first entry in a directory.
26828 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26830 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26831 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26832 doesn't work otherwise.
26834 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26836 * docs/grub.texi (Features): Update list of supported file systems.
26837 (GNU/Linux): Update for GRUB 2.
26838 (Serial terminal): Remove mention of --disable-serial, which was a
26839 GRUB Legacy configure option. Update instructions to use
26840 `terminal_input' and `terminal_output' rather than `terminal'.
26841 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26842 configuration' and `Installing GRUB using grub-install'.
26843 (Menu entry editor): Update for GRUB 2.
26844 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26845 Document new -a, -u, and -v options.
26846 (initrd): New section.
26847 (initrd16): New section.
26848 (linux): New section.
26849 (linux16): New section.
26850 (search): The `var' argument to `--set' is optional.
26851 (GRUB only offers a rescue shell): Go into a little more detail on
26854 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26856 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26858 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26860 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26861 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26863 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26865 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26866 install_prefix, in line with install_dos_part and install_bsd_part.
26867 Add new prefix variable, which is copied to install_prefix after
26868 comparing core.img in memory with the one read from disk in the
26869 no-embedding case, and use that rather than overwriting
26870 install_prefix immediately when installing to a partition.
26871 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26874 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26876 * configure.ac: Avoid == in test command, it's not portable.
26877 * util/grub.d/30_os-prober.in: Likewise.
26879 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26881 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26883 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26885 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26886 multiple (top-level) partmaps.
26888 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26890 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26891 Reported by: Tino Keitel.
26893 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26895 Bidi and diacritics support.
26897 * Makefile.in (widthspec.bin): New target.
26898 (widthspec.h): Likewise.
26899 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26900 * autogen.sh: Generate unidata.c.
26901 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26902 * commands/ls.c (grub_ls_list_devices): Likewise.
26903 (grub_ls_list_files): Likewise.
26904 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26905 (grub_mini_cmd_lsmod): Likewise.
26906 * commands/read.c: Likewise.
26907 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26908 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26909 * lib/arg.c (grub_arg_show_help): Likewise.
26910 * lib/crypto.c (grub_password_get): Likewise.
26911 * normal/auth.c (grub_username_get): Likewise.
26912 * normal/misc.c (grub_normal_print_device_info): Likewise.
26913 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26914 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26915 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26916 (normal/charset.c_DEPENDENCIES): New variable.
26917 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26918 (pkglib_MODULES): Remove charset.mod.
26919 (charset_mod_SOURCES): Removed.
26920 (charset_mod_CFLAGS): Likewise.
26921 (charset_mod_LDFLAGS): Likewise.
26922 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26923 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26925 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26926 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26927 (kernel_img_HEADERS): Add terminfo.h.
26928 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26929 Fill ->font. Reverse ascii bitmaps.
26930 (grub_font_get_xheight): New function.
26931 * font/font.c (grub_font_get_string_width): Moved from here ...
26932 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26933 * font/font.c (grub_font_draw_string): Moved from here ...
26934 * gfxmenu/font.c (grub_font_draw_string): ... here.
26935 * font/font.c (grub_font_dup_glyph): New function.
26936 (grub_font_blit_glyph): Likewise.
26937 (grub_font_blit_glyph_mirror): Likewise.
26938 (blit_comb): Likewise.
26939 (grub_font_construct_dry_run): Likewise.
26940 (grub_font_get_constructed_device_width): Likewise.
26941 (grub_font_construct_glyph): Likewise.
26942 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26943 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26944 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26945 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26946 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26947 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26948 (grub_font_get_xheight): New proto.
26949 (grub_font_get_constructed_device_width): Likewise.
26950 (grub_font_construct_glyph): Likewise.
26951 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26952 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26953 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26954 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26955 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26956 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26957 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26958 (grub_console_getcharwidth): Likewise.
26959 * include/grub/misc.h (grub_xputs): New proto.
26960 (grub_puts): Inlined.
26961 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26962 (grub_normal_get_line_counter): Removed.
26963 (grub_install_newline_hook): Likewise.
26964 (grub_normal_get_char_counter): New proto.
26965 (grub_normal_reset_more): Likewise.
26966 (grub_xputs_normal): Likewise.
26967 * include/grub/powerpc/ieee1275/console.h: Removed.
26968 * include/grub/sparc64/ieee1275/console.h: Likewise.
26969 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26970 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26971 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26972 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26973 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26974 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26975 (grub_term_input): Pass reference to self. All users updated.
26976 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26977 Pass reference to self. New fields normal_color, highlight_color and
26978 data. All users updated.
26979 (grub_putchar): Removed.
26980 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26981 (grub_unicode_estimate_width): New function.
26982 (grub_term_getcharwidth): Add defaults.
26983 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26984 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26985 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26986 (grub_cls): Remove EXPORT_FUNC.
26987 (grub_setcolorstate): Inline.
26988 (grub_newline_hook): Removed.
26989 * include/grub/terminfo.h: Rewritten. All users updated.
26990 * include/grub/unicode.h: New file.
26991 * include/grub/video.h (grub_video_signed_rect): New type.
26992 * kern/emu/console.c (grub_console_highlight_color): Removed.
26993 (grub_console_normal_color): Likewise.
26994 (grub_console_standard_color): Made static.
26995 (grub_ncurses_putchar): Remove mapping.
26996 (grub_ncurses_getcharwidth): Removed.
26997 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26998 (grub_ncurses_setcolor): Removed.
26999 (grub_ncurses_getcolor): Likewise.
27000 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
27001 (grub_console_putchar): ... this.
27002 (grub_console_putchar): Handle argument difference.
27003 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
27004 console_init_early and console_init_lately.
27005 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
27006 * kern/misc.c (grub_puts): Removed.
27007 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
27008 (grub_vsnprintf_real): Remove str = NULL support.
27009 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
27010 * normal/charset.c (grub_utf8_to_ucs4): ... here.
27011 * kern/term.c (grub_putcode): Renamed to ...
27012 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
27013 (grub_putchar): Removed.
27014 (grub_xputs_dumb): New function.
27015 (grub_xputs): New variable.
27016 * lib/charset.c: Move from here ...
27017 * normal/charset.c: ... to here.
27018 (grub_ucs4_to_utf8): New function.
27019 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
27020 (join_types): New variable.
27021 (unpack_join): New function.
27022 (bidi_types): New variable.
27023 (unpack_bidi): New function.
27024 (get_bidi_type): Likewise.
27025 (get_join_type): Likewise.
27026 (is_mirrored): Likewise.
27027 (grub_unicode_get_comb_type): Likewise.
27028 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
27029 (is_type_after): Likewise.
27030 (grub_unicode_aglomerate_comb): Likewise.
27031 (bidi_line_wrap): Likewise.
27032 (grub_bidi_line_logical_to_visual): Likewise.
27033 (grub_bidi_logical_to_visual): Likewise.
27034 (grub_unicode_mirror_code): Likewise.
27035 (grub_unicode_shape_code): Likewise.
27036 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
27037 Don't use grub_putchar.
27038 * normal/main.c (grub_normal_init_page): Use grub_putcode.
27039 (grub_normal_reader_init): Likewise.
27040 (grub_xputs_saved): New variable.
27041 (GRUB_MOD_INIT): Set grub_xputs.
27042 (GRUB_MOD_FINI): Restore grub_xputs.
27043 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
27044 (menu_init): Avoid printing gfxmenu error.
27045 (show_menu): Use grub_normal_get_char_counter.
27046 * normal/menu_entry.c (update_screen): Fix out-of-array.
27047 (complete): Avoid NULL dereferencing.
27048 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
27049 * normal/menu_text.c (print_spaces): Removed.
27050 (grub_print_ucs4): Likewise.
27051 (grub_print_message_indented): Use grub_print_ucs4.
27052 (print_message): Use grub_putcode.
27053 (print_entry): Hanlde diacritics.
27054 * normal/term.c (term_state): New type.
27055 (grub_more_lines): Removed.
27056 (term_states): New variable.
27057 (grub_normal_line_counter): Renamed to ..
27058 (grub_normal_char_counter): ...this. All users updated.
27059 (grub_normal_get_line_counter): Renamed to ...
27060 (grub_normal_get_char_counter): ... this.
27061 (grub_normal_reset_more): New function.
27062 (process_newline): Removed.
27063 (print_more): New function.
27064 (grub_install_newline_hook): Removed.
27065 (map_code): New function.
27066 (grub_puts_terminal): Use grub_print_ucs4.
27067 (putglyph): New function.
27068 (putcode_real): Likewise.
27069 (grub_putcode): Use putcode_real.
27070 (get_maxwidth): New function.
27071 (get_startwidth): Likewise.
27072 (print_ucs4_terminal): Likewise.
27073 (find_term_state): Likewise.
27074 (put_glyphs_terminal): Likewise.
27075 (print_backlog): Likewise.
27076 (print_ucs4_real): Likewise.
27077 (grub_print_ucs4): Likewise.
27078 (grub_xputs_normal): Likewise.
27079 * term/efi/console.c (grub_console_putchar): Output diacritics.
27080 (grub_console_getcharwidth): Removed.
27081 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27082 * term/gfxterm.c (clear_char): Free chars.
27083 (scroll_up): Avoid leaking memory.
27084 (grub_gfxterm_putchar): Support diacritics.
27085 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27086 * term/i386/pc/console.c (grub_console_term_output): Declare as
27087 GRUB_TERM_CODE_TYPE_VGA.
27088 * term/i386/pc/vga.c (grub_vga_term): Declare as
27089 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
27090 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
27091 GRUB_TERM_CODE_TYPE_VGA.
27092 * term/i386/vga_common.c (map_char): Removed.
27093 (grub_console_putchar): Likewise.
27094 (grub_console_getcharwidth): Likewise.
27095 * term/ieee1275/ofconsole.c: Simplify using terminfo.
27096 (colors): Reordered to match terminfo.
27097 (grub_ofconsole_normal_color): Removed.
27098 (grub_ofconsole_writeesc): Likewise.
27099 (grub_ofconsole_highlight_color): Likewise.
27100 (grub_ofconsole_getcharwidth): Likewise.
27101 (grub_ofconsole_setcolorstate): Likewise.
27102 (grub_ofconsole_setcolor): Likewise.
27103 (grub_ofconsole_getcolor): Likewise.
27104 (grub_ofconsole_readkey): Renamed to ...
27105 (readkey): ... this. Remove escape sequence handling. Return -1 on no
27107 (grub_ofconsole_checkkey): Removed.
27108 (grub_ofconsole_getkey): Likewise.
27109 (grub_ofconsole_getxy): Likewise.
27110 (grub_ofconsole_gotoxy): Likewise.
27111 (grub_ofconsole_cls): Likewise.
27112 (grub_ofconsole_refresh): Likewise.
27113 (grub_ofconsole_terminfo_input): New struct.
27114 (grub_ofconsole_terminfo_output): Likewise.
27115 (grub_ofconsole_term_input): Use terminfo.
27116 (grub_ofconsole_term_output): Likewise.
27117 (grub_console_init): Split into ...
27118 (grub_console_init_early): ...this and ...
27119 (grub_console_init_lately): ...this. Use terminfo.
27120 (grub_ofconsole_putchar): Renamed to ...
27121 (put): ... this. Remove mapping.
27122 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
27123 * term/serial.c: Simplify using terminfo.
27126 (keep_track): Likewise.
27127 (registered): Likewise.
27128 (input_buf): Likewise.
27129 (npending): Likewise.
27130 (serial_translate_key_sequence): Likewise.
27131 (fill_input_buf): Likewise.
27132 (grub_serial_checkkey): Likewise.
27133 (grub_serial_getkey): Likewise.
27134 (grub_serial_getxy): Likewise.
27135 (grub_serial_gotoxy): Likewise.
27136 (grub_serial_putchar): Likewise.
27137 (grub_serial_cls): Likewise.
27138 (grub_serial_setcolorstate): Likewise.
27139 (grub_serial_setcursor): Likewise.
27140 (serial_hw_init): Use serial_hw_fetch.
27141 (grub_serial_terminfo_input): New variable.
27142 (grub_serial_terminfo_output): Likewise.
27143 (grub_serial_term_input): Use terminfo.
27144 (grub_serial_term_output): Likewise.
27145 * term/terminfo.c (putstr): Use put.
27146 (grub_terminfo_all_free): New function
27147 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
27148 (grub_terminfo_output_register): New function.
27149 (grub_terminfo_output_unregister): Likewise.
27150 (grub_terminfo_getxy): Likewise.
27151 (grub_terminfo_readkey): Likewise.
27152 (grub_terminfo_checkkey): Likewise.
27153 (grub_terminfo_getkey): Likewise.
27154 (grub_terminfo_input_init): Likewise.
27155 (print_terminfo): Likewise.
27156 (grub_cmd_terminfo): Handle encoding.
27157 (grub_terminfo_gotoxy): Track position.
27158 (grub_terminfo_cls): Likewise.
27159 (grub_terminfo_putchar): Likewise.
27160 (grub_terminfo_setcolorstate): Handle colors
27161 (grub_terminfo_cursor_on): This ...
27162 (grub_terminfo_cursor_off): ... and this merged into ...
27163 (grub_terminfo_setcursor): ... this.
27164 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
27165 * unicode/ArabicShaping.txt: New file (imported from Unicode).
27166 * unicode/BidiMirroring.txt: Likewise.
27167 * unicode/UnicodeData.txt: Likewise.
27168 * unicode/COPYING: Likewise.
27169 * util/grub-editenv.c (grub_putchar): Removed.
27170 (grub_xputs_real): New function.
27171 (grub_xputs): New variable.
27172 * util/grub-fstest.c (grub_putchar): Removed.
27173 (grub_xputs_real): New function.
27174 (grub_xputs): New variable.
27175 * util/grub-mkdevicemap.c (grub_putchar): Removed.
27176 (grub_xputs_real): New function.
27177 (grub_xputs): New variable.
27178 * util/grub-probe.c (grub_putchar): Removed.
27179 (grub_xputs_real): New function.
27180 (grub_xputs): New variable.
27181 * util/grub-script-check.c (grub_putchar): Removed.
27182 (grub_xputs_real): New function.
27183 (grub_xputs): New variable.
27184 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27185 (grub_xputs_real): New function.
27186 (grub_xputs): New variable.
27187 * util/import_unicode.py: New file.
27188 * util/grub-mkfont.c (ft_errmsgs): New array.
27189 (grub_glyph_info): Make bitmap a pointer.
27190 (file_formats): New type WIDTH_SPEC.
27191 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27192 (options): Add width-spec.
27194 (add_char): Renamed to ...
27195 (add_glyph): ... this.
27196 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27197 (glyph_replace): New type.
27198 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27199 (add_char): New function.
27200 (add_subst): Likewise.
27201 (process_cursive): Likewise.
27202 (add_font): Handle GSUB.
27203 (write_font_width_spec): New function.
27204 (main): Sort glyphs.
27205 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27206 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27207 * kern/term.c (grub_cls): Moved from here...
27208 * normal/term.c (grub_cls): ... here.
27210 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27212 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27213 suitable for using within the format argument of printf when
27214 converting grub_size_t.
27215 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27216 "x" to convert grub_size_t arguments.
27218 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27220 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27222 (list_get_minimal_size): Take selection box into account.
27224 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27226 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27229 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27231 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27232 devices when iterating over /dev/disk/by-id; they will be handled
27233 later if appropriate, which they aren't always (e.g. LVM).
27235 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27237 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27238 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27240 (grub_halt): Likewise.
27241 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27243 (grub_halt): Don't return, even if all of shut-down, power-off, and
27246 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27248 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27249 arguments, not three.
27251 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27253 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27254 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27255 LVM-on-RAID is handled correctly.
27257 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27259 * docs/grub.texi (Changes from GRUB Legacy): New section.
27260 (Future): Fix typo.
27262 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27264 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27265 grub.d/README accidentally ends up executable for one reason or
27266 another. Ignore it.
27268 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27270 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27271 (gpt_partition_map_iterate): Support non-512B sectors.
27273 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27275 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27276 Tested by: Seth Goldberg.
27278 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27280 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27281 Properly align mbi.
27282 Reported by: Seth Goldberg.
27284 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27286 * util/grub-mkrescue.in: Avoid module duplication.
27288 2010-07-01 Sean Finney <seanius@seanius.net>
27290 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27292 2010-07-01 Sean Finney <seanius@seanius.net>
27294 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27296 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27298 * disk/lvm.c (grub_lvm_checkvalue): New function.
27299 (grub_lvm_check_flag): Likewise.
27301 2010-07-01 Robert Millan <rmh@gnu.org>
27303 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27304 Support 'p' as partition separator on kernel of FreeBSD (used
27306 (grub_util_biosdisk_get_grub_dev): Likewise.
27308 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27310 Yeeloong firmware port.
27312 * boot/mips/yeeloong/fwstart.S: New file.
27313 * bus/cs5536.c (gpiodump): New const.
27314 (set_io_space): New function.
27315 (set_iod): Likewise.
27316 (set_p2d): Likewise.
27317 (grub_cs5536_init_geode): Likewise.
27318 * commands/mips/yeeloong/lsspd.c: New file.
27319 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27320 (serial_mod_SOURCES): New variable.
27321 (serial_mod_CFLAGS): Likewise.
27322 (serial_mod_LDFLAGS): Likewise.
27323 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27324 term/terminfo.c and term/tparm.c.
27325 (pkglib_IMAGES): Add fwstart.img.
27326 (fwstart_img_SOURCES): New variable.
27327 (fwstart_img_CFLAGS): Likewise.
27328 (fwstart_img_ASFLAGS): Likewise.
27329 (fwstart_img_LDFLAGS): Likewise.
27330 (fwstart_img_FORMAT): Likewise.
27331 (pkglib_MODULES): Add lsspd.mod.
27332 (lsspd_mod_SOURCES): New variable.
27333 (lsspd_mod_CFLAGS): Likewise.
27334 (lsspd_mod_LDFLAGS): Likewise.
27335 (pkglib_MODULES): Add halt.mod.
27336 (halt_mod_SOURCES): New variable.
27337 (halt_mod_CFLAGS): Likewise.
27338 (halt_mod_LDFLAGS): Likewise.
27339 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27340 (serial_mod_SOURCES): Removed.
27341 (serial_mod_CFLAGS): Likewise.
27342 (serial_mod_LDFLAGS): Likewise.
27343 * disk/ata.c (check_device): New function.
27344 (grub_ata_device_initialize): Use check_device.
27345 (grub_ata_iterate): Recheck devices.
27346 (grub_ata_open): Likewise.
27347 (grub_atapi_iterate): Likewise.
27348 (grub_atapi_open): Likewise.
27349 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27350 (GRUB_ATA_CH1_PORT1): Likewise.
27351 (GRUB_ATA_CH0_PORT2): Likewise.
27352 (GRUB_ATA_CH1_PORT2): Likewise.
27353 * include/grub/mips/loongson.h: New file.
27354 * include/grub/mips/yeeloong/ec.h: Likewise.
27355 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27356 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27357 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27358 * include/grub/misc.h (grub_halt): Declare as noreturn.
27359 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27360 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27361 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27362 (UART_ENABLE_DTRRTS): Likewise.
27363 (UART_ENABLE_MODEM): Removed.
27364 (UART_ENABLE_OUT2): New const.
27365 * include/grub/term.h (grub_term_register_input_active): New function.
27366 (grub_term_register_output_active): Likewise.
27367 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27369 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27370 (init_pci): New function.
27371 (grub_machine_init): Execute platform init when firmware. Init serial.
27372 (grub_halt): Implement.
27373 (grub_exit): Likewise.
27374 (grub_reboot): Likewise.
27375 * term/serial.c (serial_hw_init): Update macros.
27376 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27377 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27378 (image_targets): New target mipsel-yeeloong-flash.
27379 (generate_image): Support IMAGE_YEELOONG_FLASH.
27380 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27381 (grub_video_sm712_setup): Init card.
27382 (grub_video_sm712_set_palette): Removed.
27383 * video/sm712_init.c: New file.
27385 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27387 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27388 PATH when running help2man and then run it on the unadorned
27389 executable names, rather than passing $(builddir)/* paths to
27390 help2man. This avoids the build directory ending up in generated
27393 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27395 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27396 to avoid accidents when debugging with 'sh -x'.
27397 * util/grub-mkrescue.in: Likewise.
27398 * util/grub.d/00_header.in: Likewise.
27399 * util/grub.d/10_hurd.in: Likewise.
27400 * util/grub.d/10_kfreebsd.in: Likewise.
27401 * util/grub.d/10_linux.in: Likewise.
27402 * util/grub.d/10_netbsd.in: Likewise.
27403 * util/grub.d/10_windows.in: Likewise.
27404 * util/grub.d/20_linux_xen.in: Likewise.
27405 * util/grub.d/30_os-prober.in: Likewise.
27406 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27408 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27410 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27411 last character in the buffer.
27412 Reported by: Vladimir Serbinenko.
27414 2010-06-29 Robert Millan <rmh@gnu.org>
27416 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27417 (Command-line and menu entry commands): Document `badram' command.
27419 2010-06-28 Robert Millan <rmh@gnu.org>
27421 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27422 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27423 command using ${GRUB_BADRAM} as parameter.
27425 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27427 * docs/grub.texi (Device map): New section.
27428 (Themes): New section (stub).
27429 * Makefile.in (docs/grub.info): The info documentation now builds
27430 without errors. Make sure it stays that way.
27432 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27434 Use normal parser for menu entries.
27435 Reported by: Thomas Frauendorfer
27437 * include/grub/parser.h (grub_parser_execute): Don't export.
27438 * normal/menu.c (grub_menu_execute_entry_real): New function.
27439 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27441 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27443 * docs/grub.texi (Embedded configuration): New section (replacing
27444 old "Preset Menu" stub).
27445 (Images): New section.
27446 (configfile): Note that any menu entries defined in `file' are shown
27449 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27451 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27453 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27455 * util/grub-install.in: Add --debug-image= option.
27457 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27459 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27462 * util/deviceiter.c (check_device): Rename to ...
27463 (check_device_readable_unique): ... this. Update all callers.
27464 Maintain and check a list of which devices (by canonicalized name)
27465 have already been seen.
27466 (clear_seen_devices): New function.
27467 (compare_file_names) [__linux__]: New function.
27468 (grub_util_iterate_devices): Clear the list of seen devices on exit
27469 and (just in case) on entry.
27470 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27471 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27472 seen-devices list, superseded by general code in check_device.
27474 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27476 * commands/cat.c (options): New variable.
27477 (grub_cmd_cat): Parse options. If the --dos option is given, print
27478 DOS-style "\r\n" line endings as simple newlines (Debian bug
27480 (GRUB_MOD_INIT): Use extcmd.
27481 (GRUB_MOD_FINI): Likewise.
27482 * docs/grub.texi (cat): Document --dos.
27484 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27486 XEN with Linux grub-mkconfig support.
27488 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27489 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27490 GRUB_CMDLINE_XEN_DEFAULT.
27491 * util/grub.d/20_linux_xen.in: New file.
27493 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27495 Initialise VGA video on qemu ourselves.
27497 * boot/i386/qemu/boot.S: Don't call 0xc000.
27498 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27499 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27500 (kernel_img_HEADERS): Add pci.h.
27501 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27502 * configure.ac: Force unifont on qemu and yeeloong.
27503 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27504 (grub_vga_palette_write): Use correct register.
27505 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27506 Call grub_qemu_init_cirrus.
27507 * kern/i386/qemu/init.c: New file.
27508 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27510 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27512 2010-06-26 Pavel Roskin <proski@gnu.org>
27514 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27517 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27519 * docs/grub.texi (Simple configuration): Explain that
27520 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27521 set to `true' to disable their respective recovery entries, not
27524 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27526 Make the `source' command slightly faster.
27528 * normal/main.c (grub_normal_execute): Don't re-read list files when
27531 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27533 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27534 field position and mask size to red fields from mode_info, not
27536 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27537 Remove redundant tag->common.framebuffer_type assignment.
27538 Reported by: Seth Goldberg.
27540 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27542 Sync up other versions of the Linux loader with Robert Millan's
27543 change of 2010-01-09, "Make loader output a bit more user-friendly".
27545 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27547 (grub_cmd_linux): Likewise.
27548 (grub_cmd_initrd): Likewise.
27549 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27550 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27552 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27554 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27555 larger than MEMORY_MAP_SIZE.
27557 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27559 Fix parallel build.
27561 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27563 * script/parser.y: #include grub_script.tab.h header.
27565 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27567 Support >3GiB and <16MiB RAM in i386-qemu.
27569 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27570 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27571 (grub_lower_mem): Removed.
27572 (grub_upper_mem): Likewise.
27573 (mem_size): Made static.
27574 (above_4g): New variable.
27575 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27576 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27579 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27581 Cirrus 5446 and Bochs video cards support.
27583 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27585 (video_cirrus_mod_SOURCES): New variable.
27586 (video_cirrus_mod_CFLAGS): Likewise.
27587 (video_cirrus_mod_LDFLAGS): Likewise.
27588 (video_bochs_mod_SOURCES): Likewise.
27589 (video_bochs_mod_CFLAGS): Likewise.
27590 (video_bochs_mod_LDFLAGS): Likewise.
27591 * include/grub/vga.h: New file.
27592 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27593 (grub_video_fb_set_page_t): New type.
27594 (grub_video_fb_setup): New prototype.
27595 (grub_video_fb_swap_buffers): Likewise.
27596 (grub_video_fb_get_info_and_fini): Likewise.
27597 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27598 (CRTC_DATA_PORT): Likewise.
27599 (CRTC_CURSOR): Likewise.
27600 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27601 (CRTC_CURSOR_ADDR_LOW): Likewise.
27602 (CRTC_CURSOR_DISABLE): Likewise.
27603 (update_cursor): Use grub_vga_cr_write.
27604 (grub_vga_text_setcursor): Likewise.
27605 * video/bochs.c: New file.
27606 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27607 (palette): Likewise.
27608 (palette_size): Likewise.
27609 (framebuffer): New variable.
27610 (grub_video_fb_init): Use 'framebuffer'.
27611 (grub_video_fb_fini): Likewise.
27612 (grub_video_fb_get_info): Likewise.
27613 (grub_video_fb_get_palette): Likewise.
27614 (grub_video_fb_set_palette): Likewise.
27615 (grub_video_fb_set_viewport): Likewise.
27616 (grub_video_fb_get_viewport): Likewise.
27617 (grub_video_fb_map_color): Likewise.
27618 (grub_video_fb_map_rgb): Likewise.
27619 (grub_video_fb_map_rgba): Likewise.
27620 (grub_video_fb_unmap_color): Likewise.
27621 (grub_video_fb_unmap_color_int): Likewise.
27622 (grub_video_fb_fill_rect): Likewise.
27623 (grub_video_fb_blit_bitmap): Likewise.
27624 (grub_video_fb_blit_render_target): Likewise.
27625 (grub_video_fb_scroll): Likewise.
27626 (grub_video_fb_create_render_target): Likewise.
27627 (grub_video_fb_doublebuf_blit_init): Likewise.
27628 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27629 (doublebuf_pageflipping_update_screen): New function.
27630 (doublebuf_pageflipping_init): Likewise.
27631 (grub_video_fb_setup): Likewise.
27632 (grub_video_fb_swap_buffers): Likewise.
27633 (grub_video_fb_get_info_and_fini): Likewise.
27634 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27636 (doublebuf_pageflipping_commit): Restructured into ...
27637 (doublebuf_pageflipping_set_page): ... this.
27638 (doublebuf_pageflipping_update_screen): Removed.
27639 (doublebuf_pageflipping_init): Likewise.
27640 (double_buffering_init): Likewise.
27641 (grub_video_vbe_setup): Use grub_video_fb_setup.
27642 (grub_video_vbe_swap_buffers): Removed.
27643 (grub_video_vbe_set_active_render_target): Likewise.
27644 (grub_video_vbe_get_active_render_target): Likewise.
27645 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27646 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27647 grub_video_fb_set_active_render_target and
27648 grub_video_fb_get_active_render_target.
27649 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27650 (SEQUENCER_DATA_PORT): Likewise.
27651 (MAP_MASK_REGISTER): Likewise.
27652 (CRTC_ADDR_PORT): Likewise.
27653 (CRTC_DATA_PORT): Likewise.
27654 (START_ADDR_HIGH_REGISTER): Likewise.
27655 (START_ADDR_LOW_REGISTER): Likewise.
27656 (GRAPHICS_ADDR_PORT): Likewise.
27657 (GRAPHICS_DATA_PORT): Likewise.
27658 (READ_MAP_REGISTER): Likewise.
27659 (INPUT_STATUS1_REGISTER): Likewise.
27660 (INPUT_STATUS1_VERTR_BIT): Likewise.
27661 (get_map_mask): Use grub_vga_sr_read.
27662 (set_map_mask): Use grub_vga_sr_write.
27663 (set_read_map): Use grub_vga_gr_write.
27664 (set_start_address): Use grub_vga_cr_write.
27665 * video/sm712.c (framebuffer): Remove leftover fields.
27667 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27669 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27670 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27671 instead. Replace the gfxterm backend check with a check that
27672 ${GRUB_PREFIX}/video.lst is non-empty.
27673 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27675 (load_video): New generated function. Call it before loading
27676 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27677 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27678 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27679 * docs/grub.texi (Simple configuration): Document
27680 GRUB_VIDEO_BACKEND.
27682 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27684 Use video functions in linux and xnu loaders.
27686 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27687 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27688 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27689 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27690 loader/i386/pc/linux.c.
27691 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27692 (find_line_len): Removed.
27693 (find_framebuf): Likewise.
27694 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27695 * loader/i386/efi/xnu.c: Removed.
27696 * loader/i386/pc/xnu.c: Moved from here...
27697 * loader/i386/xnu.c: ...here.
27699 Enable priorities in video drivers.
27701 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27702 (grub_video_adapter): New field prio.
27703 (grub_video_register): Respect prio when inserting.
27704 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27705 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27706 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27707 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27708 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27709 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27710 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27714 * include/grub/video.h (grub_video_driver_id_t): New value
27715 GRUB_VIDEO_DRIVER_SDL.
27716 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27718 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27720 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27721 argument to printf.
27722 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27724 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27726 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27727 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27729 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27731 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27732 directly, and recommend grub-install instead.
27733 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27735 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27737 Fix i386-pc prefix handling with nested partitions (Debian bug
27738 #585068). Note that the case where the core image is booted using
27739 multiboot and relocated from its original location still requires
27742 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27743 with "(,", fill the boot drive in between those two characters, but
27744 expect that a full partition specification including partition map
27746 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27747 specified, write a prefix without the drive name but including a
27748 full partition specification.
27750 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27752 * util/grub-mkconfig.in: Ignore non-option arguments, for
27753 compatibility with older versions (before 2010-06-12) which did the
27754 same. In particular, this makes it easier to ship an update-grub
27755 wrapper which is compatible with that used with GRUB Legacy (Debian
27758 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27760 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27761 for manual page generation.
27763 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27765 * po/POTFILES: Remove leftover commands/handler.c.
27767 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27769 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27770 left this script non-functional.
27772 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27774 * docs/man/grub-emu.h2m: New file.
27776 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27778 * docs/grub.texi (Commands): Document reduced command set in rescue
27780 (cpuid): New section.
27782 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27784 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27785 new partition naming style.
27786 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27788 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27790 Add "-o grub.iso" like cmdline options support.
27792 * util/grub-install.in: Improve cmdline option parsing.
27793 * util/grub-mkconfig.in: Likewise.
27794 * util/grub-mkrescue.in: Likewise.
27795 * util/grub-reboot.in: Likewise.
27796 * util/grub-set-default.in: Likewise.
27797 * util/i386/efi/grub-install.in: Likewise.
27798 * util/ieee1275/grub-install.in: Likewise.
27799 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27801 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27803 * .bzrignore: Ignore 41_custom.
27805 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27807 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27809 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27811 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27812 prototype declarations.
27814 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27815 generating fs, partmap, and video lists.
27816 * include/grub/fs.h (grub_fs_register): Omit prototype if
27817 GRUB_LST_GENERATOR is defined.
27818 * include/grub/partition.h (grub_partition_map_register): Likewise.
27819 * include/grub/video.h (grub_video_register): Likewise.
27821 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27823 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27825 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27827 * util/grub-mkrescue.in: Support --xorriso argument.
27829 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27831 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27832 Suggested by: Thomas Schmitt.
27834 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27836 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27837 Suggested by: Thomas Schmitt.
27839 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27841 custom.cfg support.
27843 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27844 * util/grub.d/41_custom.in: New file.
27846 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27848 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27849 been merged back into normal.
27851 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27853 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27854 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27856 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27858 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27859 when generating manual pages.
27860 * docs/man/grub-bin2h.h2m: New file.
27861 * docs/man/grub-editenv.h2m: New file.
27862 * docs/man/grub-fstest.h2m: New file.
27863 * docs/man/grub-install.h2m: New file.
27864 * docs/man/grub-macho2img.h2m: New file.
27865 * docs/man/grub-mkconfig.h2m: New file.
27866 * docs/man/grub-mkdevicemap.h2m: New file.
27867 * docs/man/grub-mkfont.h2m: New file.
27868 * docs/man/grub-mkimage.h2m: New file.
27869 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27870 * docs/man/grub-mkrelpath.h2m: New file.
27871 * docs/man/grub-mkrescue.h2m: New file.
27872 * docs/man/grub-ofpathname.h2m: New file.
27873 * docs/man/grub-pe2elf.h2m: New file.
27874 * docs/man/grub-probe.h2m: New file.
27875 * docs/man/grub-reboot.h2m: New file.
27876 * docs/man/grub-script-check.h2m: New file.
27877 * docs/man/grub-set-default.h2m: New file.
27878 * docs/man/grub-setup.h2m: New file.
27880 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27882 Use FOR_* macros instead of *_iterate whenever possible.
27884 * commands/handler.c: Removed.
27885 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27886 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27887 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27888 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27889 (grub_probe_SOURCES): Remove kern/parser.c.
27890 (util/grub-script-check.c_DEPENDENCIES): Removed.
27891 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27892 and grub_script_check_init.c.
27893 (grub_script_check_init.lst): Removed.
27894 (grub_script_check_init.h): Likewise.
27895 (grub_script_check_init.c): Likewise.
27896 (pkglib_MODULES): Remove handler.mod and sh.mod.
27897 (handler_mod_SOURCES): Removed.
27898 (handler_mod_CFLAGS): Likewise.
27899 (handler_mod_LDFLAGS): Likewise.
27900 (normal_mod_SOURCES): Remove normal/handler.c.
27901 Add script/main.c, script/script.c, script/execute.c,
27902 script/function.c, script/lexer.c, grub_script.tab.c
27903 and grub_script.yy.c.
27904 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27905 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27906 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27907 (grub_setup_SOURCES): Remove kern/parser.c.
27908 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27909 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27910 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27911 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27912 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27913 (grub_setup_SOURCES): Remove kern/parser.c.
27914 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27915 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27916 * include/grub/command.h (grub_command_iterate): Removed.
27917 (FOR_COMMANDS): New macro.
27918 * include/grub/dl.h (grub_dl): New member next.
27919 (grub_dl_iterate): Removed.
27920 (grub_dl_head): New variable declaration.
27921 (FOR_DL_MODULES): New macro.
27922 * include/grub/fs.h: Include list.h.
27923 (grub_fs): Make next first element.
27924 (grub_fs_list): New variable declaration.
27925 (grub_fs_register): Make inline.
27926 (grub_fs_unregister): Likewise.
27927 (grub_fs_iterate): Removed.
27928 (FOR_FILESYSTEMS): New macro.
27929 * include/grub/handler.h: Removed.
27930 * include/grub/list.h (grub_list_hook_t): Removed.
27931 (grub_list_test_t): Likewise.
27932 (grub_list_pop): Likewise.
27933 (grub_list_iterate): Likewise.
27934 (grub_list_insert): Likewise.
27935 (FOR_LIST_ELEMENTS): New macro.
27936 * include/grub/parser.h (grub_parser_class): Removed.
27937 (grub_parser_register): Likewise.
27938 (grub_parser_unregister): Likewise.
27939 (grub_parser_get_current): Likewise.
27940 (grub_parser_set_current): Likewise.
27941 (grub_register_rescue_parser): Likewise.
27942 (grub_rescue_parse_line): New function.
27943 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27944 * include/grub/script_sh.h (grub_script_function_list): New variable
27946 (FOR_SCRIPT_FUNCTIONS): New macro.
27947 (grub_script_function_iterate): Removed.
27948 (grub_normal_parse_line): New prototype.
27949 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27950 (FOR_DISABLED_TERM_INPUTS): Likewise.
27951 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27952 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27953 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27955 (grub_video_register): Inline.
27956 (grub_video_unregister): Likewise.
27957 (grub_video_adapter_list): New variable declaration.
27958 (grub_video_iterate): Removed.
27959 (FOR_VIDEO_ADAPTERS): New macro.
27960 * kern/dl.c (grub_dl_list): Removed. All users updated.
27961 (grub_dl_iterate): Removed.
27962 * kern/fs.c (grub_fs_list): Make global.
27963 (grub_fs_register): Removed.
27964 (grub_fs_unregister): Likewise.
27965 (grub_fs_iterate): Likewise.
27966 * kern/handler.c: Removed.
27967 * kern/list.c (grub_list_pop): Removed.
27968 (grub_list_iterate): Likewise.
27969 (grub_list_insert): Likewise.
27970 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27971 (grub_prio_list_insert): Don't use grub_list_insert.
27972 * kern/main.c (grub_register_rescue_parser): Don't call
27973 grub_register_rescue_parser.
27974 * kern/parser.c (grub_parser_class): Removed.
27975 (grub_parser_execute): Use grub_rescue_parse_line.
27976 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27977 (grub_rescue_parser): Removed.
27978 (grub_register_rescue_parser): Likewise.
27979 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27980 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27981 (grub_auth_check_authentication): Likewise.
27982 * normal/completion.c (iterate_command): Removed.
27983 (grub_normal_do_completion): Use FOR_COMMANDS.
27984 * normal/handler.c: Removed.
27985 * normal/main.c (read_config_file): Remove parser changing.
27986 (grub_normal_execute): Don't call read_handler_list.
27987 (grub_normal_read_line_real): Statically allocate prompt.
27988 (grub_cmdline_run): Use grub_normal_parse_line.
27989 (GRUB_MOD_FINI): Don't call free_handler_list.
27990 * normal/menu_entry.c (run): Likewise.
27991 * script/function.c (grub_script_function_list): Make global.
27992 (grub_script_function_iterate): Removed.
27993 * script/main.c (grub_normal_parse_line): Make global.
27994 (grub_sh_parser): Removed.
27995 (GRUB_MOD_INIT): Likewise.
27996 (GRUB_MOD_FINI): Likewise.
27997 * tests/lib/functional_test.c (grub_functional_test): Use
27999 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
28000 (grub_test_run): Use FOR_LIST_ELEMENTS.
28001 * tests/lib/unit_test.c (main): Likewise.
28002 * util/deviceiter.c (grub_util_iterate_devices): Don't use
28004 * util/grub-fstest.c (grub_term_input_class): Removed.
28005 (grub_term_output_class): Likewise.
28006 * util/grub-probe.c: Likewise.
28007 * util/i386/pc/grub-setup.c: Likewise.
28008 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28009 * util/grub-script-check.c (main): Don't call grub_init_all and
28011 * video/video.c (grub_video_adapter_list): Make global.
28012 (grub_video_register): Removed.
28013 (grub_video_unregister): Likewise.
28014 (grub_video_iterate): Likewise.
28016 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
28018 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
28019 reported by Henrique Ferreiro.
28021 2010-06-09 Robert Millan <rmh@gnu.org>
28023 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
28024 ones, when both are available.
28026 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
28028 Make --version uniform and avoid hard-coded program name.
28030 * util/grub-mkimage.c (main): Use `program_name' instead of
28032 * util/i386/pc/grub-setup.c (main): Likewise.
28033 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
28034 * util/grub-install.in: Save the basename of $0 in $self, and use the
28035 latter in informational messages. Use the same format for --version
28036 as the binary programs.
28037 * util/grub-mkconfig.in: Likewise.
28038 * util/grub-mkrescue.in: Likewise.
28039 * util/grub-reboot.in: Likewise.
28040 * util/grub-set-default.in: Likewise.
28041 * util/i386/efi/grub-install.in: Likewise.
28042 * util/ieee1275/grub-install.in: Likewise.
28043 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
28045 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
28047 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
28048 embedding area. Use <= instead of == when checking for non-emptiness.
28050 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
28052 * configure.ac: Add `.' to the directories searched for unifont.
28054 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
28056 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
28059 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
28061 * docs/grub.texi (History): Expand to cover GRUB 2.
28062 (Serial terminal): Refer to `terminal_input' and `terminal_output'
28063 commands, not `terminal'.
28064 (serial): Likewise.
28065 (terminal_input): New section.
28066 (terminal_output): New section.
28067 (uppermem): New section (stub).
28068 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
28070 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
28072 * docs/grub.texi (Security): Menu entries are unrestricted by
28073 default, not restricted to superusers as I had previously thought.
28074 Reword to account for this.
28076 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28078 * kern/emu/misc.c (device_mapper_null_log): New function.
28079 (grub_device_mapper_supported): New function.
28080 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
28082 * kern/emu/hostdisk.c (find_partition_start): Check whether
28083 device-mapper is supported before trying to use it.
28084 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
28086 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28088 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
28089 (File name syntax): Likewise.
28090 (help): --all is no longer supported in GRUB 2. Be more precise
28091 about pattern matching.
28093 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28095 * normal/completion.c (grub_normal_do_completion): When completing
28096 arguments to "set" and the current word contains an equals sign,
28097 skip to after the equals sign before starting completion.
28099 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28101 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
28103 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28105 * docs/grub.texi (Network): New section.
28106 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
28107 `(nd)' as in GRUB Legacy.
28108 (pxe_unload): New section.
28110 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28112 * docs/grub.texi (Troubleshooting): `echo' is not usually available
28113 in the rescue shell, so recommend using `set' instead. Thanks,
28116 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28118 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
28119 (password): New section.
28120 (password_pbkdf2): New section.
28121 (search): New section.
28122 (Security): New section.
28123 (Troubleshooting): New section, currently very incomplete.
28124 (Invoking grub-mkpasswd-pbkdf2): New section.
28125 (Internals): New section, currently very incomplete.
28127 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28129 * util/grub.d/00_header.in: Add some more quoting (of
28130 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
28132 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
28134 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28136 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
28137 to `count', fixing variable shadowing that broke the -c option.
28139 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
28141 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
28142 in case they contain spaces.
28144 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28146 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
28147 "part_" to partmap module names, in line with grub-install.
28148 Reported by: Jindřich Makovička (Debian bug #584426).
28150 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28152 * util/grub-mkimage.c: Make target-related error messages slightly
28153 more helpful; -O talks about "format". Explicitly point to the use
28154 of -O if no target is specified.
28155 Reported by: Didier Raboud (Debian bug #584415).
28157 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
28159 * INSTALL: Document several build requirements for optional features
28160 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
28162 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
28164 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
28165 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
28166 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28168 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28170 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28171 Thanks to Jordan Uggla for spotting this.
28173 2010-06-02 Aleš Nesrsta <starous@volny.cz>
28175 Finally make USB usable.
28177 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28178 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28179 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28180 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28181 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28182 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28183 (GRUB_OHCI_FSMPS): Likewise.
28184 (GRUB_OHCI_PERIODIC_START): Likewise.
28185 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28186 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28187 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28188 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28189 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28190 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28191 (grub_ohci_transaction): Likewise.
28192 (grub_ohci_transfer): Improve condition detection algorithms.
28193 Handle toggle property. Program the transactions correctly.
28194 Improve error handling. Various important fixups.
28195 (grub_ohci_portstatus): Put register writes in right order.
28196 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28197 (grub_uhci_transfer): Don't show "failed" message on success.
28198 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28200 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28201 determine its size.
28202 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28203 before initialization is completed. Use IN direction for empty
28204 transfers. Use last_trans and compute toggle.
28205 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28206 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28207 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28208 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28209 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28210 (grub_usb_device): Increase toggle to 256.
28211 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28212 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28213 GRUB_USBMS_SUBCLASS_SFF8070.
28214 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28215 (grub_scsi_inquiry): New member page and alloc_length.
28216 (grub_scsi_request_sense): New structure.
28217 (grub_scsi_request_sense_data): Likewise.
28218 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28220 * disk/scsi.c (grub_scsi_request_sense): New function.
28221 (grub_scsi_test_unit_ready): Likewise.
28222 (grub_scsi_inquiry): Fill new fields.
28223 (grub_scsi_read_capacity): Likewise.
28224 (grub_scsi_read10): Add request sense at the end.
28225 (grub_scsi_read12): Likewise.
28226 (grub_scsi_write10): Likewise.
28227 (grub_scsi_write12): Likewise.
28228 (grub_scsi_open): Add Test Unit Ready.
28229 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28230 Support additional subclasses. Con't clear halt yet. Activate the
28231 proper config. Calculate LUNs correctly.
28232 (grub_usbms_transfer): Various important fixups.
28234 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28236 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28237 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28238 (grub_ohci_fini_hw): New function.
28239 (grub_ohci_restore_hw): Likewise.
28240 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28241 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28242 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28244 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28246 Dedicated DMA allocations.
28248 * bus/pci.c (grub_memalign_dma32): New function
28249 (grub_dma_free): Likewise.
28250 (grub_dma_get_virt): Likewise.
28251 (grub_dma_get_phys): Likewise.
28252 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28253 (grub_ohci_pci_iter): Use dma32_alloc.
28254 (grub_ohci_transfer): Likewise.
28255 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28256 (grub_usb_bulk_readwrite): Likewise.
28257 * include/grub/pci.h: Add declarations.
28259 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28263 * bus/cs5536.c: New file.
28264 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28265 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28266 (cs5536_mod_SOURCES): New variable.
28267 (cs5536_mod_CFLAGS): Likewise.
28268 (cs5536_mod_LDFLAGS): Likewise.
28269 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28271 (kernel_img_SOURCES): Add bus/cs5536.c.
28272 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28274 (usb_mod_SOURCES): New variable.
28275 (usb_mod_CFLAGS): New variable.
28276 (usb_mod_LDFLAGS): New variable.
28277 (usbtest_mod_SOURCES): New variable.
28278 (usbtest_mod_CFLAGS): New variable.
28279 (usbtest_mod_LDFLAGS): New variable.
28280 (ohci_mod_SOURCES): New variable.
28281 (ohci_mod_CFLAGS): New variable.
28282 (ohci_mod_LDFLAGS): New variable.
28283 (usbms_mod_SOURCES): New variable.
28284 (usbms_mod_CFLAGS): New variable.
28285 (usbms_mod_LDFLAGS): New variable.
28286 (usb_keyboard_mod_SOURCES): New variable.
28287 (usb_keyboard_mod_CFLAGS): New variable.
28288 (usb_keyboard_mod_LDFLAGS): New variable.
28289 * include/grub/smbus.h: New file.
28290 * include/grub/cs5536.h: New file.
28292 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28294 * util/grub.d/00_header.in: Add safety check to make sure that
28295 ${locale_dir} exists before trying to probe it.
28297 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28299 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28300 per the GNU Coding Standards; this is now too obscure to be worth
28303 (chainloader): Remove cross-reference to `SCO UnixWare'.
28305 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28307 * docs/grub.texi (Chain-loading): New section.
28308 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28309 adjusted for GRUB 2.
28310 (SCO UnixWare): Likewise.
28312 (chainloader): Add reference to `Block list syntax'.
28313 (drivemap): New section.
28314 (parttool): New section.
28316 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28318 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28320 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28321 (Installing GRUB using grub-install): Remove reference to the grub
28322 shell; mention `grub-mkimage' and `grub-setup' instead.
28323 (Invoking grub-install): Likewise.
28324 (Interface): Add reference to `Menu entry editor'.
28325 (serial): Remove `--device' option.
28327 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28329 * docs/grub.texi (Configuration): New section, documenting
28330 configuration file generation using grub-mkconfig. I've left a slot
28331 for documenting the full shell scripting format but have not yet
28332 started on writing that up.
28333 (Invoking grub-mkconfig): New section.
28335 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28337 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28338 (GNU GRUB manual): Likewise.
28339 (General commands): Update description of `terminfo' for GRUB 2.
28341 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28343 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28344 (GRUB_MOD_INIT): Fix capitalisation.
28345 * docs/grub.texi (Command-line and menu entry commands): Document
28346 gettext and gptsync commands.
28348 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28350 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28351 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28353 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28355 Add btrfs probing support, currently only in the single-device case.
28357 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28359 (grub_guess_root_device): Call find_root_device_from_mountinfo
28360 before looking in /dev.
28362 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28364 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28365 GRUB_DISK_SIZE_UNKNOWN.
28366 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28368 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28370 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28371 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28372 corrupted or not synced properly.
28374 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28376 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28377 Reported by: Seth Goldberg.
28379 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28381 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28383 Reported by: Seth Goldberg.
28385 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28387 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28388 Reported by: Seth Goldberg.
28390 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28392 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28393 64-bit address as signed on MIPS.
28395 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28397 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28398 to the empty string.
28400 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28402 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28404 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28405 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28406 * kern/misc.c (__enable_execute_stack): Disable on
28409 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28411 Make grub-probe work with symbolic links under /dev/mapper as well
28412 as with real block devices. The Linux world seems to be (at best)
28413 in transition here, and GRUB shouldn't get caught in the middle.
28415 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28418 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28420 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28421 input files (in which case exit zero).
28423 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28425 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28426 return NULL for various reasons even if it has a maximum-length
28427 buffer: for example, there might be a symlink loop, or the path
28428 might exceed PATH_MAX. If this happens, return NULL.
28430 2010-05-27 Robert Millan <rmh@gnu.org>
28432 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28433 partmap module to handle cross-partmap setups.
28434 Reported by Orestes Mas. Gràcies!
28436 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28438 * util/grub-mkrescue.in: Initialise override_dir rather than
28439 assuming that it's unset or empty in the environment.
28441 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28443 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28444 variable index into p_index to suppress a warning with -Wshadow.
28446 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28448 * INSTALL: Added flex >= 2.5.35 requirement.
28450 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28452 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28454 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28458 * commands/i386/cmostest.c: New file.
28459 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28460 (cmostest_mod_SOURCES): New variable.
28461 (cmostest_mod_CFLAGS): Likewise.
28462 (cmostest_mod_LDFLAGS): Likewise.
28463 * conf/i386-pc.rmk: Likewise.
28464 * docs/grub.texi (Vendor power-on keys): New section.
28465 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28466 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28467 and GRUB_BUTTON_CMOS_ADDRESS.
28468 * util/grub.d/00_header.in: Handle powering-on by separate button.
28470 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28472 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28473 Removed drawing_scrollbar argument. All users updated
28475 Reported by Jo Shields
28477 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28479 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28480 buffer since gfxterm handles double repaint.
28482 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28484 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28485 * term/gfxterm.c (real_scroll): Likewise.
28487 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28489 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28490 before calling BIOS.
28492 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28494 * include/grub/i18n.h: Always enable grub_gettext.
28496 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28498 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28499 partition naming style.
28501 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28503 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28504 not the first option.
28506 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28508 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28510 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28512 * util/misc.c: Move inclusion of <limits.h> to ...
28513 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28515 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28517 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28518 Fix merge error in NetBSD code.
28519 (find_partition_start) [__NetBSD__]: Likewise.
28521 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28523 Fix grub-mkrescue usage unit testing.
28525 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28527 2010-05-18 Christian Franke <franke@computer.org>
28529 * util/grub.d/10_windows.in: Use path names instead of
28530 drive letters to prevent warning from Cygwin 1.7.
28531 Add drivemap command to menuentry if needed.
28533 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28535 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28536 gnumach and gnumach.gz.
28538 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28540 * include/grub/i18n.h (gettext): Inline instead of using #define.
28541 (grub_gettext): Likewise.
28544 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28546 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28547 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28548 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28549 (main): Add a slash after pkglibdirroot.
28551 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28553 * util/grub-install.in: Add missing "in" keyword.
28555 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28557 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28558 Reported by: Seth Goldberg.
28560 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28562 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28564 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28566 * configure.ac: Check for Linux device-mapper support.
28568 * util/hostdisk.c (device_is_mapped): New function.
28569 (find_partition_start): New function, partly broken out from
28570 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28571 device-mapper support added.
28572 (linux_find_partition): Use find_partition_start.
28573 (convert_system_partition_to_system_disk): Add `st' argument.
28574 Support Linux /dev/mapper/* devices if device-mapper support is
28575 available; only DM-RAID devices are understood at present.
28576 (find_system_device): Add `st' argument. Pass it to
28577 convert_system_partition_to_system_disk.
28578 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28579 find_system_device and convert_system_partition_to_system_disk. Use
28580 find_partition_start.
28582 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28583 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28584 * util/deviceiter.c [__linux__]: Define MINOR.
28585 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28586 * util/mkdevicemap.c (grub_putchar): New function.
28587 (grub_getkey): New function.
28588 (grub_refresh): New function.
28589 (main): Set debug=all if -v -v is used.
28591 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28593 Fix build with non-GNU libcs.
28595 * util/misc.c (canonicalize_file_name): Move to ...
28596 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28597 grub_make_system_path_relative_to_its_root.
28599 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28601 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28602 we handle finding grub-mkimage. Default to finding grub-mkimage in
28603 ${bindir} with program_transform_name applied, and provide a
28604 --grub-mkimage option to override this.
28606 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28608 Remove grub-mkisofs.
28610 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28611 (grub_mkisofs_SOURCES): Removed.
28612 (grub_mkisofs_CFLAGS): Removed.
28613 * util/mkisofs/defaults.h: Removed.
28614 * util/mkisofs/eltorito.c: Likewise.
28615 * util/mkisofs/exclude.h: Likewise.
28616 * util/mkisofs/hash.c: Likewise.
28617 * util/mkisofs/include/: Likewise.
28618 * util/mkisofs/include/fctldefs.h: Likewise.
28619 * util/mkisofs/include/mconfig.h: Likewise.
28620 * util/mkisofs/include/prototyp.h: Likewise.
28621 * util/mkisofs/include/statdefs.h: Likewise.
28622 * util/mkisofs/iso9660.h: Likewise.
28623 * util/mkisofs/joliet.c: Likewise.
28624 * util/mkisofs/match.c: Likewise.
28625 * util/mkisofs/match.h: Likewise.
28626 * util/mkisofs/mkisofs.c: Likewise.
28627 * util/mkisofs/mkisofs.h: Likewise.
28628 * util/mkisofs/msdos_partition.h: Likewise.
28629 * util/mkisofs/multi.c: Likewise.
28630 * util/mkisofs/name.c: Likewise.
28631 * util/mkisofs/rock.c: Likewise.
28632 * util/mkisofs/tree.c: Likewise.
28633 * util/mkisofs/write.c: Likewise.
28635 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28637 Unify grub-mkimage accross platforms.
28639 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28640 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28641 (grub_mkelfimage_SOURCES): Removed.
28642 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28643 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28644 (bin_UTILITIES): Add grub-mkimage.
28645 (grub_mkimage_SOURCES): New variable.
28646 (kernel_img_HEADERS): Remove machine/kernel.h.
28647 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28648 (pkglib_PROGRAMS): Add kernel.img.
28649 (kernel_img_HEADERS): Add machine/kernel.h.
28650 (kernel_img_FORMAT): Removed.
28651 (bin_UTILITIES): Remove grub-mkimage.
28652 (grub_mkimage_SOURCES): Removed.
28653 (grub_mkimage_CFLAGS): Likewise.
28654 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28655 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28656 (pkglib_PROGRAMS): Add kernel.img.
28657 (bin_UTILITIES): Remove grub-mkimage.
28658 (grub_mkimage_SOURCES): Removed.
28659 (grub_mkimage_CFLAGS): Likewise.
28660 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28661 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28662 (pkglib_PROGRAMS): Add kernel.img.
28663 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28664 (pkglib_PROGRAMS): Add kernel.img.
28665 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28666 (grub_mkimage_SOURCES): Removed.
28667 (grub_mkimage_CFLAGS): Likewise.
28668 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28669 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28670 (pkglib_PROGRAMS): Add kernel.img.
28671 (bin_UTILITIES): Remove grub-mkimage.
28672 (grub_mkimage_SOURCES): Removed.
28673 (grub_mkimage_CFLAGS): Likewise.
28674 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28675 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28676 (grub_mkimage_SOURCES): Removed.
28677 (grub_mkimage_CFLAGS): Likewise.
28678 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28679 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28680 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28681 (grub_pe32_optional_header): ... this.
28682 (grub_pe64_optional_header): ... and this. All users updated.
28683 (GRUB_PE32_PE32_MAGIC): Split into ..
28684 (GRUB_PE32_PE32_MAGIC): .. this.
28685 (GRUB_PE32_PE64_MAGIC): .. and this.
28686 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28687 * include/grub/elf.h (PT_GNU_STACK): New definition.
28688 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28689 * include/grub/i386/efi/kernel.h: Likewise.
28690 * include/grub/i386/kernel.h: Likewise.
28691 * include/grub/i386/pc/kernel.h: Likewise.
28692 * include/grub/i386/qemu/boot.h: Likewise.
28693 * include/grub/mips/kernel.h: Likewise.
28694 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28695 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28696 * include/grub/powerpc/kernel.h: Likewise.
28697 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28698 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28699 * include/grub/sparc64/kernel.h: Likewise.
28700 * include/grub/x86_64/efi/kernel.h: Likewise.
28701 * include/grub/x86_64/kernel.h: Likewise.
28702 * include/grub/offsets.h: New file.
28703 * include/grub/kernel.h (grub_module_info): Split into ...
28704 (grub_module_info32): ... this.
28705 (grub_module_info64): ... and this.
28706 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28707 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28708 (grub_boot_blocklist): Moved from here ...
28709 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28710 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28711 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28712 * include/grub/types.h (grub_target_to_host16): Removed.
28713 (grub_target_to_host32): Likewise.
28714 (grub_target_to_host64): Likewise.
28715 (grub_host_to_target16): Likewise.
28716 (grub_host_to_target32): Likewise.
28717 (grub_host_to_target64): Likewise.
28718 (grub_host_to_target_addr): Likewise.
28720 Support grub-mkrescue for efi, coreboot and qemu.
28722 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28723 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28724 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28725 * util/grub-mkrawimage.c: Moved from here ...
28726 * util/grub-mkimage.c: ... here. All users updated.
28727 (ALIGN_ADDR): Use image_target.
28728 (TARGET_NO_FIELD): New const.
28729 (image_target_desc): New type.
28730 (image_targets): New array.
28731 (grub_target_to_host64): Use image_target.
28732 (grub_target_to_host32): Likewise.
28733 (grub_target_to_host16): Likewise.
28734 (grub_host_to_target64): Likewise.
28735 (grub_host_to_target32): Likewise.
28736 (grub_host_to_target16): Likewise.
28737 (grub_host_to_target_addr): Likewise.
28738 (generate_image): Handle multiimage.
28739 (main): Require -O parameter. All users updated.
28740 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28741 util/efi/grub-mkimage.c
28742 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28743 New option --rom-directory.
28745 * util/i386/efi/grub-mkimage.c: Removed.
28746 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28747 (grub_target_to_host32): Likewise.
28748 (grub_target_to_host64): Likewise.
28749 (grub_host_to_target16): Likewise.
28750 (grub_host_to_target32): Likewise.
28751 (grub_host_to_target64): Likewise.
28752 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28753 (grub_target_to_host32): Likewise.
28754 (grub_target_to_host64): Likewise.
28755 (grub_host_to_target16): Likewise.
28756 (grub_host_to_target32): Likewise.
28757 (grub_host_to_target64): Likewise.
28759 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28761 Source tree is reorganized for emu build.
28763 * include/grub/util/console.h: Move from here...
28764 * include/grub/emu/console.h: ...to here.
28765 * include/grub/util/getroot.h: Move from here...
28766 * include/grub/emu/getroot.h: ...to here.
28767 * include/grub/util/hostdisk.h: Move from here...
28768 * include/grub/emu/hostdisk.h: ...to here.
28769 * util/console.c: Move from here...
28770 * kern/emu/console.c: ...to here.
28771 * util/getroot.c: Move from here...
28772 * kern/emu/getroot.c: ...to here.
28773 * util/grub-emu.c: Move from here...
28774 * kern/emu/main.c: ...to here.
28775 * util/hostdisk.c: Move from here...
28776 * kern/emu/hostdisk.c: ...to here.
28777 * util/hostfs.c: Move from here...
28778 * kern/emu/hostfs.c: ...to here.
28779 * util/mm.c: Move from here...
28780 * kern/emu/mm.c: ...to here.
28781 * util/pci.c: Move from here...
28782 * bus/emu/pci.c: ...to here.
28783 * util/sdl.c: Move from here...
28784 * video/emu/sdl.c: ...to here.
28785 * util/time.c: Move from here...
28786 * kern/emu/time.c: ...to here.
28787 * util/usb.c: Move from here...
28788 * bus/usb/emu/usb.c: ...to here.
28790 * include/grub/emu/misc.h: New header for grub-emu functions.
28791 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28793 * conf/any-emu.rmk: Rule updates for above renames.
28794 * conf/common.rmk: Likewise.
28795 * conf/i386-pc.rmk: Likewise.
28796 * conf/i386-qemu.rmk: Likewise.
28797 * conf/mips.rmk: Likewise.
28798 * conf/sparc64-ieee1275.rmk: Likewise.
28799 * conf/x86-efi.rmk: Likewise.
28801 * disk/lvm.h: #include updates for above renames.
28802 * util/grub-mkrelpath.c: Likewise.
28803 * util/grub-probe.c: Likewise.
28804 * util/i386/pc/grub-setup.c: Likewise.
28805 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28806 * kern/emu/console.c: Likewise.
28807 * kern/emu/getroot.c: Likewise.
28808 * kern/emu/hostdisk.c: Likewise.
28809 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28811 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28812 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28813 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28814 * util/misc.c: Remove grub-emu functions.
28816 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28819 Reported by: Thorsten Grützmacher.
28821 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28823 (circprog_set_property): Register and unregister timeout hook.
28824 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28825 (label_destroy): Free template. and unregister hook.
28826 (label_set_state): New function.
28827 (label_set_property): Handle templates and hooks.
28828 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28830 (progress_bar_set_property): Register and unregister timeout hook.
28831 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28832 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28833 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28834 (update_timeout_visit): Removed.
28835 (update_timeouts): New function.
28836 (redraw_timeouts): Likewise.
28837 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28838 (grub_gfxmenu_clear_timeout): Likewise.
28839 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28840 (grub_gfxmenu_timeout_notify): Likewise.
28841 (grub_gfxmenu_timeout_notifications): New external variable.
28842 (grub_gfxmenu_timeout_register): New function.
28843 (grub_gfxmenu_timeout_unregister): Likewise.
28845 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28847 Transform (broken) vga terminal into (working) vga video driver.
28849 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28850 video/i386/pc/vga.c.
28851 * include/grub/video.h (grub_video_driver_id):
28852 Add GRUB_VIDEO_DRIVER_VGA.
28853 * term/i386/pc/vga.c: Renamed to ...
28854 * video/i386/pc/vga.c: ...this
28855 (DEBUG_VGA): Removed.
28856 (CHAR_WIDTH): Likewise.
28857 (CHAR_HEIGHT): Likewise.
28858 (TEXT_WIDTH): Likewise.
28859 (TEXT_HEIGHT): Likewise.
28860 (DEFAULT_FG_COLOR): Likewise.
28861 (DEFAULT_BG_COLOR): Likewise.
28862 (colored_char): Likewise.
28865 (cursor_state): Likewise.
28866 (fg_color): Likewise.
28867 (bg_color): Likewise.
28868 (text_buf): Likewise.
28871 (framebuffer): New variable.
28872 (set_read_map): Disabled.
28873 (setup): New variable.
28874 (is_target): Likewise.
28875 (grub_vga_mod_init): Likewise.
28876 (grub_vga_mod_fini): Likewise.
28877 (check_vga_mem): Likewise.
28878 (write_char): Likewise.
28879 (write_cursor): Likewise.
28880 (scroll_up): Likewise.
28881 (grub_vga_putchar): Likewise.
28882 (grub_vga_getcharwidth): Likewise.
28883 (grub_vga_getwh): Likewise.
28884 (grub_vga_getxy): Likewise.
28885 (grub_vga_gotoxy): Likewise.
28886 (grub_vga_cls): Likewise.
28887 (grub_vga_setcolorstate): Likewise.
28888 (grub_vga_setcursor): Likewise.
28889 (grub_video_vga_init): New function.
28890 (grub_video_vga_setup): Likewise.
28891 (grub_video_vga_fini): Likewise.
28892 (update_target): Likewise.
28893 (grub_video_vga_blit_bitmap): Likewise.
28894 (grub_video_vga_blit_render_target): Likewise.
28895 (grub_video_vga_set_active_render_target): Likewise.
28896 (grub_video_vga_get_active_render_target): Likewise.
28897 (grub_video_vga_swap_buffers): Likewise.
28898 (grub_video_vga_set_palette): Likewise.
28899 (grub_video_vga_get_info_and_fini): Likewise.
28900 (grub_vga_term): Removed.
28901 (grub_video_vga_adapter): New variable.
28902 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28903 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28905 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28907 * video/readers/jpeg.c: Indented.
28909 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28911 Various jpeg cleanups.
28913 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28914 (grub_jpeg_decode_quan_table): Use sizeof.
28915 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28917 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28919 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28920 tables. Ignore non-last ac bit.
28921 (grub_jpeg_decode_quan_table): Likewise.
28923 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28925 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28926 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28927 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28928 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28929 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28930 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28932 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28934 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28937 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28939 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28941 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28943 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28946 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28948 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28951 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28953 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28956 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28958 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28960 2010-05-01 Christian Franke <franke@computer.org>
28962 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28963 Remove broken Cygwin path conversion.
28964 * util/misc.c: [__CYGWIN__] Add include and define.
28965 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28967 (make_system_path_relative_to_its_root): Simplify loop, replace early
28969 [__CYGWIN__] Add conversion to win32 path.
28970 Include "/" case in trailing slash removal.
28972 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28974 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28975 Reported by: Seth Goldberg
28977 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28979 * commands/help.c (grub_cmd_help): Fix a typo.
28980 Reported by: Seth Goldberg
28982 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28984 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28986 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28987 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28988 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28989 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28990 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28991 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28992 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28993 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28994 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28995 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28996 * normal/context.c (GRUB_MOD_INIT): Likewise.
28997 * normal/main.c (GRUB_MOD_INIT): Likewise.
28998 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28999 * term/serial.c (GRUB_MOD_INIT): Likewise.
29000 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
29002 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29004 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
29007 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29009 * commands/iorw.c: New file.
29010 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
29011 (iorw_mod_SOURCES): New variable.
29012 (iorw_mod_CFLAGS): Likewise.
29013 (iorw_mod_LDFLAGS): Likewise.
29015 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29019 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
29020 * normal/main.c (hotkey_aliases): New variable.
29021 (grub_normal_add_menu_entry): Parse "--hotkey".
29022 * normal/menu_text.c (run_menu): Handle hotkeys.
29024 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29026 * kern/i386/coreboot/init.c (grub_machine_init): Call
29027 grub_machine_mmap_init on qemu.
29029 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29031 * boot/i386/qemu/boot.S: Add a missing .code16.
29033 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29035 Use LBIO on coreboot.
29037 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
29038 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
29039 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
29041 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
29042 grub_machine_mmap_init on coreboot.
29043 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
29044 GRUB_LINUXBIOS_MEMBER_LINK.
29045 (grub_machine_mmap_iterate): Fix declaration.
29046 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
29048 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29050 Split coreboot and multiboot ports.
29052 * conf/i386-multiboot.rmk: New file.
29053 * configure.ac: Add multiboot port.
29054 * include/grub/i386/multiboot/boot.h: New file.
29055 * include/grub/i386/multiboot/console.h: Likewise.
29056 * include/grub/i386/multiboot/init.h: Likewise.
29057 * include/grub/i386/multiboot/kernel.h: Likewise.
29058 * include/grub/i386/multiboot/loader.h: Likewise.
29059 * include/grub/i386/multiboot/memory.h: Likewise.
29060 * include/grub/i386/multiboot/serial.h: Likewise.
29061 * include/grub/i386/multiboot/time.h: Likewise.
29062 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
29063 * loader/multiboot.c: Likewise.
29064 * loader/multiboot_mbi2.c: Likewise.
29065 * util/grub-mkrescue.in: Generate multiboot rescue.
29067 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29069 * kern/parser.c (grub_parser_execute): Cope with read-only config.
29071 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29073 Merge handling of input and output terminals. Fix a hang.
29075 * commands/terminal.c (abstract_terminal): New struct.
29076 (handle_command): New function. Based on grub_cmd_terminal_input.
29077 (grub_cmd_terminal_input): Use handle_command.
29078 (grub_cmd_terminal_output): Use handle_command.
29080 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
29082 Fix comment handling.
29084 * tests/grub_script_comments.in: New testcase.
29085 * conf/tests.rmk: Rules for new testcase.
29086 * script/yylex.l: Updated flex rules.
29088 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
29090 * docs/grub.texi (play): Document that zero pitches produce rests.
29091 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
29094 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
29096 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
29099 2010-04-26 Christian Franke <franke@computer.org>
29101 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
29102 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
29103 (grub_get_prefix): Remove function.
29104 * util/grub-emu.c (main): Replace grub_get_prefix () call by
29105 make_system_path_relative_to_its_root ().
29106 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
29108 2010-04-24 Christian Franke <franke@computer.org>
29110 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
29111 (kernel_img_LDFLAGS): Remove -static-libgcc.
29113 2010-04-24 Christian Franke <franke@computer.org>
29115 * configure.ac: Do not CHECK_BSS_START_SYMBOL
29116 and CHECK_END_SYMBOL if grub-emu is built.
29117 Unset TARGET_OBJ2ELF if grub-emu is built
29118 without module support.
29120 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
29124 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
29125 (grub_fstest_SOURCES): Likewise.
29126 (pkglib_MODULES): Add nilfs2.mod.
29127 (nilfs2_mod_SOURCES): New variable.
29128 (nilfs2_mod_CFLAGS): Likewise.
29129 (nilfs2_mod_LDFLAGS): Likewise.
29130 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29131 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29132 * fs/nilfs2.c: New file.
29134 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
29136 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
29139 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
29141 Add grub-mkconfig support for NetBSD.
29143 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
29144 * util/grub-mkconfig.in: export new NetBSD specific variables.
29145 * po/POTFILES-shell: added 10_netbsd.in.
29146 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
29148 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
29150 Fix emu build with grub-emu-pci and grub-emu-modules.
29152 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
29154 * include/grub/libpciaccess.h: New file.
29155 * conf/any-emu.rmk: Update kernel headers for emu build.
29157 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29159 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
29161 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29163 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
29165 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29167 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29168 Retrieve chosen/bootpath if bootpath isn't hardcoded.
29169 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29170 util/ieee1275/ofpath.c.
29171 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29172 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29173 * include/grub/sparc64/ieee1275/boot.h
29174 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29175 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29176 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29177 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29179 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29180 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29181 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29184 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29186 * util/grub-mkconfig.in: Corrected two == equality tests.
29187 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29188 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29189 expect a number appended to it.
29190 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29191 expects a number appended to it.
29193 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29195 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29197 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29199 * util/hostdisk.c (make_device_name): Change to new partition naming.
29201 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29203 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29205 2010-04-17 Christian Franke <franke@computer.org>
29207 * Makefile.in: Add missing localedir setting.
29209 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
29211 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29212 mistake in r2156. Noticed by Anthony Fok.
29214 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29216 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29218 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29220 Fix a spurious, uninitialized variable warning.
29222 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29223 Initialize variable, shdr.
29224 (grub_freebsd_load_elfmodule): Likewise.
29225 (grub_freebsd_load_elf_meta): Likewise.
29227 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29229 Fix for escaped dollar in double quoted strings.
29231 * script/yylex.l: Updated flex rules.
29232 * conf/tests.rmk: Rule for new testcase.
29233 * tests/grub_script_dollar.in: New testcase.
29235 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29236 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29238 Enclose all translated strings in grub.cfg in single quotes, and
29239 escape them appropriately (Ubuntu bug #552921).
29241 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29242 * util/grub.d/10_hurd.in: Use it.
29243 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29244 * util/grub.d/10_linux.in (linux_entry): Likewise.
29246 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29248 Fix cygwin compilation.
29250 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29251 * include/grub/misc.h (__register_frame_info)
29252 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29253 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29254 * kern/misc.c (__register_frame_info)
29255 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29256 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29258 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29260 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29262 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29264 Unify libgcc processing.
29266 * Makefile.in (kernel_img_LDFLAGS): New variable.
29267 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29268 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29270 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29271 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29272 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29273 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29274 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29275 overwriting. Remove -lgcc and -static-libgcc
29276 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29277 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29278 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29279 (kernel_img_LDFLAGS): Append instead of overwriting.
29280 Remove -lgcc and -static-libgcc
29281 * conf/sparc64-ieee1275.rmk: Likewise.
29282 * include/grub/powerpc/libgcc.h: Move to ...
29283 * include/grub/libgcc.h: .. this.
29284 * include/grub/libgcc.h: Don't export most of the function on x86.
29285 (__bswapsi2): New export.
29286 (__bswapdi2): Likewise.
29287 * include/grub/mips/libgcc.h: Removed.
29288 * include/grub/sparc64/libgcc.h: Likewise.
29290 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29292 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29293 disk_info_msg (conflicts with gettexting into languages with cases).
29295 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29297 Add grub-probe support for NetBSD.
29299 * util/getroot.c (find_root_device): Convert block device to
29300 character device on NetBSD.
29301 * util/probe.c (probe): Require character device on NetBSD.
29302 * util/hostdisk.c: NetBSD specific headers.
29303 (configure_device_driver): new function to tune device driver
29304 parameters (currently only for NetBSD floppy driver).
29305 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29306 via disklabel ioctl).
29307 (open_device): call configure_device_driver on NetBSD.
29308 (convert_system_partition_to_system_disk): NetBSD specific code.
29309 (device_is_wholedisk): Likewise.
29310 (grub_util_biosdisk_get_grub_dev): Likewise.
29311 (make_device_name): Fixed a typo in bsd_part_str.
29312 * configure.ac: check for opendisk() and getrawpartition() on
29313 NetBSD and set LIBUTIL.
29314 * Makefile.in: add LIBUTIL to LIBS.
29316 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29320 * util/grub-script-check.c: Better help message.
29322 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29326 * configure.ac: Flex version check.
29327 * conf/common.rmk: Add -Wno-error to sh.mod.
29328 * script/yylex.l: Remove all #pragma.
29330 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29332 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29334 Reported by: Seth Goldberg.
29336 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29338 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29339 Rename "module" to "module2".
29340 Reported by: Seth Goldberg.
29342 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29344 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29346 Reported by: Seth Goldberg.
29348 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29350 * lib/posix_wrap/locale.h: Add missing file.
29351 Reported by: Seth Goldberg.
29353 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29355 grub-emu module load support.
29357 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29358 NO_DYNAMIC_MODULES switched to this.
29359 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29360 (CFLAGS): Likewise.
29361 * conf/any-emu.rmk: Generate symlist.
29362 (kernel_img_HEADERS): Add util/datetime.h.
29363 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29364 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29365 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29366 kern/$(target_cpu)/cache.S.
29367 * configure.ac (grub-emu-modules): New option.
29368 * genmk.rb: Handle multiple source lists.
29369 * include/grub/sdl.h: New file.
29370 * include/grub/libusb.h: Likewise.
29371 * util/grub-emu.c (main): Hanle (host) root.
29372 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29373 GRUB_ERR_UNKNOWN_DEVICE.
29374 * util/misc.c: Move mm functions to ...
29375 * util/mm.c: ... here. All users updated.
29377 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29379 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29380 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29382 (maintainer-clean): Remove libgcrypt-grub.
29384 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29386 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29388 2010-04-09 EFI Coder <eficoder@hotmail.com>
29390 * normal/menu_text.c (print_message): Clean up the message and show
29391 the Fn information when on EFI
29392 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29394 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29396 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29398 * normal/crypto.c (read_crypto_list): Likewise.
29399 * normal/dyncmd.c (read_command_list): Likewise.
29400 * normal/term.c (read_terminal_list): Likewise.
29401 * normal/main.c (read_lists): Use explicit prefix.
29402 (read_lists_hook): Use read_lists.
29403 (grub_normal_execute): Likewise.
29405 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29407 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29408 Reported by: Thomas Schmitt.
29409 Add -no-emul-boot to grub-mkisofs parameters.
29411 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29413 * font/font.c: Indented.
29415 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29417 Elif support to GRUB script (by Deepak Vankadaru).
29419 * tests/grub_script_if.in: New testcase.
29420 * conf/tests.rmk: Rule for new testcase.
29421 * script/parser.y: Grammar rules for elif.
29423 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29425 While and until loops support to GRUB script.
29427 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29428 (grub_script_create_cmdwhile): New function prototype.
29429 (grub_script_execute_cmdwhile): New function prototype.
29430 * script/execute.c (grub_script_execute_cmdwhile): New function.
29431 * script/parser.y (command): New commands.
29432 (whilecmd): New grammar rule.
29433 (untilcmd): New grammar rule.
29434 * script/script.c (grub_script_create_cmdwhile): New function.
29435 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29438 * tests/grub_script_while1.in: New testcase.
29439 * conf/tests.rmk: Rule for new testcase.
29441 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29443 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29446 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29448 GRUB_BACKGROUND support.
29450 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29451 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29453 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29455 Load fonts and modules for gfxmenu in grub-mkconfig.
29456 Idea by: Mario Vazquez
29458 * util/grub.d/00_header.in: Load pf2 and image modules.
29460 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29462 grub-mkconfig multiple terminal support.
29464 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29465 * util/grub.d/00_header.in: Likewise.
29467 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29469 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29470 we use cd $(srcdir).
29472 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29474 * util/grub.d/10_linux.in: Only use the first word of
29475 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29476 spaces in GRUB_DISTRIBUTOR.
29477 * util/grub.d/10_kfreebsd.in: Likewise.
29478 * util/grub.d/10_hurd.in: Likewise.
29480 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29482 Fix unit testing framework for Qemu 0.12.
29484 * tests/util/grub-shell.in: Remove -serial stdio option.
29486 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29488 POSIX header file wrappers.
29490 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29492 * lib/posix_wrap/ctype.h: Likewise.
29493 * lib/posix_wrap/errno.h: Likewise.
29494 * lib/posix_wrap/langinfo.h: Likewise.
29495 * lib/posix_wrap/limits.h: Likewise.
29496 * lib/posix_wrap/localcharset.h: Likewise.
29497 * lib/posix_wrap/stdint.h: Likewise.
29498 * lib/posix_wrap/stdio.h: Likewise.
29499 * lib/posix_wrap/stdlib.h: Likewise.
29500 * lib/posix_wrap/string.h: Likewise.
29501 * lib/posix_wrap/sys/types.h: Likewise.
29502 * lib/posix_wrap/unistd.h: Likewise.
29503 * lib/posix_wrap/wchar.h: Likewise.
29504 * lib/posix_wrap/wctype.h: Likewise.
29505 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29506 (grub_script.yy.h): Likewise.
29507 * script/yylex.l: Remove POSIX emulation #defines.
29508 * Makefile.in (POSIX_CFLAGS): New variable.
29509 (GNULIB_UTIL_CFLAGS): Likewise.
29513 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29514 (regexp_mod_SOURCES): New variable.
29515 (regexp_mod_CFLAGS): Likewise.
29516 (regexp_mod_LDFLAGS): Likewise.
29517 * commands/regexp.c: New file.
29518 * gnulib/regcomp.c: New file. Imported from gnulib.
29519 * gnulib/regex.c: Likewise.
29520 * gnulib/regex_internal.c: Likewise.
29521 * gnulib/regex_internal.h: Likewise.
29522 * gnulib/regexec.c: Likewise.
29523 * gnulib/regex.h: Likewise.
29525 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29527 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29528 unsupported video mode types.
29530 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29532 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29534 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29536 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29537 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29539 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29541 Remove unused grub_vga_get_font.
29543 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29544 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29546 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29548 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29549 * include/grub/misc.h: Likewise.
29551 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29553 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29554 for which failure is fatal.
29556 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29558 * util/grub-install.in: Use mkdir -p to create grub directory.
29559 * util/i386/efi/grub-install.in: Likewise.
29560 * util/ieee1275/grub-install.in: Likewise.
29562 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29564 * Makefile.in (LEX): new variable.
29566 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29568 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29569 `=' and added double quotes on operands of this equality test.
29571 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29573 * Makefile.in (uninstall): Remove a leftover debug echo.
29574 Reported by: Grégoire Sutre
29576 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29578 MIPS multiboot2 support.
29580 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29581 (multiboot2_mod_SOURCES): New variable.
29582 (multiboot2_mod_CFLAGS): Likewise.
29583 (multiboot2_mod_LDFLAGS): Likewise.
29584 (multiboot2_mod_ASFLAGS): Likewise.
29585 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29587 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29588 (MULTIBOOT_MBI_REGISTER): Likewise.
29589 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29590 (MULTIBOOT_ELF32_MACHINE): Likewise.
29591 (MULTIBOOT_ELF64_MACHINE): Likewise.
29592 * include/grub/mips/multiboot.h: New file.
29593 * include/grub/video.h (grub_video_driver_id): New type
29594 GRUB_VIDEO_DRIVER_SM712.
29595 (grub_video_get_info_and_fini): Export.
29596 (grub_video_get_palette): Likewise.
29597 (grub_video_get_driver_id): Likewise.
29598 * include/multiboot2.h: Resynced with spec.
29599 * loader/i386/multiboot.c: Moved from here ...
29600 * loader/multiboot.c: ... here. All users updated.
29601 (grub_multiboot_boot): Use platform-specific macros.
29602 * loader/i386/multiboot_elfxx.c: Moved from here ...
29603 * loader/multiboot_elfxx.c: ... here. All users updated.
29604 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29605 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29606 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29608 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29610 Import gnulib argp module.
29612 * gnulib/argp-ba.c: New file.
29613 * gnulib/argp-eexst.c: Likewise.
29614 * gnulib/argp-fmtstream.c: Likewise.
29615 * gnulib/argp-fmtstream.h: Likewise.
29616 * gnulib/argp-fs-xinl.c: Likewise.
29617 * gnulib/argp-help.c: Likewise.
29618 * gnulib/argp-namefrob.h: Likewise.
29619 * gnulib/argp-parse.c: Likewise.
29620 * gnulib/argp-pin.c: Likewise.
29621 * gnulib/argp-pv.c: Likewise.
29622 * gnulib/argp-pvh.c: Likewise.
29623 * gnulib/argp-version-etc.c: Likewise.
29624 * gnulib/argp-version-etc.h: Likewise.
29625 * gnulib/argp-xinl.c: Likewise.
29626 * gnulib/argp.h: Likewise.
29628 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29630 * kern/device.c (grub_device_iterate): Clear errors after failed
29633 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29635 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29636 returned by firmware.
29638 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29640 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29641 compilation on coreboot and qemu
29643 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29645 * include/multiboot2.h: Resync with spec.
29647 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29649 Multiboot2 tag support
29651 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29652 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29653 Remove loader/multiboot_loader.c.
29654 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29655 (grub_multiboot2_real_boot): Likewise.
29656 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29657 (grub_get_multiboot_mmap_count): New proto.
29658 (grub_fill_multiboot_mmap): Likewise.
29659 (grub_multiboot_set_video_mode): Likewise.
29660 (grub_multiboot_set_console): Likewise.
29661 (grub_multiboot_load): Likewise.
29662 (grub_multiboot_load_elf): Likewise.
29663 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29664 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29665 * include/multiboot.h: Resynced with specification.
29666 * include/multiboot2.h: Resynced with specification.
29667 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29668 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29669 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29670 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29672 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29673 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29674 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29676 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29678 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29679 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29681 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29682 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29683 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29685 * loader/i386/multiboot_mbi2.c: New file.
29687 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29689 Resync with gnulib.
29691 * Makefile.in (GNULIB_CFLAGS): New variable.
29692 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29693 (grub_script_check_CFLAGS): New variable.
29694 * gnulib/alloca.h: Resync with gnulib.
29695 * gnulib/error.c: Likewise.
29696 * gnulib/error.h: Likewise.
29697 * gnulib/fnmatch.c: Likewise.
29698 * gnulib/fnmatch_loop.c: Likewise.
29699 * gnulib/getdelim.c: Likewise.
29700 * gnulib/getline.c: Likewise.
29701 * gnulib/getopt.c: Likewise.
29702 * gnulib/getopt1.c: Likewise.
29703 * gnulib/getopt_int.h: Likewise.
29704 * gnulib/gettext.h: Likewise.
29705 * gnulib/progname.c: Likewise.
29706 * gnulib/progname.h: Likewise.
29708 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29710 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29711 which is the case with --disabled-nls.
29713 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29714 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29715 * util/misc.c: Likewise.
29716 * util/mkisofs/mkisofs.c: Likewise.
29717 * util/mkisofs/mkisofs.h: Likewise.
29719 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29721 Simplify Apple CC support.
29723 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29724 Add 0 byte at the end not to have a symbol with empty target.
29725 * mmap/i386/pc/mmap_helper.S: Likewise.
29726 * genmk.rb: Ignore errors 2030 and 2050.
29727 * kern/i386/pc/startup.S: Use LOCAL when possible.
29729 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29731 Testcase and the fix for final semicolon on cmdline.
29733 * tests/grub_script_final_semicolon.in: New testcase.
29734 * conf/tests.rmk: Rules for the new testcase.
29735 * script/parser.y: Grammar fix.
29737 2010-03-26 BVK Chaitanya <bvk@localhost>
29739 Blank lines testcase for GRUB script.
29741 * tests/grub_script_blanklines.in: New testcase.
29742 * conf/tests.rmk: Rules for the new testcase.
29744 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29746 Don't use __FILE__.
29748 * genmk.rb: Add -DGRUB_FILE to all C targets.
29749 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29750 * include/grub/list.h: Likewise.
29751 * include/grub/misc.h: Likewise.
29752 * include/grub/mm.h: Likewise.
29753 * include/grub/test.h: Likewise.
29754 * kern/mm.c: Likewise.
29755 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29757 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29759 Sunpc partitions support.
29761 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29762 (grub_fstest_SOURCES): Likewise.
29763 (pkglib_MODULES): Add part_sunpc.mod.
29764 (part_sunpc_mod_SOURCES): New variable.
29765 (part_sunpc_mod_CFLAGS): Likewise.
29766 (part_sunpc_mod_LDFLAGS): Likewise.
29767 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29768 * partmap/sunpc.c: New file.
29770 2010-03-26 BVK Chaitanya <bvk@localhost>
29772 For loop support to GRUB script.
29774 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29775 (grub_script_create_cmdfor): New function prototype.
29776 (grub_script_execute_cmdfor): New function prototype.
29777 * script/execute.c (grub_script_execute_cmdfor): New function.
29778 * script/parser.y (command): New for command.
29779 (forcmd): New grammar rule.
29780 * script/script.c (grub_script_create_cmdfor): New function.
29781 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29783 * tests/grub_script_for1.in: New testcase.
29784 * conf/tests.rmk: Rules for new testcase.
29786 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29790 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29791 'partition' is NULL, grub_partition_get_start already does that.
29792 * commands/loadenv.c (check_blocklists): Likewise.
29793 (write_blocklists): Likewise.
29794 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29795 (grub_fstest_SOURCES): Likewise.
29796 (pkglib_MODULES): Add part_bsd.mod.
29797 (part_bsd_mod_SOURCES): New variable.
29798 (part_bsd_mod_CFLAGS): Likewise.
29799 (part_bsd_mod_LDFLAGS): Likewise.
29800 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29801 (grub_emu_SOURCES): Likewise.
29802 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29803 * include/grub/bsdlabel.h: New file.
29804 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29806 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29807 (grub_partition_map_list): New variable.
29808 (grub_partition_map_register): Inline.
29809 (grub_partition_map_unregister): Likewise.
29810 (FOR_PARTITION_MAPS): New macro.
29811 (grub_partition_map_iterate): Removed.
29812 (grub_partition_get_start): Handle nested partitions.
29813 * include/grub/msdos_partition.h: Remove bsd-related entries.
29814 (grub_pc_partition): Remove.
29815 * kern/disk.c (grub_disk_close): Free partition data.
29816 (grub_disk_adjust_range): Handle nested partitions.
29817 * kern/partition.c (grub_partition_map_probe): New function.
29818 (grub_partition_probe): Parse name to number, handle subpartitions.
29819 (get_partmap): New function.
29820 (grub_partition_iterate): Handle subpartitions.
29821 (grub_partition_get_name): Likewise.
29822 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29823 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29824 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29825 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29827 (acorn_partition_map_probe): Remove.
29828 (acorn_partition_map_get_name): Likewise.
29829 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29831 Set 'index' to 0 since there can be only one partition entry per sector.
29832 (amiga_partition_map_probe): Remove.
29833 (amiga_partition_map_get_name): Likewise.
29834 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29836 Set 'offset' and 'index' to real positions of partitions.
29837 (apple_partition_map_probe): Remove.
29838 (apple_partition_map_get_name): Likewise.
29839 * partmap/bsdlabel.c: New file.
29840 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29842 Allocate 'data' so it can be correctly freed.
29843 Set 'index' to offset inside sector.
29844 (gpt_partition_map_probe): Remove.
29845 (gpt_partition_map_get_name): Likewise.
29846 * partmap/msdos.c (grub_partition_parse): Remove.
29847 (pc_partition_map_iterate): Don't force raw access.
29849 Make 'ext_offset' a local variable.
29850 (pc_partition_map_probe): Remove.
29851 (pc_partition_map_get_name): Remove.
29852 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29854 (sun_partition_map_probe): Remove.
29855 (sun_partition_map_get_name): Likewise.
29856 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29857 (grub_pcpart_type): Likewise.
29858 * util/hostdisk.c (open_device): Handle new numbering scheme.
29859 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29860 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29861 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29862 * util/grub-install.in: Insert all subpartition modules.
29863 * util/ieee1275/grub-install.in: Likewise.
29865 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29867 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29870 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29872 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29874 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29876 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29877 match where 'make install' puts them.
29878 * util/i386/efi/grub-install.in: Likewise.
29880 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29882 * .bzrignore: Add gentrigtables, grub-script-check,
29883 grub_script_check_init.c, grub_script_check_init.h, and
29886 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29888 * kern/parser.c: Indented.
29890 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29892 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29894 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29896 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29897 alpha_mask_size == 0 case.
29899 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29901 GRUB shell lexer and parser improvements.
29903 * conf/any-emu.rmk: Build rule updates.
29904 * conf/common.rmk: Likewise.
29905 * conf/i386-coreboot.rmk: Likewise.
29906 * conf/i386-efi.rmk: Likewise.
29907 * conf/i386-ieee1275.rmk: Likewise.
29908 * conf/i386-pc.rmk: Likewise.
29909 * conf/powerpc-ieee1275.rmk: Likewise.
29910 * conf/x86_64-efi.rmk: Likewise.
29912 * configure.ac: Configure check for flex.
29914 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29916 (grub_lexer_param): Struct member updates.
29917 (grub_parser_param): Likewise.
29918 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29919 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29920 (grub_script_lexer_init): Prototype update.
29921 (grub_script_lexer_record_start): Likewise.
29922 (grub_script_lexer_record_stop): Likewise.
29923 (grub_script_lexer_yywrap): New function prototype.
29924 (grub_script_lexer_fini): Likewise.
29925 (grub_script_execute_argument_to_string): Removed by...
29926 (grub_script_execute_argument_to_argv): ...better version.
29928 * script/execute.c (ROUND_UPTO): New macro.
29929 (grub_script_execute_cmdline): Out of memory fixes.
29930 (grub_script_execute_menuentry): Likewise.
29931 (grub_script_execute_argument_to_string): Removed. Update all
29933 (grub_script_execute_argument_to_argv): ...better version.
29934 * script/function.c (grub_script_function_create): Use
29935 grub_script_execute_argument_to_argv instead of
29936 grub_script_execute_argument_to_string.
29938 * script/lexer.c (check_varstate): Removed.
29939 (check_textstate): Removed.
29940 (grub_script_lexer_record_start): Likewise.
29941 (grub_script_lexer_record_stop): Likewise.
29942 (recordchar): Replaced with...
29943 (grub_script_lexer_record): ...new function.
29944 (nextchar): Removed.
29945 (grub_script_lexer_init): Rewritten.
29946 (grub_script_yylex): Rewritten.
29947 (append_newline): New function.
29948 (grub_script_lexer_yywrap): New function.
29949 (grub_script_lexer_fini): New function.
29950 (grub_script_yyerror): Sets error flag.
29952 * script/yylex.l: New file.
29953 (grub_lexer_yyfree): Wrapper for flex yyffre.
29954 (grub_lexer_yyalloc): Likewise.
29955 (grub_lexer_yyrealloc): Likewise.
29956 * script/parser.y: Refactored.
29958 * script/script.c (grub_script_arg_add): Out of memory fixes.
29959 (grub_script_add_arglist): Likewise.
29960 (grub_script_create_cmdline): Likewise.
29961 (grub_script_create_cmdmenu): Likewise.
29962 (grub_script_add_cmd): Likewise.
29963 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29964 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29967 * tests/grub_script_echo1.in: New testcase.
29968 * tests/grub_script_vars1.in: New testcase.
29969 * tests/grub_script_echo_keywords.in: New testcase.
29971 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29973 Remove some redundancy in build system.
29975 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29976 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29977 (TARGET_LDFLAGS): Add -nostdlib.
29978 (TARGET_IMG_LDFLAGS): Likewise.
29979 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29980 anything since mmap isn't available.
29981 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29983 (pkglib_MODULES): Remove reboot.mod.
29984 (reboot_mod_SOURCES): Removed.
29985 (reboot_mod_CFLAGS): Likewise.
29986 (reboot_mod_LDFLAGS): Likewise.
29987 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29988 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29989 (DEFSYMFILES): Add kernel_syms.lst.
29990 (kernel_img_HEADERS): Add common headers.
29991 (symlist.c): New target.
29992 (kernel_syms.lst): Likewise.
29993 (pkglib_MODULES): Add memdisk.mod.
29994 (memdisk_mod_SOURCES): New variable.
29995 (memdisk_mod_CFLAGS): Likewise.
29996 (memdisk_mod_LDFLAGS): Likewise.
29997 (pkglib_MODULES): Add reboot.mod.
29998 (reboot_mod_SOURCES): New variable.
29999 (reboot_mod_CFLAGS): Likewise.
30000 (reboot_mod_LDFLAGS): Likewise.
30001 (pkglib_MODULES): Add date.mod.
30002 (date_mod_SOURCES): New variable.
30003 (date_mod_CFLAGS): Likewise.
30004 (date_mod_LDFLAGS): Likewise.
30005 (pkglib_MODULES): Add datehook.mod.
30006 (datehook_mod_SOURCES): New variable.
30007 (datehook_mod_CFLAGS): Likewise.
30008 (datehook_mod_LDFLAGS): Likewise.
30009 (pkglib_MODULES): Add lsmmap.mod.
30010 (lsmmap_mod_SOURCES): New variable.
30011 (lsmmap_mod_CFLAGS): Likewise.
30012 (lsmmap_mod_LDFLAGS): Likewise.
30013 (pkglib_MODULES): Add boot.mod.
30014 (boot_mod_SOURCES): New variable.
30015 (boot_mod_CFLAGS): Likewise.
30016 (boot_mod_LDFLAGS): Likewise.
30017 * conf/i386-coreboot.rmk: Removed redundant parts.
30018 * conf/i386-ieee1275.rmk: Likewise.
30019 * conf/i386-pc.rmk: Likewise.
30020 * conf/mips-yeeloong.rmk: Likewise.
30021 * conf/mips.rmk: Likewise.
30022 * conf/powerpc-ieee1275.rmk: Likewise.
30023 * conf/sparc64-ieee1275.rmk: Likewise.
30024 * conf/x86_64-efi.rmk: Likewise.
30025 * conf/i386-coreboot.rmk: Moved qemu parts ..
30026 * conf/i386-qemu.rmk: ... here
30027 * conf/i386-efi.rmk: Moved common parts to...
30028 * conf/x86-efi.rmk: ... here.
30029 * conf/i386.rmk: Added modules common to all x86 variants.
30030 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
30031 * disk/memdisk.c: Remove grub/machine/kernel.h.
30032 * gensymlist.sh.in: Include symbol.h.
30033 * hook/datehook.c: Correct module name.
30034 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
30035 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
30036 * include/grub/i386/efi/serial.h: New file.
30037 * include/grub/x86_64/efi/serial.h: Likewise.
30038 * util/time.c: Likewise.
30039 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
30041 2010-03-14 Colin King <colin.king@ubuntu.com>
30042 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
30044 Shrink the pre-partition-table part of boot.img by eight bytes.
30046 * boot/i386/pc/boot.S (ERR): New macro.
30047 (chs_mode): Use ERR.
30048 (geometry_error): Likewise.
30049 (hd_probe_error): Remove. This is only used once, so we wrwite
30051 (read_error): Instead of printing read_error_string, just set up
30052 %si and fall through to ...
30053 (error_message): ... this new function, also used by ERR.
30055 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
30057 Speed up consecutive hostdisk operations on the same device.
30059 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
30060 (grub_util_biosdisk_open): Initialise disk->data.
30061 (struct linux_partition_cache): New structure.
30062 (linux_find_partition): Cache partition start positions; these are
30063 expensive to compute on every read and write.
30064 (open_device): Cache open file descriptor in disk->data, so that we
30065 don't have to reopen it and flush the buffer cache for consecutive
30066 operations on the same device.
30067 (grub_util_biosdisk_close): New function.
30068 (grub_util_biosdisk_dev): Set `close' member.
30070 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
30071 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
30072 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
30073 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
30074 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
30076 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30078 Compile parts of grub-emu as modules.
30080 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
30081 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
30082 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
30083 (all-local): Add $(GRUB_EMU).
30084 (install-local): Install $(GRUB_EMU).
30085 (uninstall): Uninstall $(GRUB_EMU).
30086 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
30087 * kern/dl.c: Likewise.
30088 * commands/sleep.c: Not include machine/time.h.
30089 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
30090 (COMMON_CFLAGS): Likewise.
30091 (sbin_UTILITIES): Remove grub-emu.
30092 (grub_emu_SOURCES): Removed.
30093 (kernel_img_RELOCATABLE): New variable.
30094 (pkglib_PROGRAMS): Add kernel.img.
30095 (kernel_img_SOURCES): New variable
30096 (kernel_img_CFLAGS): Likewise.
30097 (kernel_img_LDFLAGS): Likewise.
30098 (TARGET_NO_STRIP): Likewise.
30099 (TARGET_NO_DYNAMIC_MODULES): Likewise.
30100 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
30101 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
30102 (grub-emu): New target.
30103 (GRUB_EMU): New variable.
30104 * configure.ac: Whitelist -emu as possible x86_64 architecture.
30105 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
30106 * loader/xnu.c: Likewise.
30107 * include/grub/pci.h: Likewise.
30108 * genemuinit.sh: New file.
30109 * genemuinitheader.sh: Likewise.
30110 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
30111 Support TARGET_NO_DYNAMIC_MODULES.
30112 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
30113 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
30114 * disk/loopback.c: Likewise.
30115 * font/font_cmd.c: Likewise.
30116 * partmap/acorn.c: Likewise.
30117 * partmap/amiga.c: Likewise.
30118 * partmap/apple.c: Likewise.
30119 * partmap/gpt.c: Likewise.
30120 * partmap/msdos.c: Likewise.
30121 * partmap/sun.c: Likewise.
30122 * parttool/msdospart.c: Likewise.
30123 * term/gfxterm.c: Likewise.
30124 * video/bitmap.c: Likewise.
30125 * video/readers/jpeg.c: Likewise.
30126 * video/readers/png.c: Likewise.
30127 * video/readers/tga.c: Likewise.
30128 * video/video.c: Likewise.
30129 * util/grub-emu.c (read_command_list): Removed.
30130 (main): Don't call util_init_nls.
30131 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
30132 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
30134 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30136 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
30137 date.mod, datehook.mod.
30138 (datetime_mod_SOURCES): New variable.
30139 (datetime_mod_CFLAGS): Likewise.
30140 (datetime_mod_LDFLAGS): Likewise.
30141 (date_mod_SOURCES): Likewise.
30142 (date_mod_CFLAGS): Likewise.
30143 (date_mod_LDFLAGS): Likewise.
30144 (datehook_mod_SOURCES): Likewise.
30145 (datehook_mod_CFLAGS): Likewise.
30146 (datehook_mod_LDFLAGS): Likewise.
30147 * conf/sparc64-ieee1275.rmk: Likewise.
30148 * lib/ieee1275/datetime.c: New file.
30150 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30152 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
30153 (ieee1275_fb_mod_SOURCES): New variable.
30154 (ieee1275_fb_mod_CFLAGS): Likewise.
30155 (ieee1275_fb_mod_LDFLAGS): Likewise.
30156 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
30158 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
30159 (HEAP_MAX_ADDR): Likewise.
30160 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
30162 Correct stop condition.
30163 (grub_ieee1275_devices_iterate): New function.
30164 * video/ieee1275.c: New file.
30166 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30168 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30170 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30172 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30173 SCRATCH_PAD_DISKBOOT as scratch.
30174 (bootit): Pass Openfirmware pointer in %o4.
30175 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30177 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30178 with util/grub-mkrawimage.c.
30179 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30180 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30181 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30182 (grub_aout_load) [GRUB_UTIL]: Likewise.
30183 * include/grub/kernel.h (grub_modules_get_end): New proto.
30184 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30185 (SCRATCH_PAD_BOOT): New definition.
30186 (SCRATCH_PAD_DISKBOOT): Likewise.
30187 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30188 * include/grub/sparc64/ieee1275/ieee1275.h
30189 (grub_ieee1275_original_stack): New variable
30190 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30192 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30193 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30194 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30195 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30196 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30197 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30198 (grub_platform_image_format_t): New type.
30199 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30200 * kern/main.c (grub_modules_get_end)
30201 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30202 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30203 (codestart): Switch stacks.
30204 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30206 (grub_heap_init): Use grub_modules_get_end.
30207 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30209 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30211 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30213 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
30215 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30217 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30219 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30222 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30224 * genmoddep.awk: Output all missing symbols and not only first.
30226 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30228 * NEWS: Put the date of 1.98 release.
30230 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30232 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30235 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30237 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30238 completition in the middle of string.
30240 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30242 * util/grub-mkrescue.in: Use mktemp with explicit template.
30244 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30246 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30248 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30250 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30253 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30255 Fix FreeBSD compilation.
30257 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30258 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30260 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30262 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30264 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30266 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30268 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30270 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30272 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30274 Support relative image path in theme file.
30276 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30277 (image_set_property): Handle theme_dir and relative path.
30279 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30281 * configure.ac: Alias amd64 to x86_64.
30283 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30285 * NEWS: mention multiboot on EFI.
30287 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30289 * kern/main.c (grub_load_modules): Handle errors from init functions of
30292 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30294 * normal/autofs.c (autoload_fs_module): Handle errors.
30296 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30298 Disable linux.mod on qemu-mips since it's not functional and leads
30299 to compilation failure.
30301 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30302 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30303 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30304 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30305 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30306 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30307 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30308 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30309 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30310 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30311 Reported by: BVK Chaitanya
30313 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30315 * INSTALL: Add gettext as a dependency and add qemu to a new section
30316 "Prerequisites for make-check".
30318 2010-03-04 Christian Franke <franke@computer.org>
30320 * util/grub-pe2elf.c: Add missing include "progname.h".
30322 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30324 * normal/crypto.c (read_crypto_list): Fix a typo.
30325 Reported by: Seth Goldberg.
30327 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30329 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30330 Reported by: Seth Goldberg.
30332 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30334 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30337 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30339 * genmk.rb: Remove terminal*.lst in make clean.
30340 Reported by: Seth Goldberg.
30342 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30344 * util/i386/efi/grub-install.in: Copy gettext files.
30346 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30348 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30350 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30352 Wait for user entry basing on presence of output rather than on errors.
30354 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30355 (grub_install_newline_hook): Likewise.
30356 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30357 * normal/menu.c (show_menu): Check line_counter to determine presence
30359 * normal/term.c (grub_normal_line_counter): New variable.
30360 (grub_normal_get_line_counter): New function.
30361 (grub_install_newline_hook): Likewise.
30363 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30365 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30367 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30369 * configure.ac: Update version to 1.98.
30371 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30373 * util/grub.d/10_linux.in (linux_entry): Don't default to
30374 gfxpayload=keep if Linux doesn't support video handover.
30376 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30378 Don't compile video modules on yeeloong since video subsystem is part
30381 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30382 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30383 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30384 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30385 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30386 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30387 * include/grub/bitmap_scale.h: Likewise.
30388 * include/grub/bufio.h: Likewise.
30389 * include/grub/font.h: Likewise.
30390 * include/grub/gfxterm.h: Likewise.
30391 * include/grub/video.h: Likewise.
30392 * include/grub/vbe.h: Don't include video_fb.h.
30393 * video/i386/pc/vbe.c: Include video_fb.h.
30394 * commands/i386/pc/vbetest.c: Include video.h.
30396 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30398 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30399 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30400 default entry if GRUB_SAVEDEFAULT=true. This allows using
30401 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30402 saving a new default on every boot.
30404 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30406 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30407 * normal/term.c (read_terminal_list): Likewise.
30408 * normal/main.c (grub_normal_init_page): Likewise.
30409 (grub_normal_read_line_real): Likewise.
30411 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30413 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30415 Reported by: Seth Goldberg.
30417 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30419 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30420 duplicate declaration of `start'.
30422 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30424 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30426 Reported by: Georgy Buranov
30428 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30430 * util/grub-mkrawimage.c (usage): Change string formatting to
30433 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30435 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30438 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30440 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30441 Reported by: Michael Suchanek.
30443 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30445 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30446 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30448 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30450 Remove any reference to non-free fonts.
30452 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30453 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30454 uses non-free components.
30455 * font/font.c (grub_font_get_name): Remove example name.
30456 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30457 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30458 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30459 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30461 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30463 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30465 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30467 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30469 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30471 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30473 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30475 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30477 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30479 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30480 * docs/grub.texi (Command-line and menu entry commands): Document play
30483 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30485 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30486 parse arguments as inline tempo and notes. Move code for playing notes
30488 (play): ... new function.
30490 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30492 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30493 grub_uint16_t instead of short.
30494 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30495 disk from little endian to cpu endianness.
30497 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30499 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30500 GRUB_TICKS_PER_SECOND instead of 120.
30502 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30504 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30505 escape sequence after \e.
30507 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30509 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30510 non-ASCII characters.
30512 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30514 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30515 set root in single quotes to prevent \, from being unescaped.
30517 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30519 Prevent unknown commands from stopping menuentry execution.
30521 * script/execute.c (grub_script_execute_cmdline): Print error after
30524 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30526 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30527 Reported by: Pavel Pisa.
30529 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30531 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30533 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30535 Merge grub_ieee1275_map_physical into grub_map and rename to
30538 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30539 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30541 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30542 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30544 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30546 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30548 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30549 opening and not after.
30551 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30553 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30556 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30558 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30559 (alloc_phys): Use ALIGN_UP instead of align_addr.
30561 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30563 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30565 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30567 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30569 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30571 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30574 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30576 Fix over-4GiB seek on sparc64.
30578 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30579 Replace pos_i and pos_lo with pos. All users updated.
30580 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30582 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30584 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30587 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30589 * util/grub-mkrawimage.c (main): Call set_program_name.
30591 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30593 Properly align 64-bit targets.
30595 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30596 (generate_image): Use ALIGN_ADDR.
30598 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30600 Properly create cross-endian images.
30602 * include/grub/types.h (grub_host_to_target_addr): New macro
30603 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30605 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30607 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30609 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30611 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30613 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30614 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30615 (grub_linux_boot): Divide by 64K when on VESA.
30617 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30619 Support GRUB_GFXPAYLOAD_LINUX.
30621 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30622 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30624 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30626 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30627 to show messages instead of discarding them.
30628 Process errors after executing command and not before. Keep old method
30631 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30633 * configure.ac: Check for ft2build.h.
30635 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30637 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30639 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30641 * genkernsyms.sh.in: Use TARGET_CC.
30643 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30647 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30649 * include/grub/multiboot2.h: Remove leftover file.
30650 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30651 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30653 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30655 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30657 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30659 Fix warnings in grub-emu when compiling with maximum warning options.
30661 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30662 (grub_arch_modules_addr): Return 0 and not NULL.
30663 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30664 (xstrdup): Use newstr instead of dup.
30665 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30666 of disk to dsk to avoid shadowing.
30667 (find_free_slot): Fix prototype.
30668 * util/getroot.c (grub_util_is_dmraid): Make static.
30669 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30670 Add missing prototype.
30671 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30673 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30675 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30678 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30680 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30683 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30685 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30686 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30687 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30688 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30689 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30690 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30692 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30694 * include/grub/err.h (grub_err_printf): Don't export.
30696 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30698 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30700 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30702 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30703 * kern/misc.c (grub_gettext_dummy): Make static.
30705 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30707 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30709 * kern/term.c (grub_putchar): Likewise.
30711 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30713 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30714 buggy hook call and memory leak.
30716 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30718 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30720 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30722 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30724 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30726 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30728 Return grub_errno on allocation error.
30730 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30732 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30734 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30736 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30737 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30739 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30741 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30743 (grub_pxefs_open): Likewise.
30745 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30747 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30748 * util/grub.d/10_kfreebsd.in: Likewise.
30749 * util/grub.d/10_linux.in: Likewise.
30751 2010-02-06 Colin D Bennett <colin@gibibit.com>
30753 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30754 (gfxmenu_mod_SOURCES): New variable.
30755 (gfxmenu_mod_CFLAGS): Likewise.
30756 (gfxmenu_mod_LDFLAGS): Likewise.
30757 * include/grub/term.h (grub_term_set_current_output): Declare
30759 * docs/gfxmenu-theme-example.txt: New file.
30760 * gfxmenu/gfxmenu.c: Likewise.
30761 * gfxmenu/gui_box.c: Likewise.
30762 * gfxmenu/gui_canvas.c: Likewise.
30763 * gfxmenu/gui_circular_progress.c: Likewise.
30764 * gfxmenu/gui_image.c: Likewise.
30765 * gfxmenu/gui_label.c: Likewise.
30766 * gfxmenu/gui_list.c: Likewise.
30767 * gfxmenu/gui_progress_bar.c: Likewise.
30768 * gfxmenu/gui_string_util.c: Likewise.
30769 * gfxmenu/gui_util.c: Likewise.
30770 * gfxmenu/icon_manager.c: Likewise.
30771 * gfxmenu/model.c: Likewise.
30772 * gfxmenu/named_colors.c: Likewise.
30773 * gfxmenu/theme_loader.c: Likewise.
30774 * gfxmenu/view.c: Likewise.
30775 * gfxmenu/widget-box.c: Likewise.
30776 * include/grub/gfxmenu_model.h: Likewise.
30777 * include/grub/gfxmenu_view.h: Likewise.
30778 * include/grub/gfxwidgets.h: Likewise.
30779 * include/grub/gui.h: Likewise.
30780 * include/grub/gui_string_util.h: Likewise.
30781 * include/grub/icon_manager.h: Likewise.
30783 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30785 Agglomerate scrolling in gfxterm.
30787 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30788 (grub_virtual_screen_setup): Initialise 'total_screen'.
30789 (write_char): Split to ...
30790 (paint_char): ... this ...
30791 (write_char): ... and this.
30792 (paint_char): Handle delayed scrolling.
30793 (draw_cursor): Likewise.
30794 (scroll_up): Split to ...
30795 (real_scroll): ... this ...
30796 (scroll_up): ... and this.
30797 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30799 (grub_gfxterm_refresh): Call real_scroll.
30801 2010-02-06 Colin D Bennett <colin@gibibit.com>
30803 * include/grub/misc.h (grub_iscntrl): New inline function.
30804 (grub_isalnum): Likewise.
30805 (grub_strtol): Likewise.
30807 2010-02-06 Colin D Bennett <colin@gibibit.com>
30809 * normal/menu_text.c (get_entry_number): Move from here ...
30810 * normal/menu.c (get_entry_number): ... moved here.
30811 * include/grub/menu.h (grub_menu_get_default_entry_index):
30813 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30814 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30815 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30816 (grub_menu_viewer_should_return): Likewise.
30817 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30818 * normal/menu_text.c (run_menu): Enable menu switching.
30819 * normal/menu_viewer.c (should_return): New variable.
30820 (menu_viewer_changed): Likewise.
30821 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30822 (grub_menu_viewer_should_return): New function.
30823 (menuviewer_write_hook): Likewise.
30824 (grub_menu_viewer_init): Likewise.
30826 2010-02-06 Colin D Bennet <colin@gibibit.com>
30827 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30829 Support for gfxterm in a window.
30831 * include/grub/gfxterm.h: New file.
30832 * include/grub/video.h (struct grub_video_rect): New declaration.
30833 (grub_video_rect_t): Likewise.
30834 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30835 (refcount): New variable.
30836 (render_target): Likewise.
30837 (window): Likewise.
30838 (repaint_callback): Likewise.
30839 (grub_virtual_screen_setup): Use 'render_target'.
30840 (init_window): New function.
30841 (grub_gfxterm_init_window): Likewise.
30842 (grub_gfxterm_init): Check reference counter.
30844 (destroy_window): New function.
30845 (grub_gfxterm_destroy_window): Likewise.
30846 (grub_gfxterm_fini): Check reference counter.
30847 Use destroy_window.
30848 (redraw_screen_rect): Restore viewport.
30849 Use 'render_target' and 'window'.
30850 Call 'repaint_callback'.
30851 (write_char): Use 'render_target'.
30852 (draw_cursor): Likewise.
30853 (scroll_up): Restore viewport.
30854 Use 'render_target' and 'window'.
30855 Call 'repaint_callback'.
30856 (grub_gfxterm_cls): Likewise.
30857 (grub_gfxterm_refresh): Use 'window'.
30858 (grub_gfxterm_set_repaint_callback): New function.
30859 (grub_gfxterm_background_image_cmd): Use 'window'.
30860 (grub_gfxterm_get_term): New function.
30861 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30863 2010-02-06 Colin D Bennett <colin@gibibit.com>
30865 Bitmap scaling support.
30867 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30868 (bitmap_scale_mod_SOURCES): New variable.
30869 (bitmap_scale_mod_CFLAGS): Likewise.
30870 (bitmap_scale_mod_LDFLAGS): Likewise.
30871 * include/grub/bitmap_scale.h: New file.
30872 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30873 (background_image_cmd_options): New variable.
30874 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30875 (cmd): Rename and change type to ...
30876 (background_image_cmd_handle): ... this. All users updated.
30877 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30878 * video/bitmap_scale.c: New file.
30880 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30884 * Makefile.in (LIBSDL): New variable.
30885 (enable_grub_emu_sdl): Likewise.
30886 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30887 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30888 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30889 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30890 * util/sdl.c: New file.
30892 2010-02-06 Colin D Bennett <colin@gibibit.com>
30893 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30895 Double buffering support.
30897 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30898 * include/grub/video.h: Update comment.
30899 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30901 (grub_video_fb_doublebuf_blit_init): New prototype.
30902 * term/gfxterm.c (scroll_up): Support double buffering.
30903 (grub_gfxterm_refresh): Likewise.
30904 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30905 (grub_video_fb_doublebuf_blit_init): Likewise.
30906 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30907 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30908 'displayed_page', 'render_page' and 'update_screen'.
30909 (grub_video_vbe_fini): Free offscreen buffer.
30910 (doublebuf_pageflipping_commit): New function.
30911 (doublebuf_pageflipping_update_screen): Likewise.
30912 (doublebuf_pageflipping_init): Likewise.
30913 (double_buffering_init): Likewise.
30914 (grub_video_vbe_setup): Enable doublebuffering.
30915 (grub_video_vbe_swap_buffers): Implement.
30916 (grub_video_vbe_set_active_render_target): Handle double buffering.
30917 (grub_video_vbe_get_active_render_target): Likewise.
30918 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30919 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30920 (grub_video_vbe_enable_double_buffering): Likewise.
30921 (grub_video_vbe_swap_buffers): Use update_screen.
30922 (grub_video_set_mode): Use double buffering.
30924 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30926 * maintainance/gentrigtables.py: Remove.
30927 * lib/trig.c: Likewise.
30929 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30931 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30933 (trigtables.c): New rule.
30934 (gentrigtables): Likewise.
30935 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30937 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30939 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30942 2010-02-06 Colin D Bennet <colin@gibibit.com>
30944 Trigonometry support.
30946 * include/grub/trig.h: New file.
30947 * lib/trig.c: Likewise.
30948 * maintainance/gentrigtables.py: Likewise.
30949 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30950 (trig_mod_SOURCES): New variable.
30951 (trig_mod_CFLAGS): Likewise.
30952 (trig_mod_LDFLAGS): Likewise.
30954 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30956 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30959 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30961 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30964 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30966 * util/hostdisk.c (open_device): Don't use partition device when reading
30967 before the partition.
30968 (grub_util_biosdisk_read): Don't read from partition and before the
30969 partition in single operation.
30970 (grub_util_biosdisk_write): Don't write to partition and before the
30971 partition in single operation.
30973 2010-02-03 Torsten Landschoff <torsten@debian.org>
30975 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30978 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30980 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30982 (grub_biosdisk_write): Refuse to write to CDROM.
30984 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30986 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30988 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30990 * font/font.c (find_glyph): Check that bmp_idx is available before
30992 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30993 with (font == NULL).
30995 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30997 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30999 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
31001 * include/grub/script_sh.h (sourcecode): Add const qualifier.
31002 * util/grub-script-check.c (getline): Fix empty lines case.
31004 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
31006 * Makefile.in (check): Exit with fail status when one of the tests
31008 * tests/example_functional_test.c (example_test): Fix reversed assert.
31009 * tests/example_unit_test.c (example_test): Likewise.
31011 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
31013 * util/grub.d/10_linux.in: This script does not use any of the
31014 contents of gettext.sh, only the external command `gettext', so stop
31015 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
31016 the same prefix as GRUB.)
31017 * util/grub.d/10_kfreebsd.in: Likewise.
31019 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
31021 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
31024 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
31026 * kern/disk.c (grub_disk_read): Fix offset computation when reading
31029 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
31031 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
31032 having a 4KiB and not 32KiB buffer size.
31034 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31036 * util/hostfs.c: Include `<errno.h>'.
31037 (grub_hostfs_read): Handle errors from fseeko() and fread().
31039 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31041 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
31042 loop when using read hooks on files whose size isn't sector-aligned.
31044 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31046 Remove unused parameter.
31048 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
31049 (grub_iso9660_open): Remove initialization of `data->length'.
31051 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31053 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
31054 memleak conditions.
31056 2010-01-27 Carles Pina i Estany <carles@pina.cat>
31058 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
31059 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
31061 2010-01-26 Carles Pina i Estany <carles@pina.cat>
31063 * util/bin2h.c (usage): Fix warning (space after backslash).
31065 2010-01-26 Carles Pina i Estany <carles@pina.cat>
31067 * font/font.c: Include `grub/fontformat.h.
31068 Remove font file format constants.
31069 (grub_font_load): Use the new macros.
31070 * include/grub/fontformat.h: New file.
31071 * util/grub-mkfont.c: Include `grub/fontformat.c'.
31072 (write_font_pf2): Use the new macros.
31074 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
31076 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
31079 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
31081 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
31083 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
31084 (_start): Macroify `0x7F'.
31086 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
31087 (make_install_device): Use "(pxe)" as fallback prefix when booting
31090 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
31092 * configure.ac: Reset LIBS after check for libgcc symbols.
31094 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
31096 * util/hostdisk.c (open_device): Add trailing newline to debug
31099 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
31101 * configure.ac: Check for `limits.h'.
31102 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
31104 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
31106 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
31107 capitalize error strings.
31109 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
31111 * util/grub.d/10_hurd.in: Add a recovery mode.
31113 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
31115 * configure.ac: Check for libgcc symbols with -nostdlib.
31117 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
31119 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
31121 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31123 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
31124 stack since heap may be unavailable at that point.
31125 (grub_ofconsole_gotoxy): Likewise.
31127 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31129 * configure.ac: Check for _restgpr_14_x.
31130 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
31131 and _savegpr_* prototypes.
31133 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
31135 Use generic grub_reboot() for i386-efi.
31137 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
31138 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
31139 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
31141 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31143 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
31144 presence of "prefix" variable as it breaks when normal.mod is
31147 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31149 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
31150 stack since heap is unavailable at that point.
31152 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31154 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
31155 (grub_freebsd_bootinfo): Rewritten.
31156 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
31158 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31160 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
31162 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
31164 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
31167 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
31169 * util/misc.c (make_system_path_relative_to_its_root): Change the work
31170 around for handling "/" to the correct fix. Fix a memory leak. Use
31171 xstrdup instead of strdup.
31173 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31175 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31177 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31179 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31181 * font/font.c (struct grub_font): New member 'bmp_idx'.
31182 (font_init): Initialise 'bmp_idx'.
31183 (load_font_index): Fill 'bmp_idx'.
31184 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31186 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31188 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31191 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31193 Move context handling out of the kernel.
31195 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31196 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31197 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31198 * conf/i386-efi.rmk: Likewise.
31199 * conf/i386-ieee1275.rmk: Likewise.
31200 * conf/i386-pc.rmk: Likewise.
31201 * conf/powerpc-ieee1275.rmk: Likewise.
31202 * conf/sparc64-ieee1275.rmk: Likewise.
31203 * conf/x86_64-efi.rmk: Likewise.
31204 * include/grub/env.h: Include grub/menu.h.
31205 (grub_env_var_type): Removed.
31206 (grub_env_var): Replaced field 'type' with 'global'.
31207 (grub_env_find): New prototype.
31208 (grub_env_context_open): Remove EXPORT_FUNC.
31209 (grub_env_context_close): Likewise.
31210 (grub_env_export): Likewise.
31211 (grub_env_set_data_slot): Removed.
31212 (grub_env_get_data_slot): Likewise.
31213 (grub_env_unset_data_slot): Likewise.
31214 (grub_env_unset_menu): New prototype.
31215 (grub_env_set_menu): Likewise.
31216 (grub_env_get_menu): Likewise.
31217 * include/grub/env_private.h: New file.
31218 * include/grub/normal.h (grub_context_init): New prototype.
31219 (grub_context_fini): Likewise.
31220 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31221 * normal/context.c (grub_cmd_export): ... to here.
31222 * kern/env.c: Include env_private.h.
31223 (HASHSZ): Moved to include/grub/env_private.h.
31224 (grub_env_context): Likewise.
31225 (grub_env_sorted_var): Likewise.
31226 (current_context): Renamed from this ...
31227 (grub_current_context): ...to this. 'static' removed. All users updated.
31228 (grub_env_find): Removed 'static'.
31229 (grub_env_context_open): Moved to normal/context.c.
31230 (grub_env_context_close): Likewise.
31231 (grub_env_export): Likewise.
31232 (mangle_data_slot_name): Removed.
31233 (grub_env_set_data_slot): Likewise.
31234 (grub_env_get_data_slot): Likewise.
31235 (grub_env_unset_data_slot): Likewise.
31236 * kern/main.c (grub_set_root_dev): Don't export root.
31237 It will be done later.
31238 (grub_main): Don't export prefix.
31239 It will be done later.
31240 * normal/context.c: New file.
31241 * normal/main.c (free_menu): Use grub_env_unset_menu.
31242 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31243 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31244 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31245 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31247 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31251 * commands/setpci.c: New file.
31252 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31253 (setpci_mod_SOURCES): New variable.
31254 (setpci_mod_CFLAGS): Likewise.
31255 (setpci_mod_LDFLAGS): Likewise.
31257 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31259 Byte-addressable PCI configuration space.
31261 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31263 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31264 GRUB_PCI_REG_CACHELINE.
31265 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31266 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31267 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31268 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31269 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31270 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31271 grub_pci_make_address.
31272 (lock_rom_area): Likewise.
31273 * commands/lspci.c (grub_lspci_iter): Use macroses
31274 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31275 of grub_pci_make_address.
31276 * disk/ata.c (grub_ata_pciinit): Likewise.
31277 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31278 (GRUB_PCI_REG_VENDOR): Likewise.
31279 (GRUB_PCI_REG_DEVICE): Likewise.
31280 (GRUB_PCI_REG_COMMAND): Likewise.
31281 (GRUB_PCI_REG_STATUS): Likewise.
31282 (GRUB_PCI_REG_REVISION): Likewise.
31283 (GRUB_PCI_REG_CLASS): Likewise.
31284 (GRUB_PCI_REG_CACHELINE): Likewise.
31285 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31286 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31287 (GRUB_PCI_REG_BIST): Likewise.
31288 (GRUB_PCI_REG_ADDRESSES): Likewise.
31289 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31290 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31291 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31292 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31293 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31294 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31295 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31296 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31297 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31298 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31299 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31300 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31301 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31302 (GRUB_PCI_REG_MIN_GNT): Likewise.
31303 (GRUB_PCI_REG_MAX_LAT): Likewise.
31304 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31305 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31306 * video/efi_uga.c (find_framebuf): Likewise.
31307 * video/sm712.c (grub_video_sm712_setup): Likewise.
31308 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31311 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31313 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31314 can be reliably determined to be supported.
31316 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31318 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31319 that VESA is supported.
31320 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31323 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31325 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31327 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31329 * util/misc.c (make_system_path_relative_to_its_root): Work around
31330 special-casing of "/", as previous incarnation of this routine did.
31332 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31334 Fix any-emu compilation.
31336 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31337 * grub_bin2h_SOURCES: New variable.
31339 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31341 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31343 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31345 * util/grub.d/00_header.in: Fix handling of locale_dir.
31347 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31349 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31350 as possible unifont location (Gentoo).
31351 Reported by: Alexander Brüning
31353 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31355 Don't try to generate lists for kernel.img.
31357 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31358 (pkglib_MODULES): Remove kernel.img.
31359 (kernel_img_EXPORTS): Removed.
31360 (kernel_img_RELOCATABLE): New variable.
31361 * conf/x86_64-efi.rmk: Likewise.
31362 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31364 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31366 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31367 grub_xasprintf or grub_snprintf.
31368 (grub_vsprintf): Likewise.
31369 (grub_snprintf): New proto.
31370 (grub_vsnprintf): Likewise.
31371 (grub_xasprintf): Likewise.
31372 (grub_xvasprintf): Likewise.
31373 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31374 (grub_sprintf): Removed.
31375 (grub_vsnprintf): New function.
31376 (grub_snprintf): Likewise.
31377 (grub_xvasprintf): Likewise.
31378 (grub_xasprintf): Likewise.
31379 (grub_vsprintf): Renamed to ...
31380 (grub_vsnprintf_real): ...this. New argument max_len.
31382 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31384 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31385 fix grub-script-check warning.
31387 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31389 * include/grub/font.h (grub_font_load): Fix prototype.
31391 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31393 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31395 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31397 * include/grub/x86_64/at_keyboard.h: New file.
31399 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31401 * loader/mips/linux.c: Include missing grub/i18n.h.
31403 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31405 * normal/menu.c (notify_execution_failure): Clarify error message.
31407 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31409 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31410 return value (and revert all return statements). Update users.
31412 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31414 * kern/device.c (grub_device_iterate): Allocate new part_ent
31415 structure based on sizeof (*p) rather than sizeof (p->next), to
31416 account for structure padding.
31418 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31419 disk is NULL, which might happen for LVM physical volumes with no
31422 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31424 * loader/mips/linux.c (grub_cmd_initrd)
31425 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31427 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31429 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31430 (grub_video_video_init, grub_video_bitmap_init)
31431 (grub_font_manager_init, grub_term_gfxterm_init)
31432 (grub_at_keyboard_init): New extern declarations.
31433 (grub_machine_init): Initialize gfxterm and at_keyboard.
31435 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31437 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31438 `gfxterm.mod' into core image.
31440 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31441 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31442 (kernel_img_FORMAT): Copy to ...
31444 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31445 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31446 (kernel_img_FORMAT): ... here, and ...
31448 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31449 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31450 (kernel_img_FORMAT): ... here.
31452 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31453 and input (at_keyboard) terminals in kernel.
31454 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31456 (pkglib_MODULES): Remove `pci.mod'.
31457 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31458 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31459 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31460 (at_keyboard_mod_LDFLAGS): Remove variables.
31462 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31464 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31466 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31468 * include/grub/mips/libgcc.h: Only export symbols for functions
31469 that libgcc provides.
31471 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31475 * bus/bonito.c: New file.
31476 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31477 GRUB_PCI_NUM_DEVICES.
31478 * term/i386/pc/serial.c: Move to ...
31479 * term/serial.c: ... here. All users updated.
31480 * util/i386/pc/grub-mkimage.c: Move to ...
31481 * util/grub-mkrawimage.c: ... here. All users updated.
31482 * term/i386/pc/at_keyboard.c: Move to ...
31483 * term/at_keyboard.c: ... here. All users updated.
31484 * conf/mips-qemu-mips.rmk: New file.
31485 * conf/mips-yeeloong.rmk: Likewise.
31486 * conf/mips.rmk: Likewise.
31487 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31489 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31491 (grub_ata_pciinit): Support CS5536.
31492 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31493 * font/font_cmd.c (loadfont_command): Open file before passing it to
31495 (pseudo_file_read): New function.
31496 (pseudo_file_close): Likewise.
31497 (pseudo_fs): New structure.
31498 (load_font_module): New function.
31499 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31500 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31501 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31502 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31503 * include/grub/i386/at_keyboard.h: Split into ...
31504 * include/grub/at_keyboard.h: ... this ...
31505 * include/grub/i386/at_keyboard.h: ... and this.
31506 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31508 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31510 (grub_elf64_size): Likewise.
31511 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31513 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31514 * include/grub/i386/coreboot/serial.h: Rewritten.
31515 * include/grub/i386/ieee1275/serial.h: Include
31516 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31517 * include/grub/i386/pc/serial.h: Moved from here ...
31518 * include/grub/serial.h: ... to here. All users updated.
31519 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31520 (GRUB_PCI_NUM_BUS): Likewise.
31521 (GRUB_PCI_NUM_DEVICES): Likewise.
31522 (grub_pci_device_map_range): Add missing volatile keyword.
31523 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31524 * include/grub/mips/at_keyboard.h: New file.
31525 * include/grub/mips/cache.h: Likewise.
31526 * include/grub/mips/io.h: Likewise.
31527 * include/grub/mips/kernel.h: Likewise.
31528 * include/grub/mips/libgcc.h: Likewise.
31529 * include/grub/mips/pci.h: Likewise.
31530 * include/grub/mips/qemu-mips/boot.h: Likewise.
31531 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31532 * include/grub/mips/qemu-mips/loader.h: Likewise.
31533 * include/grub/mips/qemu-mips/memory.h: Likewise.
31534 * include/grub/mips/qemu-mips/serial.h: Likewise.
31535 * include/grub/mips/qemu-mips/time.h: Likewise.
31536 * include/grub/mips/relocator.h: Likewise.
31537 * include/grub/mips/time.h: Likewise.
31538 * include/grub/mips/types.h: Likewise.
31539 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31540 * include/grub/mips/yeeloong/boot.h: Likewise.
31541 * include/grub/mips/yeeloong/kernel.h: Likewise.
31542 * include/grub/mips/yeeloong/loader.h: Likewise.
31543 * include/grub/mips/yeeloong/memory.h: Likewise.
31544 * include/grub/mips/yeeloong/pci.h: Likewise.
31545 * include/grub/mips/yeeloong/serial.h: Likewise.
31546 * include/grub/mips/yeeloong/time.h: Likewise.
31547 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31548 * kern/elf.c (grub_elf32_size): New parameter. All users
31550 (grub_elf64_size): Likewise.
31551 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31552 Load modules before saying "Welcome to GRUB!".
31553 Call grub_refresh after saying "Welcome to GRUB!".
31554 * kern/mips/cache.S: New file.
31555 * kern/mips/cache_flush.S: Likewise.
31556 * kern/mips/dl.c: Likewise.
31557 * kern/mips/init.c: Likewise.
31558 * kern/mips/qemu-mips/init.c: Likewise.
31559 * kern/mips/startup.S: Likewise.
31560 * kern/mips/yeeloong/init.c: Likewise.
31561 * kern/term.c (grub_putcode): Handle NULL terminal.
31562 (grub_getcharwidth): Likewise.
31563 (grub_getkey): Likewise.
31564 (grub_checkkey): Likewise.
31565 (grub_getkeystatus): Likewise.
31566 (grub_getxy): Likewise.
31567 (grub_getwh): Likewise.
31568 (grub_gotoxy): Likewise.
31569 (grub_cls): Likewise.
31570 (grub_setcolorstate): Likewise.
31571 (grub_setcolor): Likewise.
31572 (grub_getcolor): Likewise.
31573 (grub_refresh): Likewise.
31574 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31575 (write_jump): Add hatch nop.
31576 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31577 * lib/mips/setjmp.S: New file.
31578 * loader/mips/linux.c: Likewise.
31579 * term/i386/pc/at_keyboard.c: Move from here ...
31580 * term/at_keyboard.c: ... to here.
31581 * term/i386/pc/serial.c: Moved from here ...
31582 * term/serial.c: ... to here. All users updated.
31583 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31584 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31585 (serial_translate_key_sequence): Avoid deadlock.
31586 (grub_serial_getkey): Handle backspace.
31587 (grub_serial_putchar): Fix newline handling.
31588 * util/i386/pc/grub-mkimage.c: Move from here ...
31589 * util/grub-mkrawimage.c: ... to here. All users updated.
31590 (generate_image): New parameters 'font_path' and 'format'.
31591 Support embedding font.
31592 Use grub_host_to_target* instead of grub_cpu_to_le*.
31593 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31594 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31595 (options): New option "--font".
31597 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31598 (main): Handle "--font".
31599 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31600 (grub_virtual_screen_setup): Set bg_color_display.
31601 (redraw_screen_rect): Use bg_color_display instead of incorrect
31603 (grub_gfxterm_cls): Likewise.
31604 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31605 Support embedding config file.
31606 (add_segments): Likewise.
31607 (options): New option "--config".
31608 (main): Handle "--config".
31609 * video/sm712.c: New file.
31611 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31613 Fix parallel builds.
31615 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31616 font.c depend on ascii.h).
31618 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31620 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31622 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31624 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31625 By default: disabled.
31626 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31629 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31631 * font/font.c: Update copyright years.
31632 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31634 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31636 * font/font.c: Include `ascii.h'.
31637 (ASCII_BITMAP_SIZE): New macro.
31638 (ascii_font_glyph): Define.
31639 (ascii_glyph_lookup): New function.
31640 (grub_font_get_string_width): Change comment. If glyph not found, use
31641 ascii_glyph_lookup.
31642 (grub_font_get_glyph_with_fallback): If glyph not available returns
31643 ascii_glyph_lookup.
31644 * util/grub-mkfont.c (file_formats): New enum.
31645 (options): Add `ascii-bitmaps' new option.
31646 (usage): Add `asii-bitmaps' new option.
31647 (write_font_ascii_bitmap): New function.
31648 (write_font): Rename to ...
31649 (write_font_p2): ... this. Remove print_glyphs call.
31650 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31651 used. Call print_glyphs.
31652 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31654 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31656 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31657 (grub_bin2h_SOURCES): New variable.
31658 * util/bin2h.c: New file.
31660 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31662 * include/multiboot.h: Resynced with spec.
31663 * include/multiboot2.h: Likewise.
31664 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31665 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31667 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31669 * include/grub/term.h (grub_term_register_input,
31670 grub_term_register_output): Check return of terminal init()
31671 routines, and abort if errors are raised.
31673 * commands/terminal.c: Update copyright year.
31675 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31677 * commands/terminal.c (grub_cmd_terminal_input)
31678 (grub_cmd_terminal_output): Check return of terminal init()
31679 routines, and abort if errors are raised.
31681 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31683 * include/grub/i386/bsd.h: Fix include pathes.
31685 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31687 Add missing *BSD copyright headers.
31689 * include/grub/aout.h: Add BSD licence.
31690 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31691 * include/grub/i386/freebsd_linker.h: ... here,
31692 * include/grub/i386/freebsd_reboot.h: ... here,
31693 * include/grub/i386/netbsd_bootinfo.h: ... here,
31694 * include/grub/i386/netbsd_reboot.h: ... here,
31695 * include/grub/i386/openbsd_bootarg.h: ... here,
31696 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31697 licence to each file.
31699 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31701 * acinclude.m4: Remove `nop' assembly instruction; it's not
31702 implemented by all architectures.
31704 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31706 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31707 ELILO. This is no longer necessary.
31709 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31711 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31713 * util/grub-script-check.c: grub-script-check tool.
31714 * conf/common.rmk: Make rules for grub-script-check.
31716 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31718 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31719 spotting it back in 2008. Shame on me for forgetting he did.
31721 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31723 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31725 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31726 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31727 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31728 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31729 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31730 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31732 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31734 * include/grub/test.h: Add license header.
31735 * tests/example_functional_test.c: Likewise.
31736 * tests/example_unit_test.c: Likewise.
31737 * tests/lib/functional_test.c: Likewise.
31738 * tests/lib/test.c: Likewise.
31739 * tests/lib/unit_test.c: Likewise.
31741 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31743 Use flag-based instead of hook-based video mode selection and "auto"
31746 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31747 (grub_video_set_mode): Changed prototype. All users updated.
31748 (grub_video_check_mode_flag): New inline function.
31749 * video/video.c (parse_modespec): New function.
31750 (grub_video_set_mode): Parse flags and keywords.
31752 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31754 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31757 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31759 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31761 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31763 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31765 * util/grub-emu.c (usage): Likewise.
31766 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31767 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31768 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31769 * util/i386/pc/grub-setup.c (usage): Likewise.
31771 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31773 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31775 (grub_util_info): Likewise.
31776 (grub_util_error): Likewise.
31777 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31778 and/or new lines in `grub_util_warna', `grub_util_info',
31779 `grub_util_error' calls.
31780 * util/getroot.c: Likewise.
31781 * util/grub-editenv.c: Likewise.
31782 * util/grub-emu.c: Likewise.
31783 * util/grub-fstest.c: Likewise.
31784 * util/grub-mkdevicemap.c: Likewise.
31785 * util/grub-mkfont.c: Likewise.
31786 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31787 * util/grub-mkrelpath.c: Likewise.
31788 * util/grub-pe2elf.c: Likewise.
31789 * util/grub-probe.c: Likewise.
31790 * util/hostdisk.c: Likewise.
31791 * util/i386/efi/grub-mkimage.c: Likewise.
31792 * util/i386/pc/grub-mkimage.c: Likewise.
31793 * util/i386/pc/grub-setup.c: Likewise.
31794 * util/ieee1275/ofpath.c: Likewise.
31795 * util/mkisofs/eltorito.c: Likewise.
31796 * util/mkisofs/rock.c: Likewise.
31797 * util/mkisofs/write.c: Likewise.
31798 * util/raid.c: Likewise.
31799 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31800 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31802 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31804 Enable multiboot on non-pc.
31806 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31807 multiboot.mod and multiboot2.mod to ...
31808 * conf/i386.rmk (pkglib_MODULES): ... here.
31809 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31811 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31812 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31814 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31815 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31817 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31818 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31820 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31821 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31823 (ata_mod_SOURCES): Removed.
31824 (ata_mod_CFLAGS): Likewise.
31825 (ata_mod_LDFLAGS): Likewise.
31826 (relocator_mod_SOURCES): Removed.
31827 (relocator_mod_CFLAGS): Likewise.
31828 (relocator_mod_ASFLAGS): Likewise.
31829 (relocator_mod_LDFLAGS): Likewise.
31831 * include/grub/x86_64/multiboot.h: New file.
31832 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31835 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31837 Video multiboot support.
31839 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31841 * include/multiboot.h: Resynced with multiboot specification.
31842 * include/multiboot2.h: Likewise.
31843 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31844 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31845 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31846 (HAS_VGA_TEXT): Likewise.
31847 (accepts_video): New variable.
31848 (grub_multiboot_set_accepts_video): New function.
31849 (grub_multiboot_get_mbi_size): Account for video structures.
31850 (set_video_mode): New function.
31851 (retrieve_video_parameters): Likewise.
31852 (grub_multiboot_make_mbi): Fill video fields.
31854 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31858 * include/grub/video.h (grub_video_driver_id): New type.
31859 (grub_video_adapter): New member 'id'. All users updated.
31860 (grub_video_get_driver_id): New proto.
31861 * video/video.c (grub_video_get_driver_id): New function.
31863 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31865 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31868 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31870 * normal/cmdline.c (print_completion): Gettextizze.
31872 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31874 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31876 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31878 * gettext/gettext.c (grub_gettext_translate): Push and pop
31880 (grub_gettext_delete_list): Change comment style.
31881 * kern/err.c (grub_error): Gettextizze.
31882 (grub_fatal): Gettextizze.
31884 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31886 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31887 (grub_linux16_real_boot): ... this.
31888 * kern/i386/loader.S: Likewise.
31889 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31890 (grub_linux16_boot): New function. Switches to text mode and calls
31891 grub_linux16_real_boot().
31893 * loader/i386/bsd.c: Include `<grub/video.h>'.
31894 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31895 text mode before calling grub_unix_real_boot().
31897 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31898 (grub_multiboot_boot): Switch to text mode before calling
31899 grub_relocator32_boot().
31901 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31902 (grub_chainloader_boot): Switch to text mode before calling
31903 grub_chainloader_real_boot().
31905 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31906 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31908 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31911 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31912 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31914 * util/grub.d/00_header.in: Define a "savedefault" function for use
31916 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31918 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31919 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31921 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31922 saved_entry if boot_once is unset.
31923 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31924 previous saved entry (i.e. grub-reboot).
31926 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31928 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31930 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31932 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31934 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31936 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31938 * util/grub-reboot.in: Fix --version output.
31939 * util/grub-set-default.in: Likewise.
31941 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31943 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31946 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31948 * util/grub.d/00_header.in: Quote the value assigned to `default',
31949 in case it contains spaces.
31951 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31953 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31954 `save_default_entry' call from the macosx case to the linux case.
31956 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31957 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31959 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31960 in `chosen' environment variable.
31961 * normal/menu_text.c (get_entry_number): Check if the variable
31962 matches the title of a menu entry.
31963 (run_menu): Pass menu to get_entry_number.
31965 * util/grub-reboot.in: New file.
31966 * util/grub-set-default.in: New file.
31967 * conf/common.rmk (grub-reboot): New utility.
31968 (grub-set-default): New utility.
31970 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31971 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31972 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31973 move it to `saved_entry' for the next boot. Load environment on
31975 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31976 * util/grub.d/10_hurd.in: Likewise.
31977 * util/grub.d/10_linux.in (linux_entry): Likewise.
31978 * util/grub.d/10_windows.in: Likewise.
31979 * util/grub.d/30_os-prober.in: Likewise.
31981 * util/grub-install.in: Create environment block.
31982 * util/i386/efi/grub-install.in: Likewise.
31983 * util/ieee1275/grub-install.in: Likewise.
31984 * util/sparc64/ieee1275/grub-install.in: Likewise.
31986 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31988 Unit testing framework for GRUB.
31990 * Makefile.in: Test framework build rules for 'make check'.
31991 * conf/tests.rmk: Build rules for individual tests and framework.
31993 * include/grub/test.h: Header file for whitebox tests.
31994 * tests/lib/functional_test.c: Framework support for whitebox
31996 * tests/lib/test.c: Common whitebox testing code for unit and
31998 * tests/lib/unit_test.c: Framework support for whitebox unit
32001 * tests/util/grub-shell-tester.in: Support utility for grub-script
32003 * tests/util/grub-shell.in: Utility to execute grub-script
32004 commands in a Qemu instance.
32006 * tests/example_functional_test.c: Example whitebox functional
32008 * tests/example_grub_script_test.in: Example grub-script test.
32009 * tests/example_scripted_test.in: Example scripted test.
32010 * tests/example_unit_test.c: Example whitebox unit test.
32012 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
32014 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
32015 Add loader/i386/multiboot_mbi.c.
32016 (multiboot2_mod_SOURCES): Likewise.
32017 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
32018 (multiboot2_mod_SOURCES): Likewise.
32019 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
32020 (grub_multiboot_make_mbi): Likewise.
32021 (grub_multiboot_free_mbi): Likewise.
32022 (grub_multiboot_init_mbi): Likewise.
32023 (grub_multiboot_add_module): Likewise.
32024 (grub_multiboot_set_bootdev): Likewise.
32025 * loader/i386/multiboot.c (mbi): Removed.
32026 (mbi_dest): Likewise.
32027 (alloc_mbi): New variable.
32028 (grub_multiboot_payload_size): Removed. All users updated.
32029 (grub_multiboot_pure_size): New variable.
32030 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
32031 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
32032 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
32033 (grub_fill_multiboot_mmap): Likewise.
32034 (grub_multiboot_get_bootdev): Likewise.
32035 (grub_multiboot): Use multiboot_mbi functions.
32036 * loader/i386/multiboot_mbi.c: New file.
32038 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
32040 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
32041 it would result in module crash.
32043 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
32045 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
32046 (grub_ofconsole_getwh): Split to ...
32047 (grub_ofconsole_getwh): ... this.
32048 (grub_ofconsole_dimensions): ...and this.
32049 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
32051 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
32053 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
32055 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
32057 * loader/i386/pc/multiboot2.c: Removed stalled file.
32059 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
32061 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
32062 Reported by: Grégoire Sutre
32064 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
32066 * util/misc.c (canonicalize_file_name): New function.
32067 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
32068 instead of realpath().
32070 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
32072 * util/grub-install.in (usage): Clarify meaning of --root-directory,
32073 and make it clearer that it's optional. Based on confusion
32076 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
32078 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
32079 in premature implicit newline.
32081 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
32083 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
32084 which resulted in garbled command line at the end of screen.
32086 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32088 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
32089 initialization with similar approach as with other Linux loaders.
32091 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32093 Fix i386-ieee1275 build.
32095 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
32096 and grub_term_height() for video_{width,height} initialization.
32098 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32100 Fix grub-emu build.
32102 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
32104 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32105 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32107 Support for multiple terminals.
32109 * Makefile.in (pkglib_DATA): terminal.lst.
32110 (terminal.lst): New target.
32111 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
32112 (GRUB_MOD_INIT(handler)): Likewise.
32113 (GRUB_MOD_FINI(handler)): Likewise.
32114 * commands/help.c (grub_cmd_help): Handle multiple terminals.
32115 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
32116 * commands/sleep.c (do_print): Use grub_term_restore_pos.
32117 (grub_cmd_sleep): Use grub_term_save_pos.
32118 * commands/terminal.c: New file.
32119 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
32120 commands/terminal.c and lib/charset.c.
32121 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
32122 (pkglib_MODULES): Add terminal.mod.
32123 (terminal_mod_SOURCES): New variable.
32124 (terminal_mod_CFLAGS): Likewise.
32125 (terminal_mod_LDFLAGS): Likewise.
32126 * genhandlerlist.sh: Don't handle terminals.
32127 * genmk.rb: Generate terminal-*.lst.
32128 * genterminallist.sh: New file.
32129 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
32130 (grub_is_valid_utf8): Likewise.
32131 (grub_utf8_to_ucs4_alloc): Likewise.
32132 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
32133 (grub_menu_register_viewer): Changed argument.
32134 (grub_menu_try_text): New proto.
32135 (grub_gfxmenu_try_hook): New declaration.
32136 * include/grub/normal.h (grub_normal_exit_level): New declaration.
32137 (grub_menu_init_page): Additional argument term.
32138 (grub_normal_init_page): Likewise.
32139 (grub_cmdline_get): Arguments simplified.
32140 (grub_utf8_to_ucs4_alloc): Removed.
32141 (grub_print_ucs4): Additional argument term.
32142 (grub_getstringwidth): Likewise.
32143 (grub_print_message_indented): Likewise.
32144 (grub_menu_text_register_instances): New proto.
32145 (grub_show_menu): Likewise.
32146 (read_terminal_list): Likewise.
32147 (grub_set_more): Likewise.
32148 * include/grub/parser.h: Include handler.h.
32149 * include/grub/reader.h: Rewritten.
32150 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
32151 (GRUB_TERM_WIDTH): Changed to function.
32152 (GRUB_TERM_HEIGHT): Likewise.
32153 (GRUB_TERM_BORDER_WIDTH): Likewise.
32154 (GRUB_TERM_BORDER_HEIGHT): Likewise.
32155 (GRUB_TERM_NUM_ENTRIES): Likewise.
32156 (GRUB_TERM_ENTRY_WIDTH): Likewise.
32157 (GRUB_TERM_CURSOR_X): Likewise.
32158 (grub_term_input_class): Likewise.
32159 (grub_term_output_class): Likewise.
32160 (grub_term_outputs_disabled): New declaration.
32161 (grub_term_inputs_disabled): Likewise.
32162 (grub_term_outputs): Likewise.
32163 (grub_term_inputs): Likewise.
32164 (grub_term_register_input): Rewritten.
32165 (grub_term_register_output): Likewise.
32166 (grub_term_unregister_input): Likewise.
32167 (grub_term_unregister_output): Likewise.
32168 (FOR_ACTIVE_TERM_INPUTS): New macro.
32169 (FOR_DISABLED_TERM_INPUTS): Likewise.
32170 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32171 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32172 * include/grub/terminfo.h: Add oterm argument to all protypes.
32173 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32174 Use grub_rescue_run.
32175 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32177 * kern/reader.c: Removed. All users updated.
32178 * kern/rescue_reader.c (grub_rescue_init): Removed.
32179 (grub_rescue_reader): Likewise.
32180 (grub_register_rescue_reader): Likewise.
32181 (grub_rescue_run): New function based on kern/reader.c.
32182 * kern/term.c: Adapted for multiterm.
32183 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32184 (grub_is_valid_utf8): Likewise.
32185 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32186 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32188 * loader/i386/linux.c (grub_linux_boot): Likewise.
32189 * normal/auth.c (grub_username_get): New function.
32190 (grub_auth_check_authentication): Use grub_username_get.
32191 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32192 * normal/color.c: Adapt for multiterm.
32193 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32194 (grub_normal_init_page): Additional argument term.
32195 (read_lists): Call read_terminal_lists.
32196 (grub_enter_normal_mode): Call grub_cmdline_run.
32197 Handle grub_normal_exit_level.
32198 (grub_cmd_normal): Make reentrant.
32199 (grub_cmd_normal_exit): New function.
32200 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32201 * normal/menu.c: Adapt for multiterm.
32202 * normal/menu_entry.c: Likewise.
32203 * normal/menu_text.c: Likewise.
32204 * normal/menu_viewer.c: Removed. All users updated.
32205 * normal/term.c: New file.
32206 * util/console.c: Change order of includes to workaround a bug in
32208 * term/terminfo.c: New argument oterm on all exported functions.
32210 * util/grub-editenv.c (grub_term_input_class): Removed.
32211 (grub_term_output_class): Likewise.
32213 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32215 Make loader output a bit more user-friendly.
32217 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32218 is being loaded. Likewise for the Hurd.
32220 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32221 that kernel of FreeBSD ${version} is being loaded.
32223 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32225 (grub_cmd_initrd): Likewise.
32226 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32227 that Linux ${version} is being loaded. Likewise for initrd.
32229 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32231 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32233 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32235 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32236 (GRUB_MOD_INIT): Gettextizze.
32237 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32238 (GRUB_MOD_INIT): Gettextizze.
32239 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32240 (grub_cmd_linux): Capitalise Linux.
32241 (GRUB_MOD_INIT): Gettextizze.
32242 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32243 (grub_cmd_linux): Capitalise Linux.
32244 (GRUB_MOD_INIT): Gettextizze.
32245 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32246 (grub_cmd_linux): Capitalise Linux.
32247 (GRUB_MOD_INIT): Gettextizze.
32248 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32249 (GRUB_MOD_INIT): Gettextizze.
32250 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32251 (grub_cmd_linux): Capitalise Linux.
32252 (GRUB_MOD_INIT): Gettextizze.
32253 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32254 (grub_cpu_xnu_init): Gettextizze.
32255 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32256 (GRUB_MOD_INIT): Gettextizze.
32257 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32258 (GRUB_MOD_INIT): Gettextizze.
32259 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32260 (grub_linux_load64): Capitalise Linux.
32261 (GRUB_MOD_INIT): Gettextizze.
32262 * loader/xnu.c: Include `<grub/i18n.h>'.
32263 (GRUB_MOD_INIT): Gettextizze.
32264 * po/POTFILES: Add `loader/efi/appleloader.c',
32265 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32266 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32267 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32268 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32269 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32270 and `loader/xnu.c'.
32272 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32274 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32276 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32278 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32279 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32280 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32282 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32284 Reset Multiboot 2 support. New loader implements the draft in
32285 /branches/multiboot2 and shares as much code as possible with the
32286 production Multiboot 1 implementation.
32288 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32289 * loader/multiboot2.c: Likewise.
32290 * loader/i386/multiboot_helper.S: Likewise.
32291 * include/multiboot2.h: Replace with latest version from the draft
32292 in /branches/multiboot2.
32294 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32295 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32296 and `loader/multiboot2.c'.
32297 (pkglib_MODULES): Add `multiboot2.mod'.
32298 (multiboot2_mod_SOURCES): New variable.
32299 (multiboot2_mod_LDFLAGS): Likewise.
32300 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32302 * conf/i386-pc.rmk: Likewise.
32304 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32305 (multiboot_mod_SOURCES): Remove variable.
32306 (multiboot_mod_LDFLAGS): Likewise.
32307 (multiboot_mod_CFLAGS): Likewise.
32309 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32310 `<multiboot2.h>' instead of `<multiboot.h>'.
32311 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32312 (MULTIBOOT_HEADER_MAGIC): New macros.
32314 * loader/multiboot_loader.c (module_version_status): Remove variable.
32315 (find_multi_boot2_header): Remove function.
32316 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32317 logic. Always check for the Multiboot version we're compiling for.
32318 (grub_cmd_module_loader): Likewise.
32319 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32320 command instead of `multiboot'.
32322 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32324 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32325 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32328 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32329 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32331 Fix breakage introduced with previous commit.
32333 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32335 * normal/handler.c (read_handler_list): Revert part of previous commit
32336 affecting this file.
32337 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32338 (grub_normal_execute): ... here.
32340 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32342 Merge prefix-redefinition-fix branch.
32344 * normal/autofs.c (read_fs_list): Make function capable of being
32345 run multiple times, gracefuly replacing the previous data
32347 * normal/dyncmd.c (read_command_list): Likewise.
32348 * normal/handler.c (read_handler_list): Likewise.
32349 * normal/main.c (read_lists): New function. Calls all the
32350 list reading functions.
32351 (grub_normal_execute): Use read_lists() instead of calling all
32352 list reading functions explicitly. Register read_lists() as a
32353 variable hook attached to ${prefix}.
32355 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32357 Merge crypto branch.
32359 * Makefile.in (pkglib_DATA): Add crypto.lst.
32360 (crypto.lst): New target.
32361 * commands/hashsum.c: New file.
32362 * commands/password.c (check_password): Use grub_crypto_memcmp.
32363 * commands/password_pbkdf2.c: New file.
32364 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32365 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32366 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32367 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32368 -I$(srcdir)/lib/libgcrypt_wrap.
32369 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32370 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32371 password_pbkdf2.mod.
32372 (crypto_mod_SOURCES): New variable.
32373 (crypto_mod_CFLAGS): Likewise.
32374 (crypto_mod_LDFLAGS): Likewise.
32375 (hashsum_mod_SOURCES): New variable.
32376 (hashsum_mod_CFLAGS): Likewise.
32377 (hashsum_mod_LDFLAGS): Likewise.
32378 (pbkdf2_mod_SOURCES): New variable.
32379 (pbkdf2_mod_CFLAGS): Likewise.
32380 (pbkdf2_mod_LDFLAGS): Likewise.
32381 (password_pbkdf2_mod_SOURCES): New variable.
32382 (password_pbkdf2_mod_CFLAGS): Likewise.
32383 (password_pbkdf2_mod_LDFLAGS): Likewise.
32384 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32385 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32386 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32387 Include conf/gcry.rmk.
32388 * include/grub/auth.h: Rewritten.
32389 * include/grub/crypto.h: New file.
32390 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32391 * include/grub/normal.h (read_crypto_list): New prototype.
32392 * lib/crypto.c: New file.
32393 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32394 * lib/pbkdf2.c: Likewise.
32395 * normal/auth.c (grub_auth_strcmp): Removed.
32396 (grub_iswordseparator): Likewise.
32397 (grub_auth_strword): Likewise.
32398 (is_authenticated): Use grub_strword.
32399 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32400 and grub_strword. Pass entered password to authentication callback.
32401 * normal/crypto.c: New file.
32402 * normal/main.c: Call read_crypto_list.
32403 * util/grub-mkpasswd-pbkdf2.c: New file.
32404 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32406 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32408 Fix descent and ascent calculation.
32410 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32411 (options): New option "asce".
32413 (add_char): Ignore invalid glyphs for descent calculation.
32414 Calculate ascent from actual content.
32415 (print_glyphs): Use 'asce'.
32416 (write_font): Likewise. Allow ascent override.
32417 (main): Handle "asce" option.
32419 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32421 * kern/err.c: Include `<grub/i18n.h>'.
32422 (grub_print_error): Add full stop. Gettextizze.
32423 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32424 (grub_bsd_load_elf): Capitalise ELF.
32425 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32426 (grub_cmd_freebsd_module): Likewise.
32427 (grub_cmd_freebsd_module_elf): Likewise.
32428 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32430 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32432 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32433 * commands/search_file.c (HELP_MESSAGE): New macro.
32434 * commands/search_label.c (HELP_MESSAGE): Likewise.
32435 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32436 * po/POTFILES: Add `commands/search_file.c',
32437 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32438 `commands/search.c'.
32440 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32442 * config.rpath: Update from Gnulib.
32444 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32446 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32448 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32450 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32452 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32454 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32455 arguments to fread so that we get a return value in bytes, rather
32456 than something that will normally be rounded down to 0.
32457 Adjust error handling to avoid producing garbage when size_t is not
32458 the same size as long long.
32460 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32462 * util/mkisofs/write.c (padblock_write): Check return value of
32465 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32467 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32470 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32472 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32474 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32475 instead of manual alignment.
32476 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32477 verbose). Avoid attempts to read past end of the device
32478 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32479 but GRUB_DISK_CACHE_SIZE may exceed that).
32481 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32483 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32484 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32487 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32489 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32491 (grub_efi_piwg_device_path): New structure
32492 (grub_efi_piwg_device_path_t): New type.
32493 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32494 (devpath_1): Transform to a structure. All users updated.
32495 (devpath_2): Likewise.
32496 (devpath_3): Likewise.
32497 (devpath_4): Likewise.
32498 (devpath_5): Likewise.
32500 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32502 * loader/efi/appleloader.c: Restored. Update all users.
32504 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32506 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32508 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32509 (struct boot_blocklist): Move from here ...
32510 * include/grub/i386/pc/boot.h [ASM_FILE]
32511 (struct grub_boot_blocklist): ... to here. Update all users.
32512 (setup): Only initialize `start' member of `first_block'
32513 structure. Add assert() calls to verify the other members.
32515 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32516 (generate_image): Fix broken blocklist length initialization.
32517 Add assert() call to verify blocklist `segment' field.
32519 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32521 * loader/efi/appleloader.c: Remove. Update all users.
32523 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32525 * boot/i386/pc/boot.S: Update copyright year.
32526 * boot/i386/pc/cdboot.S: Likewise.
32527 * boot/i386/pc/diskboot.S: Likewise.
32528 * boot/i386/pc/lnxboot.S: Likewise.
32529 * boot/i386/pc/pxeboot.S: Likewise.
32530 * bus/pci.c: Likewise.
32531 * commands/cmp.c: Likewise.
32532 * commands/help.c: Likewise.
32533 * commands/hexdump.c: Likewise.
32534 * commands/i386/pc/halt.c: Likewise.
32535 * commands/i386/pc/play.c: Likewise.
32536 * commands/i386/pc/vbeinfo.c: Likewise.
32537 * commands/ls.c: Likewise.
32538 * commands/test.c: Likewise.
32539 * disk/dmraid_nvidia.c: Likewise.
32540 * disk/i386/pc/biosdisk.c: Likewise.
32541 * disk/ieee1275/nand.c: Likewise.
32542 * disk/ieee1275/ofdisk.c: Likewise.
32543 * disk/lvm.c: Likewise.
32544 * disk/raid.c: Likewise.
32545 * disk/raid6_recover.c: Likewise.
32546 * disk/scsi.c: Likewise.
32547 * fs/affs.c: Likewise.
32548 * fs/cpio.c: Likewise.
32549 * fs/ext2.c: Likewise.
32550 * fs/hfs.c: Likewise.
32551 * fs/iso9660.c: Likewise.
32552 * fs/ntfs.c: Likewise.
32553 * fs/sfs.c: Likewise.
32554 * fs/udf.c: Likewise.
32555 * fs/ufs.c: Likewise.
32556 * fs/xfs.c: Likewise.
32557 * gencmdlist.sh: Likewise.
32558 * genmk.rb: Likewise.
32559 * include/grub/disk.h: Likewise.
32560 * include/grub/efi/api.h: Likewise.
32561 * include/grub/efi/efi.h: Likewise.
32562 * include/grub/efi/pe32.h: Likewise.
32563 * include/grub/elf.h: Likewise.
32564 * include/grub/fs.h: Likewise.
32565 * include/grub/i386/at_keyboard.h: Likewise.
32566 * include/grub/i386/pc/memory.h: Likewise.
32567 * include/grub/i386/pc/vbe.h: Likewise.
32568 * include/grub/i386/pci.h: Likewise.
32569 * include/grub/i386/tsc.h: Likewise.
32570 * include/grub/ieee1275/ieee1275.h: Likewise.
32571 * include/grub/ntfs.h: Likewise.
32572 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32573 * include/grub/sparc64/libgcc.h: Likewise.
32574 * include/grub/symbol.h: Likewise.
32575 * include/grub/types.h: Likewise.
32576 * include/multiboot2.h: Likewise.
32577 * io/gzio.c: Likewise.
32578 * kern/device.c: Likewise.
32579 * kern/disk.c: Likewise.
32580 * kern/efi/efi.c: Likewise.
32581 * kern/efi/mm.c: Likewise.
32582 * kern/elf.c: Likewise.
32583 * kern/file.c: Likewise.
32584 * kern/i386/dl.c: Likewise.
32585 * kern/i386/pc/init.c: Likewise.
32586 * kern/i386/pc/startup.S: Likewise.
32587 * kern/ieee1275/ieee1275.c: Likewise.
32588 * kern/ieee1275/init.c: Likewise.
32589 * kern/main.c: Likewise.
32590 * kern/mm.c: Likewise.
32591 * kern/powerpc/dl.c: Likewise.
32592 * kern/sparc64/dl.c: Likewise.
32593 * kern/x86_64/dl.c: Likewise.
32594 * lib/hexdump.c: Likewise.
32595 * loader/efi/appleloader.c: Likewise.
32596 * loader/i386/ieee1275/linux.c: Likewise.
32597 * loader/i386/pc/chainloader.c: Likewise.
32598 * loader/i386/pc/linux.c: Likewise.
32599 * loader/i386/pc/multiboot2.c: Likewise.
32600 * loader/ieee1275/multiboot2.c: Likewise.
32601 * loader/multiboot2.c: Likewise.
32602 * loader/multiboot_loader.c: Likewise.
32603 * loader/powerpc/ieee1275/linux.c: Likewise.
32604 * normal/completion.c: Likewise.
32605 * normal/menu_entry.c: Likewise.
32606 * partmap/apple.c: Likewise.
32607 * util/grub.d/10_hurd.in: Likewise.
32608 * util/hostfs.c: Likewise.
32609 * video/readers/png.c: Likewise.
32611 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32613 * include/grub/misc.h (GNUC_PREREQ): New macro.
32614 (ATTRIBUTE_ERROR): New macro.
32615 * include/grub/list.h (grub_bad_type_cast_real): Use
32618 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32620 * normal/menu_text.c (print_message): Change messages.
32622 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32624 * normal/menu_entry.c (store_completion): Gettextizze.
32626 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32628 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32630 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32632 * po/POTFILES: Sort correctly.
32634 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32636 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32637 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32638 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32640 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32641 summary. Gettextizze the strings.
32642 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32643 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32644 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32646 (GRUB_MOD_INIT): Remove command name from summary.
32647 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32649 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32650 * term/i386/pc/serial.c (options): Add full stops.
32651 (GRUB_MOD_INIT): Remove command name from the summary.
32653 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32655 * commands/acpi.c: Gettextizze help strings and/or options. Include
32656 `grub/i18n.h' if needed.
32657 * commands/blocklist.c: Likewise.
32658 * commands/boot.c: Likewise.
32659 * commands/cat.c: Likewise.
32660 * commands/cmp.c: Likewise.
32661 * commands/configfile.c: Likewise.
32662 * commands/crc.c: Likewise.
32663 * commands/date.c: Likewise.
32664 * commands/echo.c: Likewise.
32665 * commands/efi/fixvideo.c: Likewise.
32666 * commands/efi/loadbios.c: Likewise.
32667 * commands/gptsync.c: Likewise.
32668 * commands/halt.c: Likewise.
32669 * commands/handler.c: Likewise.
32670 * commands/hdparm.c: Likewise.
32671 * commands/hexdump.c: Likewise.
32672 * commands/i386/cpuid.c: Likewise.
32673 * commands/i386/pc/drivemap.c: Likewise.
32674 * commands/i386/pc/halt.c: Likewise.
32675 * commands/i386/pc/pxecmd.c: Likewise.
32676 * commands/i386/pc/vbeinfo.c: Likewise.
32677 * commands/i386/pc/vbetest.c: Likewise.
32678 * commands/ieee1275/suspend.c: Likewise.
32679 * commands/keystatus.c: Likewise.
32680 * commands/loadenv.c: Likewise.
32681 * commands/ls.c: Likewise.
32682 * commands/lsmmap.c: Likewise.
32683 * commands/lspci.c: Likewise.
32684 * commands/memrw.c: Likewise.
32685 * commands/minicmd.c: Likewise.
32686 * commands/parttool.c: Likewise.
32687 * commands/password.c: Likewise.
32688 * commands/probe.c: Likewise.
32689 * commands/read.c: Likewise.
32690 * commands/reboot.c: Likewise.
32691 * commands/search.c: Likewise.
32692 * commands/sleep.c: Likewise.
32693 * commands/test.c: Likewise.
32694 * commands/true.c: Likewise.
32695 * commands/usbtest.c: Likewise.
32696 * commands/videotest.c: Likewise.
32697 * commands/xnu_uuid.c: Likewise.
32698 * disk/loopback.c: Likewise.
32699 * hello/hello.c: Likewise.
32700 * loader/i386/bsd.c: Likewise.
32701 * term/i386/pc/serial.c: Likewise.
32702 * po/POTFILES: Add new files.
32704 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32706 * term/i386/pc/at_keyboard.c
32707 (keyboard_controller_wait_untill_ready): Rename to ...
32708 (keyboard_controller_wait_until_ready): ... this. Update all users.
32710 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32712 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32713 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32714 string using string width.
32715 * normal/menu_text.c (grub_print_message_indented): Use
32716 grub_print_spaces and not print_spaces.
32717 (print_timeout): Likewise.
32718 (print_spaces): Move to...
32719 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32721 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32723 Import from Gnulib.
32725 * gnulib/getdelim.c: New file.
32726 * gnulib/getline.c: Likewise.
32728 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32730 * include/grub/list.h (grub_assert_fail): Removed.
32731 (grub_bad_type_cast_real): New function.
32732 (grub_bad_type_cast): New macro.
32733 (GRUB_AS_LIST): Use grub_bad_type_cast.
32734 (GRUB_AS_LIST_P): Likewise.
32735 (GRUB_AS_NAMED_LIST): Likewise.
32736 (GRUB_AS_NAMED_LIST_P): Likewise.
32737 (GRUB_AS_PRIO_LIST): Likewise.
32738 (GRUB_AS_PRIO_LIST_P): Likewise.
32739 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32741 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32743 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32746 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32748 * configure.ac: Check for TARGET_CFLAGS initialization before we
32749 initialize it ourselves (sigh).
32750 Move a few modifications to TARGET_CFLAGS to be unconditional
32751 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32754 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32755 * term/i386/pc/at_keyboard.c
32756 (keyboard_controller_wait_untill_ready): Likewise.
32757 (keyboard_controller_led): Rename `led_status' paramter to avoid
32760 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32762 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32765 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32767 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32769 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32771 * normal/menu_text.c (grub_print_message_indented): Prevent
32772 past-the-end-of-array dereference.
32774 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32776 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32777 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32779 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32781 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32782 * normal/main.c (grub_normal_read_line): Remove a space from the
32785 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32787 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32788 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32789 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32790 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32791 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32792 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32793 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32795 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32797 * video/readers/jpeg.c (cmd): Declare.
32798 (grub_cmd_jpegtest): Use `grub_command_t' type.
32799 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32801 (GRUB_MOD_FINI): Use `cmd' to unregister.
32802 * video/readers/png.c (cmd): Declare.
32803 (grub_cmd_pngtest): Use `grub_command_t' type.
32804 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32806 (GRUB_MOD_FINI): Use `cmd' to unregister.
32807 * video/readers/tga.c (cmd): Declare.
32808 (grub_cmd_tgatest): Use `grub_command_t' type.
32809 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32811 (GRUB_MOD_FINI): Use `cmd' to unregister.
32813 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32815 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32817 * kern/corecmd.c (grub_register_core_commands): Likewise.
32818 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32819 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32820 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32821 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32822 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32823 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32824 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32825 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32826 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32827 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32828 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32829 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32830 * normal/handler.c (insert_handler): Likewise.
32831 * normal/main.c (GRUB_MOD_INIT): Likewise.
32832 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32834 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32836 * commands/help.c (grub_cmd_help): Print the command name before the
32838 (GRUB_MOD_INIT): Remove command name from the summary.
32839 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32841 * lib/arg.c (find_long): Print the command name before the summary.
32842 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32844 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32845 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32846 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32847 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32848 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32849 * commands/date.c (GRUB_MOD_INIT): Likewise.
32850 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32851 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32852 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32853 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32854 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32855 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32856 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32857 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32858 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32859 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32860 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32861 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32862 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32863 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32864 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32865 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32866 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32867 * commands/password.c (GRUB_MOD_INIT): Likewise.
32868 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32869 * commands/read.c (GRUB_MOD_INIT): Likewise.
32870 * commands/search.c (GRUB_MOD_INIT): Likewise.
32871 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32872 * commands/test.c (GRUB_MOD_INIT): Likewise.
32873 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32874 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32875 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32876 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32877 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32878 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32879 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32880 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32881 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32882 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32883 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32884 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32885 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32886 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32888 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32890 Use search command for preliminar UUID search.
32892 * commands/search.c: Split into ...
32893 * commands/search_wrap.c: ...this
32894 * commands/search.c: ...and this.
32895 * commands/search_file.c: New file.
32896 * commands/search_label.c: New file.
32897 * commands/search_uuid.c: New file.
32898 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32899 Add commands/search_wrap.c, commands/search_file.c,
32900 commands/search_label.c and commands/search_uuid.c.
32901 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32902 (search_mod_SOURCES): Set to commands/search_wrap.c.
32903 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32905 (search_fs_file_mod_SOURCES): New variable.
32906 (search_fs_file_mod_CFLAGS): Likewise.
32907 (search_fs_file_mod_LDFLAGS): Likewise.
32908 (search_label_mod_SOURCES): Likewise.
32909 (search_label_mod_CFLAGS): Likewise.
32910 (search_label_mod_LDFLAGS): Likewise.
32911 (search_fs_uuid_mod_SOURCES): New variable.
32912 (search_fs_uuid_mod_CFLAGS): Likewise.
32913 (search_fs_uuid_mod_LDFLAGS): Likewise.
32914 (fs_file_mod_SOURCES): Removed.
32915 (fs_file_mod_CFLAGS): Likewise.
32916 (fs_file_mod_LDFLAGS): Likewise.
32917 (fs_uuid_mod_SOURCES): Removed.
32918 (fs_uuid_mod_CFLAGS): Likewise.
32919 (fs_uuid_mod_LDFLAGS): Likewise.
32920 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32921 Set to util/grub-install.in.
32922 * disk/fs_file.c: Removed.
32923 * disk/fs_uuid.c: Likewise.
32924 * include/grub/search.h: New file.
32925 * util/grub-install.in: Handle sparc64.
32926 Create and use load.cfg.
32927 * util/sparc64/ieee1275/grub-install.in: Removed.
32929 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32931 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32932 Ignore return status if CF is cleared.
32933 (grub_biosdisk_get_diskinfo_standard): Likewise.
32935 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32937 * term/i386/pc/at_keyboard.c
32938 (keyboard_controller_wait_untill_ready): New function.
32939 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32940 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32941 for keyboard polling, rather than duplicate the same loop. This
32942 saves a few bytes in code size.
32944 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32946 Support for (pxe[:server[:gateway]]) syntax and
32947 use environment variable for PXE.
32949 * commands/i386/pc/pxecmd.c (options): Removed.
32950 (print_ip): Removed.
32951 (grub_cmd_pxe): Removed
32952 (grub_cmd_pxe_unload): New function.
32953 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32954 (grub_pxe_your_ip): Made static.
32955 (grub_pxe_default_server_ip): Likewise.
32956 (grub_pxe_default_gateway_ip): Likewise.
32957 (grub_pxe_blksize): Likewise.
32958 (parse_ip): New function.
32959 (grub_pxe_open): Support server and gateway specification.
32960 (grub_pxe_close): Free disk->data.
32961 (grub_pxefs_open): Use disk->data.
32962 (grub_pxefs_read): Likewise.
32963 (grub_env_write_readonly): New function.
32964 (set_mac_env): Likewise.
32965 (set_env_limn_ro): Likewise.
32966 (parse_dhcp_vendor): Likewise.
32967 (grub_pxe_detect): Set the environment variables.
32968 (set_ip_env): New function.
32969 (write_ip_env): Likewise.
32970 (grub_env_write_pxe_default_server): Likewise.
32971 (grub_env_write_pxe_default_gateway): Likewise.
32972 (grub_env_write_pxe_blocksize): Likewise.
32973 (GRUB_MOD_INIT(pxe)): Set environment variables.
32974 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32975 (grub_pxe_mac_addr_t): ... this. All users updated.
32976 (grub_pxe_your_ip): Removed.
32977 (grub_pxe_server_ip): Likewise.
32978 (grub_pxe_gateway_ip): Likewise.
32979 (grub_pxe_blksize): Likewise.
32981 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32983 * commands/help.c: Include `<grub/i18n.h>'.
32984 (grub_cmd_help): Gettextizze.
32985 (GRUB_MOD_INIT): Likewise.
32986 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32987 (GRUB_MOD_INIT): Gettextizze.
32988 * commands/search.c: Include `<grub/i18n.h>'.
32989 (options): Gettextizze.
32990 (GRUB_MOD_INIT): Gettextizze.
32991 * lib/arg.c: Include `<grub/i18n.h>'.
32992 (help_options): Gettextizze.
32993 (find_long): Likewise.
32994 (grub_arg_show_help): Likewise.
32995 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32996 (read_command_list): Gettextizze.
32997 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32998 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
33000 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
33002 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
33003 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
33004 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
33005 (led_status): New variable.
33006 (keyboard_controller_led): New function.
33007 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
33008 update led status for caps lock, num lock and scroll lock.
33010 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
33012 * util/hostdisk.c (open_device): Fix a comment.
33014 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33016 * util/grub-install.in (host_os): New variable.
33017 * util/i386/efi/grub-install.in (host_os): Likewise.
33019 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33021 * util/mkisofs/write.c (padblock_write): Abort when given an
33022 excedingly large embed image, instead of silently truncating it.
33024 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33026 * include/multiboot.h: Indentation fixes.
33028 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33030 * include/multiboot.h (struct multiboot_aout_symbol_table)
33031 (struct multiboot_elf_section_header_table): New structure
33032 declarations (stolen from GRUB Legacy).
33033 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
33036 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
33037 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
33040 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33042 * include/multiboot.h: Make comments src2texi-friendly.
33044 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33046 For consistency with [multiboot]/docs/boot.S.
33048 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
33049 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
33050 (MULTIBOOT_MAGIC2): Rename from this ...
33051 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
33053 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33055 * include/multiboot.h: Remove `<grub/types.h>'.
33056 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
33057 types. Update all users.
33059 2009-12-25 Carles Pina i Estany <carles@pina.cat>
33061 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
33062 `couldn't' and `can not' by `cannot'.
33063 * commands/i386/pc/drivemap.c: Likewise.
33064 * disk/ata.c: Likewise.
33065 * disk/ieee1275/nand.c: Likewise.
33066 * fs/affs.c: Likewise.
33067 * fs/fat.c: Likewise.
33068 * fs/hfs.c: Likewise.
33069 * fs/hfsplus.c: Likewise.
33070 * fs/iso9660.c: Likewise.
33071 * fs/jfs.c: Likewise.
33072 * fs/minix.c: Likewise.
33073 * fs/reiserfs.c: Likewise.
33074 * fs/sfs.c: Likewise.
33075 * fs/udf.c: Likewise.
33076 * fs/ufs.c: Likewise.
33077 * fs/xfs.c: Likewise.
33078 * loader/powerpc/ieee1275/linux.c: Likewise.
33079 * loader/sparc64/ieee1275/linux.c: Likewise.
33080 * util/grub-probe.c: Likewise.
33081 * util/misc.c: Likewise.
33083 2009-12-24 Carles Pina i Estany <carles@pina.cat>
33085 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
33087 * commands/acpi.c: Likewise.
33088 * commands/blocklist.c: Likewise.
33089 * commands/efi/loadbios.c: Likewise.
33090 * commands/i386/pc/drivemap.c: Likewise.
33091 * commands/loadenv.c: Likewise.
33092 * commands/memrw.c: Likewise.
33093 * commands/password.c: Likewise.
33094 * commands/videotest.c: Likewise.
33095 * disk/ata.c: Likewise.
33096 * disk/ata_pthru.c: Likewise.
33097 * disk/dmraid_nvidia.c: Likewise.
33098 * disk/ieee1275/nand.c: Likewise.
33099 * disk/ieee1275/ofdisk.c: Likewise.
33100 * disk/loopback.c: Likewise.
33101 * disk/lvm.c: Likewise.
33102 * disk/mdraid_linux.c: Likewise.
33103 * disk/raid.c: Likewise.
33104 * disk/raid6_recover.c: Likewise.
33105 * disk/scsi.c: Likewise.
33106 * efiemu/main.c: Likewise.
33107 * efiemu/mm.c: Likewise.
33108 * efiemu/pnvram.c: Likewise.
33109 * efiemu/symbols.c: Likewise.
33110 * font/font.c: Likewise.
33111 * fs/cpio.c: Likewise.
33112 * fs/hfsplus.c: Likewise.
33113 * fs/iso9660.c: Likewise.
33114 * fs/jfs.c: Likewise.
33115 * fs/minix.c: Likewise.
33116 * fs/ntfs.c: Likewise.
33117 * fs/ntfscomp.c: Likewise.
33118 * fs/reiserfs.c: Likewise.
33119 * fs/ufs.c: Likewise.
33120 * fs/xfs.c: Likewise.
33121 * gettext/gettext.c: Likewise.
33122 * include/grub/auth.h: Likewise.
33123 * kern/elf.c: Likewise.
33124 * kern/file.c: Likewise.
33125 * kern/ieee1275/init.c: Likewise.
33126 * kern/ieee1275/mmap.c: Likewise.
33127 * kern/ieee1275/openfw.c: Likewise.
33128 * kern/powerpc/dl.c: Likewise.
33129 * kern/sparc64/dl.c: Likewise.
33130 * lib/arg.c: Likewise.
33131 * loader/i386/bsd.c: Likewise.
33132 * loader/i386/bsdXX.c: Likewise.
33133 * loader/i386/efi/linux.c: Likewise.
33134 * loader/i386/efi/xnu.c: Likewise.
33135 * loader/i386/ieee1275/linux.c: Likewise.
33136 * loader/i386/linux.c: Likewise.
33137 * loader/i386/multiboot.c: Likewise.
33138 * loader/i386/pc/linux.c: Likewise.
33139 * loader/i386/pc/multiboot2.c: Likewise.
33140 * loader/i386/xnu.c: Likewise.
33141 * loader/ieee1275/multiboot2.c: Likewise.
33142 * loader/macho.c: Likewise.
33143 * loader/machoXX.c: Likewise.
33144 * loader/multiboot2.c: Likewise.
33145 * loader/multiboot_loader.c: Likewise.
33146 * loader/powerpc/ieee1275/linux.c: Likewise.
33147 * loader/sparc64/ieee1275/linux.c: Likewise.
33148 * loader/xnu.c: Likewise.
33149 * loader/xnu_resume.c: Likewise.
33150 * mmap/i386/pc/mmap.c: Likewise.
33151 * normal/menu_viewer.c: Likewise.
33152 * partmap/acorn.c: Likewise.
33153 * partmap/amiga.c: Likewise.
33154 * partmap/apple.c: Likewise.
33155 * script/lexer.c: Likewise.
33156 * term/gfxterm.c: Likewise.
33157 * term/i386/pc/serial.c: Likewise.
33158 * term/i386/pc/vga.c: Likewise.
33159 * term/ieee1275/ofconsole.c: Likewise.
33160 * term/terminfo.c: Likewise.
33161 * video/bitmap.c: Likewise.
33162 * video/efi_gop.c: Likewise.
33163 * video/efi_uga.c: Likewise.
33164 * video/fb/video_fb.c: Likewise.
33165 * video/i386/pc/vbe.c: Likewise.
33166 * video/readers/tga.c: Likewise.
33167 * video/video.c: Likewise.
33169 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
33171 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33172 * commands/lspci.c: Likewise.
33173 * commands/probe.c: Likewise.
33174 * commands/xnu_uuid.c: Likewise.
33175 * conf/i386-coreboot.rmk: Likewise.
33176 * conf/i386-efi.rmk: Likewise.
33177 * conf/i386-ieee1275.rmk: Likewise.
33178 * conf/i386-pc.rmk: Likewise.
33179 * conf/powerpc-ieee1275.rmk: Likewise.
33180 * conf/sparc64-ieee1275.rmk: Likewise.
33181 * conf/x86_64-efi.rmk: Likewise.
33182 * fs/i386/pc/pxe.c: Likewise.
33183 * gettext/gettext.c: Likewise.
33184 * include/grub/efi/graphics_output.h: Likewise.
33185 * include/grub/i386/pc/memory.h: Likewise.
33186 * kern/env.c: Likewise.
33187 * kern/i386/qemu/startup.S: Likewise.
33188 * lib/i386/pc/biosnum.c: Likewise.
33189 * lib/i386/relocator.c: Likewise.
33190 * lib/i386/relocator_asm.S: Likewise.
33191 * lib/relocator.c: Likewise.
33192 * loader/i386/bsd.c: Likewise.
33193 * loader/i386/multiboot.c: Likewise.
33194 * loader/i386/pc/chainloader.c: Likewise.
33195 * loader/i386/xnu.c: Likewise.
33196 * loader/xnu.c: Likewise.
33197 * normal/main.c: Likewise.
33198 * normal/menu_text.c: Likewise.
33199 * util/getroot.c: Likewise.
33200 * util/grub-mkconfig_lib.in: Likewise.
33201 * util/grub.d/00_header.in: Likewise.
33202 * util/i386/pc/grub-mkimage.c: Likewise.
33203 * util/mkisofs/eltorito.c: Likewise.
33204 * util/mkisofs/exclude.h: Likewise.
33205 * util/mkisofs/hash.c: Likewise.
33206 * util/mkisofs/iso9660.h: Likewise.
33207 * util/mkisofs/joliet.c: Likewise.
33208 * util/mkisofs/mkisofs.c: Likewise.
33209 * util/mkisofs/mkisofs.h: Likewise.
33210 * util/mkisofs/multi.c: Likewise.
33211 * util/mkisofs/name.c: Likewise.
33212 * util/mkisofs/rock.c: Likewise.
33213 * util/mkisofs/tree.c: Likewise.
33214 * util/mkisofs/write.c: Likewise.
33215 * video/efi_gop.c: Likewise.
33217 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33219 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33222 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33224 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33225 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33227 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33229 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33230 (GRUB_MOD_INIT(memrw)): Update help line.
33232 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33234 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33235 Use grub_extcmd_t. All users updated.
33236 (options): New variable.
33237 (grub_cmd_read): Restructure for readability. Support "-v" option.
33238 (grub_cmd_write): Restructure for readability.
33240 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33242 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33244 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33246 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33247 with the actual contents of the correspondending make variable.
33248 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33249 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33250 specifying `*.lst' and `efiemu??.o'
33252 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33254 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33255 after function name.
33256 Noticed by Rene Engelhard <rene@debian.org>.
33258 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33260 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33261 (options): New variable.
33262 (iospace): Likewise.
33263 (grub_lspci_iter): List IO spaces if "-i" was given.
33264 (grub_cmd_lspci): Parse options.
33265 (GRUB_MOD_INIT(lspci)): Use extcmd.
33266 (GRUB_MOD_FINI(lspci)): Likewise.
33268 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33270 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33271 `function' keyword.
33272 Patch by Tony Mancill <tmancill@debian.org>.
33274 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33276 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33277 (grub_uhci_portstatus): Likewise.
33278 (grub_uhci_portstatus): Add necessary delay.
33279 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33281 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33283 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33284 (GRUB_MOD_INIT): Likewise.
33285 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33286 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33287 * commands/echo.c (options): Fix capitalizations and/or full stops.
33288 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33289 (enable_rom_area): Likewise.
33290 (GRUB_MOD_INIT): Likewise.
33291 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33292 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33293 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33294 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33295 * commands/hexdump.c (options): Likewise.
33296 * commands/i386/cpuid.c (options): Likewise.
33297 (GRUB_MOD_INIT): Likewise.
33298 * commands/i386/pc/drivemap.c (options): Likewise.
33299 (GRUB_MOD_INIT): Likewise.
33300 * commands/i386/pc/halt (options): Likewise.
33301 (GRUB_MOD_INIT): Likewise.
33302 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33303 * commands/i386/pc/pxecmd.c (options): Likewise.
33304 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33305 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33306 * commands/keystatus.c (options): Likewise.
33307 (GRUB_MOD_INIT): Likewise.
33308 * commands/loadenv.c (options): Likewise.
33309 * commands/ls.c (options): Likewise.
33310 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33311 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33312 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33313 * commands/parttool.c (helpmsg): Likewise.
33314 * commands/probe.c (options): Likewise.
33315 * commands/read.c (GRUB_MOD_INIT): Likewise.
33316 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33317 * commands/search.c (options): Likewise.
33318 * commands/sleep.c (options): Likewise.
33319 * commands/test.c (GRUB_MOD_INIT): Likewise.
33320 * commands/true.c (GRUB_MOD_INIT): Likewise.
33321 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33322 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33323 * lib/arg.c (help_options): Likewise.
33324 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33326 * po/POTFILES: Add `commands/loadenv.c'.
33328 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33330 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33331 instead of specifying them explicit.
33333 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33335 * NEWS: Add grub-probe support for GNU/Hurd.
33337 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33339 * NEWS: gettext was added after 1.97.
33341 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33343 * util/mkisofs/msdos_partition.h: New file (based on
33344 include/grub/msdos_partition.h).
33345 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33346 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33347 (ld_options, main): Recognize --protective-msdos-label.
33348 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33349 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33350 (padblock_write): If `use_protective_msdos_label' is set, patch a
33351 protective DOS-style label in the output image.
33353 * util/grub-mkrescue.in: Use --protective-msdos-label.
33355 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33357 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33360 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33362 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33364 (ld_options, main): Recognize `--embedded-boot'.
33365 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33367 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33368 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33369 (padblock_write): Likewise. Rewrite to support embedded boot image.
33371 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33372 for BIOS-based disk boot instead of only ElTorito.
33374 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33376 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33377 build (not needed for bootstrap).
33379 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33381 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33382 from i386-pc build (not needed for bootstrap).
33383 Rewrite a pair of strings.
33385 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33387 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33389 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33391 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33393 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33395 * kern/env.c (grub_env_context_open): Mark exported variable for
33398 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33400 * kern/env.c (grub_env_export): Create nonexistent variables before
33403 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33405 * include/grub/auth.h: Include `<grub/i18n.h>'.
33406 (GRUB_GET_PASSWORD): Gettextizze string.
33407 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33409 (grub_utf8_to_ucs4_alloc): Fix indentation.
33410 (grub_print_ucs4): Likewise.
33411 (grub_getstringwidth): Likewise.
33412 (print_message_indented): New declaration.
33413 * normal/auth.c: Include `<grub/i18n.h>'.
33414 (grub_auth_check_authentication): Gettexttize string.
33415 * normal/cmdline.c: Include `<grub/i18n.h>'.
33416 (grub_cmdline_get): Gettextizze.
33417 * normal/color.c: Include `<grub/i18n.h>'.
33418 (grub_parse_color_name_pair): Gettexttize strings.
33419 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33420 string (use `print_message_indented').
33421 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33422 `include/grub/normal.h'.
33423 (print_message_indented): Renamed to ...
33424 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33425 used in normal/main.c).
33426 (print_message): Use `grub_print_message_indented' instead of
33427 `print_message_indented'.
33428 (print_timeout): Likewise.
33429 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33430 (grub_normal_print_device_info): Gettexttize strings.
33431 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33433 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33435 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33436 of arguments. Return number of tokens and not arguments. All users
33439 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33441 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33442 non-MSDOS paritions.
33444 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33446 * include/grub/types.h (UNUSED): Removed since it conflicts with
33447 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33448 Reported by Grégoire Sutre.
33450 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33452 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33453 (grub_print_ucs4_alloc): Likewise.
33454 (grub_getstringwidth): Likewise.
33455 * normal/main.c (grub_normal_init_page): Gettextize version string.
33456 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33457 (getstringwidth): Renamed to ...
33458 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33459 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33460 (grub_print_ucs4): Remove `static' qualifer (now used in
33462 * po/POTFILES: Add normal/main.c.
33464 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33466 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33467 (print_message_indented): Add `margin_left' and `margin_right'
33469 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33471 (print_timeout): Use `print_message_indented' to print the message.
33472 Deletes `second_stage' parameter.
33473 (run_menu): Update `print_timeout' calls.
33475 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33477 Fix console palette on OpenFirmware.
33479 * term/ieee1275/ofconsole.c (MAX): Removed.
33480 (colors): Redone based on VGA palette.
33481 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33482 colors are supported.
33483 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33485 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33487 Fix potential EfiEmu double prepare.
33489 * efiemu/main.c (prepared): New variable
33490 (grub_efiemu_unload): Set prepare to '0'.
33491 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33493 set_virtual_address_map support.
33495 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33497 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33499 (grub_efiemu_crc32): Likewise.
33500 (grub_efiemu_crc64): Likewise.
33501 (grub_efiemu_set_virtual_address_map): Likewise.
33502 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33504 (grub_autoefi_set_virtual_address_map): Likewise.
33505 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33506 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33507 Restructure flow to accomodate it.
33508 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33509 (grub_efiemu_crc): Recompute CRC32.
33510 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33511 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33512 * efiemu/symbols.c (relocated_handle): New variable.
33513 (grub_efiemu_free_syms): Free relocated_handle.
33514 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33515 (grub_efiemu_write_sym_markers): New function.
33516 (grub_efiemu_set_virtual_address_map): Likewise.
33518 Newer XNU parameters.
33520 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33521 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33522 (grub_xnu_fill_devicetree): New prototype.
33523 (grub_xnu_heap_real_start): New variable.
33524 * loader/xnu.c (get_name_ptr): New function.
33525 (grub_xnu_load_driver): Fill namelen and name.
33527 64-bit xnu support.
33529 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33530 and 'loader/macho64.c'.
33531 * conf/i386-pc.rmk: Likewise.
33532 * conf/x86_64-efi.rmk: Likewise.
33533 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33534 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33535 * include/grub/macho.h (grub_macho_segment64): New structure.
33536 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33537 (grub_macho_size32): ... to this.
33538 (grub_macho32_get_entry_point): Renamed from ...
33539 (grub_macho_get_entry_point32): ... to this.
33540 (grub_macho_contains_macho64): New prototype.
33541 (grub_macho_size64): Likewise.
33542 (grub_macho_get_entry_point64): Likewise.
33543 (grub_macho32_load): Renamed from ...
33544 (grub_macho_load32): ... to this.
33545 (grub_macho32_filesize): Renamed from ...
33546 (grub_macho_filesize32): ... to this.
33547 (grub_macho32_readfile): Renamed from ...
33548 (grub_macho_readfile32): ... to this.
33549 (grub_macho_filesize64): New prototype.
33550 (grub_macho_readfile64): Likewise.
33551 (grub_macho_parse32): Likewise.
33552 (grub_macho_parse64): Likewise.
33553 * loader/macho.c: Split into ...
33554 * loader/machoXX.c: ... and this. Replace 32 with XX.
33555 * loader/macho32.c: New file.
33556 * loader/macho64.c: Likewise.
33557 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33558 (grub_cmd_xnu_kernel): Make 32-bit only.
33559 (grub_cmd_xnu_kernel64): New function.
33560 (grub_xnu_load_driver): Support Mach-O 64.
33561 (grub_cmd_xnu_mkext): Likewise.
33562 * util/grub.d/30_os-prober.in (osx_entry): New function.
33563 Generate entries for 64-bit boot too.
33565 Eliminate ad-hoc tree format in XNU and EfiEmu.
33567 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33568 * efiemu/pnvram.c: Rewritten to use environment variables.
33571 Inline utf16_to_utf8.
33573 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33574 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33576 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33578 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33579 * commands/usbtest.c (grub_usb_get_string): ... move here.
33580 (usb_print_str): Fix error handling.
33581 * include/grub/usb.h (grub_usb_get_string): Remove.
33583 UTF-8 to UTF-16 transformation.
33585 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33586 (charset_mod_SOURCES): New variable.
33587 (charset_mod_CFLAGS): Likewise.
33588 (charset_mod_LDFLAGS): Likewise.
33589 * include/grub/utf.h: New file.
33590 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33592 Support for device properties.
33594 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33595 (grub_xnu_devprop_device_header): Likewise.
33596 (grub_xnu_devprop_device_descriptor): Likewise.
33597 (grub_xnu_devprop_add_device): New prototype.
33598 (grub_xnu_devprop_remove_device): Likewise.
33599 (grub_xnu_devprop_remove_property): Likewise.
33600 (grub_xnu_devprop_add_property_utf8): Likewise.
33601 (grub_xnu_devprop_add_property_utf16): Likewise.
33602 (grub_cpu_xnu_init): Likewise.
33603 (grub_cpu_xnu_fini): Likewise.
33604 (grub_cpu_xnu_unload): Likewise.
33605 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33606 (property_descriptor): Likewise.
33607 (devices): New variable.
33608 (grub_xnu_devprop_remove_property): New function.
33609 (grub_xnu_devprop_add_device): Likewise.
33610 (grub_xnu_devprop_remove_device): Likewise.
33611 (grub_xnu_devprop_add_property): Likewise.
33612 (grub_xnu_devprop_add_property_utf8): Likewise.
33613 (grub_xnu_devprop_add_property_utf16): Likewise.
33614 (hextoval): Likewise.
33615 (grub_cpu_xnu_fill_devprop): Likewise.
33616 (grub_cmd_devprop_load): Likewise.
33617 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33618 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33619 (cmd_devprop_load): New variable.
33620 (grub_cpu_xnu_init): New function.
33621 (grub_cpu_xnu_fini): Likewise.
33622 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33623 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33624 (grub_cmd_xnu_devtree): Likewise.
33625 (hextoval): New function.
33626 (unescape): Likewise.
33627 (grub_xnu_fill_devicetree): Likewise.
33629 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33630 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33632 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33634 Workaround for broken ATI VBE.
33636 * video/i386/pc/vbe.c (last_set_mode): New variable.
33637 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33638 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33639 (grub_video_vbe_setup): Don't check for reserved flag.
33641 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33643 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33644 the `find' command.
33646 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33648 UUID support for HFS.
33650 * fs/hfs.c (grub_hfs_uuid): New function.
33651 (grub_hfs_fs): New value .uuid.
33652 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33654 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33656 Fix a segfault with parsing unknown long options.
33658 * util/grub-mkrelpath.c (options): Zero terminate it.
33660 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33662 * include/grub/misc.h (grub_puts): New declaration.
33663 (grub_puts_): Likewise.
33664 * kern/misc.c (grub_puts): New definition.
33665 (grub_puts_): Likewise.
33667 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33669 * util/grub-probe.c (probe): Improve error message.
33671 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33673 * loader/i386/multiboot_elfxx.c
33674 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33677 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33679 Relocator framework
33681 * loader/i386/xnu_helper.S: Removed. All users updated.
33682 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33683 (relocator_mod_SOURCES): New variable.
33684 (relocator_mod_CFLAGS): Likewise.
33685 (relocator_mod_LDFLAGS): Likewise.
33686 (relocator_mod_ASFLAGS): Likewise.
33687 * conf/x86_64.rmk: Likewise.
33688 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33689 (grub_multiboot_payload_entry_offset): Likewise.
33690 (grub_multiboot_forward_relocator): Likewise.
33691 (grub_multiboot_forward_relocator_end): Likewise.
33692 (grub_multiboot_backward_relocator): Likewise.
33693 (grub_multiboot_backward_relocator_end): Likewise.
33694 (grub_multiboot_payload_eip): New variable.
33695 (grub_multiboot_payload_orig): Likewise.
33696 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33697 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33698 * include/grub/i386/memory.h
33699 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33700 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33701 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33702 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33703 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33704 * include/grub/i386/relocator.h: New file.
33705 * include/grub/x86_64/relocator.h: Likewise.
33706 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33707 (XNU_RELOCATOR): New macro.
33708 (grub_xnu_launcher_start): Remove.
33709 (grub_xnu_launcher_end): Likewise.
33710 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33711 (grub_xnu_heap_real_start): Remove.
33712 (grub_xnu_heap_start): Change to void *. All users updated.
33713 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33714 * lib/i386/relocator.c: New file.
33715 * lib/i386/relocator_asm.S: Likewise.
33716 * lib/i386/relocator_backward.S: Likewise.
33717 * lib/mips/relocator.c: Likewise.
33718 * lib/mips/relocator_asm.S: Likewise.
33719 * lib/relocator.c: Likewise.
33720 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33722 (playground): Likewise.
33723 (grub_multiboot_payload_orig): New variable.
33724 (grub_multiboot_payload_dest): Likewise.
33725 (grub_multiboot_payload_size): Likewise.
33726 (grub_multiboot_payload_eip): Likewise.
33727 (grub_multiboot_payload_esp): Likewise.
33728 (grub_multiboot_boot): Use grub_relocator32_boot.
33729 (grub_multiboot_unload): Free relocators.
33730 (grub_multiboot): Setup stack. Use relocators.
33731 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33732 (grub_multiboot_load_elfXX): Use relocators.
33733 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33734 (grub_multiboot_payload_size): Likewise.
33735 (grub_multiboot_payload_dest): Likewise.
33736 (grub_multiboot_payload_entry_offset): Likewise.
33737 (grub_multiboot_forward_relocator): Likewise.
33738 (grub_multiboot_backward_relocator): Likewise.
33739 (grub_multiboot_real_boot): Likewise.
33740 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33741 (grub_xnu_entry_point): Likewise.
33742 (grub_xnu_arg1): Likewise.
33743 (grub_xnu_stack): Likewise.
33744 (grub_xnu_launch): Removed.
33745 (grub_xnu_boot_resume): New function.
33746 (grub_xnu_boot): Use relocators.
33747 * loader/i386/xnu_helper.S: Removed.
33748 * loader/xnu.c (grub_xnu_heap_start): New variable.
33749 (grub_xnu_heap_size): Likewise.
33750 (grub_xnu_heap_malloc): Use relocators.
33751 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33753 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33755 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33758 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33760 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33761 GRUB_ERR_NONE before calling grub_env_set.
33763 2009-12-12 Robert Millan <rmh@aybabtu.com>
33765 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33766 * genmk.rb (video): New variable.
33767 (CLEANFILES, VIDEOFILES): Add #{video}.
33768 (#{video}): New target rule.
33769 * genvideolist.sh: New file.
33770 * Makefile.in (pkglib_DATA): Add video.lst.
33771 (video.lst): New target rule.
33772 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33774 * util/grub.d/30_os-prober.in: Replace `vbe' with
33775 ${GRUB_VIDEO_BACKEND}.
33777 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33779 * THANKS: Add David Miller.
33781 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33783 libpciaccess support.
33785 * Makefile.in (LIBPCIACCESS): New variable.
33786 (enable_grub_emu_pci): Likewise.
33787 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33788 util/pci.c and commands/lspci.c.
33789 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33790 * configure.ac (grub-emu-pci): New option.
33791 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33792 (grub_pci_device_unmap_range): Likewise.
33793 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33794 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33795 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33796 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33797 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33798 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33799 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33800 * include/grub/pciutils.h: New file.
33801 * util/pci.c: Likewise.
33803 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33805 * util/misc.c: Don't include <errno.h> twice.
33807 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33809 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33810 name in an error message.
33811 (grub_biosdisk_rw): Likewise.
33813 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33815 Eliminate NTFS 4Gib barrier.
33817 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33818 (read_run_data): Likewise.
33819 (grub_ntfs_read_run_list): Likewise.
33820 (grub_ntfs_read_block): Likewise.
33821 (grub_ntfs_iterate_dir): Likewise.
33822 (read_mft): Likewise.
33823 (read_data): Likewise.
33825 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33826 to avoid 64-bit division
33827 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33828 (grub_ntfs_rlst): Use grub_disk_addr_t.
33830 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33832 Eliminate grub-fstest 4Gib barrier.
33834 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33835 (read_file): Fix error reporting.
33837 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33839 Eliminate hexdump 4Gib barrier.
33841 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33842 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33844 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33846 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33849 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33851 Remove miscellaneous files in distclean target.
33853 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33855 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33857 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33858 if they're already set. This resolves the conflict between my
33859 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33860 fixing the --grub-probe option again.
33861 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33862 change on 2009-10-06, so that we now once again source
33863 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33865 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33867 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33868 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33869 `util/devicemap.c'.
33871 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33873 * include/grub/misc.h (grub_printf_): New declaration.
33874 * kern/misc.c (grub_printf_): New definition.
33875 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33876 instead of `grub_printf' and `_'.
33877 * normal/menu_entry.c (store_completion): Likewise.
33879 (grub_menu_entry_run): Likewise.
33880 * normal/menu_text.c (grub_wait_after_message): Likewise.
33881 (notify_booting): Likewise.
33882 (notify_fallback): Likewise.
33883 (notify_execution_failure): Likewise.
33885 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33887 * configure.ac: Check for vasprintf.
33888 * util/misc.c (asprintf): Move allocation from here ...
33889 (vasprintf): ... to here. New function.
33890 (xasprintf): New function.
33891 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33893 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33894 * util/grub-mkfont.c (write_font): Likewise.
33895 * util/grub-probe.c (probe): Likewise.
33896 * util/hostdisk.c (make_device_name): Likewise.
33898 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33900 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33901 anything even prefixed with 'cdrom' as a cdrom.
33903 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33905 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33908 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33910 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33911 grub_gettext_msg_list.
33912 (grub_gettext_gettranslation_from_position): Return const char *
33914 (grub_gettext_translate): Add the translated strings into a list,
33915 returns from the list if existing there.
33916 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33917 (grub_gettext_delete_list): Delete the list.
33918 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33919 lang environment variable is changed.
33920 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33922 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33924 Rename kernel.mod to kernel.img.
33926 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33927 (kernel_mod_EXPORTS): Rename to ...
33928 (kernel_img_EXPORTS): ... this.
33929 (kernel_mod_SOURCES): Rename to ...
33930 (kernel_img_SOURCES): ... this.
33931 (kernel_mod_HEADERS): Rename to ...
33932 (kernel_img_HEADERS): ... this. All users updated.
33933 (kernel_mod_CFLAGS): Rename to ...
33934 (kernel_img_CFLAGS): ... this.
33935 (kernel_mod_ASFLAGS): Rename to ...
33936 (kernel_img_ASFLAGS): ... this.
33937 (kernel_mod_LDFLAGS): Rename to ...
33938 (kernel_img_LDFLAGS): ... this.
33939 * conf/x86_64-efi.rmk: Likewise.
33940 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33941 (read_kernel_image): ... this. All users updated.
33942 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33944 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33946 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33947 (print_spaces): New function.
33948 (grub_print_ucs4): New function.
33949 (getstringwidth): New function.
33950 (print_message_indented): New function.
33951 (print_message): Gettexttize strings using print_message_indented.
33952 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33954 (get_entry_number): Gettextize and uses dynamic terminal width.
33955 (notify_booting, notify_fallback, notify_execution_failure):
33957 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33960 (grub_menu_entry_run): Likewise.
33961 * PO/POTFILES: Add normal/menu_entry.c.
33963 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33965 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33967 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33969 * util/grub-install.in: Install gettext .mo files.
33970 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33972 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33974 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33977 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33979 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33980 non-firmware-dependant one in realmode.S takes precedence.
33982 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33984 * commands/halt.c: Replace misc arch-specific headers with
33986 * commands/reboot.c: Likewise.
33987 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33989 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33990 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33991 (kernel_img_SOURCES): ... to here.
33993 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33994 * include/grub/i386/pc/init.h: Likewise.
33995 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33996 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33998 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
34000 * include/grub/i386/halt.h: Remove.
34001 * include/grub/i386/reboot.h: Likewise.
34003 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
34005 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
34007 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
34008 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
34009 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
34011 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34012 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34013 (usage): Add missing comma in printf.
34015 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
34017 Use the same reboot approach on i386 coreboot and qemu as we do on
34020 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
34021 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
34022 * kern/i386/reboot.c: Remove.
34023 * include/grub/i386/reboot.h (grub_reboot): Export function.
34024 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
34025 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
34026 0xf000:0xfff0 instead of 0xffff:0x0000.
34027 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
34028 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
34030 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
34032 Fix $srcdir != $objdir build.
34034 * Makefile.in (po/%.po): Rewrite as ...
34035 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
34037 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
34039 Fix GNU/Hurd grub-install crash.
34040 * util/grub-probe.c (probe): Try to access `path' only when it is not
34043 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34045 Correct module naming.
34047 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
34048 (GRUB_MOD_INIT(efi_uga)): ... to this
34049 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
34050 (GRUB_MOD_FINI(efi_uga)): ... to this
34051 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
34052 (GRUB_MOD_INIT(efi_gop)): ... to this
34053 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
34054 (GRUB_MOD_FINI(efi_gop)): ... to this
34056 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
34058 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
34060 (usage): Translate `arg' strings using gettext().
34061 Thanks to Jordi Mallach for the suggestion.
34063 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34065 GOP support. Based on patch from Bean
34066 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34068 * video/efi_gop.c: New file.
34069 * include/grub/efi/graphics_output.h: Likewise.
34070 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
34071 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34073 * conf/x86_64-efi.rmk: Likewise.
34075 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34077 Rename efi_fb to efi_uga.
34079 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34081 (efi_fb_mod_SOURCES): Rename this ...
34082 (efi_uga_mod_SOURCES): ... to this.
34083 (efi_fb_mod_CFLAGS): Rename this ...
34084 (efi_uga_mod_CFLAGS): ... to this.
34085 (efi_fb_mod_LDFLAGS): Rename this ...
34086 (efi_uga_mod_LDFLAGS): ... to this.
34087 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34089 (efi_fb_mod_SOURCES): Rename this ...
34090 (efi_uga_mod_SOURCES): ... to this.
34091 (efi_fb_mod_CFLAGS): Rename this ...
34092 (efi_uga_mod_CFLAGS): ... to this.
34093 (efi_fb_mod_LDFLAGS): Rename this ...
34094 (efi_uga_mod_LDFLAGS): ... to this.
34095 * video/efi_fb.c: Move this ...
34096 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
34098 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34100 * po/README: New file. Explain our PO file workflow.
34102 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34104 * po/ChangeLog: Remove. Move relevant entries back to ...
34105 * ChangeLog: ... here.
34106 * po/ca.po: Remove (now handled by TLP).
34107 * po/id.po: Likewise.
34108 * po/zh_CN.po: Likewise.
34109 * Makefile.in (LINGUAS): Initialize in a way that supports
34112 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34114 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
34115 reliing on po/LINGUAS.
34116 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
34117 (po/%.po): ... this.
34119 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34121 * util/i386/efi/grub-mkimage.c: Include "progname.h".
34122 (main): Use `program_name' instead of nonexistent `progname'.
34124 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34126 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34127 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
34129 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34131 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
34133 * conf/i386-efi.rmk: Likewise.
34134 * conf/i386-ieee1275.rmk: Likewise.
34135 * conf/powerpc-ieee1275.rmk: Likewise.
34136 * conf/sparc64-ieee1275.rmk: Likewise.
34137 * conf/x86_64-efi.rmk: Likewise.
34139 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34141 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
34143 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34145 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
34147 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34149 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
34150 (grub_mkdevicemap_SOURCES): New variable.
34151 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
34152 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
34153 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
34154 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
34155 (grub_mkdevicemap_SOURCES): Remove.
34156 * conf/i386-efi.rmk: Likewise.
34157 * conf/i386-ieee1275.rmk: Likewise.
34158 * conf/i386-pc.rmk: Likewise.
34159 * conf/powerpc-ieee1275.rmk: Likewise.
34160 * conf/sparc64-ieee1275.rmk: Likewise.
34161 * conf/x86_64-efi.rmk: Likewise.
34162 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
34163 (usage): Fix strings to use `program_name'.
34164 (main): Initialize gettext.
34165 * util/grub-editenv.c: Likewise.
34166 * util/grub-emu.c: Likewise.
34167 * util/grub-fstest.c: Likewise.
34168 * util/grub-mkdevicemap.c: Likewise.
34169 * util/grub-mkfont.c: Likewise.
34170 * util/grub-mkrelpath.c: Likewise.
34171 * util/grub-pe2elf.c: Likewise.
34172 * util/grub-probe.c: Likewise.
34173 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34174 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34175 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34177 * util/misc.c: Include `"progname.h"'.
34178 (progname): Remove variable.
34179 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34181 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34183 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34184 printf and print a newline after the menuentry header line.
34185 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34187 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34189 autoconf >= 2.60 support $(localedir).
34191 * INSTALL: Note that autoconf 2.60 is required.
34192 * configure.ac (AC_PREREQ): Bump to 2.60.
34193 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34194 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34196 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34198 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34201 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34203 * normal/main.c (grub_normal_read_line): Fix off-by-one
34206 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34208 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34209 "parser.grub" in grub_command_execute() call.
34211 2009-11-24 Carles Pina i Estany <carles@pina.cat>
34213 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34214 * conf/i386-efi.rmk: Likewise.
34215 * conf/i386-ieee1275.rmk: Likewise.
34216 * conf/i386-pc.rmk: Likewise.
34217 * conf/powerpc-ieee1275.rmk: Likewise.
34218 * conf/sparc64-ieee1275.rmk: Likewise.
34219 * conf/x86_64-efi.rmk: Likewise.
34220 * gettext/gettex.c: Include <grub/i18n.h>.
34221 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34223 * include/grub/i18n.h: ... to here
34224 * include/grub/i18n.h: ... to here.
34225 * kern/misc.c: Include <grub/i18n.h>
34226 (grub_gettext_dummy): Move above user.
34228 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34230 * util/Makefile.in (install-local): Convert a `for' into a normal
34233 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34235 * autogen.sh: Add automake call.
34236 * config.guess: Remove.
34237 * config.sub: Likewise.
34238 * install-sh: Likewise.
34240 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34242 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34244 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34246 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34247 function to a normal shell `for'.
34249 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34251 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34253 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34255 * util/grub-mkrelpath.c: New file.
34256 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34257 (grub_mkrelpath_SOURCES): New variable.
34258 * include/grub/util/misc.h: New function prototype.
34259 * util/misc.c (make_system_path_relative_to_its_root): New function.
34261 * util/grub-mkconfig_lib.in (bindir): New variable.
34262 (grub_mkrelpath): Likewise.
34263 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34265 * util/probe.c (probe): Make the file path relative to its root.
34266 Change a info message to use the GRUB path. Enable again the
34267 check if we can read the file with GRUB facilities.
34269 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34272 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34274 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34277 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34279 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34282 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34284 * util/getroot.c (grub_util_is_dmraid): New function.
34285 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34286 devices as normal ones, not as LVM.
34288 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34290 * conf/common.rmk: Add grub-gettext_lib target and updates
34291 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34293 * gettext/gettext.c: New file. (Reads mo files).
34294 * include/grub/file.h (grub_file_pread): New prototype.
34295 * include/grub/i18n.h (_): New prototype.
34296 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34298 * kern/misc.c (grub_gettext_dummy): New function.
34299 * normal/menu_text.c: Include <grub/i18n.h>.
34300 * normal/menu_text.c (print_timeout): Gettexttize string.
34301 * normal/menu_text.c (print_message): Gettexttize string.
34302 * po/POTFILES: Add `normal/menu_text.c'.
34303 * po/ca.po: Add new translations.
34304 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34305 gettext module and defines locale_dir and lang in grub.cfg.
34306 * NEWS: Add gettext support.
34308 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34310 * util/hostdisk.c: Include `<grub/i18n.h>'.
34311 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34312 (make_device_name): Rewrite using asprintf.
34313 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34314 (find_system_device): If a device is not found, generate one just
34315 by reusing the OS path name.
34316 (read_device_map): Make it permissible for device.map not to exist.
34318 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34320 * script/sh/execute.c: Move from here ...
34321 * script/execute.c: ... to here. Update all users.
34322 * script/sh/function.c: Move from here ...
34323 * script/function.c: ... to here. Update all users.
34324 * script/sh/lexer.c: Move from here ...
34325 * script/lexer.c: ... to here. Update all users.
34326 * script/sh/main.c: Move from here ...
34327 * script/main.c: ... to here. Update all users.
34328 * script/sh/parser.y: Move from here ...
34329 * script/parser.y: ... to here. Update all users.
34330 * script/sh/script.c: Move from here ...
34331 * script/script.c: ... to here. Update all users.
34333 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34335 * configure.ac: Detect all `emu' platforms. Define
34336 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34337 --enable-grub-emu logic. Disable include/grub/machine
34338 symlink on `emu' platforms.
34340 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34341 * gensymlist.sh.in: Likewise.
34343 * include/grub/i386/coreboot/machine.h: Remove file.
34344 * include/grub/i386/efi/machine.h: Likewise.
34345 * include/grub/i386/ieee1275/machine.h: Likewise.
34346 * include/grub/i386/pc/machine.h: Likewise.
34347 * include/grub/i386/qemu/machine.h: Likewise.
34348 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34349 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34350 * include/grub/x86_64/efi/machine.h: Likewise.
34352 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34353 * commands/halt.c: Likewise.
34354 * commands/reboot.c: Likewise.
34355 * include/grub/autoefi.h: Likewise.
34356 * include/grub/i386/at_keyboard.h: Likewise.
34357 * include/grub/i386/kernel.h: Likewise.
34358 * include/grub/i386/loader.h: Likewise.
34359 * include/grub/i386/pc/memory.h: Likewise.
34360 * kern/dl.c: Likewise.
34361 * kern/i386/coreboot/init.c: Likewise.
34362 * loader/i386/bsd.c: Likewise.
34363 * loader/i386/linux.c: Likewise.
34364 * loader/multiboot_loader.c: Likewise.
34365 * term/i386/pc/serial.c: Likewise.
34366 * term/usb_keyboard.c: Likewise.
34368 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34369 `<grub/machine/machine.h>'
34370 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34371 * util/misc.c: Remove `<grub/machine/machine.h>' and
34372 `<grub/machine/time.h>'.
34374 * Makefile.in (enable_grub_emu): Remove variable.
34375 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34377 * conf/any-emu.rmk: New file.
34378 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34379 (grub_emu_init.c): Move from here ...
34380 * conf/any-emu.rmk: ... to here.
34382 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34383 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34384 * conf/any-emu.rmk: ... to here.
34386 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34388 * include/grub/parser.h (grub_parser_register): Document need
34389 of `name' parameter.
34390 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34391 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34394 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34396 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34398 * include/grub/i18n.h (N_): New macro.
34399 * util/mkisofs/mkisofs.h: Likewise.
34400 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34402 (usage): Use gettext() to translate help strings when printing them.
34404 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34406 Based on patch from Bean
34407 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34409 * video/efi_fb.c: New file.
34410 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34411 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34413 * conf/x86_64-efi.rmk: Likewise.
34415 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34417 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34418 * util/i386/pc/grub-setup.c: Likewise.
34420 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34422 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34424 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34425 file_get_storage_info to implement grub_guess_root_device.
34427 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34429 * Makefile.in (target): Use make's builtin $(shell) function
34430 instead of calling directly $(SHELL) to create the locale directories,
34431 inside the $(foreach) function.
34433 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34435 * util/grub-mkrescue.in: Print an error and usage if output option
34436 has not been given.
34438 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34440 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34441 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34442 root and /boot are on different devices.
34444 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34446 Fix build for srcdir != objdir.
34448 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34449 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34451 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34452 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34453 reference for input.
34455 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34457 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34458 or hardlinking it). Remove -J option, Joliet is not compatible with
34459 multiple source directories.
34461 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34462 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34464 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34465 (process_input_dir): New function. Process an arbitrary input
34467 Misc adjustments to support both "override mode" and system-wide mode.
34469 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34471 * configure.ac (UNIFONT_BDF): Rename to ...
34472 (FONT_SOURCE): ... this. Update all users.
34474 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34476 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34477 to the list of unifont files to look for.
34479 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34481 Patch from Joe Auricchio <jauricchio@gmail.com>
34482 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34483 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34484 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34486 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34488 * Makefile.in (install-local): Add a missing backslash.
34490 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34492 * include/grub/x86_64/io.h: New file.
34494 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34496 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34497 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34498 Include `"progname.h"'.
34499 (main): Initialize gettext.
34500 * util/i386/pc/grub-setup.c: Gettexttize.
34501 * util/i386/pc/grub-mkimage.c: Likewise.
34503 * Makefile.in (po/*.po): Redefine as ...
34504 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34506 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34508 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34510 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34511 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34512 (program_name): Remove.
34513 (main): Initialize gettext support.
34514 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34515 Include `<libintl.h>'.
34518 * util/mkisofs/eltorito.c: Gettexttize.
34519 * util/mkisofs/joliet.c: Likewise.
34520 * util/mkisofs/mkisofs.c: Likewise.
34521 * util/mkisofs/multi.c: Likewise.
34522 * util/mkisofs/rock.c: Likewise.
34523 * util/mkisofs/tree.c: Likewise.
34524 * util/mkisofs/write.c: Likewise.
34526 * po/POTFILES: Update with new files.
34528 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34530 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34531 * util/mkisofs/iso9660.h: Likewise.
34532 * util/mkisofs/joliet.c: Likewise.
34533 * util/mkisofs/mkisofs.c: Likewise.
34534 * util/mkisofs/mkisofs.h: Likewise.
34535 * util/mkisofs/rock.c: Likewise.
34536 * util/mkisofs/tree.c: Likewise.
34537 * util/mkisofs/write.c: Likewise.
34539 * util/mkisofs/eltorito.c (rcsid): Remove.
34540 * util/mkisofs/hash.c: Likewise.
34541 * util/mkisofs/joliet.c: Likewise.
34542 * util/mkisofs/name.c: Likewise.
34543 * util/mkisofs/rock.c: Likewise.
34544 * util/mkisofs/tree.c: Likewise.
34545 * util/mkisofs/write.c: Likewise.
34547 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34549 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34550 instead of static allocation.
34551 * util/mkisofs/match.h: Likewise.
34553 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34555 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34556 and `util/grub.d/10_linux.in'.
34557 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34558 translatable Shell files.
34560 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34562 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34564 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34566 * INSTALL: Document Automake is needed for bootstrap.
34567 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34568 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34569 Add gettext initialization.
34570 (kfreebsd_entry): Make menuentry output translatable.
34572 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34574 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34575 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34576 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34577 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34578 (LINGUAS): Auto-generate using `po/LINGUAS'.
34579 * po/LINGUAS: New file.
34581 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34583 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34585 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34586 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34587 bindtextdomain() calls for gettext initialization.
34589 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34591 * gnulib/progname.c: New file (imported from Gnulib).
34592 * gnulib/progname.h: Likewise.
34593 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34594 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34595 (usage): Replace `progname' with `program_name'.
34596 (main): Use set_program_name() for program name initialization.
34598 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34600 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34602 * Makefile.in (CPPFLAGS): ... to here.
34604 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34606 * aclocal.m4: Move from here ...
34607 * acinclude.m4: ... to here.
34608 * autogen.sh: Add call to `aclocal'.
34609 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34611 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34613 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34614 (LINGUAS): New variable.
34615 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34616 (install-local): Install MO files.
34617 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34618 * include/grub/i18n.h: New file.
34619 * po/POTFILES: New file.
34620 * po/ca.po: New file.
34621 * util/grub.d/10_linux.in (bindir): New variable.
34622 Add gettext initialization.
34623 (linux_entry): Make menuentry output translatable.
34624 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34625 (usage): Make --help output translatable.
34626 (main): Initialize gettext.
34628 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34630 * import_gcry.py: New file (written by Vladimir with minor
34632 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34634 * INSTALL: Document that Python is required for bootstrap.
34636 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34638 Import ciphers from libgcrypt 1.4.4.
34640 * lib/libgcrypt/cipher/ChangeLog
34641 * lib/libgcrypt/cipher/ac.c
34642 * lib/libgcrypt/cipher/arcfour.c
34643 * lib/libgcrypt/cipher/bithelp.h
34644 * lib/libgcrypt/cipher/blowfish.c
34645 * lib/libgcrypt/cipher/camellia-glue.c
34646 * lib/libgcrypt/cipher/camellia.c
34647 * lib/libgcrypt/cipher/camellia.h
34648 * lib/libgcrypt/cipher/cast5.c
34649 * lib/libgcrypt/cipher/cipher.c
34650 * lib/libgcrypt/cipher/crc.c
34651 * lib/libgcrypt/cipher/des.c
34652 * lib/libgcrypt/cipher/dsa.c
34653 * lib/libgcrypt/cipher/ecc.c
34654 * lib/libgcrypt/cipher/elgamal.c
34655 * lib/libgcrypt/cipher/hash-common.c
34656 * lib/libgcrypt/cipher/hash-common.h
34657 * lib/libgcrypt/cipher/hmac-tests.c
34658 * lib/libgcrypt/cipher/md.c
34659 * lib/libgcrypt/cipher/md4.c
34660 * lib/libgcrypt/cipher/md5.c
34661 * lib/libgcrypt/cipher/primegen.c
34662 * lib/libgcrypt/cipher/pubkey.c
34663 * lib/libgcrypt/cipher/rfc2268.c
34664 * lib/libgcrypt/cipher/rijndael-tables.h
34665 * lib/libgcrypt/cipher/rijndael.c
34666 * lib/libgcrypt/cipher/rmd.h
34667 * lib/libgcrypt/cipher/rmd160.c
34668 * lib/libgcrypt/cipher/rsa.c
34669 * lib/libgcrypt/cipher/seed.c
34670 * lib/libgcrypt/cipher/serpent.c
34671 * lib/libgcrypt/cipher/sha1.c
34672 * lib/libgcrypt/cipher/sha256.c
34673 * lib/libgcrypt/cipher/sha512.c
34674 * lib/libgcrypt/cipher/tiger.c
34675 * lib/libgcrypt/cipher/twofish.c
34676 * lib/libgcrypt/cipher/whirlpool.c
34678 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34680 Fix build for systems without error().
34682 * gnulib/error.c: New file (imported from Gnulib).
34683 * gnulib/error.h: Likewise.
34684 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34685 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34686 (this variable is now used by error()).
34688 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34690 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34691 instead of relying that char is signed.
34693 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34695 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34696 blocksize different from specified.
34697 (grub_pxefs_read): Likewise.
34699 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34701 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34703 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34704 (grub_ata_readwrite): Likewise. Update 2 format strings.
34705 (grub_atapi_read): Likewise.
34707 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34708 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34709 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34710 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34711 (ata_mod_LDFLAGS): Move from here ...
34712 * conf/i386.rmk: ... to here ...
34713 * conf/x86_64-efi.rmk: ... and here.
34714 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34715 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34717 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34719 Relicense multiboot.h, with RMS' blessing.
34721 * include/multiboot.h: Change to X11 license.
34723 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34725 Support --version in grub-mkisofs.
34727 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34728 (OPTION_VERSION): New macro.
34729 (ld_options): Recognize --version.
34730 (usage): Move `program_name' from here ...
34731 (program_name): ... to here. Add `static' qualifier.
34732 (main): Recognize `OPTION_VERSION'.
34734 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34736 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34737 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34739 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34741 Fix help2man generation for mkisofs.
34743 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34744 (usage): Send output to stdout (rather than stderr).
34746 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34748 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34749 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34750 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34751 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34752 (bin_SCRIPTS): Add `grub-mkfloppy'.
34753 (grub_mkfloppy_SOURCES): New variable.
34755 * util/grub-mkrescue.in: New file.
34756 * util/i386/pc/grub-mkfloppy.in: New file.
34758 * util/i386/coreboot/grub-mkrescue.in: Remove.
34759 * util/i386/pc/grub-mkrescue.in: Remove.
34761 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34763 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34765 * include/multiboot.h (struct multiboot_header): ... to here. Update
34767 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34769 * include/multiboot.h (struct multiboot_info): ... to here. Update
34771 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34773 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34775 * include/grub/multiboot.h (struct grub_mod_list): Move
34777 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34780 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34782 * include/multiboot2.h (multiboot_word): Rename from this ...
34783 (multiboot2_word): ... to this. Update all users.
34784 (multiboot_header): Rename from this ...
34785 (multiboot2_header): ... to this. Update all users.
34786 (multiboot_tag_header): Rename from this ...
34787 (multiboot2_tag_header): ... to this. Update all users.
34788 (multiboot_tag_start): Rename from this ...
34789 (multiboot2_tag_start): ... to this. Update all users.
34790 (multiboot_tag_name): Rename from this ...
34791 (multiboot2_tag_name): ... to this. Update all users.
34792 (multiboot_tag_module): Rename from this ...
34793 (multiboot2_tag_module): ... to this. Update all users.
34794 (multiboot_tag_memory): Rename from this ...
34795 (multiboot2_tag_memory): ... to this. Update all users.
34796 (multiboot_tag_unused): Rename from this ...
34797 (multiboot2_tag_unused): ... to this. Update all users.
34798 (multiboot_tag_end): Rename from this ...
34799 (multiboot2_tag_end): ... to this. Update all users.
34801 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34803 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34804 this platform we should support Multiboot1 first.
34806 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34807 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34808 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34810 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34812 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34813 of write calls (converting them to fwrite() if they aren't already).
34814 (get_torito_desc): Likewise.
34815 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34817 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34819 * util/i386/pc/grub-install.in: Move from here ...
34820 * util/grub-install.in: ... to here. Update all users.
34822 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34824 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34826 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34828 Support for El Torito without floppy emulation.
34830 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34831 (init_boot_catalog): Improve error handling.
34832 (get_torito_desc): Don't use floppy emulation unless requested by
34833 user. Patch boot information table when requested via
34834 `-boot-info-table'.
34835 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34836 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34837 (use_boot_info_table): New variables.
34838 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34839 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34840 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34841 `--eltorito-emul-floppy'.
34842 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34843 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34844 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34845 (use_boot_info_table, get_731): New prototypes.
34846 * util/mkisofs/write.c (get_731): New function.
34848 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34850 Fix the generation of the man page.
34852 * util/pc/i386/grub-install.in: Source
34853 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34855 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34857 Large file support for grub-mkisofs.
34859 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34860 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34861 (session_start): Upgrade type to `uint64_t'. Update all users.
34862 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34863 (struct directory_entry): Upgrade type of `starting_block' and
34864 `size' to `uint64_t'. Update all users.
34865 (struct deferred): Remove unused structure.
34866 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34868 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34869 file is larger than `UINT32_MAX'.
34870 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34871 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34873 (struct deferred_write): Upgrade type of `extent' and `size' to
34874 `uint64_t'. Update all users.
34875 (last_extent_written): Upgrade type to `uint64_t'. Update all
34877 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34878 Update all users. Upgrade type of `remain' to `int64_t' and
34879 `use' to `size_t'. Use error() to handle fread() errors.
34880 (write_files): Rely on write_one_file() rather than calling
34881 xfwrite() directly.
34883 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34885 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34887 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34889 * util/mkisofs/fnmatch.c: Remove.
34890 * util/mkisofs/getopt1.c: Likewise.
34891 * util/mkisofs/getopt.c: Likewise.
34892 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34893 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34894 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34895 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34896 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34898 * configure.ac: Detect `mingw32msvc' host_os.
34899 Check for lstat(), getuid() and getgid().
34901 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34902 instances of `u_char' with `uint8_t'.
34904 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34905 [!HAVE_GETUID] (getuid): New function (stub).
34906 [!HAVE_GETGID] (getgid): Likewise.
34907 [!HAVE_LSTAT] (lstat): Likewise.
34908 [!S_IROTH] (S_IROTH): New macro (dummy).
34909 [!S_IRGRP] (S_IRGRP): Likewise.
34911 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34913 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34914 conditional expression).
34916 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34918 Import from Gnulib.
34920 * gnulib/fnmatch.c: New file.
34921 * gnulib/fnmatch.h: Likewise.
34922 * gnulib/fnmatch_loop.c: Likewise.
34923 * gnulib/getopt.c: Likewise.
34924 * gnulib/getopt.h: Likewise.
34925 * gnulib/getopt1.c: Likewise.
34926 * gnulib/getopt_int.h: Likewise.
34927 * gnulib/gettext.h: Likewise.
34929 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34931 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34932 * normal/handler.c (read_handler_list): Likewise.
34934 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34938 * kern/command.c (grub_register_command_prio): Use
34939 grub_zalloc() instead of explicitly zeroing data.
34940 * kern/list.c: Include `<grub/mm.h>'.
34941 (grub_named_list_find): Replace `0' with `NULL'.
34942 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34943 (fs_module_list): Change type to `grub_named_list_t'. Update all
34945 * normal/dyncmd.c (read_command_list): Add space between function
34946 call and parenthesis.
34947 * normal/handler.c (read_handler_list): Likewise.
34949 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34951 * normal/auth.c (punishment_delay): Moved from here ...
34952 (grub_auth_strcmp): ... to here (inside function).
34954 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34956 * include/grub/list.h (struct grub_named_list): Remove `const'
34957 qualifier from `name'.
34958 (struct grub_prio_list): Likewise.
34960 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34962 * normal/auth.c: Include `<grub/time.h>'.
34963 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34965 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34967 * normal/auth.c (punishment_delay): New variable.
34968 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34969 (grub_auth_check_authentication): Punish failed login attempts with
34970 an incremental (2^N) delay.
34972 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34974 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34975 path with $(srcdir).
34977 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34979 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34981 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34983 * util/i386/coreboot/grub-mkrescue.in: New file.
34984 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34987 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34988 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34989 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34991 * util/mkisofs/defaults.h: New file.
34992 * util/mkisofs/eltorito.c: Likewise.
34993 * util/mkisofs/exclude.h: Likewise.
34994 * util/mkisofs/fnmatch.c: Likewise.
34995 * util/mkisofs/getopt.c: Likewise.
34996 * util/mkisofs/getopt1.c: Likewise.
34997 * util/mkisofs/hash.c: Likewise.
34998 * util/mkisofs/include/fctldefs.h: Likewise.
34999 * util/mkisofs/include/mconfig.h: Likewise.
35000 * util/mkisofs/include/prototyp.h: Likewise.
35001 * util/mkisofs/include/statdefs.h: Likewise.
35002 * util/mkisofs/iso9660.h: Likewise.
35003 * util/mkisofs/joliet.c: Likewise.
35004 * util/mkisofs/match.c: Likewise.
35005 * util/mkisofs/match.h: Likewise.
35006 * util/mkisofs/mkisofs.c: Likewise.
35007 * util/mkisofs/mkisofs.h: Likewise.
35008 * util/mkisofs/multi.c: Likewise.
35009 * util/mkisofs/name.c: Likewise.
35010 * util/mkisofs/rock.c: Likewise.
35011 * util/mkisofs/tree.c: Likewise.
35012 * util/mkisofs/write.c: Likewise.
35014 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
35016 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
35019 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35021 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
35022 `grub-mkimage' (and use $0 when possible).
35024 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35026 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
35027 error message for excessively large memory map.
35029 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35031 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
35034 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35036 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
35037 message for coreboot users.
35039 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
35041 Fix build with GNU gold.
35043 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
35044 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
35045 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
35047 * aclocal.m4: Likewise.
35049 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
35051 * configure.ac (AC_PREREQ): Bump to 2.59d.
35052 * INSTALL: Make it more clear when Autoconf and Ruby are
35053 needed and when to run `./autogen.sh'.
35055 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
35057 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
35060 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35062 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
35064 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35066 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
35067 giving it to GNU Mach.
35069 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35071 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
35072 GNU partition number to get internal GRUB partition number.
35074 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35076 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
35077 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
35079 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
35081 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
35082 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
35085 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
35087 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
35089 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35093 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
35094 `-isystem=$(srcdir)/include'.
35096 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35098 * util/i386/pc/grub-install.in: Remove hint that device.map should be
35099 checked (grub-install doesn't currently rely on it).
35101 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
35105 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
35106 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35107 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
35108 * conf/i386-ieee1275.rmk: Likewise.
35109 * conf/i386-pc.rmk: Likewise.
35110 * conf/powerpc-ieee1275.rmk: Likewise.
35111 * conf/sparc64-ieee1275.rmk: Likewise.
35112 * conf/x86_64-efi.rmk: Likewise.
35114 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35116 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
35118 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35120 * include/grub/misc.h: Stop checking for APPLE_CC.
35122 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35124 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
35125 doesn't cause an infinite call loop.
35127 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
35129 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
35132 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35134 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
35136 * Makefile.in: Likewise.
35138 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35140 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
35142 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35144 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
35146 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35148 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
35150 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35152 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
35154 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
35156 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35158 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
35159 in $(MAKEINFO) invocation. This makes it clear in output that
35160 errors are being ignored.
35162 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35164 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
35166 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35167 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35168 * conf/i386-ieee1275.rmk: Likewise.
35169 * conf/i386-pc.rmk: Likewise.
35170 * conf/powerpc-ieee1275.rmk: Likewise.
35171 * conf/sparc64-ieee1275.rmk: Likewise.
35172 * conf/x86_64-efi.rmk: Likewise.
35174 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35176 * util/grub-editenv.c (main): If only a command is given, use
35177 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35178 (usage): FILENAME is now optional and has a default.
35180 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35182 Improve grub-mkconfig performance when there are several menu
35183 entries on a single filesystem.
35185 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35186 prepare_grub_to_access_device.
35187 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35188 * util/grub.d/30_os-prober.in: Likewise.
35190 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35192 * util/grub.d/10_freebsd.in: Remove.
35193 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35194 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35196 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35198 * docs/grub.cfg: Fix example usage of *BSD loaders.
35200 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35202 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35203 grub_util_error() call.
35205 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35207 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35208 `reserved_first_sector' member.
35209 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35210 `reserved_first_sector' to 1.
35211 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35212 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35213 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35214 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35215 filesystems which begin at first sector.
35216 (options): New option --skip-fs-probe.
35217 (main): Handle --skip-fs-probe and pass it to setup().
35219 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35221 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35222 (memset): Fix function prototype.
35224 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35225 2009-10-25 Vasily Averin <vvs@parallels.com>
35227 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35228 `dirent.direntlen == 0'.
35230 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35232 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35234 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35236 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35238 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35239 `__trampoline_setup' and `__ucmpdi2'.
35240 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35241 that libgcc provides.
35243 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35245 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35246 * include/grub/sparc64/libgcc.h (memset): Likewise.
35247 * include/grub/misc.h (memset, memcmp): New function prototypes.
35249 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35251 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35253 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35255 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35257 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35258 * docs/grub.cfg: Compensate for recent change in multiboot
35259 loader (since 2009-08-14 it won't pass filename to payload).
35260 * util/grub.d/10_hurd.in: Likewise.
35262 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35264 * config.guess: Update to latest version from config git
35266 * config.sub: Likewise.
35268 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35270 Fix build on sparc64.
35272 * configure.ac: Perform checks for libgcc symbols before
35273 adding `-nostdlib' to LDFLAGS.
35275 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35277 Let user specify OpenBSD root device.
35279 * loader/i386/bsd.c (openbsd_root): New variable.
35280 (openbsd_opts): New option 'root'.
35281 (OPENBSD_ROOT_ARG): New macro.
35282 (grub_openbsd_boot): Use 'openbsd_root'.
35283 (grub_cmd_openbsd): Fill 'openbsd_root'.
35285 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35287 * NEWS: Misc adjustments.
35289 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35291 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35293 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35295 * configure.ac: Bump version to 1.97.
35297 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35299 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35300 -mno-3dnow on x86 architectures. Some toolchains enable these
35301 features by default, but they rely on registers that aren't enabled
35302 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35304 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35306 Make entry text a bit more readable.
35308 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35310 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35312 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35314 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35316 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35319 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35321 * configure.ac: Add missing dollar.
35323 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35325 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35327 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35328 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35330 * include/grub/sparc64/libgcc.h: Likewise. Use
35331 preprocessor conditionals.
35333 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35335 * conf/common.rmk (grub-dumpbios): Remove rule.
35336 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35337 * util/grub-dumpbios.in: Remove file.
35339 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35341 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35342 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35344 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35345 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35348 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35349 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35350 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35351 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35354 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35356 * term/tparm.c: Switch to GPLv3.
35358 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35360 * include/grub/i386/cpuid.h: Add header protection.
35362 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35364 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35366 * include/grub/i386/cpuid.h: New file.
35367 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35368 (has_longmode): Rename to ...
35369 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35370 `static' attribute.
35371 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35372 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35373 on a CPU that doesn't implement AMD64 instruction set.
35375 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35377 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35378 that version.texi is rebuilt on version number changes.
35380 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35382 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35385 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35387 * util/i386/pc/grub-install.in: Source
35388 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35389 that the --grub-probe option will work.
35390 * util/sparc64/ieee1275/grub-install.in: Likewise.
35392 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35394 * configure.ac: Bump version to 1.97~beta4.
35396 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35398 Resync grub-mkdevicemap in x86_64-efi.
35400 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35401 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35402 `util/devicemap.c'.
35404 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35406 * util/grub-editenv.c (create_envblk_file): Write new block with a
35407 .new suffix and then rename it into place, to ensure atomic
35410 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35412 Do not automatically install headers.
35414 * Makefile.in (include_DATA): Remove. Update all users.
35416 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35418 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35419 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35421 * util/osdetect.lua: Remove.
35422 * script/lua/lauxlib.c: Likewise.
35423 * script/lua/ldebug.c: Likewise.
35424 * script/lua/grub_main.c: Likewise.
35425 * script/lua/lauxlib.h: Likewise.
35426 * script/lua/ldebug.h: Likewise.
35427 * script/lua/ltablib.c: Likewise.
35428 * script/lua/liolib.c: Likewise.
35429 * script/lua/lstrlib.c: Likewise.
35430 * script/lua/lualib.h: Likewise.
35431 * script/lua/ldo.c: Likewise.
35432 * script/lua/ldump.c: Likewise.
35433 * script/lua/ldo.h: Likewise.
35434 * script/lua/loslib.c: Likewise.
35435 * script/lua/lundump.c: Likewise.
35436 * script/lua/grub_lib.c: Likewise.
35437 * script/lua/ldblib.c: Likewise.
35438 * script/lua/lundump.h: Likewise.
35439 * script/lua/lmem.c: Likewise.
35440 * script/lua/grub_lib.h: Likewise.
35441 * script/lua/lmathlib.c: Likewise.
35442 * script/lua/lstate.c: Likewise.
35443 * script/lua/ltm.c: Likewise.
35444 * script/lua/lvm.c: Likewise.
35445 * script/lua/lmem.h: Likewise.
35446 * script/lua/lstate.h: Likewise.
35447 * script/lua/ltm.h: Likewise.
35448 * script/lua/ltable.c: Likewise.
35449 * script/lua/lvm.h: Likewise.
35450 * script/lua/llex.c: Likewise.
35451 * script/lua/lgc.c: Likewise.
35452 * script/lua/grub_lua.h: Likewise.
35453 * script/lua/loadlib.c: Likewise.
35454 * script/lua/lfunc.c: Likewise.
35455 * script/lua/lopcodes.c: Likewise.
35456 * script/lua/lparser.c: Likewise.
35457 * script/lua/ltable.h: Likewise.
35458 * script/lua/llex.h: Likewise.
35459 * script/lua/lgc.h: Likewise.
35460 * script/lua/lfunc.h: Likewise.
35461 * script/lua/lbaselib.c: Likewise.
35462 * script/lua/lopcodes.h: Likewise.
35463 * script/lua/lparser.h: Likewise.
35464 * script/lua/lzio.c: Likewise.
35465 * script/lua/linit.c: Likewise.
35466 * script/lua/lobject.c: Likewise.
35467 * script/lua/llimits.h: Likewise.
35468 * script/lua/lstring.c: Likewise.
35469 * script/lua/lzio.h: Likewise.
35470 * script/lua/lapi.c: Likewise.
35471 * script/lua/lcode.c: Likewise.
35472 * script/lua/lua.h: Likewise.
35473 * script/lua/lobject.h: Likewise.
35474 * script/lua/lstring.h: Likewise.
35475 * script/lua/lapi.h: Likewise.
35476 * script/lua/lcode.h: Likewise.
35477 * script/lua/luaconf.h: Likewise.
35479 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35481 * docs/grub.texi (Command-line and menu entry commands): Document
35482 date and echo commands.
35484 2009-09-24 Pavel Roskin <proski@gnu.org>
35486 * include/grub/kernel.h (struct grub_module_header): Remove
35487 `grub_module_header_types'. Make `type' unsigned. Make `size'
35488 32-bit on all platforms.
35489 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35490 8-bit field. Use grub_host_to_target32() for `size'.
35491 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35492 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35493 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35495 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35497 Fix "lost keypress" bug in at_keyboard.
35499 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35500 Checks for readyness of input buffer (without flushing it).
35501 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35502 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35504 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35506 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35507 size check within GRUB_MACHINE_PCBIOS section.
35509 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35511 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35513 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35514 KEYBOARD_ISREADY check.
35515 (grub_at_keyboard_checkkey): Rename to ...
35516 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35517 Remove gratuitous cast.
35519 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35521 * configure.ac: Call AC_PROG_MKDIR_P.
35522 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35523 version.texi in $(builddir) rather than $(srcdir).
35524 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35525 to makeinfo's @include search path.
35527 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35529 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35531 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35533 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35536 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35538 Build info documentation. Some code borrowed from Automake.
35540 * configure.ac: Check for makeinfo.
35541 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35542 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35544 (MOSTLYCLEANFILES): Add vti.tmp.
35545 (docs/version.texi, docs/stamp-vti): Update automatically.
35546 (docs/grub.info): Build info documentation. Use --force and ignore
35548 (all-local): Add $(INFOS).
35549 (install-local): Install info files.
35550 (uninstall): Uninstall info files.
35551 * docs/version.texi: Remove from revision control. This file is
35552 automatically generated on build now.
35553 * gendistlist.sh: Add `*.info'.
35555 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35557 * kern/term.c: Fix indentation.
35559 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35561 * util/hostdisk.c: Fix a comment.
35563 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35565 Fix regression introduced in r2539.
35567 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35570 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35572 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35573 os-prober. Under normal operation, it does not print anything to
35574 stderr; if it does, we need to debug it, and throwing away stderr
35575 makes that excessively difficult.
35577 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35579 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35581 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35583 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35584 AC_LANG_PROGRAM from autoconf.
35585 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35586 prototypes (fixes warning).
35588 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35589 `--disable-werror' was used.
35591 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35593 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35594 uninitialized `lastaddr'.
35596 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35598 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35600 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35602 * commands/test.c (get_fileinfo): Return immediately if
35603 grub_fs_probe fails.
35605 2009-09-14 José Martínez <xosemp@gmail.com>
35607 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35609 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35611 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35614 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35616 * configure.ac: Remove --enable-grub-pe2elf. Only build
35617 grub-pe2elf when needed by the build system itself.
35618 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35620 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35622 * configure.ac: Bump version to 1.97~beta3.
35623 * docs/version.texi: Likewise.
35625 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35627 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35628 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35630 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35631 (grub_linux_setup_video): ... to here (with some adjustments).
35633 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35635 Fix memory corruption issue (spotted by Colin Watson).
35637 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35638 causing returned size to be stored in an incorrect memory location.
35639 Fix use of uninitialized value when storing the returned size.
35641 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35643 Change clean rules to properly remove files
35645 * genmk.rb: add new clean rules
35646 * Makefile.in (clean): add the new targets
35647 (mostlyclean): likewise
35649 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35651 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35653 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35654 non-resident files.
35656 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35658 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35659 part of bug #27349.
35661 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35663 * util/grub-mkconfig.in: Make the created config mode 400 and
35664 print a warning if it fails.
35666 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35668 * util/grub.d/40_custom.in: Ask user to type custom entries below
35669 comment, rather than below 'exec tail' line.
35671 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35673 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35674 visible in grub.cfg.
35676 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35678 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35681 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35683 * docs/grub.cfg: Add an example menu entry for memtest86+.
35685 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35687 * config.guess: Update to latest version from config git.
35688 * config.sub: Likewise.
35690 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35692 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35693 unknown-command case. Fixes bug #27320.
35695 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35697 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35698 `help' if the command exists.
35700 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35702 * INSTALL: Require GCC 4.1.3 or later.
35704 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35706 * Makefile.in (RMKFILES): add i386-qemu.rmk
35707 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35708 $(srcdir)/stamp-h.in
35710 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35712 * util/grub-probe.c (probe): Comment out buggy codepath, which
35713 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35714 should be re-enabled after 1.97.
35716 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35718 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35721 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35723 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35724 unnecessary calls to grub_error.
35726 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35728 * NEWS: Mention `keystatus' and Unicode fonts.
35730 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35732 * configure.ac: Bump version to 1.97~beta2.
35733 * docs/version.texi: Likewise.
35735 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35737 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35738 containing unwind information in some cases where it previously did
35739 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35740 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35743 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35745 Embedding loadenv module into grub-emu
35747 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35749 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35750 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35751 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35752 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35753 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35754 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35756 2009-09-03 Magnus Granberg <zorry@ume.nu>
35758 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35759 include -fPIE in the default specs.
35760 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35763 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35765 * INSTALL: Note that GNU Bison 2.3 or later is required.
35767 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35769 * kern/i386/pc/startup.S: Fix typo.
35771 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35773 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35776 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35778 * docs/grub.texi (Naming convention): Describe one-based partition
35780 (Device syntax): Likewise.
35781 (File name syntax): Likewise.
35782 (Block list syntax): Likewise.
35783 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35785 (File name syntax): Likewise.
35786 (Command-line and menu entry commands): Document acpi, blocklist,
35787 crc, export, insmod, keystatus, ls, set, and unset commands.
35789 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35791 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35792 to avoid implying that only one of --shift, --ctrl, or --alt may be
35795 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35797 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35798 rather than comparing against S_IFREG, which will almost never work.
35800 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35802 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35803 (write_blocklists): Likewise.
35805 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35807 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35808 argument to grub_printf.
35810 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35812 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35815 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35817 * kern/file.c (grub_file_read): Spelling fix
35819 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35821 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35822 loading of headers in some cases.
35824 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35826 * configure.ac: Bump version to 1.97~beta1.
35827 * docs/version.texi: Likewise.
35829 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35831 * include/grub/i386/xnu.h: Add license header.
35832 include grub/err.h explicitly.
35834 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35836 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35837 to `ufs' in the vfs.root.mountfrom kernel parameter.
35839 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35841 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35843 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35844 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35846 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35847 `ARRAY_SIZE' macro.
35849 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35851 * kern/file.c (grub_file_read): Check offset.
35852 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35853 * fs/jfs.c (grub_jfs_read_file): Likewise.
35854 * fs/ntfs.c (grub_ntfs_read): Likewise.
35855 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35856 * fs/minix.c (grub_minix_read_file): Correct offset check.
35857 * fs/ufs.c (grub_ufs_read_file): Likewise.
35859 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35861 * term/i386/pc/console.c (bios_data_area): Cast
35862 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35864 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35866 1-bit optimised blitters.
35868 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35870 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35871 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35872 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35873 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35874 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35875 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35876 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35878 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35879 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35880 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35881 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35882 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35883 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35884 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35886 * video/video.c (grub_video_get_blit_format): Return
35887 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35889 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35891 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35892 the first argument to grub_printf.
35894 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35895 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35897 Add `getkeystatus' terminal method. Add a new `keystatus' command
35900 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35901 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35902 modifier key bitmasks.
35903 (struct grub_term_input): Add `getkeystatus' member.
35904 (grub_getkeystatus): Add prototype.
35905 * kern/term.c (grub_getkeystatus): New function.
35907 * include/grub/i386/pc/memory.h
35908 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35909 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35911 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35912 (grub_console_term_input): Set `getkeystatus' member.
35913 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35915 (grub_usb_keyboard_getreport): Likewise.
35916 (grub_usb_keyboard_checkkey): Likewise.
35917 (grub_usb_keyboard_getkeystatus): New function.
35918 (grub_usb_keyboard_term): Set `getkeystatus' member.
35920 * commands/keystatus.c: New file.
35921 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35922 (keystatus_mod_SOURCES): New variable.
35923 (keystatus_mod_CFLAGS): Likewise.
35924 (keystatus_mod_LDFLAGS): Likewise.
35925 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35926 commands/keystatus.c.
35927 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35928 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35929 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35930 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35931 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35932 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35934 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35936 Split befs.mod and afs.mod into *_be.mod and *.mod
35938 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35939 (grub_fstest_SOURCES): Likewise.
35940 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35941 (afs_be_mod_SOURCES): New variable.
35942 (afs_be_mod_CFLAGS): Likewise.
35943 (afs_be_mod_LDFLAGS): Likewise.
35944 (befs_be_mod_SOURCES): Likewise.
35945 (befs_be_mod_CFLAGS): Likewise.
35946 (befs_be_mod_LDFLAGS): Likewise.
35947 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35948 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35949 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35950 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35951 (grub_emu_SOURCES): Likewise.
35952 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35953 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35954 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35955 * fs/afs_be.c: New file.
35956 * fs/befs_be.c: New file.
35957 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35958 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35959 (U16): Replaced with ...
35960 (grub_afs_to_cpu16): ...this. All users updated.
35961 (U32): Replaced with ...
35962 (grub_afs_to_cpu32): ...this. All users updated.
35963 (U64): Replaced with ...
35964 (grub_afs_to_cpu64): ...this. All users updated.
35965 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35966 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35967 (grub_afs_validate_sblock): Check only one endianness.
35968 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35969 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35970 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35971 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35972 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35973 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35974 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35975 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35977 2009-08-26 Bean <bean123ch@gmail.com>
35979 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35981 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35982 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35983 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35985 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35987 NetBSD memory map support.
35989 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35990 (grub_netbsd_btinfo_mmap_header): New structure.
35991 (grub_netbsd_btinfo_mmap_entry): Likewise.
35992 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35994 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35996 Enable bsd.mod on coreboot.
35998 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35999 (bsd_mod_SOURCES): New variable.
36000 (bsd_mod_CFLAGS): Likewise.
36001 (bsd_mod_LDFLAGS): Likewise.
36002 (bsd_mod_ASFLAGS): Likewise.
36003 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
36004 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
36006 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36008 Cleanup NetBSD root support.
36010 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
36011 grub_bsd_get_device.
36014 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
36016 * util/grub.d/00_header.in: Move check for the video backend of
36017 gfxterm from here ...
36018 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
36019 a suitable video backend.
36021 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36023 Fix breakage in grub-setup.
36025 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
36026 "msdos_partition_map".
36028 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36030 Fix breakage in normal/auth.c.
36032 * normal/auth.c (grub_iswordseparator): New function.
36034 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36036 Authentication support.
36038 * commands/password.c: New file.
36039 * conf/common.rmk (pkglib_MODULES): Add password.mod.
36040 (password_mod_SOURCES): New variable.
36041 (password_mod_CFLAGS): Likewise.
36042 (password_mod_LDFLAGS): Likewise.
36043 (normal_mod_SOURCES): Add normal/auth.c.
36044 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
36046 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36047 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36048 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36049 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36050 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36051 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36052 * include/grub/auth.h: New file.
36053 * include/grub/err.h (grub_err_t): New enum value
36054 GRUB_ERR_ACCESS_DENIED.
36055 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
36057 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
36058 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
36060 * normal/auth.c: New file.
36061 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
36062 (grub_cmdline_run): Don't allow to go to command line without
36064 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
36065 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
36066 menuentry without superuser rights.
36067 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
36068 user isn't a superuser.
36070 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36072 Save space by inlining misc.c functions.
36074 * kern/misc.c (grub_iswordseparator): Made static.
36075 * kern/misc.c (grub_strcat): Moved from here ...
36076 * include/grub/misc.h (grub_strcat): ... here. Inlined.
36077 * kern/misc.c (grub_strncat): Moved from here ...
36078 * include/grub/misc.h (grub_strncat): ... here. Inlined.
36079 * kern/misc.c (grub_strcasecmp): Moved from here ...
36080 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
36081 * kern/misc.c (grub_strncasecmp): Moved from here ...
36082 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
36083 * kern/misc.c (grub_isalpha): Moved from here ...
36084 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
36085 * kern/misc.c (grub_isdigit): Moved from here ...
36086 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
36087 * kern/misc.c (grub_isgraph): Moved from here ...
36088 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
36089 * kern/misc.c (grub_tolower): Moved from here ...
36090 * include/grub/misc.h (grub_tolower): ... here. Inlined.
36092 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36094 * script/sh/function.c (grub_script_function_find): Cut error message
36095 not to flood terminal.
36096 * script/sh/lexer.c (grub_script_yylex): Remove command line length
36098 * script/sh/script.c (grub_script_arg_add): Duplicate string.
36100 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
36102 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
36103 `report' grub_uint8_t *.
36104 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
36105 Use a 50-millisecond timeout rather than just repeating
36106 grub_usb_keyboard_getreport 50 times.
36107 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
36109 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36111 Rename *_partition_map to part_*
36113 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
36114 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
36115 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
36116 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
36118 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
36120 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
36121 * util/grub-probe.c (probe_partmap): Don't transform partition name
36122 to get module name.
36124 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36126 Fix OpenBSD and NetBSD support.
36128 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
36129 memory address conflict.
36130 (OPENBSD_MMAP_ACPI): New definition.
36131 (OPENBSD_MMAP_NVS): Likewise.
36132 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
36133 and OPENBSD_MMAP_NVS.
36134 Add memory map terminator
36135 Explicit cast when calling grub_unix_real_boot.
36136 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
36138 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36140 Let user specify NetBSD root device.
36142 * loader/i386/bsd.c (netbsd_root): New variable.
36143 (netbsd_opts): New option 'root'.
36144 (NETBSD_ROOT_ARG): New macro.
36145 (grub_netbsd_boot): Use 'netbsd_root'.
36146 (grub_bsd_unload): Free 'netbsd_root'.
36147 (grub_cmd_netbsd): Fill 'netbsd_root'.
36149 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36151 Support for 64-bit NetBSD.
36153 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
36154 point when booting non-FreeBSD.
36156 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36158 Support --no-smp and --no-acpi for NetBSD.
36160 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
36161 (NETBSD_AB_NOACPI): Likewise.
36162 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
36163 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
36165 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36167 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36169 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36170 errors. Call grub_error when needed.
36172 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36174 * commands/search.c (search_fs): Try searching without autoload first.
36175 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36176 filesystem module explicitly for faster booting.
36178 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36180 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36182 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36184 * util/grub.d/30_os-prober.in: Disable os-prober if
36185 `GRUB_DISABLE_OS_PROBER' was set to true.
36187 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36189 * partmap/pc.c: Rename to ...
36190 * partmap/msdos.c: ... this. Update all users.
36191 (grub_pc_partition_map): Rename to ...
36192 (grub_msdos_partition_map): ... this. Update all users.
36194 * parttool/pcpart.c: Rename to ...
36195 * parttool/msdospart.c: ... this. Update all users.
36197 * include/grub/pc_partition.h: Rename to ...
36198 * include/grub/msdos_partition.h: ... this. Update all users.
36199 (grub_pc_partition_bsd_entry): Rename to ...
36200 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36201 (grub_pc_partition_disk_label): Rename to ...
36202 (grub_msdos_partition_disk_label): ... this. Update all users.
36203 (grub_pc_partition_entry): Rename to ...
36204 (grub_msdos_partition_entry): ... this. Update all users.
36205 (grub_pc_partition_mbr): Rename to ...
36206 (grub_msdos_partition_mbr): ... this. Update all users.
36207 (grub_pc_partition): Rename to ...
36208 (grub_msdos_partition): ... this. Update all users.
36209 (grub_pc_partition_is_empty): Rename to ...
36210 (grub_msdos_partition_is_empty): ... this. Update all users.
36211 (grub_pc_partition_is_extended): Rename to ...
36212 (grub_msdos_partition_is_extended): ... this. Update all users.
36213 (grub_pc_partition_is_bsd): Rename to ...
36214 (grub_msdos_partition_is_bsd): ... this. Update all users.
36216 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36217 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36218 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36219 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36220 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36221 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36222 (gpt_mod_LDFLAGS): Rename to ...
36223 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36224 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36225 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36226 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36227 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36228 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36229 (part_gpt_mod_LDFLAGS): ... this.
36230 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36231 `pcpart.mod' to `msdospart.mod'.
36232 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36234 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36235 (msdospart_mod_LDFLAGS): ... this.
36237 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36239 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36240 (openbsd_opts): Likewise.
36241 (netbsd_opts): Likewise.
36242 (freebsd_flags): Added 0 terminator.
36243 (openbsd_flags): Likewise.
36244 (netbsd_flags): Likewise.
36245 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36246 (grub_cmd_freebsd): Transformed into extended command.
36247 (grub_cmd_openbsd): Likewise.
36248 (grub_cmd_netbsd): Likewise.
36249 (cmd_freebsd): Changed type to grub_extcmd_t.
36250 (cmd_openbsd): Likewise.
36251 (cmd_netbsd): Likewise.
36252 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36253 grub_cmd_openbsd as extended commands.
36254 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36255 cmd_netbsd and cmd_openbsd
36257 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36259 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36261 2009-08-21 Pavel Roskin <proski@gnu.org>
36263 * Makefile.in (install-local): When checking if a file is in the
36264 build directory, use "test -e" to detect symlinks.
36266 * Makefile.in (install-local): Remove all files in
36267 $(DESTDIR)$(pkglibdir) before installing new files there.
36269 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36271 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36274 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36276 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36277 explicitly specified by the user.
36279 2009-08-18 Pavel Roskin <proski@gnu.org>
36281 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36282 grub_uint8_t pointer for data.
36283 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36285 * video/fb/fbutil.c: Remove unnecessary casts.
36287 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36291 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36292 (grub_vbe_set_video_mode): Save active mode info
36293 only after setting the mode.
36294 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36297 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36299 Rename variables for clarity.
36301 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36302 (active_vbe_mode_info): ... this. All users updated.
36303 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36305 (initial_mode): Rename to ...
36306 (initial_vbe_mode): ... this. All users updated.
36307 (mode_in_use): Rename to ..
36308 (vbe_mode_in_use): ... this. All users updated.
36309 (mode_list): Rename to ..
36310 (vbe_mode_list): ... this. All users updated.
36311 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36312 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36313 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36314 'mode_list_size' to 'vbe_mode_list_size'.
36315 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36316 'best_mode_info' to 'best_vbe_mode_info' and
36317 'best_mode' to 'best_vbe_mode'
36319 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36321 Remove duplicate grub_video_fb_get_video_ptr.
36323 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36324 (grub_video_fb_get_video_ptr): ... this.
36325 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36326 * video/fb/fbutil.c: Add comment about addressing.
36327 (get_data_ptr): Rename to ...
36328 (grub_video_fb_get_video_ptr): ... this. All users updated.
36329 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36331 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36333 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36334 grub_dprintf() that was just added.
36336 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36338 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36339 (DEFAULT_VIDEO_MODE): Remove macros.
36340 (grub_linux_boot): Remove assumption that Linux has FB support,
36341 and use "text" as default video mode.
36343 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36345 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36347 * fs/fat.c (grub_fat_read_data): Likewise.
36349 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36351 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36353 (grub_module): Likewise.
36355 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36357 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36358 mbi->cmdline but free playground.
36360 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36362 Handle group offset on UFS1.
36364 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36365 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36367 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36369 Split ufs.mod into ufs1.mod and ufs2.mod.
36371 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36372 (grub_fstest_SOURCES): Likewise.
36373 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36374 (ufs_mod_SOURCES): Remove.
36375 (ufs_mod_CFLAGS): Likewise.
36376 (ufs_mod_LDFLAGS): Likewise.
36377 (ufs1_mod_SOURCES): New variable.
36378 (ufs1_mod_CFLAGS): Likewise.
36379 (ufs1_mod_LDFLAGS): Likewise.
36380 (ufs2_mod_SOURCES): New variable.
36381 (ufs2_mod_CFLAGS): Likewise.
36382 (ufs2_mod_LDFLAGS): Likewise.
36383 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36384 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36386 (grub_emu_SOURCES): Likewise.
36387 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36388 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36389 (grub_setup_SOURCES): Likewise.
36390 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36391 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36392 (grub_setup_SOURCES): Likewise.
36393 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36395 * fs/ufs2.c: New file.
36396 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36398 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36402 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36403 subsystem at the end.
36404 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36405 (video_fb_mod_SOURCES): New variable.
36406 (video_fb_mod_CFLAGS): Likewise.
36407 (video_fb_mod_LDFLAGS): Likewise.
36408 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36409 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36410 * video/i386/pc/vbeblit.c: Moved from here ...
36411 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36412 * video/i386/pc/vbefill.c: Moved from here ...
36413 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36414 * video/i386/pc/vbeutil.c: Moved from here ...
36415 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36416 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36417 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36418 * include/grub/i386/pc/vbefill.h: Moved from here ...
36419 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36420 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36421 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36422 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36423 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36424 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36425 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36426 (grub_video_adapter): Added 'get_info_and_fini'.
36427 (grub_video_get_info_and_fini): New prototype.
36428 (grub_video_set_mode): make modestring const char *.
36429 * loader/i386/linux.c (grub_linux_setup_video): Use
36430 grub_video_get_info_and_fini.
36431 (grub_linux_boot): Move modesetting just before booting.
36432 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36433 grub_video_get_info_and_fini.
36434 * video/i386/pc/vbe.c: Moved framebuffer part ...
36435 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36436 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36437 grub_video_fbstd_colors and grub_video_fb_set_palette.
36438 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36439 grub_video_fb_init.
36440 (grub_video_vbe_fini): Use grub_video_fb_fini.
36441 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36442 render_target and use grub_video_fb_set_active_render_target and
36443 grub_video_fb_set_palette.
36444 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36445 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36446 (grub_video_vbe_adapter): Use framebuffer.
36447 * video/video.c (grub_video_get_info_and_fini): New function.
36448 (grub_video_set_mode): Make modestring const char *.
36449 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36450 values are already initialised.
36452 2009-08-14 Pavel Roskin <proski@gnu.org>
36454 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36456 * boot/i386/pc/diskboot.S: Likewise.
36457 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36458 sectors allow compilation on MacOSX.
36459 * conf/i386-pc.rmk: Enable unconditional compilation of
36462 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36464 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36465 * util/grub.d/00_header.in: Enter interruptible sleep if
36466 GRUB_HIDDEN_TIMEOUT is set.
36468 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36470 * include/grub/symbol.h: Add the LOCAL macro.
36471 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36472 starting with "L_".
36474 2009-08-13 Pavel Roskin <proski@gnu.org>
36476 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36477 any modern compilers we support.
36479 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36480 Use local labels starting with "L_" so that Apple assembler
36481 knows they are local.
36483 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36485 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36486 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36487 (bsd_kernel_types): ... this enum.
36489 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36490 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36491 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36493 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36494 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36495 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36498 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36500 * util/grub-dumpdevtree: Moved from here ...
36501 * util/i386/efi/grub-dumpdevtree: ... to here.
36502 (hexify): New function. Converts a string to its hex version.
36503 Generate hex versions of "efi" and "device-properties" by calling
36504 hexify() on the ASCII strings rather than by hardcoding numbers.
36506 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36508 * fs/jfs.c: Update copyright year.
36510 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36512 * util/grub.d/00_header.in: Fix a comment.
36513 * util/grub.d/10_linux.in: Likewise.
36514 * util/grub.d/10_windows.in: Likewise.
36515 * util/grub.d/10_hurd.in: Likewise.
36517 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36519 * util/grub-mkconfig.in: Allow the user to specify the used font
36522 2009-08-08 Pavel Roskin <proski@gnu.org>
36524 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36525 available, xfs.mod needs it now.
36527 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36528 the "g" modifier in sed when the intention is to strip something
36529 once. This fixes comparison of kernels with multiple dashes.
36531 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36532 on it. Add missing space before closing bracket. Fix
36533 misleading formatting.
36535 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36537 * docs/grub.texi: Major overhaul. Remove all sections that are
36538 specific to GRUB Legacy, or mostly composed of Legacy-specific
36541 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36543 * docs/version.texi: New file. Provides version information for
36546 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36548 * docs/grub.texi: Update CVS information to SVN.
36549 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36551 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36553 * util/grub-mkconfig.in: Remove a wrong `fi'.
36555 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36557 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36558 (grub_jfs_uuid): New function.
36559 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36561 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36563 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36565 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36566 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36568 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36570 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36571 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36574 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36575 not just "vmlinu[zx]".
36576 Moved from here ...
36577 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36580 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36581 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36584 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36586 * util/grub.d/10_freebsd.in: Use an absolute device path for
36587 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36589 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36591 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36592 handling of multiple abstraction modules.
36594 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36596 Fix a bug resulting in black screen when loading Linux using a
36599 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36602 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36603 (grub_vbe_bios_getset_dac_palette_width): New function.
36604 (grub_vbe_bios_get_dac_palette_width)
36605 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36606 grub_vbe_bios_getset_dac_palette_width()).
36608 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36609 check for return status.
36610 (grub_vbe_get_video_mode_info): When getting information for a packed
36611 mode (<= 8 bpp), obtain DAC palette width using
36612 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36613 {red,green,blue}_mark_size.
36615 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36617 * commands/search.c (options): Fix help output to match actual code.
36619 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36621 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36624 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36626 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36627 on XFS or ReiserFS.
36629 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36631 Support Apple partition map with sector size different from 512 bytes.
36633 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36634 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36635 and 'apart.partmap_size'.
36637 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36638 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36642 * commands/i386/cpuid.c (options): New variable.
36643 (grub_cmd_cpuid): Return real error.
36644 (GRUB_MOD_INIT(cpuid)): Declare options.
36646 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36648 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36651 2009-07-31 Bean <bean123ch@gmail.com>
36653 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36655 (grub_fshelp_node): Move inode field to the end.
36656 (grub_xfs_data): Remove inode field.
36657 (grub_xfs_inode_block): Calculate inode size using sblock.
36658 (grub_xfs_inode_offset): Likewise.
36659 (grub_xfs_read_inode): Calculate inode size using sblock.
36660 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36661 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36662 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36663 to match inode size.
36664 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36665 not accessible when data is null.
36666 (grub_xfs_open): Likewise.
36668 2009-07-31 Bean <bean123ch@gmail.com>
36670 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36671 Don't change pv->disk if it's already set.
36673 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36674 (grub_raid_register): ... here.
36675 (grub_raid_rescan): Removed.
36677 * include/grub/raid.h (grub_raid_rescan): Removed.
36679 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36680 (fstest): Replace grub_raid_rescan with module fini function followed
36683 * util/grub-probe.c: Add include file <grub/raid.h>.
36684 (probe_raid_level): New function.
36685 (probe): Detect abstraction by walking the disk device, support two
36686 level of abstraction (LVM on RAID) when detecting partition map.
36688 2009-07-31 Pavel Roskin <proski@gnu.org>
36690 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36691 to grub_zalloc(), it was erroneous.
36692 Reported by Bean <bean123ch@gmail.com>
36694 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36696 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36697 embedding zone, not only the first one.
36699 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36701 * term/gfxterm.c (clear_char): New function.
36702 (grub_virtual_screen_setup): Use clear_char.
36703 (scroll_up): Likewise.
36704 (grub_virtual_screen_cls): Likewise.
36706 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36708 * util/deviceiter.c (get_acceleraid_disk_name): New static
36710 (grub_util_iterate_devices): Handle Accelraid devices.
36711 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36713 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36715 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36716 separator for the suggested gfxpayload string (';' collides with the
36717 parser and needs escaping).
36719 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36721 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36722 Clear direction flag before jumping to OS.
36723 (grub_multiboot2_real_boot): Likewise.
36725 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36727 * util/i386/pc/grub-install: Fix parsing of --disk-module
36730 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36732 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36735 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36737 * util/grub-mkconfig.in (package_version): New variable.
36738 Use it do display the version.
36740 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36742 * kern/file.c (grub_file_open): Revert to previous check with
36745 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36747 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36748 from help line. It's out of sync with code.
36750 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36752 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36753 entries on failed boot.
36755 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36757 * kern/file.c (grub_file_open): Fix an error check.
36759 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36761 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36762 partition map couldn't be identified.
36764 2009-07-23 Pavel Roskin <proski@gnu.org>
36766 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36767 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36768 case of little endian words becomes just an optimization.
36769 Respect const modifier.
36770 (md5_final): Use code that doesn't depend on endianness.
36772 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36773 to avoid loss of upper bits if align is unsigned and shorter
36776 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36778 UUID support for UFS
36780 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36781 (grub_ufs_uuid): New function.
36782 (grub_ufs_fs): add .uuid
36784 2009-07-21 Pavel Roskin <proski@gnu.org>
36786 * kern/dl.c (grub_dl_check_header): Make static.
36788 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36790 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36791 add drivemap for Vista. It breaks Windows 7.
36793 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36795 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36798 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36802 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36803 (grub_fstest_SOURCES): Likewise.
36804 (pkglib_MODULES): Add befs.mod.
36805 (befs_mod_SOURCES): New variable.
36806 (befs_mod_CFLAGS): Likewise.
36807 (befs_mod_LDFLAGS): Likewise.
36808 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36809 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36810 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36811 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36812 (grub_setup_SOURCES): Likewise.
36813 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36814 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36815 (grub_setup_SOURCES): Likewise.
36816 * fs/befs.c: New file.
36817 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36818 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36819 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36820 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36821 (B_KEY_INDEX_ALIGN): New declaration.
36822 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36823 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36824 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36825 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36826 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36827 (grub_afs_mount) [MODE_BFS]: Likewise.
36828 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36829 (grub_afs_fs): Use GRUB_AFS_FSNAME
36830 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36831 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36832 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36833 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36835 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36837 * util/getroot.c (find_root_device): Add support for MacOSX.
36838 * util/hostdisk.c: Likewise.
36840 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36842 * font/font.c (find_glyph): Check whether a font is present to avoid
36843 segmentation fault.
36845 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36847 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36849 2009-07-20 Pavel Roskin <proski@gnu.org>
36851 * configure.ac: Trim excessively wordy excuses.
36853 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36855 Add symlink, mtime and label support to AtheFS.
36857 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36858 (grub_afs_iterate_dir): Handle symlinks.
36859 (grub_afs_open): Use grub_afs_read_symlink.
36860 (grub_afs_dir): Likewise.
36862 (grub_afs_label): New function.
36863 (grub_afs_fs): Add grub_afs_label.
36864 (grub_afs_read_symlink): New function.
36866 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36868 Fix AtheFS support.
36870 * fs/afs.c: Fix comments style.
36871 (grub_afs_blockrun): Declare as packed.
36872 (grub_afs_datastream): Likewise.
36873 (grub_afs_bnode): Likewise.
36874 (grub_afs_btree): Likewise.
36875 (grub_afs_sblock): Likewise.
36876 Declare `name' as char.
36877 (grub_afs_inode): Declare as packed.
36878 Change void *vnode to grub_uint32_t unused.
36879 (grub_afs_iterate_dir): Check that key_size is positive.
36880 (grub_afs_mount): Don't read superblock twice.
36881 (grub_afs_dir): Don't free node in case of error,
36882 grub_fshelp_find_file already handles this.
36883 (grub_afs_open): Likewise.
36885 2009-07-19 Pavel Roskin <proski@gnu.org>
36887 * Makefile.in: Remove LIBLZO and enable_lzo.
36888 * conf/i386-pc.rmk: Remove lzo support.
36889 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36890 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36892 * kern/i386/pc/lzo1x.S: Remove.
36893 * kern/i386/pc/startup.S: Remove lzo support.
36894 * util/i386/pc/grub-mkimage.c: Likewise.
36896 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36898 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36899 * fs/xfs.c (grub_xfs_dir): Likewise.
36900 * fs/afs.c (grub_afs_dir): Likewise.
36901 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36902 (grub_iso9660_open): Likewise.
36903 * fs/jfs.c (grub_jfs_open): Likewise.
36904 * fs/ext2.c (grub_ext2_dir): Likewise.
36905 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36906 * script/sh/lexer.c (grub_script_yylex): Likewise.
36908 2009-07-16 Pavel Roskin <proski@gnu.org>
36910 * configure.ac: Never add "-c" to CFLAGS.
36912 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36914 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36915 grub_cv_cc_efiemu should be used.
36917 * configure.ac: Typo fixes.
36919 * kern/mm.c (grub_zalloc): New function.
36920 (grub_debug_zalloc): Likewise.
36921 * include/grub/mm.h: Declare grub_zalloc() and
36922 grub_debug_zalloc().
36923 * util/misc.c (grub_zalloc): New function.
36924 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36925 instead of grub_malloc(), remove unneeded initializations.
36926 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36927 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36928 * commands/parttool.c (grub_cmd_parttool): Likewise.
36929 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36930 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36931 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36932 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36933 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36934 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36935 (grub_cmd_efiemu_pnvram): Likewise.
36936 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36937 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36938 (grub_iso9660_iterate_dir): Likewise.
36939 * fs/jfs.c (grub_jfs_opendir): Likewise.
36940 * fs/ntfs.c (list_file): Likewise.
36941 (grub_ntfs_mount): Likewise.
36942 * kern/disk.c (grub_disk_open): Likewise.
36943 * kern/dl.c (grub_dl_load_core): Likewise.
36944 * kern/elf.c (grub_elf_file): Likewise.
36945 * kern/env.c (grub_env_context_open): Likewise.
36946 (grub_env_set): Likewise.
36947 (grub_env_set_data_slot): Likewise.
36948 * kern/file.c (grub_file_open): Likewise.
36949 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36950 * loader/i386/multiboot.c (grub_module): Likewise.
36951 * loader/xnu.c (grub_xnu_create_key): Likewise.
36952 (grub_xnu_create_value): Likewise.
36953 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36954 (read_config_file): Likewise.
36955 * normal/menu_entry.c (make_screen): Likewise.
36956 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36957 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36958 * script/sh/script.c (grub_script_parse): Likewise.
36959 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36960 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36961 * video/readers/png.c (grub_png_output_byte): Likewise.
36962 (grub_video_reader_png): Likewise.
36964 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36966 Enable all targets that can be built by default
36968 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36969 grub-mkfont and grub-fstest if they can be built
36971 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36973 Fix hang and segmentation fault in grub-emu-usb
36975 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36976 * util/usb.c (grub_libusb_devices): likewise
36977 (grub_libusb_init): rename to ...
36978 (GRUB_MOD_INIT (libusb)):...this
36979 (grub_libusb_fini): rename to ..
36980 (GRUB_MOD_FINI (libusb)):...this
36981 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36982 * include/grub/disk.h (grub_raid_init): removed, it's useless
36983 (grub_raid_fini): likewise
36984 (grub_lvm_init): likewise
36985 (grub_lvm_fini): likewise
36986 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36989 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36993 * Makefile.in (LIBUSB): new macro
36994 * genmk.rb (Utility/print_tail): new method
36995 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36996 (top level): call util.print_tail at the end.
36998 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
37000 Make FreeBSD accept zpool.cache
37002 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
37003 type is /boot/zfs/zpool.cache
37005 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
37009 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
37010 correct wrong typedef
37011 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
37013 2009-07-15 Pavel Roskin <proski@gnu.org>
37015 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
37016 * kern/disk.c (struct grub_disk_cache): Likewise.
37018 * commands/probe.c (options): Typo fix.
37020 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
37021 Increase to 0x5a to accommodate FAT32. Adjust other offsets
37023 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
37025 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
37026 the end of "Error" to make the message more readable.
37028 * boot/i386/pc/boot.S (kernel_segment): Remove.
37029 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
37032 * boot/i386/pc/boot.S (boot_version): Remove.
37033 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
37036 * include/grub/i386/pc/boot.h: Sort all offsets.
37037 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
37038 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
37039 * boot/i386/pc/boot.S: Assert location of every offset listed in
37040 include/grub/i386/pc/boot.h.
37042 2009-07-13 Pavel Roskin <proski@gnu.org>
37044 * include/grub/i386/coreboot/machine.h: Rename
37045 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
37046 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
37047 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
37049 * kern/dl.c: Force native word size to suppress warnings when
37050 compiling grub-emu.
37052 * kern/device.c (grub_device_iterate): Change struct part_ent to
37053 hold the name, not a pointer to it. Use one grub_malloc() per
37054 partition, not two. Free partition_name if grub_malloc() fails.
37055 Set ents to NULL only before grub_partition_iterate() is called.
37057 2009-07-11 Bean <bean123ch@gmail.com>
37059 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
37062 2009-07-10 Bean <bean123ch@gmail.com>
37063 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
37065 * kern/ieee1275/openfw.c (grub_children_iterate)
37066 (grub_devalias_iterate): Fix size evaluation for property or path
37067 strings, which was broken since r2132.
37069 2009-07-07 Pavel Roskin <proski@gnu.org>
37071 * commands/search.c (search_file): Merge into ...
37072 (search_fs): ... this. Accept search type as argument.
37073 (grub_cmd_search): Pass search type to search_fs().
37075 * include/grub/util/console.h: New file.
37076 * util/console.c: Use it instead of grub/machine/console.h.
37077 * util/grub-emu.c: Likewise.
37079 * lib/arg.c (find_long_option): Remove.
37080 (find_long): Add `len' argument, make `s' const char *.
37081 (grub_arg_parse): Parse long options in place, not in a
37084 2009-07-06 Pavel Roskin <proski@gnu.org>
37086 * commands/search.c (search_fs): Fix potential NULL pointer
37089 * commands/search.c (search_fs): Replace QUID macro with quid_fn
37092 2009-07-06 Daniel Mierswa <impulze@impulze.org>
37094 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
37097 2009-07-05 Pavel Roskin <proski@gnu.org>
37099 * include/grub/i386/linux.h (struct linux_kernel_params):
37100 Restore padding3, it's still needed.
37102 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
37104 * util/osdetect.lua: Likewise.
37106 2009-07-05 Bean <bean123ch@gmail.com>
37108 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
37110 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
37111 (grub_lua_getenv): Likewise.
37112 (grub_lua_setenv): Likewise.
37113 (save_errno): New function.
37114 (push_result): Likewise.
37115 (grub_lua_enum_device): Likewise.
37116 (grub_lua_enum_file): Likewise.
37117 (grub_lua_file_open): Likewise.
37118 (grub_lua_file_close): Likewise.
37119 (grub_lua_file_seek): Likewise.
37120 (grub_lua_file_read): Likewise.
37121 (grub_lua_file_getline): Likewise.
37122 (grub_lua_file_getsize): Likewise.
37123 (grub_lua_file_getpos): Likewise.
37124 (grub_lua_file_eof): Likewise.
37125 (grub_lua_file_exist): Likewise.
37126 (grub_lua_add_menu): Likewise.
37128 * script/lua/grub_lua.h (isupper): New inline function.
37129 (islower): Likewise.
37130 (ispunct): Likewise.
37131 (isxdigit): Likewise.
37132 (strcspn): Change to normal function.
37133 (strpbkr): New function declaration.
37134 (memchr): Likewise.
37136 * script/lua/grub_main.c (scan_str): New function.
37137 (strcspn): Likewise.
37138 (strpbrk): Likewise.
37139 (memchr): Likewise.
37141 * script/lua/linit.c (lualibs): Enable the string library.
37143 * util/osdetect.lua: New file.
37145 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
37147 * include/grub/i386/linux.h (struct linux_kernel_params): Add
37148 `capabilities' member.
37150 2009-07-02 Pavel Roskin <proski@gnu.org>
37152 * genparttoollist.sh: Add missing newline at the end.
37154 2009-07-01 Pavel Roskin <proski@gnu.org>
37156 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
37158 * util/hostdisk.c (open_device): Remove `const' from
37159 `sysctl_size', as sysctlbyname() can change it (in this case it
37160 doesn't actually happen).
37162 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
37163 using signed long int constants.
37165 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
37166 constant to avoid a warning on FreeBSD.
37168 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37171 * Makefile.in: Install include/grub/machine symlink.
37173 * Makefile.in: When installing symlinks, use "cp -fR", which
37174 works on FreeBSD and MacOSX.
37175 From Yves Blusseau <cl7m42e02@sneakemail.com>
37177 * kern/dl.c (grub_dl_resolve_symbol): Make static.
37178 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37180 * util/misc.c: Move grub_reboot() and grub_halt() ...
37181 * util/grub-emu.c: ... here. Make main_env static.
37182 * include/grub/util/misc.h: Remove main_env.
37184 * kern/mm.c: Use correct format to print size_t.
37186 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37187 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37188 * kern/powerpc/dl.c: Likewise.
37189 * kern/sparc64/dl.c: Likewise.
37190 * kern/x86_64/dl.c: Likewise.
37192 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37194 Fix grub-emu build on sparc64-ieee1275.
37196 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37197 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37199 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37201 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37202 (grub_reboot, grub_halt): New functions.
37204 * util/i386/pc/misc.c: Delete. Update all users.
37205 * util/sparc64/ieee1275/misc.c: Likewise.
37206 * util/powerpc/ieee1275/misc.c: Likewise.
37208 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37210 * conf/i386.rmk (setjmp_mod_SOURCES)
37211 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37212 * conf/common.rmk (setjmp_mod_SOURCES)
37213 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37214 to use $(target_cpu).
37215 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37216 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37217 * conf/powerpc-ieee1275.rmk: Likewise.
37218 * conf/sparc64-ieee1275.rmk: Likewise.
37220 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37221 $(target_cpu) for kern/$(target_cpu)/dl.c.
37222 * conf/i386-efi.rmk: Likewise.
37223 * conf/i386-ieee1275.rmk: Likewise.
37224 * conf/x86_64-efi.rmk: Likewise.
37225 * conf/i386-coreboot.rmk: Likewise.
37226 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37227 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37228 kern/$(target_cpu)/cache.S.
37229 * conf/sparc64-ieee1275.rmk: Likewise.
37231 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37233 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37234 type to `grub_uint8_t', and adjust `padding9' accordingly.
37236 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37238 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37240 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37241 assembly in final jump, using register constraints.
37243 (grub_linux_boot): For text mode, initialize `have_vga' using
37244 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37246 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37247 right before the final jump.
37249 Set `video_mode' to 0x3.
37251 Document initialization of `video_page', `video_mode' and
37254 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37256 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37257 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37258 and set GRUB_LINUX_FLAG_QUIET appropriately.
37260 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37262 Fix build on Debian / sparc.
37264 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37266 2009-06-28 Pavel Roskin <proski@gnu.org>
37268 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37271 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37273 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37275 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37278 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37282 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37283 file can't be opened. grub_file_open() is already supposed to set
37284 grub_errno / grub_errmsg appropriately.
37285 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37287 2009-06-27 Pavel Roskin <proski@gnu.org>
37288 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37290 * include/grub/dl.h: Include grub/elf.h.
37291 (struct grub_dl): Add symtab field.
37292 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37293 GRUB_MODULES_MACHINE_READONLY.
37294 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37295 of the header for read-only modules.
37296 (grub_dl_unload): Free mod->symtab for read-only modules.
37297 * kern/i386/dl.c: Use mod->symtab.
37298 * kern/powerpc/dl.c: Likewise.
37299 * kern/sparc64/dl.c: Likewise.
37300 * kern/x86_64/dl.c: Likewise.
37302 * conf/i386-qemu.rmk: New file.
37303 * kern/i386/qemu/startup.S: Likewise.
37304 * kern/i386/qemu/mmap.c: Likewise.
37305 * boot/i386/qemu/boot.S: Likewise.
37306 * include/grub/i386/qemu/time.h: Likewise.
37307 * include/grub/i386/qemu/serial.h: Likewise.
37308 * include/grub/i386/qemu/kernel.h: Likewise.
37309 * include/grub/i386/qemu/console.h: Likewise.
37310 * include/grub/i386/qemu/boot.h: Likewise.
37311 * include/grub/i386/qemu/init.h: Likewise.
37312 * include/grub/i386/qemu/machine.h: Likewise.
37313 * include/grub/i386/qemu/loader.h: Likewise.
37314 * include/grub/i386/qemu/memory.h: Likewise.
37316 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37317 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37318 [qemu] (pkglib_IMAGES): Add `boot.img'.
37319 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37320 [qemu] (boot_img_FORMAT): New variables.
37321 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37322 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37323 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37324 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37325 [qemu] (kernel_img_FORMAT): New variables.
37327 * configure.ac: Recognise `i386-qemu'.
37329 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37330 (for no compression).
37331 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37332 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37333 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37334 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37337 2009-06-27 Pavel Roskin <proski@gnu.org>
37339 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37341 * efiemu/prepare32.c: Likewise.
37342 * efiemu/prepare64.c: Likewise.
37344 2009-06-26 Pavel Roskin <proski@gnu.org>
37346 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37347 * include/grub/elf.h: Define symbols without "32" or "64" based
37348 on GRUB_TARGET_WORDSIZE.
37349 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37350 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37352 * efiemu/loadcore64.c: Likewise.
37353 * loader/i386/bsd32.c: Likewise.
37354 * loader/i386/bsd64.c: Likewise.
37355 * kern/dl.c: Remove own ELF definitions.
37356 * util/i386/efi/grub-mkimage.c: Likewise.
37358 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37360 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37361 segment 0x0 unconditionally, because the reference generated by
37362 GAS is an absolute address.
37364 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37366 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37367 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37369 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37371 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37372 indexes. Check for -f explicitly.
37373 (search_file): Improve error message.
37374 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37376 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37378 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37379 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37381 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37383 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37384 * conf/i386-ieee1275.rmk: Likewise.
37385 * conf/i386-coreboot.rmk: Likewise.
37387 * kern/i386/pc/startup.S (grub_stop): Remove function.
37388 * kern/i386/ieee1275/startup.S: Likewise.
37389 * kern/i386/coreboot/startup.S: Likewise.
37390 * kern/i386/misc.S (grub_stop): New function.
37392 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37394 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37395 * kern/i386/realmode.S (real_to_prot): ... to here.
37397 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37399 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37401 (kernel_elf_SOURCES): Rename to ...
37402 (kernel_img_SOURCES): ... this.
37403 (kernel_elf_HEADERS): Rename to ...
37404 (kernel_img_HEADERS): ... this. Update all users.
37405 (kernel_elf_ASFLAGS): Rename to ...
37406 (kernel_img_ASFLAGS): ... this.
37407 (kernel_elf_CFLAGS): Rename to ...
37408 (kernel_img_CFLAGS): ... this.
37409 (kernel_elf_LDFLAGS): Rename to ...
37410 (kernel_img_LDFLAGS): ... this.
37411 * conf/i386-coreboot.rmk: Likewise.
37412 * conf/powerpc-ieee1275.rmk: Likewise.
37414 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37417 2009-06-21 Pavel Roskin <proski@gnu.org>
37419 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37420 to match nested functions.
37421 * loader/sparc64/ieee1275/linux.c: Likewise.
37423 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37425 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37427 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37428 all i386 platforms.
37430 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37432 Fix asm file handling on ELF, and remove workarounds.
37434 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37435 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37436 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37437 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37439 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37441 Load BSD ELF modules
37443 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37444 and loader/i386/bsd64.c
37445 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37446 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37447 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37448 (grub_freebsd_load_elfmodule32): New declaration
37449 (grub_freebsd_load_elfmoduleobj64): Likewise
37450 (grub_freebsd_load_elf_meta32): Likewise
37451 (grub_freebsd_load_elf_meta64): Likewise
37452 (grub_freebsd_add_meta): Likewise
37453 (grub_freebsd_add_meta_module): Likewise
37454 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37455 (grub_freebsd_add_meta_module): Likewise and move module-specific
37456 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37457 (grub_cmd_freebsd): Add elf-kernel specific parts
37458 based on grub_freebsd_add_meta_module
37459 (grub_cmd_freebsd_module): Add type parsing moved from
37460 grub_freebsd_add_meta_module
37461 (grub_cmd_freebsd_module_elf): New function
37462 (cmd_freebsd_module_elf): New variable
37463 (GRUB_MOD_INIT): Register freebsd_module_elf
37464 * loader/i386/bsd32.c: New file
37465 * loader/i386/bsd64.c: Likewise
37466 * loader/i386/bsdXX.c: Likewise
37467 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37468 (grub_elf64_load): Likewise
37469 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37471 (grub_elf64_load_hook_t): Likewise
37473 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37475 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37477 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37478 don't write a menu entry for recovery mode.
37480 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37482 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37483 after it's no longer needed.
37485 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37487 * include/grub/i386/loader.h (grub_linux_prot_size)
37488 (grub_linux_tmp_addr, grub_linux_real_addr)
37489 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37490 GRUB_MACHINE_PCBIOS.
37491 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37492 common grub_util_info() call to ...
37493 (generate_image): ... here.
37494 Fix use of uninitialized memory, comparison of signed with
37495 unsigned integers and memory leak.
37496 Remove bogus module address message.
37498 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37500 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37502 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37504 2009-06-19 Pavel Roskin <proski@gnu.org>
37506 * configure.ac: Remove stray AC_MSG_CHECKING.
37508 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37510 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37512 2009-06-18 Pavel Roskin <proski@gnu.org>
37514 * conf/common.rmk: Add fs_file.mod.
37515 * disk/fs_file.c: New file.
37516 * include/grub/disk.h (enum grub_disk_dev_id): Add
37517 GRUB_DISK_DEVICE_FILE_ID.
37519 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37521 Fix build with Apple's toolchain. Part 2
37523 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37526 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37528 Fix build with Apple's toolchain. Part 1
37530 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37532 * configure.ac: remove a leftover AC_MSG_RESULT
37533 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37536 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37540 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37541 (decomp_block): initialize ch
37542 use grub_memcpy instead of memcpy
37544 2009-06-17 Pavel Roskin <proski@gnu.org>
37546 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37547 version, use declarations needed to use vga_text as the startup
37550 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37551 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37553 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37554 and grub_at_keyboard_fini(), it's done on module load and
37557 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37559 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37560 file can't be found.
37561 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37563 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37565 Fix newline handling
37567 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37568 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37569 (grub_script_yylex): don't segfault on unterminated script
37570 newline terminates command and variable
37572 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37574 avoid double grub_adjust_range call. Bug reported by David Simner
37576 * kern/disk.c (grub_disk_write): change to raw disk access before
37579 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37581 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37582 spaces, for the benefit of help2man.
37583 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37585 2009-06-16 Pavel Roskin <proski@gnu.org>
37587 * kern/i386/halt.c: Include grub/machine/init.h.
37588 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37590 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37592 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37593 drivemap menuentry.
37595 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37597 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37600 2009-06-16 Pavel Roskin <proski@gnu.org>
37602 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37603 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37604 save %dx, we only need %dl and we never change it.
37605 * boot/i386/pc/cdboot.S: Don't set the root drive.
37606 * boot/i386/pc/pxeboot.S: Likewise.
37607 * include/grub/i386/pc/boot.h: Remove
37608 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37609 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37610 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37611 * kern/i386/pc/init.c (make_install_device): Remove references
37612 to grub_root_drive.
37613 * kern/i386/pc/startup.S: Likewise.
37614 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37616 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37620 * commands/xnu_uuid.c: new file
37621 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37622 (xnu_uuid_mod_SOURCES): new variable
37623 (xnu_uuid_mod_CFLAGS): likewise
37624 (xnu_uuid_mod_LDFLAGS): likewise
37625 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37626 * conf/i386-ieee1275.rmk: likewise
37627 * conf/i386-pc.rmk: likewise
37628 * conf/powerpc-ieee1275.rmk: likewise
37629 * conf/sparc64-ieee1275.rmk: likewise
37630 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37632 2009-06-16 Pavel Roskin <proski@gnu.org>
37634 * configure.ac: Avoid '==' in test command, it's not portable.
37636 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37640 * commands/probe.c: new file
37641 * conf/common.rmk (pkglib_MODULES): add probe.mod
37642 (probe_mod_SOURCES): new variable
37643 (probe_mod_CFLAGS): likewise
37644 (probe_mod_LDFLAGS): likewise
37645 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37646 * conf/i386-ieee1275.rmk: likewise
37647 * conf/i386-pc.rmk: likewise
37648 * conf/powerpc-ieee1275.rmk: likewise
37649 * conf/sparc64-ieee1275.rmk: likewise
37651 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37653 Fix handling of string like \"hello\" and "a
37656 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37657 (grub_script_yylex): fix parsing of quoting, escaping and newline
37659 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37661 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37664 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37666 * util/grub-mkconfig.in: Fix parsing of --output option.
37668 2009-06-12 Pavel Roskin <proski@gnu.org>
37670 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37671 genmk.rb don't need to be generated or installed.
37673 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37675 * commands/i386/pc/drivemap_int13h.S: add more comments
37677 2009-06-11 Pavel Roskin <proski@gnu.org>
37679 * Makefile.in (uninstall): Uninstall manuals.
37681 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37682 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37683 and update-grub_lib in two places.
37684 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37686 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37687 a compiler warning.
37689 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37690 `entry_lo' to fix variable shadowing.
37692 2009-06-11 Christian Franke <franke@computer.org>
37694 * kern/misc.c (__enable_execute_stack): Add missing return type
37695 to prevent gcc warning.
37697 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37699 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37701 2009-06-11 Pavel Roskin <proski@gnu.org>
37703 * Makefile.in: Don't rely on any scripts being executable.
37704 Always use $(SHELL) to run shell scripts.
37706 * configure.ac: Always define ___main if using -nostdlib. This
37707 fixes tests on Cygwin.
37709 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37713 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37714 is in bytes and not in blocks
37716 2009-06-11 Pavel Roskin <proski@gnu.org>
37718 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37721 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37723 * util/grub.d/30_os-prober.in: Fix a comment. Source
37724 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37725 to set the root device. Place drivemap command in the generated
37728 2009-06-11 Pavel Roskin <proski@gnu.org>
37730 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37731 have long been resolved.
37733 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37735 * util/grub.d/10_linux.in: Capitalise "Linux".
37737 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37739 2009-06-11 Pavel Roskin <proski@gnu.org>
37741 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37742 fix a gcc warning and ensure that the function won't ever exit.
37744 * kern/i386/ieee1275/init.c: Add missing prototype for
37745 grub_stop_floppy().
37747 * loader/ieee1275/multiboot2.c [__i386__]: Include
37748 grub/cpu/multiboot.h.
37750 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37751 casts to short - they are not portable and cause warnings. Fix
37752 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37754 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37758 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37760 (grub_get_root_biosnumber_saved): new variable
37761 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37762 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37763 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37764 %dx after the call if necessary
37765 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37766 (boot_mod_SOURCES): remove
37767 (boot_mod_CFLAGS): remove
37768 (boot_mod_LDFLAGS): remove
37769 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37770 (boot_mod_SOURCES): new variable
37771 (boot_mod_CFLAGS): likewise
37772 (boot_mod_LDFLAGS): likewise
37773 * conf/i386-efi.rmk: likewise
37774 * conf/i386-ieee1275.rmk: likewise
37775 * conf/i386-pc.rmk: likewise
37776 * conf/powerpc-ieee1275.rmk: likewise
37777 * conf/sparc64-ieee1275.rmk: likewise
37778 * conf/x86_64-efi.rmk: likewise
37779 * include/grub/i386/pc/biosnum.h: new file
37780 * lib/i386/pc/biosnum.c: likewise
37781 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37782 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37783 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37785 2009-06-10 Pavel Roskin <proski@gnu.org>
37787 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37788 Use separate variables. Read only the file size at the end, but
37789 not the checksum that we don't use.
37791 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37792 Adjust all callers.
37794 * kern/ieee1275/openfw.c: Remove libc includes.
37795 * kern/ieee1275/cmain.c: Likewise.
37796 * include/grub/ieee1275/ieee1275.h: Likewise.
37798 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37801 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37803 * Makefile.in: Remove all trailing whitespace.
37804 * conf/i386-pc.rmk: Likewise.
37805 * conf/powerpc-ieee1275.rmk: Likewise.
37806 * conf/sparc64-ieee1275.rmk: Likewise.
37807 * docs/grub.texi: Likewise.
37808 * docs/texinfo.tex: Likewise.
37809 * disk/fs_uuid.c: Likewise.
37810 * disk/lvm.c: Likewise.
37811 * disk/scsi.c: Likewise.
37812 * disk/ata.c: Likewise.
37813 * disk/ieee1275/ofdisk.c: Likewise.
37814 * disk/i386/pc/biosdisk.c: Likewise.
37815 * disk/host.c: Likewise.
37816 * disk/raid.c: Likewise.
37817 * disk/efi/efidisk.c: Likewise.
37818 * disk/usbms.c: Likewise.
37819 * disk/memdisk.c: Likewise.
37820 * disk/loopback.c: Likewise.
37821 * kern/powerpc/dl.c: Likewise.
37822 * kern/device.c: Likewise.
37823 * kern/dl.c: Likewise.
37824 * kern/sparc64/dl.c: Likewise.
37825 * kern/ieee1275/ieee1275.c: Likewise.
37826 * kern/term.c: Likewise.
37827 * kern/fs.c: Likewise.
37828 * kern/i386/dl.c: Likewise.
37829 * kern/i386/pc/startup.S: Likewise.
37830 * kern/i386/pc/init.c: Likewise.
37831 * kern/i386/pc/mmap.c: Likewise.
37832 * kern/i386/pc/lzo1x.S: Likewise.
37833 * kern/i386/ieee1275/init.c: Likewise.
37834 * kern/i386/realmode.S: Likewise.
37835 * kern/i386/tsc.c: Likewise.
37836 * kern/partition.c: Likewise.
37837 * kern/corecmd.c: Likewise.
37838 * kern/file.c: Likewise.
37839 * kern/efi/efi.c: Likewise.
37840 * kern/efi/init.c: Likewise.
37841 * kern/efi/mm.c: Likewise.
37842 * kern/main.c: Likewise.
37843 * kern/err.c: Likewise.
37844 * kern/env.c: Likewise.
37845 * kern/disk.c: Likewise.
37846 * kern/generic/millisleep.c: Likewise.
37847 * kern/generic/rtc_get_time_ms.c: Likewise.
37848 * kern/misc.c: Likewise.
37849 * kern/parser.c: Likewise.
37850 * genmk.rb: Likewise.
37851 * configure.ac: Likewise.
37852 * boot/i386/pc/diskboot.S: Likewise.
37853 * boot/i386/pc/pxeboot.S: Likewise.
37854 * boot/i386/pc/boot.S: Likewise.
37855 * boot/i386/pc/lnxboot.S: Likewise.
37856 * boot/i386/pc/cdboot.S: Likewise.
37857 * parttool/pcpart.c: Likewise.
37858 * video/readers/tga.c: Likewise.
37859 * video/video.c: Likewise.
37860 * video/bitmap.c: Likewise.
37861 * lib/envblk.c: Likewise.
37862 * lib/i386/setjmp.S: Likewise.
37863 * fs/xfs.c: Likewise.
37864 * fs/afs.c: Likewise.
37865 * fs/fat.c: Likewise.
37866 * fs/ntfs.c: Likewise.
37867 * fs/udf.c: Likewise.
37868 * fs/affs.c: Likewise.
37869 * fs/iso9660.c: Likewise.
37870 * fs/hfs.c: Likewise.
37871 * fs/fshelp.c: Likewise.
37872 * fs/ext2.c: Likewise.
37873 * fs/jfs.c: Likewise.
37874 * fs/reiserfs.c: Likewise.
37875 * fs/hfsplus.c: Likewise.
37876 * fs/minix.c: Likewise.
37877 * fs/cpio.c: Likewise.
37878 * fs/sfs.c: Likewise.
37879 * fs/ufs.c: Likewise.
37880 * efiemu/prepare.c: Likewise.
37881 * efiemu/loadcore_common.c: Likewise.
37882 * efiemu/runtime/efiemu.sh: Likewise.
37883 * efiemu/runtime/efiemu.S: Likewise.
37884 * efiemu/runtime/efiemu.c: Likewise.
37885 * efiemu/pnvram.c: Likewise.
37886 * efiemu/main.c: Likewise.
37887 * efiemu/i386/pc/cfgtables.c: Likewise.
37888 * efiemu/i386/loadcore64.c: Likewise.
37889 * efiemu/i386/loadcore32.c: Likewise.
37890 * efiemu/loadcore.c: Likewise.
37891 * efiemu/symbols.c: Likewise.
37892 * efiemu/mm.c: Likewise.
37893 * include/grub/autoefi.h: Likewise.
37894 * include/grub/datetime.h: Likewise.
37895 * include/grub/term.h: Likewise.
37896 * include/grub/hfs.h: Likewise.
37897 * include/grub/lvm.h: Likewise.
37898 * include/grub/i386/tsc.h: Likewise.
37899 * include/grub/i386/linux.h: Likewise.
37900 * include/grub/i386/xnu.h: Likewise.
37901 * include/grub/i386/efiemu.h: Likewise.
37902 * include/grub/i386/pc/biosdisk.h: Likewise.
37903 * include/grub/i386/pc/memory.h: Likewise.
37904 * include/grub/i386/pc/vbe.h: Likewise.
37905 * include/grub/parttool.h: Likewise.
37906 * include/grub/video.h: Likewise.
37907 * include/grub/memory.h: Likewise.
37908 * include/grub/fs.h: Likewise.
37909 * include/grub/partition.h: Likewise.
37910 * include/grub/xnu.h: Likewise.
37911 * include/grub/efi/api.h: Likewise.
37912 * include/grub/efi/pe32.h: Likewise.
37913 * include/grub/efi/memory.h: Likewise.
37914 * include/grub/multiboot.h: Likewise.
37915 * include/grub/usbdesc.h: Likewise.
37916 * include/grub/multiboot2.h: Likewise.
37917 * include/grub/acpi.h: Likewise.
37918 * include/grub/efiemu/efiemu.h: Likewise.
37919 * include/grub/disk.h: Likewise.
37920 * include/grub/ieee1275/ieee1275.h: Likewise.
37921 * include/grub/net.h: Likewise.
37922 * include/grub/machoload.h: Likewise.
37923 * include/grub/macho.h: Likewise.
37924 * include/multiboot.h: Likewise.
37925 * genmoddep.awk: Likewise.
37926 * normal/main.c: Likewise.
37927 * normal/menu_entry.c: Likewise.
37928 * normal/menu_viewer.c: Likewise.
37929 * normal/completion.c: Likewise.
37930 * normal/cmdline.c: Likewise.
37931 * normal/misc.c: Likewise.
37932 * normal/datetime.c: Likewise.
37933 * bus/usb/usbtrans.c: Likewise.
37934 * bus/usb/ohci.c: Likewise.
37935 * bus/usb/uhci.c: Likewise.
37936 * bus/usb/usb.c: Likewise.
37937 * mmap/efi/mmap.c: Likewise.
37938 * mmap/i386/pc/mmap_helper.S: Likewise.
37939 * mmap/i386/pc/mmap.c: Likewise.
37940 * mmap/i386/mmap.c: Likewise.
37941 * mmap/i386/uppermem.c: Likewise.
37942 * mmap/mmap.c: Likewise.
37943 * commands/acpi.c: Likewise.
37944 * commands/echo.c: Likewise.
37945 * commands/blocklist.c: Likewise.
37946 * commands/loadenv.c: Likewise.
37947 * commands/usbtest.c: Likewise.
37948 * commands/boot.c: Likewise.
37949 * commands/parttool.c: Likewise.
37950 * commands/search.c: Likewise.
37951 * commands/cat.c: Likewise.
37952 * commands/i386/pc/play.c: Likewise.
37953 * commands/i386/pc/drivemap.c: Likewise.
37954 * commands/i386/pc/vbeinfo.c: Likewise.
37955 * commands/i386/pc/acpi.c: Likewise.
37956 * commands/i386/pc/vbetest.c: Likewise.
37957 * commands/ls.c: Likewise.
37958 * commands/cmp.c: Likewise.
37959 * commands/test.c: Likewise.
37960 * commands/efi/acpi.c: Likewise.
37961 * commands/gptsync.c: Likewise.
37962 * commands/help.c: Likewise.
37963 * partmap/amiga.c: Likewise.
37964 * partmap/apple.c: Likewise.
37965 * partmap/acorn.c: Likewise.
37966 * partmap/pc.c: Likewise.
37967 * partmap/sun.c: Likewise.
37968 * partmap/gpt.c: Likewise.
37969 * script/sh/lexer.c: Likewise.
37970 * script/sh/function.c: Likewise.
37971 * font/font.c: Likewise.
37972 * font/font_cmd.c: Likewise.
37973 * loader/powerpc/ieee1275/linux.c: Likewise.
37974 * loader/efi/chainloader.c: Likewise.
37975 * loader/multiboot_loader.c: Likewise.
37976 * loader/macho.c: Likewise.
37977 * loader/i386/multiboot.c: Likewise.
37978 * loader/i386/linux.c: Likewise.
37979 * loader/i386/pc/linux.c: Likewise.
37980 * loader/i386/pc/multiboot2.c: Likewise.
37981 * loader/i386/pc/chainloader.c: Likewise.
37982 * loader/i386/pc/xnu.c: Likewise.
37983 * loader/i386/bsd_trampoline.S: Likewise.
37984 * loader/i386/efi/linux.c: Likewise.
37985 * loader/i386/multiboot_elfxx.c: Likewise.
37986 * loader/i386/bsd_helper.S: Likewise.
37987 * loader/i386/bsd.c: Likewise.
37988 * loader/i386/linux_trampoline.S: Likewise.
37989 * loader/i386/xnu_helper.S: Likewise.
37990 * loader/i386/xnu.c: Likewise.
37991 * loader/i386/bsd_pagetable.c: Likewise.
37992 * loader/i386/multiboot_helper.S: Likewise.
37993 * loader/xnu.c: Likewise.
37994 * loader/xnu_resume.c: Likewise.
37995 * io/gzio.c: Likewise.
37996 * term/efi/console.c: Likewise.
37997 * term/terminfo.c: Likewise.
37998 * term/ieee1275/ofconsole.c: Likewise.
37999 * term/i386/pc/serial.c: Likewise.
38000 * term/i386/pc/vesafb.c: Likewise.
38001 * term/i386/pc/vga.c: Likewise.
38002 * term/usb_keyboard.c: Likewise.
38003 * term/gfxterm.c: Likewise.
38004 * aclocal.m4: Likewise.
38005 * util/lvm.c: Likewise.
38006 * util/grub.d/30_os-prober.in: Likewise.
38007 * util/grub.d/10_hurd.in: Likewise.
38008 * util/console.c: Likewise.
38009 * util/grub-macho2img.c: Likewise.
38010 * util/grub-probe.c: Likewise.
38011 * util/hostfs.c: Likewise.
38012 * util/i386/pc/grub-mkimage.c: Likewise.
38013 * util/i386/pc/grub-setup.c: Likewise.
38014 * util/i386/efi/grub-mkimage.c: Likewise.
38015 * util/grub-mkconfig.in: Likewise.
38016 * util/raid.c: Likewise.
38017 * util/resolve.c: Likewise.
38018 * util/grub-mkdevicemap.c: Likewise.
38019 * util/grub-emu.c: Likewise.
38020 * util/getroot.c: Likewise.
38021 * util/hostdisk.c: Likewise.
38022 * util/usb.c: Likewise.
38023 * util/grub-editenv.c: Likewise.
38024 * util/misc.c: Likewise.
38026 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
38028 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
38029 `genparttoollist.sh'.
38030 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
38031 Add `*.sh' to the list find searches for and change `mdate.sh'
38034 2009-06-10 Pavel Roskin <proski@gnu.org>
38036 * include/grub/multiboot2.h: Provide compatibility defines for
38038 * include/multiboot2.h: Include stdint.h only if needed, using
38040 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
38042 * loader/ieee1275/multiboot2.c: Likewise.
38043 * loader/multiboot2.c: Likewise.
38044 * loader/multiboot_loader.c: Likewise.
38046 * configure.ac: Use -nostdlib when probing for the target. It
38047 should not be required to have libc for the target.
38049 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
38050 they fail without libc headers for the target.
38051 * include/grub/powerpc/libgcc.h: Use weak attribute for all
38053 * include/grub/sparc64/libgcc.h: Likewise. Don't use
38054 preprocessor conditionals.
38056 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
38057 build system doesn't need to be aware of the tar.c internals.
38059 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
38061 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
38063 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
38065 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
38066 disk limit to 26 for IDE, Virtio, Xen and SCSI.
38068 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
38070 * util/i386/pc/grub-install.in: Change the error message if UUIDs
38071 aren't available if ata.mod gets used.
38073 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
38075 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
38076 initialising controller.
38077 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38079 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38081 * util/i386/pc/grub-install.in: Add a parameter --disk-module
38082 to choose between ata and biosdisk module on i386-pc.
38084 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
38086 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
38087 Subclass and Programming Interface fields in terms of the 3 byte
38088 Class Code register.
38089 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38091 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
38092 interface is OHCI. Add grub_dprintf for symmetry with
38094 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
38095 interface is UHCI. Add interf variable for programming
38096 interface. Print interface with class/subclass.
38098 * bus/usb/ohci.c: Set interf with correct field.
38100 * bus/usb/uhci.c: Remove unneeded doubled lines.
38101 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
38102 Remove whitespace inside comment.
38104 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
38106 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
38107 as fallback an equivalent option without depth.
38109 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38111 Not fail if unable to retrieve C/H/S on LBA disks
38113 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
38114 if unable to retrieve C/H/S on LBA disks
38116 2009-06-08 Pavel Roskin <proski@gnu.org>
38118 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
38121 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38123 * Makefile.in (uninstall): Remove all $lib_DATA files.
38125 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38127 Bugfix: install on partitionless device
38129 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
38132 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38134 * Makefile.in (uninstall): Remove all $include_DATA files.
38136 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38138 * commands/true.c: New file. Implement the true and false commands.
38139 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
38140 (true_mod_SOURCES): New variable.
38141 (true_mod_CFLAGS): Likewise.
38142 (true_mod_LDFLAGS): Likewise.
38144 2009-06-05 Colin D Bennett <colin@gibibit.com>
38146 Optimized font character lookup using binary search instead of linear
38147 search. Fonts now are required to have the character index ordered by
38150 * font/font.c (load_font_index): Verify that fonts have ordered
38152 (find_glyph): Use binary search instead of linear search to find a
38153 character in a font.
38155 2009-06-05 Michael Scherer <misc@mandriva.org>
38157 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
38158 uses case sensitive btree.
38159 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
38160 only for case insensitive filesystems.
38162 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
38164 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
38165 * conf/common.rmk (search_mod_CFLAGS): likewise
38167 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38169 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
38170 compensate a compiler bug
38172 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38174 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
38177 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38179 Definitions for creating asm symbols with Apple's CC
38181 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38182 [APPLE_CC] (VARIABLE): likewise
38184 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38186 Disable lnxboot.img when compiled
38189 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38190 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38191 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38192 [! APPLE_CC] (CODE_LENG): skip
38193 [! APPLE_CC] (setup_sects): likewise
38194 [! APPLE_CC]: skip filling
38196 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38198 Address in trampolines based on 32-bit registers when compiled
38201 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38203 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38205 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38207 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38209 * kern/misc.c [APPLE_CC] (memcpy): new function
38210 [APPLE_CC] (memmove): likewise
38211 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38212 (memcpy): define alias conditionally on !APPLE_CC
38215 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38216 APPLE_CC are defined
38217 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38218 (grub_assert_fail): make prototype conditional
38220 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38222 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38224 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38226 (CLEANFILES): add grub-macho2img
38227 (grub_macho2img_SOURCES): new variable
38228 * kern/i386/pc/startup.S (bss_start): new variable
38229 (bss_end): likewise
38230 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38231 * util/grub-macho2img.c: new file
38233 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38235 Use objconv when compiling with Apple's CC
38237 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38238 (efiemu64.o): likewise
38239 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38240 when compiling with Apple's CC
38241 (efiemu64_s.o): likewise
38242 * configure.ac: check for objconv when compiling with Apple's CC
38243 * genmk.rb: use objconv for modules when compiled with Apple's CC
38245 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38247 Define segment as well as section when compiling with
38250 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38251 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38252 (efiemu_convert_pointer): likewise
38253 (efiemu_set_virtual_address_map): likewise
38254 (efiemu_convert_pointer): likewise
38255 (efiemu_getcrc32): likewise
38256 (init_crc32_table): likewise
38257 (reflect): likewise
38258 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38259 (GRUB_MOD_DEP): likewise
38261 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38263 Allow a compilation without -mcmodel=large
38265 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38266 when compiled without -mcmodel=large
38267 (filter_memory_map): remove memory post 4 GiB when compiled
38268 without -mcmodel=large
38269 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38270 TARGET_CFLAGS when -mcmodel=large isn't supported
38272 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38274 Remove nested functions in efiemu core
38276 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38278 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38280 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38282 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38284 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38286 (grub_cpu_is_tsc_supported): likewise
38287 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38289 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38291 Absolute addressing through constant with Apple's cc
38293 * kern/i386/pc/startup.S: Define necessary constants
38294 and address through it when using ABS with Apple's CC
38295 * boot/i386/pc/diskboot.S: likewise
38296 * boot/i386/pc/boot.S: likewise
38297 * boot/i386/pc/lnxboot.S: likewise
38298 * boot/i386/pc/cdboot.S: likewise
38299 * mmap/i386/pc/mmap_helper.S: likewise
38300 * commands/i386/pc/drivemap_int13h.S: likewise
38302 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38304 Check if compiler is apple cc
38306 * Makefile.in (ASFLAGS): new variable
38307 (TARGET_ASFLAGS): likewise
38308 (TARGET_MODULE_FORMAT): likewise
38309 (TARGET_APPLE_CC): likewise
38310 (OBJCONV): likewise
38311 (TARGET_IMG_CFLAGS): likewise
38312 (TARGET_CPPFLAGS): add includedir
38313 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38314 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38315 Check for linker script only if compiler isn't Apple's CC
38316 (TARGET_MODULE_FORMAT): set
38317 (TARGET_APPLE_CC): likewise
38318 (TARGET_ASFLAGS): likewise
38319 (ASFLAGS): likewise
38320 Check for objcopy only if compiler isn't Apple's CC
38321 Check for BSS symbol only if compiler isn't Apple's CC
38322 * genmk.rb: adapt nm options if we use Apple's utils
38323 * aclocal.m4 (grub_apple_cc): new test
38324 (grub_apple_target_cc): likewise
38326 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38328 Simplify sed expressions and improve awk
38330 * Makefile.in (install-local): simplify sed expression
38331 * gencmdlist.sh: likewise
38332 * genmoddep.awk: avoid adding module as a dependency of itself
38334 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38336 Add missing start symbols
38338 * boot/i386/pc/boot.S: add start
38339 * boot/i386/pc/pxeboot.S: likewise
38341 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38343 Fix wrong assumptions with grub-mkimage on EFI
38345 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38346 (relocate_addresses): consider both r_addend and value at offset
38347 (make_mods_section): zerofill modinfo and header
38348 (convert_elf): write prefix here
38350 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38352 Use .asciz instead of .string
38354 * i386/pc/diskboot.S: use .asciz instead of .string
38355 * i386/pc/boot.S: likewise
38356 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38357 (GRUB_MOD_NAME): likewise
38359 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38363 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38364 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38365 (grub_video_setup): remove
38366 (grub_video_set_mode): new prototype
38367 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38369 (linux_vesafb_res): compile only on PCBIOS
38370 (grub_linux_boot): support gfxpayload
38371 * loader/i386/pc/xnu.c (video_hook): new function
38372 (grub_xnu_set_video): support gfxpayload
38373 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38374 (DEFAULT_VIDEO_HEIGHT): likewise
38375 (DEFAULT_VIDEO_FLAGS): likewise
38376 (DEFAULT_VIDEO_MODE): new definition
38377 (video_hook): new function
38378 (grub_gfxterm_init): use grub_video_set_mode
38379 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38381 * video/video.c (grub_video_setup): removed
38382 (grub_video_set_mode): new function based on grub_gfxterm_init and
38385 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38387 Avoid calling biosdisk in drivemap
38389 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38390 (revparse_biosdisk): likewise
38391 (list_mappings): derive name from id directly
38392 (grub_cmd_drivemap): use tryparse_diskstring
38394 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38398 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38399 (grub_lexer_param): add tokenonhold
38400 (grub_script_create_cmdline): remove cmdline. All callers updated
38401 (grub_script_function_create): make functionname
38402 grub_script_arg. All callers updated
38403 (grub_script_execute_argument_to_string): new prototype
38404 * kern/parser.c (state_transitions): reorder
38405 (grub_parser_cmdline_state): fix a bug and make more compact
38406 * script/sh/execute.c (grub_script_execute_argument_to_string):
38408 (grub_script_execute_cmdline): use new format
38409 * script/sh/function.c (grub_script_function_create): make functionname
38410 grub_script_arg. All callers updated
38411 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38412 (grub_script_yylex): remove
38413 (grub_script_yylex2): renamed to ...
38414 (grub_script_yylex): ...renamed
38415 parse the expressions like a${b}c
38416 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38417 (GRUB_PARSER_TOKEN_VAR): remove
38418 (GRUB_PARSER_TOKEN_NAME): likewise
38419 ("if"): declare as typeless
38420 ("while"): likewise
38421 ("function"): likewise
38426 (argument): likewise
38427 (script): accept empty scripts and make exit on error
38428 (arguments): use GRUB_PARSER_TOKEN_ARG
38429 (function): likewise
38430 (command): move error handling to script
38431 (menuentry): move grub_script_lexer_ref before
38432 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38433 argument. All callers updated
38435 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38437 Prevent GRUB from probing floppies during boot.
38439 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38440 * commands/search.c (options): Add --no-floppy.
38441 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38442 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38443 --no-floppy when searching for UUIDs.
38445 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38447 Simplify the code duplication in commands/search.c.
38449 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38450 (search_fs): ... this. Update all users.
38452 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38454 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38456 2009-05-28 Pavel Roskin <proski@gnu.org>
38458 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38459 Remove the original symlink explicitly.
38461 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38462 just one slash. That's how grub_fshelp_find_file() does it.
38464 2009-05-26 Pavel Roskin <proski@gnu.org>
38466 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38469 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38472 2009-05-25 Christian Franke <franke@computer.org>
38474 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38476 (grub_atapi_identify): Add wait after drive select.
38477 (grub_ata_identify): Do more strict status register check before
38478 calling grub_atapi_identify (). Suppress error message if status
38479 register is 0x00 after command failure. Add status register
38480 check after PIO read to avoid bogus identify due to stuck DRQ.
38481 Thanks to Pavel Roskin for testing.
38482 (grub_device_initialize): Remove unsafe status register check.
38483 Thanks to 'phcoder' for problem report and patch.
38484 Prevent sign extension in debug message.
38486 2009-05-23 Colin D Bennett <colin@gibibit.com>
38488 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38489 definition file, and functions defined in `normal/menu.c' have had
38490 their prototypes moved to `include/grub/menu.h' for consistency.
38492 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38494 (grub_menu_get_entry): Likewise.
38495 (grub_menu_get_timeout): Likewise.
38496 (grub_menu_set_timeout): Likewise.
38497 (grub_menu_execute_entry): Likewise.
38498 (grub_menu_execute_with_fallback): Likewise.
38499 (grub_menu_entry_run): Likewise.
38501 * include/grub/normal.h: Re-ordered and grouped function
38502 prototypes by file that the function is defined in.
38503 (grub_menu_execute_callback): Removed; moved to menu.h.
38504 (grub_menu_get_entry): Likewise.
38505 (grub_menu_get_timeout): Likewise.
38506 (grub_menu_set_timeout): Likewise.
38507 (grub_menu_execute_entry): Likewise.
38508 (grub_menu_execute_with_fallback): Likewise.
38509 (grub_menu_entry_run): Likewise.
38510 (grub_menu_addentry): Renamed from this ...
38511 (grub_normal_add_menu_entry): ... to this.
38513 * normal/main.c (grub_menu_addentry): Renamed from this ...
38514 (grub_normal_add_menu_entry): ... to this.
38516 * script/sh/execute.c (grub_script_execute_menuentry): Update
38517 reference to renamed grub_menu_addentry function.
38519 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38521 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38523 2009-05-22 Pavel Roskin <proski@gnu.org>
38525 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38526 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38527 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38528 compiling for the i386 targets, but not for the utilities.
38530 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38532 (grub_root_drive): Likewise.
38533 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38535 (grub_root_drive): Change size to byte.
38536 (grub_start_addr): Remove.
38537 (grub_end_addr): Likewise.
38538 (grub_apm_bios_info): Likewise.
38540 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38542 * normal/i386: Remove.
38543 * normal/powerpc: Likewise.
38544 * normal/sparc64: Likewise.
38545 * normal/x86_64: Likewise.
38547 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38549 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38550 * loader/i386/linux_trampoline.S: Fix indentation
38551 * loader/i386/xnu_helper.S: Likewise
38553 2009-05-18 Colin D Bennett <colin@gibibit.com>
38555 Display error messages when parsing a Lua statement fails.
38556 Previously, executing a syntactically invalid statement like
38557 ")foo" or "bar;" would silently fail.
38559 * script/lua/grub_main.c (handle_lua_error): New function.
38560 (grub_lua_parse_line): Improved reporting of Lua parser and
38563 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38565 Remove -Werror which causes build to fail on some systems
38567 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38568 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38569 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38571 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38573 trampoline for linux on 64-bit platform
38575 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38576 loader/i386/efi/linux_trampoline.S
38577 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38579 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38581 * loader/i386/linux_trampoline.S: moved here
38582 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38584 (jumpvector): removed
38585 (grub_linux_trampoline_start): new declaration
38586 (grub_linux_trampoline_end): likewise
38587 (grub_linux_boot): use trampoline when on 64-bit platform
38588 * loader/i386/linux.c: likewise
38590 2009-05-16 Pavel Roskin <proski@gnu.org>
38592 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38593 const to avoid a warning.
38594 (grub_lua_setenv): Likewise.
38595 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38596 lmsg to fix a warning.
38598 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38600 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38601 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38602 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38603 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38604 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38605 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38606 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38607 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38609 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38611 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38613 2009-05-16 Bean <bean123ch@gmail.com>
38615 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38616 (lua_mod_SOURCES): New variable.
38617 (lua_mod_CFLAGS): Likewise.
38618 (lua_mod_LDFLAGS): Likewise.
38620 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38621 (setjmp_mod_SOURCES): New variable.
38622 (setjmp_mod_CFLAGS): Likewise.
38623 (setjmp_LDFLAGS): Likewise.
38625 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38626 (setjmp_mod_SOURCES): New variable.
38627 (setjmp_mod_CFLAGS): Likewise.
38628 (setjmp_LDFLAGS): Likewise.
38630 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38631 (setjmp_mod_SOURCES): New variable.
38632 (setjmp_mod_CFLAGS): Likewise.
38633 (setjmp_LDFLAGS): Likewise.
38635 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38636 (setjmp_mod_SOURCES): New variable.
38637 (setjmp_mod_CFLAGS): Likewise.
38638 (setjmp_LDFLAGS): Likewise.
38640 * normal/i386/setjmp.S: Moved from here ...
38641 * lib/i386/setjmp.S: ... Moved here
38642 * normal/x86_64/setjmp.S: Moved from here ...
38643 * lib/x86_64/setjmp.S: ... Moved here
38644 * normal/powerpc/setjmp.S: Moved from here ...
38645 * lib/powerpc/setjmp.S: ... Moved here
38646 * normal/sparc64/setjmp.S: Moved from here ...
38647 * lib/sparc64/setjmp.S: ... Moved here
38649 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38650 returns_twice in mingw.
38652 * script/lua/grub_lib.c: New file.
38653 * script/lua/grub_lib.h: Likewise.
38654 * script/lua/grub_lua.h: Likewise.
38655 * script/lua/grub_main.c: Likewise.
38656 * script/lua/lapi.c: Likewise.
38657 * script/lua/lapi.h: Likewise.
38658 * script/lua/lauxlib.c: Likewise.
38659 * script/lua/lauxlib.h: Likewise.
38660 * script/lua/lbaselib.c: Likewise.
38661 * script/lua/lcode.c: Likewise.
38662 * script/lua/lcode.h: Likewise.
38663 * script/lua/ldblib.c: Likewise.
38664 * script/lua/ldebug.c: Likewise.
38665 * script/lua/ldebug.h: Likewise.
38666 * script/lua/ldo.c: Likewise.
38667 * script/lua/ldo.h: Likewise.
38668 * script/lua/ldump.c: Likewise.
38669 * script/lua/lfunc.c: Likewise.
38670 * script/lua/lfunc.h: Likewise.
38671 * script/lua/lgc.c: Likewise.
38672 * script/lua/lgc.h: Likewise.
38673 * script/lua/linit.c: Likewise.
38674 * script/lua/liolib.c: Likewise.
38675 * script/lua/llex.c: Likewise.
38676 * script/lua/llex.h: Likewise.
38677 * script/lua/llimits.h: Likewise.
38678 * script/lua/lmathlib.c: Likewise.
38679 * script/lua/lmem.c: Likewise.
38680 * script/lua/lmem.h: Likewise.
38681 * script/lua/loadlib.c: Likewise.
38682 * script/lua/lobject.c: Likewise.
38683 * script/lua/lobject.h: Likewise.
38684 * script/lua/lopcodes.c: Likewise.
38685 * script/lua/lopcodes.h: Likewise.
38686 * script/lua/loslib.c: Likewise.
38687 * script/lua/lparser.c: Likewise.
38688 * script/lua/lparser.h: Likewise.
38689 * script/lua/lstate.c: Likewise.
38690 * script/lua/lstate.h: Likewise.
38691 * script/lua/lstring.c: Likewise.
38692 * script/lua/lstring.h: Likewise.
38693 * script/lua/lstrlib.c: Likewise.
38694 * script/lua/ltable.c: Likewise.
38695 * script/lua/ltable.h: Likewise.
38696 * script/lua/ltablib.c: Likewise.
38697 * script/lua/ltm.c: Likewise.
38698 * script/lua/ltm.h: Likewise.
38699 * script/lua/lua.h: Likewise.
38700 * script/lua/luaconf.h: Likewise.
38701 * script/lua/lualib.h: Likewise.
38702 * script/lua/lundump.c: Likewise.
38703 * script/lua/lundump.h: Likewise.
38704 * script/lua/lvm.c: Likewise.
38705 * script/lua/lvm.h: Likewise.
38706 * script/lua/lzio.c: Likewise.
38707 * script/lua/lzio.h: Likewise.
38709 2009-05-16 Bean <bean123ch@gmail.com>
38711 * include/grub/kernel.h (grub_module_header_types): Add type
38714 * kern/main.c (grub_load_config): New function.
38715 (grub_main): Call grub_load_config to read boot config.
38717 * grub-mkimage (generate_image): New parameter config_path.
38718 (options): New option --config.
38719 (main): Parse --config option, and pass it to generate_image.
38721 2009-05-14 Christian Franke <franke@computer.org>
38723 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38724 This fixes build on Cygwin.
38726 2009-05-14 Pavel Roskin <proski@gnu.org>
38728 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38729 jump. This saves two bytes, so the typical case of 2 swapped
38730 drives would fit 32 bytes.
38732 2009-05-13 Pavel Roskin <proski@gnu.org>
38734 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38735 grub_uint32_t to avoid a warning.
38737 * loader/i386/linux.c (allocate_pages): When assigning
38738 real_mode_mem, cast through grub_size_t to fix a warning. The
38739 code already makes sure that the value would fit a pointer.
38740 (grub_linux_setup_video): Cast render_target->data to
38741 grub_size_t to fix a warning.
38743 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38745 * commands/i386/pc/drivemap.c: New file - implement drivemap
38747 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38748 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38750 2009-05-13 Pavel Roskin <proski@gnu.org>
38752 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38753 embedding_area_exists.
38755 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38757 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38758 it easier to understand / work with.
38759 Improve warning messages for cases where there's no embedding area,
38760 or when it is too small (or core.img too large).
38762 2009-05-13 Pavel Roskin <proski@gnu.org>
38764 * loader/i386/pc/multiboot2.c: Add necessary includes for
38765 grub_multiboot2_real_boot().
38767 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38768 PX record is always little-endian. We only need the lower 2
38771 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38772 facilitate code reuse.
38773 (grub_cpio_mount): Use "struct head", not a char buffer. This
38774 fixes a warning reported by gcc 4.4.
38776 * kernel/disk.c (grub_disk_read): Use void pointer for the
38778 (grub_disk_write): Use const void pointer for the buffer.
38779 Adjust all callers. Remove unnecessary casts.
38781 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38783 * util/i386/pc/grub-install.in: Update copyright year.
38785 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38789 * commands/gptsync.c: new file
38790 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38791 (gptsync_mod_SOURCES): new variable
38792 (gptsync_mod_CFLAGS): likewise
38793 (gptsync_mod_LDFLAGS): likewise
38794 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38796 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38797 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38798 * conf/i386-ieee1275.rmk: likewise
38799 * conf/i386-pc.rmk: likewise
38800 * conf/powerpc-ieee1275.rmk: likewise
38802 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38806 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38807 (grub_dl_ref): likewise
38809 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38811 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38812 split in two functions (one for msdos and one for gpt).
38814 2009-05-08 Pavel Roskin <proski@gnu.org>
38816 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38819 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38820 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38821 Initialize them with -1. Add sanity check for bad1. Eliminate
38824 2009-05-08 David S. Miller <davem@davemloft.net>
38826 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38828 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38830 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38833 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38835 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38836 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38838 2009-05-05 David S. Miller <davem@davemloft.net>
38840 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38842 2009-05-05 Pavel Roskin <proski@gnu.org>
38844 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38845 of grub_dl_ref() and grub_dl_unref().
38846 * commands/parttool.c: Remove preprocessor conditionals around
38847 grub_dl_ref() and grub_dl_unref().
38848 * fs/affs.c: Likewise.
38849 * fs/afs.c: Likewise.
38850 * fs/cpio.c: Likewise.
38851 * fs/ext2.c: Likewise.
38852 * fs/fat.c: Likewise.
38853 * fs/hfs.c: Likewise.
38854 * fs/hfsplus.c: Likewise.
38855 * fs/iso9660.c: Likewise.
38856 * fs/jfs.c: Likewise.
38857 * fs/minix.c: Likewise.
38858 * fs/ntfs.c: Likewise.
38859 * fs/reiserfs.c: Likewise.
38860 * fs/sfs.c: Likewise.
38861 * fs/udf.c: Likewise.
38862 * fs/ufs.c: Likewise.
38863 * fs/xfs.c: Likewise.
38864 * include/grub/dl.h: Likewise.
38865 * loader/xnu.c: Likewise.
38867 2009-05-04 Pavel Roskin <proski@gnu.org>
38869 * commands/acpi.c: Remove unused variable my_mod.
38870 * partmap/amiga.c: Likewise.
38871 * partmap/apple.c: Likewise.
38872 * partmap/gpt.c: Likewise.
38873 * partmap/pc.c: Likewise.
38874 * partmap/sun.c: Likewise.
38875 * term/gfxterm.c: Likewise.
38876 * term/i386/pc/vesafb.c: Likewise.
38877 * term/i386/pc/vga.c: Likewise.
38879 2009-05-04 David S. Miller <davem@davemloft.net>
38881 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38882 pointer args to grub_ieee1275_get_property().
38884 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38886 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38887 devices, and do not traverse down under controller nodes.
38889 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38890 (grub_ofdisk_open): Use it to un-escape "," characters.
38891 * kern/disk.c (find_part_sep): New.
38892 (grub_disk_open): Use it to find the first non-escaped ','
38893 character in the disk name.
38894 * util/ieee1275/devicemap.c (escape_of_path): New.
38895 (grub_util_emit_devicemap_entry): Use it.
38896 * util/sparc64/ieee1275/grub-install.in: Update script to
38897 strip partition specifiers properly by not triggering on
38898 '\' escaped ',' characters.
38900 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38902 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38904 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38906 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38907 on documentation from Wikipedia).
38909 2009-05-04 Pavel Roskin <proski@gnu.org>
38911 * disk/ata.c: Spelling fixes.
38912 * disk/raid.c: Likewise.
38913 * disk/usbms.c: Likewise.
38914 * disk/dmraid_nvidia.c: Likewise.
38915 * kern/ieee1275/openfw.c: Likewise.
38916 * kern/ieee1275/init.c: Likewise.
38917 * kern/ieee1275/cmain.c: Likewise.
38918 * boot/i386/pc/cdboot.S: Likewise.
38919 * video/readers/png.c: Likewise.
38920 * video/i386/pc/vbe.c: Likewise.
38921 * fs/udf.c: Likewise.
38922 * fs/hfs.c: Likewise.
38923 * fs/reiserfs.c: Likewise.
38924 * efiemu/runtime/efiemu.c: Likewise.
38925 * efiemu/main.c: Likewise.
38926 * efiemu/mm.c: Likewise.
38927 * include/grub/elf.h: Likewise.
38928 * include/grub/xnu.h: Likewise.
38929 * include/grub/usbdesc.h: Likewise.
38930 * include/grub/usb.h: Likewise.
38931 * include/grub/script_sh.h: Likewise.
38932 * include/grub/lib/LzmaEnc.h: Likewise.
38933 * include/grub/efiemu/efiemu.h: Likewise.
38934 * include/grub/command.h: Likewise.
38935 * normal/menu.c: Likewise.
38936 * normal/main.c: Likewise.
38937 * normal/datetime.c: Likewise.
38938 * bus/usb/uhci.c: Likewise.
38939 * mmap/i386/uppermem.c: Likewise.
38940 * mmap/mmap.c: Likewise.
38941 * commands/acpi.c: Likewise.
38942 * commands/test.c: Likewise.
38943 * partmap/apple.c: Likewise.
38944 * font/font.c: Likewise.
38945 * loader/sparc64/ieee1275/linux.c: Likewise.
38946 * loader/macho.c: Likewise.
38947 * loader/i386/bsd_trampoline.S: Likewise.
38948 * loader/i386/bsd.c: Likewise.
38949 * loader/xnu.c: Likewise.
38950 * term/i386/pc/vesafb.c: Likewise.
38951 * term/usb_keyboard.c: Likewise.
38952 * util/resolve.c: Likewise.
38953 * util/getroot.c: Likewise.
38955 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38957 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38959 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38961 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38964 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38966 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38967 parameter only available on BIOS.
38969 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38971 Removed wrong semicolon in declaration
38973 * grub/misc.h (grub_dprintf): remove semicolon
38975 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38977 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38978 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38979 is done by grub_cmd_linux() now).
38980 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38981 restore video to text mode.
38982 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38983 indicates lack of "vga=" parameter. "vga=0" is mapped to
38984 `GRUB_LINUX_VID_MODE_NORMAL'.
38986 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38988 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38989 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38990 and `normal/script.c'. Add `kern/rescue_reader.c',
38991 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38992 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38993 `grub_script.tab.c'.
38995 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38996 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38997 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38998 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38999 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39001 * Makefile.in: Remove duplicated 2008 in Copyright line.
39003 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
39005 * util/misc.c (grub_util_warn): New function. Emits a warning
39007 * include/grub/util/misc.h (grub_util_warn): New declaration.
39009 * util/i386/pc/grub-install.in: Understand --force and pass it down
39012 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
39014 (setup): Improve error messages and add warnings when requested to
39015 install in odd layouts. Refuse to install using blocklists unless
39018 2009-05-04 martin f. krafft <madduck@madduck.net>
39020 * disk/raid.c (grub_raid_scan_device): Improve debug message.
39022 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
39024 Updated copyright year
39026 * fs/hfsplus.c: updated copyright year
39028 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
39032 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
39033 in the space previously used by unused3
39034 (grub_hfsplus_uuid): new function
39035 (grub_hfsplus_fs): added uuid field
39037 2009-05-03 Pavel Roskin <proski@gnu.org>
39039 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
39040 suppress warnings. It's no longer needed.
39041 * disk/host.c: Likewise.
39042 * disk/ata_pthru.c: Likewise.
39043 * disk/loopback.c: Likewise.
39044 * hook/datehook.c: Likewise.
39045 * parttool/pcpart.c: Likewise.
39046 * fs/i386/pc/pxe.c: Likewise.
39047 * fs/ntfscomp.c: Likewise.
39048 * efiemu/main.c: Likewise.
39049 * mmap/mmap.c: Likewise.
39050 * commands/crc.c: Likewise.
39051 * commands/hexdump.c: Likewise.
39052 * commands/hdparm.c: Likewise.
39053 * commands/acpi.c: Likewise.
39054 * commands/echo.c: Likewise.
39055 * commands/minicmd.c: Likewise.
39056 * commands/blocklist.c: Likewise.
39057 * commands/memrw.c: Likewise.
39058 * commands/loadenv.c: Likewise.
39059 * commands/usbtest.c: Likewise.
39060 * commands/lsmmap.c: Likewise.
39061 * commands/boot.c: Likewise.
39062 * commands/parttool.c: Likewise.
39063 * commands/configfile.c: Likewise.
39064 * commands/search.c: Likewise.
39065 * commands/ieee1275/suspend.c: Likewise.
39066 * commands/cat.c: Likewise.
39067 * commands/i386/pc/pxecmd.c: Likewise.
39068 * commands/i386/pc/play.c: Likewise.
39069 * commands/i386/pc/halt.c: Likewise.
39070 * commands/i386/pc/vbeinfo.c: Likewise.
39071 * commands/i386/pc/vbetest.c: Likewise.
39072 * commands/lspci.c: Likewise.
39073 * commands/date.c: Likewise.
39074 * commands/handler.c: Likewise.
39075 * commands/ls.c: Likewise.
39076 * commands/test.c: Likewise.
39077 * commands/cmp.c: Likewise.
39078 * commands/efi/loadbios.c: Likewise.
39079 * commands/efi/fixvideo.c: Likewise.
39080 * commands/halt.c: Likewise.
39081 * commands/help.c: Likewise.
39082 * commands/reboot.c: Likewise.
39083 * hello/hello.c: Likewise.
39084 * script/sh/main.c: Likewise.
39085 * loader/xnu.c: Likewise.
39086 * term/terminfo.c: Likewise.
39087 * term/i386/pc/serial.c: Likewise.
39088 * term/usb_keyboard.c: Likewise.
39090 2009-05-03 David S. Miller <davem@davemloft.net>
39092 * normal/menu.c: Include grub/parser.h
39094 2009-05-03 Pavel Roskin <proski@gnu.org>
39096 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
39098 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
39099 Suggested by Javier Martín <lordhabbit@gmail.com>
39101 * util/i386/pc/grub-mkrescue.in: Allow for the case when
39102 efiemu??.o doesn't exist.
39103 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
39106 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
39108 FreeBSD 64-bit support
39110 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
39111 and loader/i386/bsd_trampoline.S
39112 (bsd_mod_ASFLAGS): new variable
39113 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
39114 (FREEBSD_MODTYPE_KERNEL64): likewise
39115 (grub_bsd64_trampoline_start): likewise
39116 (grub_bsd64_trampoline_end): likewise
39117 (grub_bsd64_trampoline_selfjump): likewise
39118 (grub_bsd64_trampoline_gdt): likewise
39119 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
39120 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
39121 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
39122 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
39123 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39125 * loader/i386/bsd_pagetable.c: new file
39126 * loader/i386/bsd_trampoline.S: likewise
39127 * loader/i386/bsd.c (ALIGN_QWORD): new macro
39128 (ALIGN_VAR): likewise
39129 (entry_hi): new variable
39130 (kern_end_mdofs): likewise
39131 (is_64bit): likewise
39132 (grub_freebsd_add_meta): use ALIGN_VAR
39133 (grub_e820_mmap): new declaration
39134 (grub_freebsd_add_mmap): new function
39135 (grub_freebsd_add_meta_module): support 64 bit kernels
39136 (grub_freebsd_list_modules): use ALIGN_VAR
39137 (gdt_descriptor): new declaration
39138 (grub_freebsd_boot): support 64 bit kernels
39139 (grub_bsd_elf64_hook): new function
39140 (grub_bsd_load_elf): support elf64
39142 2009-05-03 Bean <bean123ch@gmail.com>
39144 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
39145 after we get the result of if statement.
39147 2009-05-03 Bean <bean123ch@gmail.com>
39149 * Makefile.in (enable_efiemu): New variable.
39151 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
39153 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
39155 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
39156 path, add -mno-red-zone option.
39157 (efiemu64_s.o): Likewise.
39158 (efiemu64.o): Use macro $^ for source file.
39160 * configure.ac (--enable-efiemu): New option.
39162 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
39166 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
39167 (pkglib_MODULES): add xnu.mod
39168 (xnu_mod_SOURCES): new variable
39169 (xnu_mod_CFLAGS): likewise
39170 (xnu_mod_LDFLAGS): likewise
39171 (xnu_mod_ASFLAGS): likewise
39172 * conf/i386-pc.rmk: likewise
39173 * conf/x86_64-efi.rmk: likewise
39174 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
39176 * include/grub/i386/macho.h: new file
39177 * include/grub/i386/xnu.h: likewise
39178 * include/grub/macho.h: likewise
39179 * include/grub/machoload.h: likewise
39180 * include/grub/x86_64/macho.h: likewise
39181 * include/grub/x86_64/xnu.h: likewise
39182 * include/grub/xnu.h: likewise
39183 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39184 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39185 * loader/i386/efi/xnu.c: new file
39186 * loader/i386/pc/xnu.c: likewise
39187 * loader/i386/xnu.c: likewise
39188 * loader/i386/xnu_helper.S: likewise
39189 * loader/macho.c: likewise
39190 * loader/xnu.c: likewise
39191 * loader/xnu_resume.c: likewise
39192 * util/grub-dumpdevtree: likewise
39193 * include/grub/i386/pit.h: include grub/err.h
39194 (grub_pit_wait): export
39195 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
39197 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39201 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39202 _linux_efi, linux_efi.
39203 new files in grub-emu
39204 new targets efiemu32.o and efiemu64.o
39205 * loader/linux_normal_efiemu.c: likewise
39206 * loader/i386/efi/linux.c: added preliminary efiemu support
39207 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39209 * include/grub/autoefi.h: new file
39210 * include/grub/i386/efiemu.h: likewise
39211 * include/grub/i386/pc/efiemu.h: likewise
39212 * include/grub/efi/api.h: add LL suffix when necessary
39213 new definitions relating to tables
39214 * include/grub/efiemu/efiemu.h: new file
39215 * include/grub/efiemu/runtime.h: likewise
39216 * efiemu/prepare.c: likewise
39217 * efiemu/loadcore_common.c: likewise
39218 * efiemu/loadcore64.c: likewise
39219 * efiemu/runtime/efiemu.sh: likewise
39220 * efiemu/runtime/efiemu.S: likewise
39221 * efiemu/runtime/efiemu.c: likewise
39222 * efiemu/runtime/config.h: likewise
39223 * efiemu/prepare32.c: likewise
39224 * efiemu/main.c: likewise
39225 * efiemu/modules/pnvram.c: likewise
39226 * efiemu/modules/i386: likewise
39227 * efiemu/modules/i386/pc: likewise
39228 * efiemu/modules/acpi.c: likewise
39229 * efiemu/i386/pc/cfgtables.c: likewise
39230 * efiemu/i386/loadcore64.c: likewise
39231 * efiemu/i386/loadcore32.c: likewise
39232 * efiemu/prepare64.c: likewise
39233 * efiemu/loadcore.c: likewise
39234 * efiemu/symbols.c: likewise
39235 * efiemu/mm.c: likewise
39236 * efiemu/loadcore32.c: likewise
39238 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39242 * commands/acpi.c: new file
39243 * commands/i386/pc/acpi.c: likewise
39244 * commands/efi/acpi.c: likewise
39245 * include/grub/acpi.h: likewise
39246 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39247 (acpi_mod_SOURCES): new variable
39248 (acpi_mod_CFLAGS): likewise
39249 (acpi_mod_LDFLAGS): likewise
39250 * conf/i386-efi.rmk: likewise
39251 * conf/x86_64-efi.rmk: likewise
39253 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39255 Missing part from mmap patch
39257 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39258 (grub_mmap_unregister)
39259 (grub_mmap_free_and_unregister): use grub_mmap_register
39261 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39265 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39266 * loader/i386/linux.c (find_mmap_size): likewise
39267 (allocate_pages): likewise
39268 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39269 (grub_fill_multiboot_mmap): likewise
39270 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39271 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39272 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39273 (OPENBSD_MMAP_RESERVED): likewise
39274 * include/grub/i386/pc/memory.h: include grub/memory.h
39275 (grub_lower_mem): removed
39276 (grub_upper_mem): likewise
39277 (GRUB_MACHINE_MEMORY_ACPI): new definition
39278 (GRUB_MACHINE_MEMORY_NVS): likewise
39279 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39280 (GRUB_MACHINE_MEMORY_HOLE): likewise
39281 (grub_machine_mmap_register): likewise
39282 (grub_machine_mmap_unregister): likewise
39283 (grub_machine_get_upper): likewise
39284 (grub_machine_get_lower): likewise
39285 (grub_machine_get_post64): likewise
39286 * include/grub/i386/efi/memory.h: new file
39287 * include/grub/x86_64/efi/memory.h: likewise
39288 * include/grub/efi/memory.h: likewise
39289 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39290 (mmap_mod_SOURCES): new variable
39291 (mmap_mod_LDFLAGS): likewise
39292 (mmap_mod_ASFLAGS): likewise
39293 * conf/i386-coreboot.rmk: likewise
39294 * conf/i386-ieee1275.rmk: likewise
39295 * conf/i386-efi.rmk: likewise
39296 * conf/x86_64-efi.rmk: likewise
39297 * include/grub/types.h (UINT_TO_PTR): new macro
39298 (PTR_TO_UINT32): likewise
39299 (PTR_TO_UINT64): likewise
39300 * include/grub/memory.h: new file
39301 * mmap/i386/pc/mmap.c: likewise
39302 * mmap/i386/pc/mmap_helper.S: likewise
39303 * mmap/i386/uppermem.c: likewise
39304 * mmap/mmap.c: likewise
39305 * mmap/efi/mmap.c: likewise
39306 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39308 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39309 (grub_upper_mem): likewise
39310 (grub_machine_init): don't use grub_upper_mem,
39311 make grub_lower_mem local
39312 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39313 grub_mmap_iterate and grub_mmap_get_upper
39314 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39316 2009-05-02 Bean <bean123ch@gmail.com>
39318 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39319 script/sh/parser.y.
39320 (pkglib_MODULES): Add normal.mod and sh.mod.
39321 (normal_SOURCES): New variable.
39322 (normal_mod_CFLAGS): Likewise.
39323 (normal_mod_LDFLAGS): Likewise.
39324 (sh_mod_SOURCES): Likewise.
39325 (sh_mod_CFLAGS): Likewise.
39326 (sh_mod_LDFLAGS): Likewise.
39328 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39329 script/sh/lexer.c_DEPENDENCIES.
39330 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39331 kern/rescue_reader.c and kern/rescue_parser.c.
39332 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39333 (grub_emu_SOURCES): Change source files.
39334 (pkglib_MODULES): Remove normal.mod.
39335 (normal_SOURCES): Removed.
39336 (normal_mod_CFLAGS): Likewise.
39337 (normal_mod_LDFLAGS): Likewise.
39338 * conf/i386-coreboot.rmk: Likewise.
39339 * conf/i386-efi.rmk: Likewise.
39340 * conf/i386-ieee1276.rmk: Likewise.
39341 * conf/powerpc-ieee1275.rmk: Likewise.
39342 * conf/sparc64-ieee1275.rmk: Likewise.
39343 * conf/x86_64-efi.rmk: Likewise.
39345 * include/grub/command.h (grub_command_execute): New inline function.
39347 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39349 * include/grub/normal.h: Remove <grub/setjmp.h>.
39350 (grub_fs_module_list): Moved to normal/autofs.c.
39351 (grub_exit_env): Removed.
39352 (grub_command_execute): Likewise.
39353 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39355 (read_command_list): New function declaration.
39356 (read_fs_list): Likewise.
39358 * include/parser.h: Include <grub/reader.h>.
39359 (grub_parser_split_cmdline): Change type of getline parameter.
39360 (grub_parser): New structure.
39361 (grub_parser_class): New variable.
39362 (grub_parser_execute): New function declaration.
39363 (grub_register_rescue_parser): Likewise.
39364 (grub_parser_register): New inline function.
39365 (grub_parser_unregister): Likewise.
39366 (grub_parser_get_current): Likewise.
39367 (grub_parser_set_current): Likewise.
39369 * include/grub/reader.h: New file.
39370 * kern/reader.c: Likewise.
39371 * kern/rescue_parser.c: Likewise.
39372 * kern/rescue_reader.c: Likewise.
39373 * normal/autofs.c: Likewise.
39374 * normal/dyncmd.c: Likewise.
39376 * include/grub/rescue.h: Removed.
39377 * normal/command.h: Likewise.
39379 * include/grub/script.h: Moved to ...
39380 * include/grub/script_sh.h: ... Moved here.
39381 * normal/execute.c: Moved to ...
39382 * script/sh/execute.c: ... Moved here.
39383 * normal/function.c: Moved to ...
39384 * script/sh/function.c: ... Moved here.
39385 * normal/lexer.c: Moved to ...
39386 * script/sh/lexer.c: ... Moved here.
39387 * normal/parser.y: Moved to ...
39388 * script/sh/parser.y: ... Moved here.
39389 * normal/script.c: Moved to ...
39390 * script/sh/script.c: ... Moved here.
39392 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39394 (grub_exit_env): Removed.
39395 (fs_module_list): Moved to normal/autofs.c.
39396 (grub_file_getline): Don't handle comment here.
39397 (free_menu): Skip removed field entry->commands.
39398 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39400 (read_config_file): Removed nested parameter, change getline function.
39401 (grub_enter_normal_mode): Removed.
39402 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39403 (read_command_list): Likewise.
39404 (autoload_fs_module): Moved to normal/autofs.c.
39405 (read_fs_list): Likewise.
39406 (reader_nested): New variable.
39407 (grub_normal_execute): Run parser.sh to switch to sh parser.
39408 (grub_cmd_rescue): Removed.
39409 (cmd_normal): Removed.
39410 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39412 (grub_cmdline_run): New function.
39413 (grub_normal_reader_init): Likewise.
39414 (grub_normal_read_line): Likewise.
39415 (grub_env_write_pager): Likewise.
39416 (cmdline): New variable.
39417 (grub_normal_reader): Likewise.
39418 (GRUB_MOD_INIT): Register normal reader and set as current, register
39419 pager hook, register normal command with grub_register_command_prio,
39420 so that it won't show up in command.lst.
39421 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39422 grub_fs_autoload_hook.
39424 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39425 (grub_menu_execute_entry): Replace grub_script_execute with
39426 grub_parser_execute, change parameter to grub_command_execute.
39428 * normal/menu_text.c: Remove <grub/script.h>.
39430 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39431 and <grub/parser.h>.
39432 (run): Change editor_getline to use new parser interface. Change
39433 parameter to grub_command_execute.
39435 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39436 <grub/reader.h> and <grub/parser.h>.
39437 (grub_load_normal_mode): Execute normal command.
39438 (grub_main): Call grub_register_core_commands,
39439 grub_register_rescue_parser and grub_register_rescue_reader, use
39440 grub_reader_loop to enter input loop.
39442 * kern/parser.c (grub_parser_split_cmdline): Change type of
39444 (grub_parser_class): New variable.
39445 (grub_parser_execute): New function.
39447 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39448 * loader/multiboot2.c: Likewise.
39449 * loader/sparc64/ieee1275/linux.c: Likewise.
39451 * util/grub-emu.c (read_command_list): New dummy function.
39453 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39455 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39456 count to 16 for CCISS and IDA.
39458 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39460 * normal/menu_text.c (grub_wait_after_message): Print a newline
39461 after waiting for user input.
39463 * loader/i386/linux.c: Include `<grub/normal.h>'.
39464 (grub_cmd_linux): Improve the error message about `ask' mode, by
39465 waiting for user input so it's not missed (we can do this, since
39466 user requested interaction).
39468 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39470 Added missing lst to grub-mkrescue
39472 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39473 and ${input_dir}/parttool.lst
39475 2009-04-30 David S. Miller <davem@davemloft.net>
39477 * util/hostdisk.c (device_is_wholedisk): New function.
39478 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39479 zero only if device_is_wholedisk() returns true.
39481 * util/hostdisk.c (convert_system_partition_to_system_disk):
39482 Handle virtual disk devices named /dev/vdiskX as found on sparc
39485 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39486 lettered partition specifier is found, convert to numbered.
39488 2009-04-29 David S. Miller <davem@davemloft.net>
39490 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39491 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39493 * normal/command.c: Add missing newline at end of file.
39495 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39497 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39498 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39499 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39500 ihandles have a 32-bit type but need to be stored in a "void *".
39502 2009-04-28 Pavel Roskin <proski@gnu.org>
39504 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39505 not disk. Adjust all dependencies.
39506 (grub_fs_uuid_close): Use grub_device_close(), not
39509 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39510 parent's partition, don't copy it by reference, as it gets freed
39513 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39515 Preboot hooks support
39517 * commands/boot.c (struct grub_preboot_t): new declaration
39518 (preboots_head): new variable
39519 (preboots_tail): likewise
39520 (grub_loader_register_preboot_hook): new function
39521 (grub_loader_unregister_preboot_hook): likewise
39522 (grub_loader_set): launch preboot hooks
39523 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39524 (grub_loader_register_preboot_hook): new declaration
39525 (grub_loader_unregister_preboot_hook): likewise
39527 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39531 * disk/scsi.c (grub_scsi_open): added missing cast when
39532 calling grub_dprintf
39534 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39536 Bug and warning fixes
39538 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39540 * commands/test.c (test_parse): fixed bug with file tests and corrected
39541 declaration of find_file
39543 2009-04-26 Pavel Roskin <proski@gnu.org>
39545 * Makefile.in: Don't install empty manual pages if help2man is
39546 missing. Use help2man option for output, not shell redirection.
39548 2009-04-26 David S. Miller <davem@davemloft.net>
39550 * util/grub-mkdevicemap.c (make_device_map): Add missing
39551 NESTED_FUNC_ATTR to process_device().
39553 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39557 * commands/test.c: rewritten to use bash-like test
39559 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39561 Parttool autoloading and improvements
39563 * Makefile.in (pkglib_DATA): add parttool.lst
39564 (parttool.lst): new target
39565 * genmk.rb: generate parttool-*
39566 (CLEANFILES): add #{parttool}
39567 (PARTTOOLFILES): new variable
39568 * genparttoollist.sh: new file
39569 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39570 (grub_pcpart_type): likewise
39571 * commands/parttool.c (helpmsg): new variable
39572 (grub_cmd_parttool): output help if not enough arguments are supplied
39574 (GRUB_MOD_INIT(parttool)): use helpmsg
39576 2009-04-24 David S. Miller <davem@davemloft.net>
39578 Avoiding opening same device multiple times in device iterator.
39580 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39581 and use it to build a list of partitions in iterate_disk() and
39582 iterate_partition().
39584 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39587 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39588 grub_devalias_iterate() result instead of unconditional 0.
39589 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39590 Also, capture hook return value, either directly or via
39591 grub_children_iterate(), and propagate to caller.
39592 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39593 grub_children_iterate): Return value is now 'int' instead of
39595 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39596 like a proper iterator, stopping when hooks return non-zero.
39597 (grub_devalias_iterate): Likewise.
39599 2009-04-23 David S. Miller <davem@davemloft.net>
39601 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39603 2009-04-22 David S. Miller <davem@davemloft.net>
39605 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39606 is larger than address_cells, use that value for address_cells too.
39608 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39609 IEEE1275_MAX_PATH_LEN): Define.
39610 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39611 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39612 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39613 'devtype'. Explicitly NULL terminate devalias expansion.
39615 * util/sparc64/ieee1275/misc.c: New file.
39616 * util/sparc64/ieee1275/grub-setup.c: New file.
39617 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39618 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39619 * util/sparc64/ieee1275/grub-install.in: New file.
39620 * util/ieee1275/ofpath.c: New file.
39621 * util/ieee1275/devicemap.c: New file.
39622 * util/devicemap.c: New file.
39623 * util/deviceiter.c: New file.
39624 * kern/sparc64/ieee1275/init.c: New file.
39625 * include/grub/util/ofpath.h: New file.
39626 * include/grub/util/deviceiter.h: New file.
39627 * util/grub-mkdevicemap.c: Include deviceiter.h.
39628 Implement using grub_util_emit_devicemap_entry and
39629 grub_util_iterate_devices.
39630 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39631 util/devicemap.c into grub-mkdevicemap
39632 * conf/i386-efi.rmk: Likewise.
39633 * conf/i386-ieee1275.rmk: Likewise.
39634 * conf/i386-pc.rmk: Likewise.
39635 * conf/powerpc-ieee1275.rmk: Likewise.
39636 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39637 images and installation utilities. Build kernel as image
39638 instead of as elf binary. Use common rules as much as possible.
39640 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39642 Correct GPT definition
39644 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39647 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39649 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39651 2009-04-19 David S. Miller <davem@davemloft.net>
39653 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39654 (grub_rescue_cmd_linux): Rename to...
39655 (grub_cmd_linux): and fix prototype.
39656 (grub_rescue_cmd_initrd): Rename to...
39657 (grub_cmd_initrd): and fix prototype.
39658 (cmd_linux, cmd_initrd): New.
39659 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39660 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39662 2009-04-17 Pavel Roskin <proski@gnu.org>
39664 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39666 (grub_ohci_transfer): Likewise.
39668 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39670 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39671 return without a value. Fix inconsistent indentation.
39673 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39674 match struct grub_fs.
39676 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39677 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39678 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39679 * commands/lspci.c (grub_lspci_iter): Likewise.
39681 2009-04-16 Bean <bean123ch@gmail.com>
39683 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39686 2009-04-15 Pavel Roskin <proski@gnu.org>
39688 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39689 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39690 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39693 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39695 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39696 that no multiple data or metadata areas are supported and `Unknown
39699 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39701 Move loader out of the kernel
39703 * kern/loader.c: moved to ...
39704 * commands/boot.c: ... moved here
39705 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39706 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39707 * include/grub/kernel.h (grub_machine_fini): export
39708 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39709 (grub_loader_set): likewise
39710 (grub_loader_unset): likewise
39711 (grub_loader_boot): likewise
39712 * conf/common.rmk: new module boot.mod
39713 (pkglib_MODULES): add boot.mod
39714 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39715 (grub_emu_SOURCES): likewise
39716 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39717 (grub_emu_SOURCES): likewise
39718 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39719 (grub_emu_SOURCES): likewise
39720 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39721 (grub_emu_SOURCES): likewise
39722 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39723 (grub_emu_SOURCES): likewise
39724 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39725 (grub_emu_SOURCES): likewise
39726 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39727 (grub_emu_SOURCES): likewise
39729 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39731 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39733 * kern/misc.c (grub_itoa): Removed function
39734 (grub_ltoa): likewise
39735 (grub_vsprintf): use grub_lltoa
39737 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39741 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39742 * conf/i386-coreboot.rmk: likewise
39743 * conf/i386-ieee1275.rmk: likewise
39744 * conf/powerpc-ieee1275.rmk: likewise
39746 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39748 * INSTALL: Add that `./autogen.sh' needs to be run before
39751 2009-04-14 Bean <bean123ch@gmail.com>
39753 * Makefile.in (pkglib_DATA): Add handler.lst.
39754 (handler.lst): New rule.
39756 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39757 * conf/i386-coreboot.rmk: Likewise.
39758 * conf/i386-ieee1275.rmk: Likewise.
39759 * conf/i386-efi.rmk: Likewise.
39760 * conf/x86_64-efi.rmk: Likewise.
39761 * conf/powerpc-ieee1275.rmk: Likewise.
39762 * conf/sparc64-ieee1275.rmk: Likewise.
39764 * genhandlerlist.sh: New file.
39766 * genmk.rb: Add rules to generate handler.lst.
39768 * include/grub/normal.h (grub_file_getline): New function definition.
39769 (read_handler_list): Likewise.
39770 (free_handler_list): Likewise.
39772 * include/grub/term.h (grub_term_register_input): Add name parameter
39773 for auto generation of handler.lst.
39774 (grub_term_register_output): Likewise.
39776 * normal/handler.c: New file.
39778 * normal/main.c (get_line): Renamed to grub_file_getline.
39779 (read_config_file): Use the newly renamed grub_file_getline.
39780 (read_command_list): Likewise.
39781 (read_fs_list): Likewise.
39782 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39783 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39785 * term/efi/console.c (grub_console_init): Add name parameter for auto
39786 generation of handler.lst.
39787 * term/gfxterm.c: Likewise.
39788 * term/i386/pc/at_keyboard.c: Likewise.
39789 * term/i386/pc/console.c: Likewise.
39790 * term/i386/pc/serial.c: Likewise.
39791 * term/i386/pc/vesafb.c: Likewise.
39792 * term/i386/pc/vga.c: Likewise.
39793 * term/i386/pc/vga_text.c: Likewise.
39794 * term/ieee1275/ofconsole.c: Likewise.
39795 * term/usb_keyboard.c: Likewise.
39797 2009-04-14 Bean <bean123ch@gmail.com>
39799 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39800 properly with null character.
39802 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39804 * configure: Remove.
39805 * config.h.in: Likewise.
39806 * stamp-h.in: Likewise.
39807 * DISTLIST: Likewise.
39808 * conf/common.mk: Likewise.
39809 * conf/i386-coreboot.mk: Likewise.
39810 * conf/i386-efi.mk: Likewise.
39811 * conf/i386-ieee1275.mk: Likewise.
39812 * conf/i386.mk: Likewise.
39813 * conf/i386-pc.mk: Likewise.
39814 * conf/powerpc-ieee1275.mk: Likewise.
39815 * conf/sparc64-ieee1275.mk: Likewise.
39816 * conf/x86_64-efi.mk: Likewise.
39818 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39821 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39822 David S. Miller <davem@davemloft.net>
39824 * util/hostdisk.c (make_device_name): Fix buffer length
39827 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39829 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39830 <sys/param.h> and <sys/sysctl.h>.
39831 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39832 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39833 opening the device and reset them afterwards.
39835 2009-04-13 Pavel Roskin <proski@gnu.org>
39837 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39838 Reported by John Stanley <jpsinthemix@verizon.net>
39840 2009-04-13 Robert Millan <rmh@aybabtu.com>
39842 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39843 that name for menuentries when appropriate.
39845 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39847 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39849 2009-04-13 Robert Millan <rmh@aybabtu.com>
39851 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39852 to Linux, simply abort telling the user it's no longer supported.
39854 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39856 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39857 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39858 `freebsd_loadenv' only when devices.hints exist.
39860 2009-04-13 Pavel Roskin <proski@gnu.org>
39862 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39864 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39866 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39868 (grub_drive): Likewise.
39870 2009-04-13 David S. Miller <davem@davemloft.net>
39872 * kern/sparc64/ieee1275/ieee1275.c: New file.
39873 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39874 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39875 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39876 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39877 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39878 grub_ieee1275_alloc_physmem): Declare new exported functions.
39880 * include/grub/sparc64/ieee1275/loader.h: New file.
39881 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39882 * include/grub/sparc64/kernel.h: Likewise.
39883 * loader/sparc64/ieee1275/linux.c: Likewise.
39885 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39886 (grub_fstest_SOURCES): Likewise.
39888 * util/hostdisk.c (make_device_name): Do not make any assumptions
39889 about the length of drive names.
39891 * kern/dl.c (grub_dl_load_file): Close file immediately when
39892 we are done using it.
39894 2009-04-12 David S. Miller <davem@davemloft.net>
39896 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39897 values. Noticed by Pavel Roskin.
39899 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39902 * genmk.rb: Add more flexible image type specification, also
39903 pass --strip-unneeded to objcopy.
39904 * conf/i386-pc.rmk: Use *_FORMAT.
39905 * conf/i386-pc.mk: Rebuilt.
39907 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39908 (OFDISK_HASH_SZ): Define.
39909 (ofdisk_hash): New hash table.
39910 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39911 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39912 instead of device phandle which is not unique.
39914 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39915 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39916 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39917 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39918 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39919 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39920 GRUB_KERNEL_MACHINE_DATA_END): Define.
39921 (grub_kernel_image_size, grub_total_module_size): Declare.
39923 2009-04-12 Pavel Roskin <proski@gnu.org>
39925 * configure.ac: Change the logic when we check for target tools.
39926 Do it when the target is specified and it's different from the
39927 specified value of the host.
39929 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39931 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39932 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39933 GNU/kFreeBSD. Check if a device is a character device. Use
39934 DIOCGMEDIASIZE to get the size.
39935 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39936 support for GNU/kFreeBSD.
39937 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39938 is a character device instead of a block device. Add support for
39939 FreeBSD device names.
39941 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39942 is a character device instead of a block device.
39944 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39945 is a character device instead of a block device.
39947 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39949 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39950 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39951 FreeBSD. Check if a device is a character device. Use
39952 DIOCGMEDIASIZE to get the size.
39953 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39954 support for FreeBSD.
39955 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39956 is a character device instead of a block device. Add support for
39957 FreeBSD device names.
39959 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39960 a character device instead of a block device.
39961 (grub_util_check_char_device): New function.
39963 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39964 a character device instead of a block device.
39966 * include/grub/util/getroot.h (grub_util_check_char_device): New
39969 2009-04-11 David S. Miller <davem@davemloft.net>
39971 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39973 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39974 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39975 function, if present.
39976 (__bswapdi2): Likewise.
39978 * include/grub/sparc64/ieee1275/boot.h: New file.
39979 * boot/sparc64/ieee1275/boot.S: Likewise.
39980 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39982 * kern/misc.c (grub_ltoa): New function.
39983 (grub_vsprintf): Use it to format 'long' integers.
39985 2009-04-10 David S. Miller <davem@davemloft.net>
39987 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39988 slots are of type grub_ieee1275_cell_t.
39989 (grub_nand_read): Likewise.
39990 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39991 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39992 macros are used to compare values in arg/ret block of the call.
39993 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39994 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39995 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39996 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39997 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39998 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39999 grub_ieee1275_close, grub_ieee1275_set_property,
40000 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
40001 grub_ieee1275_cell_t.
40002 * kern/ieee1275/openfw.c (grub_map): Likewise.
40003 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
40004 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
40006 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
40007 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
40008 (grub_devalias_iterate): Likewise.
40010 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
40014 * fs/ufs.c (INODE_NBLOCKS): new definition
40015 (struct grub_ufs_dirent): added fields for non-BSD dirents
40016 (grub_ufs_get_file_block): fixed double indirect handling
40017 (grub_ufs_lookup_symlink): use more robust way to determine whether
40019 (grub_ufs_find_file): support for non-BSD dirents
40020 (grub_ufs_dir): support for non-BSD dirents
40022 2009-04-10 Bean <bean123ch@gnail.com>
40024 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
40025 attribute, otherwise the size would be wrong for i386 platform.
40027 * include/grub/pci.h (grub_pci_read_word): New inline function.
40028 (grub_pci_read_byte): Likewise.
40029 (grub_pci_write): Likewise.
40030 (grub_pci_write_word): Likewise.
40031 (grub_pci_write_byte): Likewise.
40033 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
40035 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
40036 (find_framebuf): Scan pci to locate the frame buffer address.
40038 * commands/efi/fixvideo.c: New file.
40040 * commands/efi/loadbios.c: Likewise.
40042 * commands/memrw.c: Likewise.
40044 * util/grub-dumpbios.in: Likewise.
40046 * conf/common.rmk (grub-dumpbios): New utility.
40047 (pkglib_MODULES): New module memrw.mod.
40048 (memrw_mod_SOURCE): New macro.
40049 (memrw_mod_CFLAGS): Likewise.
40050 (memrw_mod_LDFLAGS): Likewise.
40052 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
40054 (loadbios_mod_SOURCE): New macro.
40055 (loadbios_mod_CFLAGS): Likewise.
40056 (loadbios_mod_LDFLAGS): Likewise.
40057 (fixvideo_mod_SOURCE): Likewise.
40058 (fixvideo_mod_CFLAGS): Likewise.
40059 (fixvideo_mod_LDFLAGS): Likewise.
40061 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
40063 (loadbios_mod_SOURCE): New macro.
40064 (loadbios_mod_CFLAGS): Likewise.
40065 (loadbios_mod_LDFLAGS): Likewise.
40066 (fixvideo_mod_SOURCE): Likewise.
40067 (fixvideo_mod_CFLAGS): Likewise.
40068 (fixvideo_mod_LDFLAGS): Likewise.
40070 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
40072 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
40074 2009-04-07 David S. Miller <davem@davemloft.net>
40076 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
40077 support for R_SPARC_OLO10 relocations. Fix compile warning for
40078 R_SPARC_WDISP30 case.
40079 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
40081 2009-04-06 Pavel Roskin <proski@gnu.org>
40083 * include/grub/misc.h (ARRAY_SIZE): New macro.
40084 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
40086 * loader/i386/linux.c (allocate_pages): Use free_pages().
40087 (grub_linux_unload): Don't use free_pages().
40088 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
40089 wrong index. Treat all other modes as text modes.
40090 (grub_cmd_linux): Initialize vid_mode unconditionally to
40091 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
40093 * commands/help.c (print_command_help): Use cmd->prio, not
40094 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
40096 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
40100 * parttool/pcpart.c: new file
40101 * commands/parttool.c: likewise
40102 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
40103 (parttool_mod_SOURCES): new variable
40104 (parttool_mod_CFLAGS): likewise
40105 (parttool_mod_LDFLAGS): likewise
40106 (pcpart_mod_SOURCES): likewise
40107 (pcpart_mod_CFLAGS): likewise
40108 (pcpart_mod_LDFLAGS): likewise
40109 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
40110 and parttool/pcpart.c
40111 * conf/i386-efi.rmk: likewise
40112 * conf/i386-ieee1275.rmk: likewise
40113 * conf/i386-pc.rmk: likewise
40114 * conf/powerpc-ieee1275.rmk: likewise
40115 * conf/sparc64-ieee1275.rmk: likewise
40116 * conf/x86_64-ieee1275.rmk: likewise
40118 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40120 Support for mtime and further expandability of dir command
40122 * include/grub/lib/datetime.h: moved to ...
40123 * include/grub/datetime.h: ... moved here and added
40124 declaration of grub_unixtime2datetime. All users updated
40125 * include/grub/fs.h: new syntax for dir and mtime functions in
40127 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
40128 and GRUB_FSHELP_FLAGS_MASK
40129 * commands/ls.c (grub_ls_list_files): Write mtime in long format
40130 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
40131 (grub_ext2_mtime): new function
40132 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
40133 (grub_hfsplus_mtime): new function
40134 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
40135 (GRUB_UFS_ATTR_FILE): likewise
40136 (GRUB_UFS_ATTR_LNK): likewise
40137 (struct grub_ufs_sblock): new fields mtime
40138 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
40140 (grub_ufs_dir): mtime support
40141 (grub_ufs_mtime): new function
40142 * fs/affs.c (grub_affs_dir): use new dir syntax
40143 * fs/afs.c (grub_afs_dir): likewise
40144 * fs/cpio.c (grub_cpio_dir): likewise
40145 * fs/fat.c (grub_fat_find_dir): likewise
40146 * fs/hfs.c (grub_hfs_dir): likewise
40147 * fs/iso9660.c (grub_iso9660_dir): likewise
40148 * fs/jfs.c (grub_jfs_dir): likewise
40149 * fs/minix.c (grub_minix_dir): likewise
40150 * fs/ntfs.c (grub_ntfs_dir): likewise
40151 * fs/reiserfs.c (grub_reiserfs_dir): likewise
40152 * fs/sfs.c (grub_sfs_dir): likewise
40153 * fs/xfs.c (grub_xfs_dir): likewise
40154 * util/hostfs.c (grub_hostfs_dir): likewise
40155 * lib/datetime.c: moved to ...
40156 * normal/datetime.c: ... moved here
40157 (grub_unixtime2datetime): new function
40158 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
40159 * normal/completion.c (iterate_dir): use new dir syntax
40160 * normal/misc.c (grub_normal_print_device_info): tell the
40161 last modification time of a volume
40162 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
40163 * conf/common.rmk: added lib/datetime.c to ls.mod
40164 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
40165 (normal_mod_SOURCES): likewise
40166 (datetime_mod_SOURCES): Removed lib/datetime.c
40167 * conf/i386-efi.rmk: likewise
40168 * conf/i386-ieee1275.rmk: likewise
40169 * conf/i386-pc.rmk: likewise
40170 * conf/powerpc-ieee1275.rmk: likewise
40171 * conf/sparc64-ieee1275.rmk: likewise
40172 * conf/x86_64-efi.rmk: likewise
40174 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40176 Trim trailing spaces in FAT label and support mtools-like labels
40178 * fs/fat.c (grub_fat_iterate_dir): New function based
40179 on grub_fat_find_dir
40180 (grub_fat_find_dir): use grub_fat_iterate_dir
40181 (grub_fat_label): likewise
40183 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40185 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
40187 remove extraneous kernel_elf_HEADERS
40189 2009-04-04 Bean <bean123ch@gnail.com>
40191 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40193 * util/misc.c: Likewise.
40195 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40197 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40198 instead of grub_printf.
40200 2009-04-03 Robert Millan <rmh@aybabtu.com>
40202 * loader/i386/linux.c (grub_linux_setup_video): Fill
40203 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40204 values from `mode info' structure instead of hardcoded
40207 2009-04-01 Pavel Roskin <proski@gnu.org>
40209 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40211 * genmk.rb: Likewise.
40212 * configure.ac: Likewise.
40214 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40216 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40217 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40219 2009-04-01 David S. Miller <davem@davemloft.net>
40221 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40222 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40223 (grub_setjmp): Mark with 'returns_twice' attribute.
40224 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40225 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40226 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40228 2009-04-01 Robert Millan <rmh@aybabtu.com>
40230 Reapply fix from 2008-07-28 which was accidentally reverted; also
40231 perform the same fix to a similar check in same function.
40233 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40234 with the same number are found, just use issue a warning with
40235 grub_dprintf(), as this error has been reported to be non-fatal.
40237 2009-03-31 Pavel Roskin <proski@gnu.org>
40239 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40240 for cross-compilation.
40242 2009-03-30 Robert Millan <rmh@aybabtu.com>
40244 Fix i386-ieee1275 build.
40246 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40247 Remove declaration.
40249 2009-03-30 Pavel Roskin <proski@gnu.org>
40251 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40252 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40253 zero-terminated, rely only on the strlen value. Fix comparison
40254 of strings differing in length.
40256 2009-03-30 Robert Millan <rmh@aybabtu.com>
40258 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40259 checking for abi version. Improve error messages on BIOS to notify
40260 user about `linux16' command.
40262 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40266 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40267 in case of collision
40268 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40270 2009-03-29 Robert Millan <rmh@aybabtu.com>
40272 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40273 set `vid_mode' accordingly.
40274 (grub_linux_boot): Process `vid_mode' and set video mode.
40276 2009-03-29 Robert Millan <rmh@aybabtu.com>
40278 * util/grub.d/10_linux.in (linux_entry): New function.
40279 Factorize generation of Linux boot entries.
40281 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40283 Make the format of Environment Block plain text. The boot loader
40284 part is not tested well yet.
40286 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40288 (envblk): Likewise.
40289 (usage): Remove "info" and "clear". Add "unset". Update the
40290 description of "set", as this does not delete variables any
40292 (create_envblk_file): Complete rewrite.
40293 (open_envblk_file): Likewise.
40294 (cmd_info): Removed.
40295 (cmd_list): Likewise.
40296 (cmd_set): Likewise.
40297 (cmd_clear): Likewise.
40298 (list_variables): New function.
40299 (write_envblk): Likewise.
40300 (set_variables): Likewise.
40301 (unset_variables): Likewise.
40302 (main): Complete rewrite.
40304 * commands/loadenv.c (buffer): Removed.
40305 (envblk): Likewise.
40306 (open_envblk_file): New function.
40307 (read_envblk_file): Complete rewrite.
40308 (grub_cmd_load_env): Likewise.
40309 (grub_cmd_list_env): Likewise.
40310 (struct blocklist): New struct.
40311 (free_blocklists): New function.
40312 (check_blocklists): Likewise.
40313 (write_blocklists): Likewise.
40314 (grub_cmd_save_env): Complete rewrite.
40316 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40317 a plain text signature.
40318 (GRUB_ENVBLK_MAXLEN): Removed.
40319 (struct grub_envblk): Complete rewrite.
40320 (grub_envblk_find): Removed.
40321 (grub_envblk_insert): Likewise.
40322 (grub_envblk_open): New prototype.
40323 (grub_envblk_set): Likewise.
40324 (grub_envblk_delete): Put const to VALUE.
40325 (grub_envblk_iterate): Put const to NAME and VALUE.
40326 (grub_envblk_close): New prototype.
40327 (grub_envblk_buffer): New inline function.
40328 (grub_envblk_size): Likewise.
40330 * lib/envblk.c: Include grub/mm.h.
40331 (grub_env_find): Removed.
40332 (grub_envblk_open): New function.
40333 (grub_envblk_close): Likewise.
40334 (escaped_value_len): Likewise.
40335 (find_next_line): Likewise.
40336 (grub_envblk_insert): Removed.
40337 (grub_envblk_set): New function.
40338 (grub_envblk_delete): Complete rewrite.
40339 (grub_envblk_iterate): Likewise.
40341 2009-03-28 Robert Millan <rmh@aybabtu.com>
40343 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40344 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40345 variables. Use 16-bit loader.
40346 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40348 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40349 (grub_linux16_boot): ... this. Update all users.
40350 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40351 (grub_linux_boot): ... this. Update all users.
40353 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40354 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40355 commands to `linux16' and `initrd16'.
40356 (GRUB_MOD_FINI(linux)): Rename to ...
40357 (GRUB_MOD_FINI(linux16)): ... this.
40359 2009-03-24 Pavel Roskin <proski@gnu.org>
40361 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40362 not just for compilation.
40364 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40366 Move multiboot helper out of kernel
40368 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40369 `loader/i386/multiboot_helper.S'.
40370 * conf/i386-coreboot.rmk: Likewise
40371 * conf/i386-ieee1275.rmk: Likewise
40373 * kern/i386/loader.S: Move multiboot helpers from here...
40374 * loader/i386/multiboot_helper.S: ...moved here
40375 * include/grub/i386/loader.h: Move declarations of multiboot
40376 helpers from here...
40377 * include/grub/i386/multiboot.h: ...moved here
40378 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40380 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40382 * kern/env.c (grub_env_context_open): Added an argument to specify
40383 whether a new context inherits exported variables from current
40384 one. This is useful when making a sandbox to interpret a config
40386 All callers updated.
40388 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40390 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40392 * kern/env.c (grub_env_context_close): Fix memory leaks.
40394 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40396 * normal/main.c (grub_normal_execute): Added an argument
40397 BATCH to specify if an interactive interface should be provided
40398 after reading a config file.
40399 All callers updated.
40400 (read_command_list): Prevent being executed twice.
40401 (read_fs_list): Likewise.
40403 * include/grub/normal.h (grub_normal_execute): Updated the
40406 2009-03-22 Pavel Roskin <proski@gno.org>
40408 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40410 * kern/i386/pc/startup.S: Likewise.
40411 * kern/i386/efi/startup.S: Likewise.
40412 * kern/i386/ieee1275/startup.S: Likewise.
40413 * kern/i386/coreboot/startup.S: Likewise.
40414 * kern/x86_64/efi/startup.S: Likewise.
40416 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40417 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40418 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40420 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40422 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40424 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40426 Use vaddr of correct segment for entry_point.
40428 2009-03-21 Bean <bean123ch@gmail.com>
40430 * commands/blocklist.c: Add include file <grub/command.h>, remove
40431 <grub/normal.h> and <grub/arg.h>.
40432 (grub_cmd_blocklist): Use the new command interface.
40433 (GRUB_MOD_INIT): Likewise.
40434 (GRUB_MOD_FINI): Likewise.
40435 * commands/boot.c: Likewise.
40436 * commands/cat.c: Likewise.
40437 * commands/cmp.c: Likewise.
40438 * commands/configfile.c: Likewise.
40439 * commands/crc.c: Likewise.
40440 * commands/echo.c: Likewise.
40441 * commands/halt.c: Likewise.
40442 * commands/handler.c: Likewise.
40443 * commands/hdparm.c: Likewise.
40444 * commands/help.c: Likewise.
40445 * commands/hexdump.c: Likewise.
40446 * commands/loadenv.c: Likewise.
40447 * commands/ls.c: Likewise.
40448 * commands/lsmmap.c: Likewise.
40449 * commands/lspci.c: Likewise.
40450 * commands/loadenv.c: Likewise.
40451 * commands/read.c: Likewise.
40452 * commands/reboot.c: Likewise.
40453 * commands/search.c: Likewise.
40454 * commands/sleep.c: Likewise.
40455 * commands/test.c: Likewise.
40456 * commands/usbtest.c: Likewise.
40457 * commands/videotest.c: Likewise.
40458 * commands/i386/cpuid.c: Likewise.
40459 * commands/i386/pc/halt.c: Likewise.
40460 * commands/i386/pc/play.c: Likewise.
40461 * commands/i386/pc/pxecmd.c: Likewise.
40462 * commands/i386/pc/vbeinfo.c: Likewise.
40463 * commands/i386/pc/vbetest.c: Likewise.
40464 * commands/ieee1275/suspend.c: Likewise.
40465 * disk/loopback.c: Likewise.
40466 * font/font_cmd.c: Likewise.
40467 * hello/hello.c: Likewise.
40468 * loader/efi/appleloader.c: Likewise.
40469 * loader/efi/chainloader.c: Likewise.
40470 * loader/i386/bsd.c: Likewise.
40471 * loader/i386/efi/linux.c: Likewise.
40472 * loader/i386/ieee1275/linux.c: Likewise.
40473 * loader/i386/linux.c: Likewise.
40474 * loader/i386/pc/chainloader.c: Likewise.
40475 * loader/i386/pc/linux.c: Likewise.
40476 * loader/powerpc/ieee1275/linux.c: Likewise.
40477 * loader/multiboot_loader.c: Likewise.
40478 * term/gfxterm.c: Likewise.
40479 * term/i386/pc/serial.c: Likewise.
40480 * term/terminfo.c: Likewise.
40482 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40483 * term/i386/pc/vga.c: Likewise.
40484 * video/readers/jpeg.c: Likewise.
40485 * video/readers/png.c: Likewise.
40486 * video/readers/tga.c: Likewise.
40488 * util/grub-fstest (cmd_loopback): Removed.
40489 (cmd_blocklist): Likewise.
40490 (cmd_ls): Likewise.
40491 (grub_register_command): Likewise.
40492 (grub_unregister_command): Likewise.
40493 (execute_command): Use grub_command_find to locate command and execute
40496 * include/grub/efi/chainloader.h: Removed.
40497 * loader/efi/chainloader_normal.c: Likewise.
40498 * loader/i386/bsd_normal.c: Likewise.
40499 * loader/i386/pc/chainloader_normal.c: Likewise.
40500 * loader/i386/pc/multiboot_normal.c: Likewise.
40501 * loader/linux_normal.c: Likewise.
40502 * loader/multiboot_loader_normal.c: Likewise.
40503 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40505 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40506 and grub_register_command_p1.
40508 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40509 kern/command.c, lib/arg.c and commands/extcmd.c.
40510 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40511 (minicmd_mod_SOURCES): New variable.
40512 (minicmd_mod_CFLAGS): Likewise.
40513 (minicmd_mod_LDFLAGS): Likewise.
40514 (extcmd_mod_SOURCES): Likewise.
40515 (extcmd_mod_CFLAGS): Likewise.
40516 (extcmd_mod_LDFLAGS): Likewise.
40517 (boot_mod_SOURCES): Removed.
40518 (boot_mod_CFLAGS): Likewise.
40519 (boot_mod_LDFLAGS): Likewise.
40521 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40523 (kernel_img_HEADERS): Add command.h.
40524 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40525 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40527 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40528 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40529 remove the corresponding normal mode command.
40530 (normal_mod_SOURCES): Remove normal/arg.c.
40531 * conf/i386-coreboot.rmk: Likewise.
40532 * conf/i386-efi.rmk: Likewise.
40533 * conf/i386-ieee1275.rmk: Likewise.
40534 * conf/powerpc-ieee1275.rmk: Likewise.
40535 * conf/x86_64-efi.rmk: Likewise.
40537 * include/grub/arg.h: Move from here ...
40538 * include/grub/lib/arg.h: ... to here.
40540 * normal/arg.c: Move from here ...
40541 * lib/arg.c: ... to here.
40543 * commands/extcmd.c: New file.
40544 * commands/minicmd.c: Likewise.
40545 * include/grub/command.h: Likewise.
40546 * include/grub/extcmd.h: Likewise.
40547 * kern/command.c: Likewise.
40548 * kern/corecmd.c: Likewise.
40550 * kern/list.c (grub_list_iterate): Return int instead of void.
40551 (grub_list_insert): New function.
40552 (grub_prio_list_insert): Likewise.
40554 * kern/rescue.c (grub_rescue_command): Removed.
40555 (grub_rescue_command_list): Likewise.
40556 (grub_rescue_register_command): Likewise.
40557 (grub_rescue_unregister_command): Likewise.
40558 (grub_rescue_cmd_boot): Move to minicmd.c
40559 (grub_rescue_cmd_help): Likewise.
40560 (grub_rescue_cmd_info): Likewise.
40561 (grub_rescue_cmd_boot): Likewise.
40562 (grub_rescue_cmd_testload): Likewise.
40563 (grub_rescue_cmd_dump): Likewise.
40564 (grub_rescue_cmd_rmmod): Likewise.
40565 (grub_rescue_cmd_lsmod): Likewise.
40566 (grub_rescue_cmd_exit): Likewise.
40567 (grub_rescue_print_devices): Moved to corecmd.c.
40568 (grub_rescue_print_files): Likewise.
40569 (grub_rescue_cmd_ls): Likewise.
40570 (grub_rescue_cmd_insmod): Likewise.
40571 (grub_rescue_cmd_set): Likewise.
40572 (grub_rescue_cmd_unset): Likewise.
40573 (attempt_normal_mode): Use grub_command_find to get normal module.
40574 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40575 commands, remove grub_rescue_register_command calls.
40577 * normal/command.c (grub_register_command): Removed.
40578 (grub_unregister_command): Likewise.
40579 (grub_command_find): Likewise.
40580 (grub_iterate_commands): Likewise.
40581 (rescue_command): Likewise.
40582 (export_command): Moved to corecmd.c.
40583 (set_command): Removed.
40584 (unset_command): Likewise.
40585 (insmod_command): Likewise.
40586 (rmmod_command): Likewise.
40587 (lsmod_command): Likewise.
40588 (grub_command_init): Likewise.
40590 * normal/completion.c (iterate_command): Use cmd->prio to check for
40592 (complete_arguments): Use grub_extcmd_t structure to find options.
40593 (grub_normal_do_completion): Change function grub_iterate_commands to
40594 grub_command_iterate.
40596 * normal/execute.c (grub_script_execute_cmd): No need to parse
40599 * normal/main.c (grub_dyncmd_dispatcher): New function.
40600 (read_command_list): Register unload commands as dyncmd.
40601 (grub_cmd_normal): Use new command interface, register rescue,
40602 unregister normal at entry, register normal, unregister rescue at exit.
40604 * include/grub/list.h (grub_list_test_t): New type.
40605 (grub_list_iterate): Return int instead of void.
40606 (grub_list_insert): New function.
40607 (GRUB_AS_NAMED_LIST_P): New macro.
40608 (GRUB_AS_PRIO_LIST): Likewise.
40609 (GRUB_AS_PRIO_LIST_P): Likewise.
40610 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40611 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40612 (grub_prio_list): New structure.
40613 (grub_prio_list_insert): New function.
40614 (grub_prio_list_remove): New inline function.
40616 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40617 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40618 (GRUB_COMMAND_FLAG_MENU): Likewise.
40619 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40620 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40621 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40622 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40623 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40624 (grub_command): Likewise.
40625 (grub_register_command): Likewise.
40626 (grub_command_find): Likewise.
40627 (grub_iterate_commands): Likewise.
40628 (grub_command_init): Likewise.
40629 (grub_arg_parse): Likewise.
40630 (grub_arg_show_help): Likewise.
40632 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40633 (grub_rescue_unregister_command): Likewise.
40635 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40636 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40637 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40639 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40640 grub_rescue_cmd_initrd.
40641 * include/grub/i386/loader.h: Likewise.
40642 * include/grub/x86_64/loader.h: Likewise.
40644 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40646 2009-03-21 Bean <bean123ch@gmail.com>
40648 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40649 instead of stat in mingw environment.
40651 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40653 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40655 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40658 2009-03-21 Bean <bean123ch@gmail.com>
40660 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40661 out of range error.
40663 2009-03-18 Michel Dänzer <michel@daenzer.net>
40665 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40666 checking inode flags for EXT4_EXTENTS_FLAG.
40668 2009-03-18 Robert Millan <rmh@aybabtu.com>
40670 * loader/i386/linux.c: Include `<grub/video.h>' and
40671 `<grub/i386/pc/vbe.h>'..
40672 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40673 (grub_linux32_boot): Attempt to configure video settings with
40674 grub_linux_setup_video().
40675 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40676 to avoid grub_console_fini() which would step out of graphical mode
40679 2009-03-14 Robert Millan <rmh@aybabtu.com>
40681 Fix build on powerpc.
40682 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40684 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40686 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40687 background image command.
40689 2009-03-12 Colin D Bennett <colin@gibibit.com>
40691 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40692 (grub_gfxterm_putchar): Extract pairs of identical calls to
40693 draw_cursor out of conditional blocks.
40695 2009-03-11 Pavel Roskin <proski@gnu.org>
40697 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40698 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40700 2009-03-11 Robert Millan <rmh@aybabtu.com>
40702 * loader/i386/multiboot_elfxx.c
40703 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40705 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40707 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40710 2009-03-11 Robert Millan <rmh@aybabtu.com>
40712 * loader/i386/multiboot.c (code_size): New variable.
40713 (grub_multiboot): Define offsets by adding to `code_size' rather
40714 than subtracting from `grub_multiboot_payload_size'. Provide
40715 4-byte alignment to MBI and others by increasing
40716 `boot_loader_name_length' appropriately.
40718 * loader/i386/multiboot_elfxx.c
40719 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40721 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40723 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40726 2009-03-08 Robert Millan <rmh@aybabtu.com>
40728 Make loader/i386/linux.c usable on i386-pc again.
40730 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40732 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40735 2009-03-07 Bean <bean123ch@gmail.com>
40737 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40740 2009-03-06 Robert Millan <rmh@aybabtu.com>
40742 Fix display issue on terminals with screen size other than 80x25
40743 (e.g. gfxterm with resolution higher than 640x480).
40745 * normal/main.c (grub_normal_init_page): Display title text in a
40746 position relative to the center of the terminal instead of relying
40747 on a hardcoded offset.
40749 2009-03-04 Robert Millan <rmh@aybabtu.com>
40751 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40754 * Makefile.in (host_kernel): New variable.
40755 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40756 scripts instead of just the windows one.
40757 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40759 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40761 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40763 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40764 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40765 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40766 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40767 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40768 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40770 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40772 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40773 or if there's no space for the disk label and print the partition number on a
40776 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40778 * util/misc.c: Include <time.h>.
40779 (grub_millisleep): New function.
40781 2009-03-04 Bean <bean123ch@gmail.com>
40783 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40784 another option -mno-red-zone.
40786 * commands/handler.c: Change module description.
40788 * kern/handler.c: Add missing space at the end of description line.
40790 * kern/list.c: Likewise.
40792 2009-03-03 Robert Millan <rmh@aybabtu.com>
40794 Move more components to the relocation area, and fix mbi pointer
40795 handling to use the destination rather than the origin (thanks to
40796 Vladimir Serbinenko for spotting).
40798 * loader/i386/multiboot.c (mbi_dest): New variable.
40799 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40800 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40803 2009-03-01 Bean <bean123ch@gmail.com>
40805 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40806 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40807 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40808 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40810 * loader/i386/efi/linux.c (acpi_guid): New variable.
40811 (acpi_guid): Likewise.
40812 (EBDA_SEG_ADDR): New constant.
40813 (LOW_MEM_ADDR): Likewise.
40814 (FAKE_EBDA_SEG): Likewise.
40815 (fake_bios_data): New function.
40816 (grub_linux_boot): Call fake_bios_data.
40818 2009-03-01 Bean <bean123ch@gmail.com>
40820 * commands/terminal.c: Removed.
40822 * commands/handler.c: New file.
40824 * include/grub/list.h: Likewise.
40826 * include/grub/handler.h: Likewise.
40828 * kern/list.c: Likewise.
40830 * kern/handler.c: Likewise.
40832 * kern/term.h: Include header file <grub/handler.h>.
40833 (grub_term_input): Move next field to the beginning.
40834 (grub_term_output): Likewise.
40835 (grub_term_input_class): New variable.
40836 (grub_term_output_class): Likewise.
40837 (grub_term_register_input): Changed to inline function.
40838 (grub_term_register_output): Likewise.
40839 (grub_term_unregister_input): Likewise.
40840 (grub_term_unregister_output): Likewise.
40841 (grub_term_set_current_input): Likewise.
40842 (grub_term_set_current_output): Likewise.
40843 (grub_term_get_current_input): Likewise.
40844 (grub_term_get_current_output): Likewise.
40845 (grub_term_iterate_input): Removed.
40846 (grub_term_iterate_output): Likewise.
40848 * kern/term.c (grub_term_list_input): Removed.
40849 (grub_term_list_output): Likewise.
40850 (grub_term_input_class): New variable.
40851 (grub_term_output_class): Likewise.
40852 (grub_cur_term_input): Change variable as macro.
40853 (grub_cur_term_output): Likewise.
40854 (grub_term_register_input): Removed.
40855 (grub_term_register_output): Likewise.
40856 (grub_term_unregister_input): Likewise.
40857 (grub_term_unregister_output): Likewise.
40858 (grub_term_set_current_input): Likewise.
40859 (grub_term_set_current_output): Likewise.
40860 (grub_term_iterate_input): Likewise.
40861 (grub_term_iterate_output): Likewise.
40862 (grub_term_get_current_input): Likewise.
40863 (grub_term_get_current_output): Likewise.
40865 * util/grub-editenv.c: Include header file <grub/handler.h>.
40866 (grub_term_get_current_input): Removed.
40867 (grub_term_get_current_output): Likewise.
40868 (grub_term_input_class): New variable.
40869 (grub_term_output_class): Likewise.
40871 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40872 (grub_term_get_current_output): Likewise.
40873 (grub_term_input_class): New variable.
40874 (grub_term_output_class): Likewise.
40876 * util/grub-probe.c (grub_term_get_current_input): Removed.
40877 (grub_term_get_current_output): Likewise.
40878 (grub_term_input_class): New variable.
40879 (grub_term_output_class): Likewise.
40881 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40882 (grub_term_get_current_output): Likewise.
40883 (grub_term_input_class): New variable.
40884 (grub_term_output_class): Likewise.
40886 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40887 (terminal_mod_SOURCES): Likewise.
40888 (terminal_mod_CFLAGS): Likewise.
40889 (terminal_mod_LDFLAGS): Likewise.
40891 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40893 (kernel_img_SOURCES): Add list.c and handler.c.
40894 (kernel_img_HEADERS): Add list.h and handler.h.
40896 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40898 (kernel_mod_SOURCES): Add list.c and handler.c.
40899 (kernel_mod_HEADERS): Add list.h and handler.h.
40901 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40903 (kernel_elf_SOURCES): Add list.c and handler.c.
40904 (kernel_elf_HEADERS): Add list.h and handler.h.
40906 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40908 (kernel_elf_SOURCES): Add list.c and handler.c.
40909 (kernel_elf_HEADERS): Add list.h and handler.h.
40911 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40913 (kernel_mod_SOURCES): Add list.c and handler.c.
40914 (kernel_mod_HEADERS): Add list.h and handler.h.
40916 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40918 (kernel_elf_SOURCES): Add list.c and handler.c.
40919 (kernel_elf_HEADERS): Add list.h and handler.h.
40921 2009-02-27 Robert Millan <rmh@aybabtu.com>
40923 Factorize elf32 / elf64 code in Multiboot loader. This will
40924 prevent it from getting out of sync again.
40926 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40927 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40928 grub_multiboot_load_elf64): Move from here ...
40929 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40930 grub_multiboot_load_elf): ... to here (new file).
40932 2009-02-27 Robert Millan <rmh@aybabtu.com>
40934 * util/grub.d/10_linux.in: Rename "single-user mode" to
40937 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40939 Don't leak in SCSI code.
40940 * disk/scsi.c (grub_scsi_close): free `scsi'.
40942 2009-02-27 Robert Millan <rmh@aybabtu.com>
40944 * loader/i386/pc/multiboot.c: Move from here ...
40945 * loader/i386/multiboot.c: ... to here. Update all users.
40947 2009-02-27 Robert Millan <rmh@aybabtu.com>
40949 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40950 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40952 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40954 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40957 2009-02-27 Robert Millan <rmh@aybabtu.com>
40959 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40960 `0x' qualifier as 0 when base is specified as parameter).
40962 2009-02-24 Bean <bean123ch@gmail.com>
40964 * configure.ac: Check for -mcmodel=large in x86_64 target.
40966 * include/grub/efi/api.h (efi_call_10): New macro.
40967 (efi_wrap_10): New function.
40969 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40970 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40971 (GRUB_PE32_REL_BASED_LOW): Likewise.
40972 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40973 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40974 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40975 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40976 (GRUB_PE32_REL_BASED_REL): Likewise.
40977 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40978 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40979 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40981 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40984 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40985 (efi_wrap_10): New function.
40987 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40989 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40990 MB/MBP model (NV chipset).
40991 (devdata_devs): Add devpath_5 to the list.
40993 * load/i386/efi/linux.c (video_base): Remove variable.
40994 (RGB_MASK): New macro.
40995 (RGB_MAGIC): Likewise.
40996 (LINE_MIN): Likewise.
40997 (LINE_MAX): Likewise.
40998 (FBTEST_STEP): Likewise.
40999 (FBTEST_COUNT): Likewise.
41000 (fb_list): New variable.
41001 (grub_find_video_card): Remove function.
41002 (find_framebuf): New function.
41003 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
41006 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
41007 problem for x86_64.
41009 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
41011 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
41013 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
41016 2009-02-22 Robert Millan <rmh@aybabtu.com>
41018 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
41019 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
41020 in our relocation, instead of using it directly from heap. Also
41021 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
41023 2009-02-21 Robert Millan <rmh@aybabtu.com>
41025 Implement USB keyboard support (based on patch by Marco Gerards)
41027 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
41028 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
41029 (usb_keyboard_mod_LDFLAGS): New variables.
41031 * term/usb_keyboard.c: New file.
41033 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
41035 Corrected wrong declaration
41037 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
41039 2009-02-14 Christian Franke <franke@computer.org>
41041 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
41042 (grub_lspci_iter): Print class code and programming interface byte.
41044 2009-02-14 Christian Franke <franke@computer.org>
41046 * gendistlist.sh: Ignore `.svn' directories.
41048 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
41050 * fs/fat.c: Add 2009 to Copyright line.
41052 2009-02-14 Christian Franke <franke@computer.org>
41054 * commands/hdparm.c: New file. Provides `hdparm' command
41055 which sends ATA commands via grub_disk_ata_pass_through ().
41057 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
41059 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
41060 and <grub/cpu/io.h> to include/grub/ata.h.
41061 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
41062 (GRUB_CDROM_SECTOR_SIZE): Remove.
41063 (GRUB_ATA_*): Move to include/grub/ata.h.
41064 (GRUB_ATAPI_*): Likewise.
41065 (enum grub_ata_commands): Likewise.
41066 (enum grub_ata_timeout_milliseconds): Likewise.
41067 (struct grub_ata_device): Likewise.
41068 (grub_ata_regset): Likewise.
41069 (grub_ata_regget): Likewise.
41070 (grub_ata_regset2): Likewise.
41071 (grub_ata_regget2): Likewise.
41072 (grub_ata_check_ready): Likewise.
41073 (grub_ata_wait_not_busy): Remove static, exported in
41074 include/grub/ata.h.
41075 (grub_ata_wait_drq): Likewise.
41076 (grub_ata_pio_read): Likewise.
41078 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
41079 function for hdparm.mod.
41081 * include/grub/ata.h: New file, contains declarations from
41083 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
41085 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
41086 (grub_disk_ata_pass_through): New exported variable.
41088 * kern/disk.c (grub_disk_ata_pass_through): New variable.
41090 2009-02-13 Colin D Bennett <colin@gibibit.com>
41092 Support multiple fallback entries, and provide an API to support
41093 executing default+fallback menu entries. Renamed the `terminal' menu
41096 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
41097 variable declaration.
41098 (grub_menu_execute_callback): New structure declaration.
41099 (grub_menu_execute_callback_t): New typedef.
41100 (grub_menu_execute_with_fallback): New function declaration.
41101 (grub_menu_get_entry): Likewise.
41102 (grub_menu_get_timeout): Likewise.
41103 (grub_menu_set_timeout): Likewise.
41105 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
41107 * normal/menu.c (grub_wait_after_message): Moved to
41108 `normal/menu_text.c'.
41109 (draw_border): Likewise.
41110 (print_message): Likewise.
41111 (print_entry): Likewise.
41112 (print_entries): Likewise.
41113 (grub_menu_init_page): Likewise.
41114 (get_entry_number): Likewise.
41115 (print_timeout): Likewise.
41116 (run_menu): Likewise.
41117 (grub_menu_execute_entry): Likewise.
41118 (show_text_menu): Likewise.
41119 (get_and_remove_first_entry_number): New function.
41120 (grub_menu_execute_with_fallback): Likewise.
41121 (get_entry): Renamed to ...
41122 (grub_menu_get_entry): .. this and made it global.
41123 (get_timeout): Renamed to ...
41124 (grub_menu_get_timeout): ... this and made it global.
41125 (set_timeout): Renamed to ...
41126 (grub_menu_set_timeout): ... this and made it global.
41127 (grub_normal_terminal_menu_viewer): Renamed to ...
41128 (grub_normal_text_menu_viewer): ... this.
41130 * normal/menu_text.c: New file. Extracted text-menu-specific code
41131 from normal/menu.c.
41133 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
41134 (normal_mod_SOURCES): Likewise.
41136 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41137 (normal_mod_SOURCES): Likewise.
41139 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41140 (normal_mod_SOURCES): Likewise.
41142 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
41143 (normal_mod_SOURCES): Likewise.
41145 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41146 (normal_mod_SOURCES): Likewise.
41148 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41149 (normal_mod_SOURCES): Likewise.
41151 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41152 (normal_mod_SOURCES): Likewise.
41154 2009-02-11 Robert Millan <rmh@aybabtu.com>
41156 * util/grub.d/00_header.in: Update old reference to `font' command.
41158 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
41160 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
41162 Based on patch from Javier Martín.
41164 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41166 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
41167 to avoid false positives with FAT.
41168 (grub_fstest_SOURCES): Likewise.
41169 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41170 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41171 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41172 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41173 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41174 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41176 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41178 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
41179 bpb.version_specific.fat12_or_fat16.fstype and
41180 bpb.version_specific.fat32.fstype.
41182 2009-02-08 Robert Millan <rmh@aybabtu.com>
41184 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
41186 2009-02-08 Robert Millan <rmh@aybabtu.com>
41188 * Makefile.in (host_os, host_cpu): New variables.
41189 (target_os): Remove. Update all users.
41191 2009-02-08 Marco Gerards <marco@gnu.org>
41193 * Makefile.in (enable_grub_emu_usb): New variable.
41194 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41195 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41196 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41197 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41198 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41199 `usbtest.mod' and `usbms.mod'.
41200 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41201 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41202 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41203 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41204 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41207 * disk/usbms.c: New file.
41209 * include/grub/usb.h: Likewise.
41211 * include/grub/usbtrans.h: Likewise.
41213 * include/grub/usbdesc.h: Likewise.
41215 * bus/usb/usbtrans.c: Likewise.
41217 * bus/usb/ohci.c: Likewise.
41219 * bus/usb/uhci.c: Likewise.
41221 * bus/usb/usbhub.c: Likewise.
41223 * bus/usb/usb.c: Likewise.
41225 * commands/usbtest.c: Likewise.
41227 * util/usb.c: Likewise.
41229 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41231 * configure.ac: Test for libusb presence.
41233 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41235 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41237 * kern/mm.c: Add more comments.
41239 2009-02-08 Robert Millan <rmh@aybabtu.com>
41241 Patch from Javier Martín.
41242 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41243 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41245 2009-02-08 Robert Millan <rmh@aybabtu.com>
41247 * fs/cpio.c: Split tar functionality to ...
41248 * fs/tar.c: ... here (new file). Update all users.
41250 2009-02-07 Robert Millan <rmh@aybabtu.com>
41252 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41253 backward-incompatible features.
41255 Based on patch from Javier Martín, with some adjustments.
41257 2009-02-07 Michael Scherer <misc@mandriva.org>
41259 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41261 2009-02-07 Robert Millan <rmh@aybabtu.com>
41263 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41264 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41265 after the RAID stuff.
41267 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41269 Fixes problem when running vbetest command as reported by
41270 Vladimir Serbinenko <phcoder@gmail.com>.
41272 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41274 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41276 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41277 /dev/md/NpN style mdraid devices.
41279 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41281 * util/unifont2pff.rb: Remove.
41283 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41285 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41288 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41290 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41291 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41292 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41293 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41294 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41295 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41296 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41298 2009-02-02 Christian Franke <franke@computer.org>
41300 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41302 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41304 * INSTALL: Note that we now require at least autoconf 2.59 and
41305 that LZO is optional.
41307 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41309 Base on patch on bug #24154 created by Tomas Tintera
41310 <trosos@seznam.cz>.
41312 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41314 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41316 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41317 <bero@arklinux.org>.
41319 * normal/parser.y (script_init): Add missing semicolon.
41321 2009-01-31 Colin D Bennett <colin@gibibit.com>
41323 * normal/main.c: Add include to grub/menu_viewer.h.
41324 (free_menu_entry_classes): Added.
41325 (grub_normal_menu_addentry): Added class property handling.
41326 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41327 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41329 * normal/menu_viewer.c: New file.
41331 * normal/menu.c (run_menu_entry): Renamed to ...
41332 (grub_menu_execute_entry): ... this and made it as global.
41333 (grub_menu_run): Renamed to ...
41334 (show_text_menu): ... this and made it local.
41335 (show_text_menu): Adapt to new function names.
41336 (grub_normal_terminal_menu_viewer): New global variable.
41338 * include/grub/menu.h: New file.
41340 * include/grub/menu_viewer.h: New file.
41342 * include/grub/normal.h: Added include to grub/menu.h.
41343 (grub_menu_entry): Moved to include/grub/menu.h.
41344 (grub_menu_entry_t): Likewise.
41345 (grub_menu): Likewise.
41346 (grub_menu_t): Likewise.
41347 (grub_normal_terminal_menu_viewer): Added.
41348 (grub_menu_execute_entry): Likewise.
41349 (grub_menu_run): Removed.
41351 * DISTLIST: Added include/grub/menu.h.
41352 Added include/grub/menu_viewer.h.
41353 Added normal/menu_viewer.c.
41355 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41357 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41358 arglist for menutitle arguments.
41360 * normal/main.c (grub_normal_menu_addentry): Likewise.
41362 * normal/parser.y (menuentry): Likewise.
41364 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41366 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41367 (grub_script_create_cmdmenu): Likewise.
41369 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41371 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41374 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41376 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41378 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41380 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41382 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41384 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41386 2009-01-30 Christian Franke <franke@computer.org>
41388 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41389 in option help text.
41391 2009-01-27 Pavel Roskin <proski@gnu.org>
41393 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41395 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41397 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41399 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41401 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41402 unregister function.
41404 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41406 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41408 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41410 * util/grub-mkfont.c (usage): Fix typo.
41412 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41414 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41416 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41418 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41420 * kern/misc.c (grub_strcasecmp): New function.
41421 (grub_strcasecmp): Use grub_size_t instead of int for length.
41423 * include/grub/misc.h: Update function prototypes.
41425 2009-01-26 Robert Millan <rmh@aybabtu.com>
41427 * configure.ac: Fix cross-compilation check.
41429 2009-01-22 Christian Franke <franke@computer.org>
41431 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41432 (precision) digit string. Allow `.format2' without `format1' (width).
41433 Limit input chars for `%s' output to `format2' if specified. This is
41434 compatible with standard printf ().
41436 2009-01-22 Christian Franke <franke@computer.org>
41438 * disk/ata.c (grub_ata_wait_status): Replace by ...
41439 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41440 other status bits may be invalid while BSY is asserted.
41441 (grub_ata_check_ready): New function.
41442 (grub_ata_cmd): Removed.
41443 (grub_ata_wait_drq): New function.
41444 (grub_ata_strncpy): Remove inline.
41445 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41446 and error check now done by grub_ata_wait_drq ().
41447 (grub_ata_pio_write): Likewise.
41448 (grub_atapi_identify): Set DEV before check for !BSY. Use
41449 grub_ata_wait_drq () to wait for data.
41450 (grub_ata_device_initialize): Add status register check to
41451 detect missing SATA slave devices. Add debug messages.
41452 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41453 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41454 transfer loop by grub_ata_pio_write ().
41455 (grub_ata_identify): Set DEV before check for !BSY. Use
41456 grub_ata_wait_drq () to wait for data.
41457 (grub_ata_setaddress): Set DEV before check for !BSY.
41458 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41459 read/write in one loop. Fix invalid command on write. Fix incomplete
41460 command on (size % batch) == 0. Add missing error check after write of
41461 last block. Add debug messages.
41462 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41464 2009-01-19 Christian Franke <franke@computer.org>
41466 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41467 (GRUB_ATAPI_IREASON_*): Likewise.
41468 (grub_ata_pio_write): Fix timeout error return.
41469 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41470 (grub_atapi_wait_drq): New function.
41471 (grub_atapi_packet): New parameter `size'.
41472 Use grub_atapi_wait_drq () and direct write instead of
41473 grub_ata_pio_write ().
41474 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41475 reads the number of bytes requested by the device for each DRQ
41477 (grub_atapi_write): Remove old implementation, return not
41478 implemented instead.
41480 2009-01-19 Christian Franke <franke@computer.org>
41482 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41483 of 512 to calculate data size.
41484 (grub_scsi_read12): Likewise.
41485 (grub_scsi_write10): Likewise.
41486 (grub_scsi_write12): Likewise.
41487 (grub_scsi_read): Adjust size according to blocksize.
41488 Add checks for invalid blocksize and unaligned transfer.
41490 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41492 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41494 * term/gfxterm.c (write_char): Fix background rendering for wide
41497 2009-01-19 Robert Millan <rmh@aybabtu.com>
41499 * config.guess: Update to latest version from config git.
41500 * config.sub: Likewise.
41502 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41504 * Makefile.in: Change font compilation to use new grub-mkfont instead
41507 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41508 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41509 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41510 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41511 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41512 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41513 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41514 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41515 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41517 2009-01-16 Christian Franke <franke@computer.org>
41519 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41520 (enum grub_ata_timeout_milliseconds): New enum.
41521 (grub_ata_wait_status): Add parameter milliseconds.
41522 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41523 recovery from timed-out commands.
41524 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41525 return grub_errno instead of REG_ERROR.
41526 (grub_ata_pio_write): Add parameter milliseconds.
41527 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41528 Pass milliseconds to grub_ata_wait_status () and
41529 grub_ata_pio_read ().
41530 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41531 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41532 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41533 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41534 It is not suitable for device detection, because DEV bit is ignored,
41535 the command may run too long, and not all devices set the signature
41537 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41538 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41539 Fix device selection, DEV bit must be set first to address the registers
41540 of the correct device.
41541 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41542 grub_ata_pio_read/write ().
41543 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41544 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41546 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41548 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41550 2009-01-13 Bean <bean123ch@gmail.com>
41552 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41554 2009-01-13 Bean <bean123ch@gmail.com>
41556 * Makefile.in: (enable_grub_mkfont): New variable.
41557 (freetype_cflags): Likewise.
41558 (freetype_libs): Likewise.
41560 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41561 (grub_mkfont_SOURCES): New variable.
41562 (grub_mkfont_CFLAGS): Likewise.
41563 (grub_mkfont_LDFLAGS): Likewise.
41565 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41566 library if `--enable-grub-mkfont' is requested.
41567 (enable_grub_mkfont): New variable.
41568 (freetype_cflags): Likewise.
41569 (freetype_libs): Likewise.
41571 * util/grub-mkfont.c: New file.
41573 2009-01-12 Christian Franke <franke@computer.org>
41575 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41576 mode check. Fix setting of compat_use[].
41578 2009-01-10 Robert Millan <rmh@aybabtu.com>
41580 Update a few copyright years which we forgot to do in 2008 (only for
41581 files whose changes made in 2008 were copyright-significant)
41583 * Makefile.in: Add 2008 to Copyright line.
41584 * disk/ieee1275/ofdisk.c: Likewise.
41585 * disk/efi/efidisk.c: Likewise.
41586 * kern/dl.c: Likewise.
41587 * kern/sparc64/ieee1275/init.c: Likewise.
41588 * kern/mm.c: Likewise.
41589 * kern/efi/mm.c: Likewise.
41590 * boot/i386/pc/boot.S: Likewise.
41591 * genfslist.sh: Likewise.
41592 * fs/iso9660.c: Likewise.
41593 * fs/hfs.c: Likewise.
41594 * fs/jfs.c: Likewise.
41595 * fs/minix.c: Likewise.
41596 * fs/ufs.c: Likewise.
41597 * gensymlist.sh.in: Likewise.
41598 * genkernsyms.sh.in: Likewise.
41599 * include/grub/misc.h: Likewise.
41600 * include/grub/types.h: Likewise.
41601 * include/grub/symbol.h: Likewise.
41602 * include/grub/elf.h: Likewise.
41603 * include/grub/kernel.h: Likewise.
41604 * include/grub/disk.h: Likewise.
41605 * include/grub/dl.h: Likewise.
41606 * include/grub/i386/linux.h: Likewise.
41607 * include/grub/i386/pc/biosdisk.h: Likewise.
41608 * include/grub/efi/api.h: Likewise.
41609 * include/grub/efi/pe32.h: Likewise.
41610 * include/grub/util/misc.h: Likewise.
41611 * normal/execute.c: Likewise.
41612 * normal/arg.c: Likewise.
41613 * normal/completion.c: Likewise.
41614 * normal/lexer.c: Likewise.
41615 * normal/parser.y: Likewise.
41616 * normal/misc.c: Likewise.
41617 * commands/i386/pc/vbeinfo.c: Likewise.
41618 * commands/hexdump.c: Likewise.
41619 * commands/terminal.c: Likewise.
41620 * commands/ls.c: Likewise.
41621 * commands/help.c: Likewise.
41622 * partmap/pc.c: Likewise.
41623 * loader/efi/chainloader.c: Likewise.
41624 * loader/multiboot_loader.c: Likewise.
41625 * loader/i386/pc/multiboot2.c: Likewise.
41626 * term/efi/console.c: Likewise.
41627 * term/i386/pc/serial.c: Likewise.
41628 * util/lvm.c: Likewise.
41629 * util/console.c: Likewise.
41630 * util/i386/efi/grub-mkimage.c: Likewise.
41631 * util/raid.c: Likewise.
41633 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41635 * commands/videotest.c: Removed include to grub/machine/memory.h.
41637 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41638 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41639 (video_mod_SOURCES): Removed.
41640 (video_mod_CFLAGS): Likewise.
41641 (video_mod_LDFLAGS): Likewise.
41642 (gfxterm_mod_SOURCES): Likewise.
41643 (gfxterm_mod_CFLAGS): Likewise.
41644 (gfxterm_mod_LDFLAGS): Likewise.
41645 (videotest_mod_SOURCES): Likewise.
41646 (videotest_mod_CFLAGS): Likewise.
41647 (videotest_mod_LDFLAGS): Likewise.
41648 (bitmap_mod_SOURCES): Likewise.
41649 (bitmap_mod_CFLAGS): Likewise.
41650 (bitmap_mod_LDFLAGS): Likewise.
41651 (tga_mod_SOURCES): Likewise.
41652 (tga_mod_CFLAGS): Likewise.
41653 (tga_mod_LDFLAGS): Likewise.
41654 (jpeg_mod_SOURCES): Likewise.
41655 (jpeg_mod_CFLAGS): Likewise.
41656 (jpeg_mod_LDFLAGS): Likewise.
41657 (png_mod_SOURCES): Likewise.
41658 (png_mod_CFLAGS): Likewise.
41659 (png_mod_LDFLAGS): Likewise.
41661 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41662 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41663 (video_mod_SOURCES): Added.
41664 (video_mod_CFLAGS): Likewise.
41665 (video_mod_LDFLAGS): Likewise.
41666 (videotest_mod_SOURCES): Likewise.
41667 (videotest_mod_CFLAGS): Likewise.
41668 (videotest_mod_LDFLAGS): Likewise.
41669 (bitmap_mod_SOURCES): Likewise.
41670 (bitmap_mod_CFLAGS): Likewise.
41671 (bitmap_mod_LDFLAGS): Likewise.
41672 (tga_mod_SOURCES): Likewise.
41673 (tga_mod_CFLAGS): Likewise.
41674 (tga_mod_LDFLAGS): Likewise.
41675 (jpeg_mod_SOURCES): Likewise.
41676 (jpeg_mod_CFLAGS): Likewise.
41677 (jpeg_mod_LDFLAGS): Likewise.
41678 (png_mod_SOURCES): Likewise.
41679 (png_mod_CFLAGS): Likewise.
41680 (png_mod_LDFLAGS): Likewise.
41681 (gfxterm_mod_SOURCES): Likewise.
41682 (gfxterm_mod_CFLAGS): Likewise.
41683 (gfxterm_mod_LDFLAGS): Likewise.
41685 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41686 grub/machine/console.h.
41688 2009-01-04 Jerone Young <jerone@gmail.com>
41690 Make on screen instructions clearer
41692 Based on patch created by Jidanni <jidanni@jidanni.org>
41694 * normal/menu.c: print clearer instructions on the screen
41696 2009-01-02 Colin D Bennett <colin@gibibit.com>
41700 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41701 build system and fixed gfxterm.c to work with different sized fonts.
41703 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41705 * configure: Re-generated.
41707 * DISTLIST: Removed font/manager.c.
41709 Added font/font_cmd.c.
41711 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41714 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41716 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41718 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41720 * normal/menu.c: Likewise.
41722 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41723 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41725 * include/grub/font.h: Replaced with new file.
41727 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41728 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41729 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41730 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41731 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41732 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41733 fg_red, fg_green, fg_blue, fg_alpha.
41734 (grub_video_adapter): Removed blit_glyph.
41735 (grub_video_blit_glyph): Removed.
41737 * font/manager.c: Removed file.
41739 * font/font.c: New file.
41741 * font/font_cmd.c: Likewise.
41743 * video/video.c (grub_video_blit_glyph): Removed.
41745 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41746 (grub_video_vbe_map_rgba): Likewise.
41747 (grub_video_vbe_unmap_color_int): Likewise.
41748 (grub_video_vbe_blit_glyph): Removed.
41749 (grub_video_vbe_adapter): Removed blit_glyph.
41751 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41752 (get_pixel): Likewise.
41753 (set_pixel): Likewise.
41755 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41757 * term/gfxterm.c: Adapted to new font engine.
41759 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41761 * term/i386/pc/vga.c: Likewise.
41763 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41765 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41767 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41769 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41771 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41773 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41775 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41777 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41779 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41781 * util/grub.d/00_header.in: Changed to use new loadfont command.
41783 * util/grub-mkconfig_lib.in: Changed font extension.
41785 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41787 * util/getroot.c (grub_util_get_grub_dev): Add support for
41788 /dev/md/dNNpNN style partitionable mdraid devices.
41790 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41792 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41793 at a time limit of the PXE TFTP API correctly.
41794 (grub_pxefs_close): Likewise.
41796 2008-11-29 Robert Millan <rmh@aybabtu.com>
41798 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41799 grub_ata_device_initialize() calls.
41801 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41803 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41805 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41807 2008-11-28 Robert Millan <rmh@aybabtu.com>
41809 Fix build on powerpc-ieee1275. Based on patch created by
41810 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41811 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41812 `kern/ieee1275/mmap.c'.
41813 * include/grub/powerpc/ieee1275/memory.h: New file.
41815 Provide grub-install on coreboot.
41816 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41817 (grub_install_SOURCES): New variable.
41818 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41819 usable on coreboot.
41821 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41823 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41824 to `grub_term_input_t'.
41825 (grub_term_get_current_output): Change return type to
41826 `grub_term_output_t'.
41828 2008-11-22 Robert Millan <rmh@aybabtu.com>
41830 Fix breakage on coreboot due to declaration mismatch.
41831 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41832 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41833 grub_vga_text_cls().
41835 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41836 comments. Avoid copying one more byte than necessary (just in case).
41838 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41839 to 0x200000 (avoids trouble with some OFW implementations, and matches
41840 with the one in Yaboot).
41841 Reported by Manoel Abranches
41843 2008-11-20 Robert Millan <rmh@aybabtu.com>
41845 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41846 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41848 * util/grub-mkconfig_lib.in (grub_warn): New function.
41849 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41850 warnings, to obtain consistent formatting.
41851 * util/grub.d/00_header.in: Likewise.
41852 * util/update-grub_lib.in: Likewise.
41854 * loader/i386/linux.c (allocate_pages): Fix a warning.
41855 Move comment text to `#error' stanza.
41857 Harmonize ieee1275's grub_available_iterate() with the generic
41858 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41859 build problem on i386-ieee1275):
41860 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41861 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41862 parameter `type'. Update all users of this function.
41863 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41864 `kern/ieee1275/mmap.c'.
41865 * kern/ieee1275/init.c
41866 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41868 (grub_machine_mmap_iterate): ... this.
41869 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41870 return type to `grub_err_t'. Update all implementations of this
41871 function prototype.
41872 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41875 Add `lsmmap' command (lists firmware-provided memory map):
41876 * commands/lsmmap.c: New file.
41877 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41878 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41880 * conf/powerpc-ieee1275.rmk: Likewise.
41881 * conf/i386-coreboot.rmk: Likewise.
41882 * conf/i386-ieee1275.rmk: Likewise.
41884 2008-11-19 Robert Millan <rmh@aybabtu.com>
41886 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41887 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41888 constraints to initrd allocation (based on code from
41889 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41890 for Linux to find it.
41892 2008-11-14 Robert Millan <rmh@aybabtu.com>
41894 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41895 order to cope with duplicate slashes.
41897 2008-11-14 Robert Millan <rmh@aybabtu.com>
41899 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41900 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41901 don't want to mess with lower memory, because it is used in the Linux
41904 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41905 an appropriate place in lower memory, between 0x10000 and 0x90000,
41906 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41907 is in our heap (probably as a result of it being corrupted during
41908 decompression). Add #error instance with comment to explain why this
41909 loader isn't currently usable on PC/BIOS.
41911 2008-11-14 Robert Millan <rmh@aybabtu.com>
41913 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41914 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41916 2008-11-12 Robert Millan <rmh@aybabtu.com>
41918 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41920 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41921 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41923 * include/grub/i386/pc/memory.h: ... to here.
41925 2008-11-12 Robert Millan <rmh@aybabtu.com>
41927 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41930 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41931 (grub_console_cur_color, grub_console_real_putchar)
41932 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41933 (grub_console_setcolorstate, grub_console_setcolor)
41934 (grub_console_getcolor): Move from here ...
41935 * include/grub/i386/vga_common.h: ... to here (new file).
41937 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41938 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41939 `<grub/i386/io.h>'.
41940 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41941 `<grub/i386/vga_common.h>'.
41943 2008-11-12 Robert Millan <rmh@aybabtu.com>
41945 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41946 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41947 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41949 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41950 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41952 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41953 grub_console_init() with call to grub_vga_text_init().
41954 (grub_machine_fini): Replace call to
41955 grub_console_fini() with call to grub_vga_text_fini() and
41956 grub_at_keyboard_fini().
41958 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41959 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41960 (grub_console_setcolorstate, grub_console_setcolor)
41961 (grub_console_getcolor): New function prototypes.
41963 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41964 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41965 (grub_vga_text_setcursor): Static-ize.
41966 (grub_vga_text_term): New structure.
41967 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41969 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41970 (grub_console_cur_color, grub_console_standard_color)
41971 (grub_console_normal_color, grub_console_highlight_color)
41972 (map_char, grub_console_putchar, grub_console_getcharwidth)
41973 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41974 (grub_console_getcolor): Move from here ...
41975 * term/i386/vga_common.c: ... to here (same function names).
41977 2008-11-12 Robert Millan <rmh@aybabtu.com>
41979 Use newly-added Multiboot support in coreboot.
41981 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41982 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41984 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41985 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41986 (codestart): Store the MBI in `startup_multiboot_info' when we're
41987 being loaded using Multiboot.
41989 * kern/i386/coreboot/init.c (grub_machine_init): Move
41990 grub_at_keyboard_init() call to beginning of function (useful for
41991 debugging). Call grub_machine_mmap_init() before attempting to use
41992 grub_machine_mmap_iterate().
41993 (grub_lower_mem, grub_upper_mem): Move from here ...
41994 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41997 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41998 function prototype.
42000 2008-11-12 Robert Millan <rmh@aybabtu.com>
42002 Fix a regression introduced by the at_keyboard.mod split. Because
42003 some terminals are default on some platforms and non-default on
42004 others, the first terminal being registered determines which is
42005 going to be default.
42007 * kern/term.c (grub_term_register_input): If this is the first
42008 terminal being registered, set it as the current one.
42009 (grub_term_register_output): Likewise.
42011 * term/efi/console.c (grub_console_init): Do not call
42012 grub_term_set_current_output() or grub_term_set_current_input().
42013 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
42014 * term/i386/pc/console.c (grub_console_init): Likewise.
42015 (grub_console_fini): Do not call grub_term_set_current_input()
42016 (but leave grub_term_set_current_output() to restore text mode).
42018 2008-11-10 Robert Millan <rmh@aybabtu.com>
42020 * util/grub.d/00_header.in: Add backward compatibility check for
42021 versions of terminal.mod that don't understand `terminal_input' or
42024 2008-11-09 Robert Millan <rmh@aybabtu.com>
42026 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
42027 `terminal_input' / `terminal_output', not `terminal'.
42029 2008-11-08 Robert Millan <rmh@aybabtu.com>
42031 * Makefile.in (include_DATA): Fix srcdir=. assumption.
42032 (DISTCLEANFILES): Add `build_env.mk'.
42034 2008-11-08 Robert Millan <rmh@aybabtu.com>
42036 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
42037 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42038 members. Update all users.
42039 * util/console.c (grub_ncurses_term): Split in ...
42040 (grub_ncurses_term_input): ... this, and ...
42041 (grub_ncurses_term_output): ... this. Update all users.
42042 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
42044 2008-11-08 Robert Millan <rmh@aybabtu.com>
42046 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
42047 (PKGDATA): Add $(pkgdata_SRCDIR).
42048 (pkglib_BUILDDIR): New variable.
42049 (pkgdata_SRCDIR): New variable.
42050 (build_env.mk): New target.
42051 (include_DATA): New variable.
42052 (install-local): Install $(include_DATA) files in $(includedir).
42054 2008-11-07 Pavel Roskin <proski@gnu.org>
42056 * gendistlist.sh: Use C locale for sorting to ensure consistent
42057 output on all systems.
42059 * util/grub.d/00_header.in: Remove incorrect space before
42062 2008-11-07 Robert Millan <rmh@aybabtu.com>
42064 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
42066 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
42067 * loader/multiboot_loader.c (find_multi_boot2_header): New function
42068 (based on find_multi_boot1_header).
42069 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
42070 using find_multi_boot2_header(), and abort if neither Multiboot or
42071 Multiboot headers were found.
42073 2008-11-07 Robert Millan <rmh@aybabtu.com>
42075 Modularize at_keyboard.mod:
42077 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
42078 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
42079 (at_keyboard_mod_LDFLAGS): New variables.
42081 Actual terminal split:
42083 * include/grub/term.h (struct grub_term): Split in ...
42084 (struct grub_term_input): ... this, and ...
42085 (struct grub_term_output): ... this. Update all users.
42086 (grub_term_set_current): Split in ...
42087 (grub_term_set_current_input): ... this, and ...
42088 (grub_term_set_current_output): ... this.
42089 (grub_term_get_current): Split in ...
42090 (grub_term_get_current_input): ... this, and ...
42091 (grub_term_get_current_output): ... this.
42092 (grub_term_register): Split in ...
42093 (grub_term_register_input): ... this, and ...
42094 (grub_term_register_output): ... this.
42095 (grub_term_unregister): Split in ...
42096 (grub_term_unregister_input): ... this, and ...
42097 (grub_term_unregister_output): ... this.
42098 (grub_term_iterate): Split in ...
42099 (grub_term_iterate_input): ... this, and ...
42100 (grub_term_iterate_output): ... this.
42102 * kern/term.c (grub_term_list): Split in ...
42103 (grub_term_list_input): ... this, and ...
42104 (grub_term_list_output): ... this. Update all users.
42105 (grub_cur_term): Split in ...
42106 (grub_cur_term_input): ... this, and ...
42107 (grub_cur_term_output): ... this. Update all users.
42108 (grub_term_set_current): Split in ...
42109 (grub_term_set_current_input): ... this, and ...
42110 (grub_term_set_current_output): ... this.
42111 (grub_term_get_current): Split in ...
42112 (grub_term_get_current_input): ... this, and ...
42113 (grub_term_get_current_output): ... this.
42114 (grub_term_register): Split in ...
42115 (grub_term_register_input): ... this, and ...
42116 (grub_term_register_output): ... this.
42117 (grub_term_unregister): Split in ...
42118 (grub_term_unregister_input): ... this, and ...
42119 (grub_term_unregister_output): ... this.
42120 (grub_term_iterate): Split in ...
42121 (grub_term_iterate_input): ... this, and ...
42122 (grub_term_iterate_output): ... this.
42124 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
42125 a check for input and one for output (and only attempt to get keys
42126 from user when input works).
42128 * util/grub-probe.c (grub_term_get_current): Split in ...
42129 (grub_term_get_current_input): ... this, and ...
42130 (grub_term_get_current_output): ... this.
42131 * util/grub-fstest.c: Likewise.
42132 * util/i386/pc/grub-setup.c: Likewise.
42133 * util/grub-editenv.c: Likewise.
42135 Portability adjustments:
42137 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
42138 `term/i386/pc/at_keyboard.c'.
42139 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
42140 grub_keyboard_controller_init() (now handled by terminal .init).
42141 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
42142 grub_at_keyboard_init().
42143 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
42144 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
42145 at_keyboard.mod via input terminal interface).
42146 * include/grub/i386/coreboot/console.h: Convert into a stub for
42147 `<grub/i386/pc/console.h>'.
42149 Migrate full terminals to new API:
42151 * term/efi/console.c (grub_console_term): Split into ...
42152 (grub_console_term_input): ... this, and ...
42153 (grub_console_term_output): ... this. Update all users.
42154 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
42155 (grub_ofconsole_init): Split into ...
42156 (grub_ofconsole_init_input): ... this, and ...
42157 (grub_ofconsole_init_output): ... this.
42158 (grub_ofconsole_term): Split into ...
42159 (grub_ofconsole_term_input): ... this, and ...
42160 (grub_ofconsole_term_output): ... this. Update all users.
42161 * term/i386/pc/serial.c (grub_serial_term): Split into ...
42162 (grub_serial_term_input): ... this, and ...
42163 (grub_serial_term_output): ... this. Update all users.
42164 * term/i386/pc/console.c (grub_console_term): Split into ...
42165 (grub_console_term_input): ... this, and ...
42166 (grub_console_term_output): ... this. Update all users.
42167 (grub_console_term_input): Only enable it on PC/BIOS platform.
42168 (grub_console_init): Remove grub_keyboard_controller_init() call.
42170 Migrate input terminals to new API:
42172 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42173 `i386' and `i386/pc' to enable build on x86_64 (this driver is
42174 i386-specific anyway).
42175 (grub_console_checkkey): Rename to ...
42176 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
42178 (grub_keyboard_controller_orig): New variable.
42179 (grub_console_getkey): Rename to ...
42180 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42182 (grub_keyboard_controller_init): Static-ize. Save original
42183 controller value so that it can be restored ...
42184 (grub_keyboard_controller_fini): ... here (new function).
42185 (grub_at_keyboard_term): New structure.
42186 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42189 Migrate output terminals to new API:
42191 * term/i386/pc/vga.c (grub_vga_term): Change type to
42192 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42193 members. Update all users.
42194 * term/gfxterm.c (grub_video_term): Change type to
42195 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42196 members. Update all users.
42197 * include/grub/i386/pc/console.h (grub_console_checkkey)
42198 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42201 Migrate `terminal' command and userland tools to new API:
42203 * commands/terminal.c (grub_cmd_terminal): Split into ...
42204 (grub_cmd_terminal_input): ... this, and ...
42205 (grub_cmd_terminal_output): ... this.
42206 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42207 `terminal_input' and `terminal_output'.
42208 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42209 `terminal_input' / `terminal_output' API.
42210 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42211 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42212 provided ${GRUB_TERMINAL}, convert it).
42214 2008-11-04 Robert Millan <rmh@aybabtu.com>
42216 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42218 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42220 2008-11-03 Bean <bean123ch@gmail.com>
42222 * kern/elf.c (grub_elf32_load): Revert to previous code.
42223 (grub_elf64_load): Likewise.
42225 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42227 2008-11-01 Robert Millan <rmh@aybabtu.com>
42229 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42230 (TARGET_CPPFLAGS): Likewise.
42231 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42233 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42235 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42237 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42239 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42240 addition of objects until the code is not going to be able to fail.
42242 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42244 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42245 (add a missing NULL check, and correct them by moving the pointer
42246 operations after the actual check).
42248 2008-10-29 Robert Millan <rmh@aybabtu.com>
42250 * util/i386/pc/grub-install.in: Handle empty string as output from
42251 make_system_path_relative_to_its_root().
42253 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42255 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42256 circular metadata worst case scenario. If the metadata is circular
42257 then copy the wrap in place.
42258 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42259 project lib/format_text/layout.h
42260 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42262 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42264 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42266 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42268 * util/update-grub_lib.in: Mention filename in warning message.
42270 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42272 * NEWS: Update for rename of update-grub to grub-mkconfig.
42274 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42276 * util/update-grub_lib.in: Copy to ...
42277 * util/grub-mkconfig_lib.in: ... this. Update all users.
42278 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42279 * util/update-grub.in: Rename to ...
42280 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42281 option. Add `--output' option to allow users to specify the generated
42282 configuration file. Default to stdout.
42283 (update_grub_dir): Rename to ...
42284 (grub_mkconfig_dir): ... this.
42285 (grub_cfg): Default to an empty string.
42286 * conf/common.rmk (update-grub): Rename to ...
42287 (grub-mkconfig): ... this.
42288 (update-grub_lib): Copy to ...
42289 (grub-mkconfig_lib): ... this.
42290 (update-grub_SCRIPTS): Copy to ...
42291 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42292 (update-grub_DATA): Rename to ...
42293 (grub-mkconfig_DATA): ... this.
42295 2008-09-28 Robert Millan <rmh@aybabtu.com>
42297 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42298 to `modified'. Add the real `created' field.
42299 (grub_iso9660_uuid): Use `modified' rather than `created' for
42300 constructing the UUID.
42302 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42304 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42305 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42307 2008-09-28 Bean <bean123ch@gmail.com>
42309 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42310 Thanks to Christian Franke for finding this bug.
42312 2008-09-25 Robert Millan <rmh@aybabtu.com>
42314 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42315 instances of grub_util_get_disk_name() (see previous commit).
42317 2008-09-25 Robert Millan <rmh@aybabtu.com>
42319 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42320 `util/i386/get_disk_name.c'.
42321 * conf/i386-efi.rmk: Likewise.
42322 * conf/x86_64-efi.rmk: Likewise.
42323 * conf/i386-coreboot.rmk: Likewise.
42324 * conf/i386-ieee1275.rmk: Likewise.
42325 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42326 `util/ieee1275/get_disk_name.c'.
42327 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42328 * util/ieee1275/get_disk_name.c: Remove file.
42329 * util/i386/get_disk_name.c: Remove file.
42330 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42331 "hd%d" for device.map entries, rather than using
42332 grub_util_get_disk_name().
42334 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42336 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42338 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42340 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42342 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42344 (GRUB_TERM_PPAGE): Changed to 0x4900.
42346 2008-09-24 Robert Millan <rmh@aybabtu.com>
42348 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42349 macros (they were i386-pc specific).
42350 * include/grub/sparc64/ieee1275/console.h: Likewise.
42351 * include/grub/efi/console.h: Likewise.
42353 2008-09-22 Bean <bean123ch@gmail.com>
42355 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42356 resident and in attribute list.
42358 * include/grub/ntfs.h (BMP_LEN): Removed.
42360 2008-09-22 Bean <bean123ch@gmail.com>
42362 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42363 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42365 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42366 error occurs, as grub_disk_open will call grub_disk_close, which will
42367 call p->close (scsi).
42369 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42371 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42372 (AC_PREREQ): Bumped to 2.59.
42373 (AC_TRY_COMPILE): Replace obsolete macro with ...
42374 (AC_COMPILE_IFELSE): ... this.
42375 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42376 (AC_LINK_IFELSE): ... this.
42378 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42380 * autogen.sh: Add a call to `gendistlist.sh'.
42382 2008-09-19 Christian Franke <franke@computer.org>
42384 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42385 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42386 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42387 Export __enable_execute_stack() to modules.
42388 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42391 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42393 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42396 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42398 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42399 #include <grub/util/hostdisk.h>.
42401 2008-09-08 Robert Millan <rmh@aybabtu.com>
42403 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42404 segments when their filesz is zero (grub_file_read() interprets
42405 zero-size as "read until EOF", which results in memory corruption).
42406 Use `lowest_segment' rather than 0 for calculating the current
42407 segment load address.
42409 2008-09-08 Robert Millan <rmh@aybabtu.com>
42411 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42412 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42413 clobbered useful information.
42415 2008-09-08 Robert Millan <rmh@aybabtu.com>
42417 * include/grub/util/biosdisk.h: Move to ...
42418 * include/grub/util/hostdisk.h: ... here. Update all users.
42419 * util/biosdisk.c: Move to ...
42420 * util/hostdisk.c: ... here. Update all users.
42422 2008-09-07 Robert Millan <rmh@aybabtu.com>
42424 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42426 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42427 and length can be stored directly in the `mbi->mmap_addr' and
42428 `mbi->mmap_length' struct fields.
42430 2008-09-07 Robert Millan <rmh@aybabtu.com>
42432 * conf/i386.rmk: New file. Provides declaration for building
42434 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42435 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42437 Include `conf/i386.mk'.
42438 * conf/i386-efi.rmk: Likewise.
42439 * conf/x86_64-efi.rmk: Likewise.
42440 * conf/i386-coreboot.rmk: Likewise.
42441 * conf/i386-ieee1275.rmk: Likewise.
42443 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42445 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42446 Adds optimization support for BGR based modes.
42448 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42449 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42450 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42451 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42452 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42453 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42454 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42455 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42456 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42457 (grub_video_i386_vbeblit_index_index): Likewise.
42458 (grub_video_i386_vbeblit_replace_directN): Added.
42459 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42460 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42461 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42462 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42463 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42464 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42465 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42466 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42467 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42468 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42469 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42470 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42471 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42473 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42474 (grub_video_i386_vbefill_R8G8B8): Likewise.
42475 (grub_video_i386_vbefill_index): Likewise.
42476 (grub_video_i386_vbefill_direct32): Added.
42477 (grub_video_i386_vbefill_direct24): Likewise.
42478 (grub_video_i386_vbefill_direct16): Likewise.
42479 (grub_video_i386_vbefill_direct8): Likewise.
42481 * include/grub/video.h (grub_video_blit_format): Removed
42482 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42483 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42484 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42485 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42486 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42488 * video/video.c (grub_video_get_blit_format): Updated to use new
42489 blit formats. Added handling for 16 bit color modes.
42491 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42493 (common_blitter): Updated to use new blitters.
42495 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42497 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42498 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42499 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42500 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42501 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42502 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42503 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42504 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42505 (grub_video_i386_vbeblit_index_index): Likewise.
42506 (grub_video_i386_vbeblit_replace_directN): Added.
42507 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42508 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42509 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42510 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42511 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42512 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42513 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42514 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42515 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42516 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42517 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42518 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42519 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42521 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42522 (grub_video_i386_vbefill_R8G8B8): Likewise.
42523 (grub_video_i386_vbefill_index): Likewise.
42524 (grub_video_i386_vbefill_direct32): Added.
42525 (grub_video_i386_vbefill_direct24): Likewise.
42526 (grub_video_i386_vbefill_direct16): Likewise.
42527 (grub_video_i386_vbefill_direct8): Likewise.
42529 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42532 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42535 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42538 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42541 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42543 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42546 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42548 * fs/iso9660.c (grub_iso9660_date): New structure.
42549 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42550 (grub_iso9660_uuid): New function.
42552 2008-09-05 Bean <bean123ch@gmail.com>
42554 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42556 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42557 insensitive bit for names in Win32 and Win32 & DOS namespace.
42559 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42561 * include/grub/types.h (LONG_MAX): Likewise.
42563 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42565 * util/getroot.c: Include <config.h>.
42566 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42567 add support for /dev/md/N devices and handle LVM double dash escaping.
42569 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42571 * config.guess: Update to latest version from config git.
42572 * config.sub: Likewise.
42574 2008-09-03 Robert Millan <rmh@aybabtu.com>
42576 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42577 `disk->total_sectors'.
42579 2008-09-01 Colin D Bennett <colin@gibibit.com>
42581 * include/grub/normal.h: Fixed incorrect comment for
42582 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42584 2008-09-01 Colin D Bennett <colin@gibibit.com>
42586 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42587 values with defines.
42589 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42590 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42591 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42592 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42593 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42594 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42595 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42596 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42597 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42598 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42599 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42600 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42601 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42602 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42603 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42604 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42605 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42606 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42607 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42609 2008-08-31 Robert Millan <rmh@aybabtu.com>
42611 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42613 (grub_multiboot): Fix a few warnings.
42615 2008-08-31 Robert Millan <rmh@aybabtu.com>
42617 * loader/i386/pc/multiboot.c: Update comment not to say that
42618 boot_device support is unimplemented.
42620 2008-08-31 Robert Millan <rmh@aybabtu.com>
42622 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42623 or memory map support are unimplemented.
42625 2008-08-31 Colin D Bennett <colin@gibibit.com>
42627 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42629 2008-08-31 Colin D Bennett <colin@gibibit.com>
42631 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42632 total video memory in 'vbeinfo' output; show color format details for
42635 2008-08-30 Pavel Roskin <proski@gnu.org>
42637 * util/genmoddep.c: Remove for real this time.
42638 * DISTLIST: Remove util/genmoddep.c.
42640 2008-08-30 Robert Millan <rmh@aybabtu.com>
42642 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42643 as required by Multiboot spec (it was already 4-byte aligned, but
42646 2008-08-29 Pavel Roskin <proski@gnu.org>
42648 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42649 * kern/powerpc/ieee1275/startup.S: ... this.
42650 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42651 * DISTLIST: Likewise.
42653 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42654 grub/cpu/kernel.h. Add start label for consistency with other
42655 platforms. Add grub_prefix immediately after start. Add jump
42656 to the code after grub_prefix.
42657 * include/grub/powerpc/kernel.h: Provide valid values for
42658 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42660 2008-08-29 Bean <bean123ch@gmail.com>
42662 * configure.ac: Change host_os to cygwin for mingw.
42663 (asprintf): New check for function.
42665 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42666 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42668 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42669 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42670 sync, sleep and grub_util_get_disk_size for mingw.
42672 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42673 to get size in mingw.
42674 (open_device): Use flag O_BINARY if it's defined.
42675 (find_root_device): Add dummy code for mingw.
42677 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42678 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42679 (get_scsi_disk_name): Return 0 for mingw.
42681 * util/hostfs.c: #include <grub/util/misc.h>.
42682 (grub_hostfs_open): Use "rb" flag to open file, use
42683 grub_util_get_disk_size to get disk size for mingw.
42685 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42686 (asprintf): New function if HAVE_ASPRINTF is not set.
42687 (sync): New function for mingw.
42689 (grub_util_get_disk_size): Likewise.
42691 2008-08-28 Pavel Roskin <proski@gnu.org>
42693 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42696 2008-08-28 Robert Millan <rmh@aybabtu.com>
42698 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42700 2008-08-28 Robert Millan <rmh@aybabtu.com>
42702 Change find_grub_drive() syntax so it doesn't prevent it from
42703 detecting NULL names as errors.
42705 * util/biosdisk.c (find_grub_drive): Move free slot search code
42707 (find_free_slot): ... to here.
42708 (read_device_map): Use find_free_slot() to search for free slots.
42710 2008-08-27 Marco Gerards <marco@gnu.org>
42712 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42713 (scsi_mod_SOURCES): New variable.
42714 (scsi_mod_CFLAGS): Likewise
42715 (scsi_mod_LDFLAGS): Likewise.
42717 * disk/scsi.c: New file.
42719 * include/grub/scsi.h: Likewise.
42721 * include/grub/scsicmd.h: Likewise.
42723 * disk/ata.c: Include <grub/scsi.h>.
42724 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42726 (grub_ata_iterate): Skip ATAPI devices.
42727 (grub_ata_open): Only handle ATAPI devices.
42728 (struct grub_atapi_read): Removed.
42729 (grub_atapi_readsector): Likewise.
42730 (grub_ata_read): No longer handle ATAPI devices.
42731 (grub_ata_write): Likewise.
42732 (grub_atapi_iterate): New function.
42733 (grub_atapi_read): Likewise.
42734 (grub_atapi_write): Likewise.
42735 (grub_atapi_open): Likewise.
42736 (grub_atapi_close): Likewise.
42737 (grub_atapi_dev): New variable.
42738 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42739 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42741 * include/grub/disk.h (enum grub_disk_dev_id): Add
42742 `GRUB_DISK_DEVICE_SCSI_ID'.
42744 2008-08-26 Robert Millan <rmh@aybabtu.com>
42746 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42747 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42750 2008-08-23 Bean <bean123ch@gmail.com>
42752 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42753 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42754 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42755 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42757 (raid5rec_mod_SOURCES): New macro.
42758 (raid5rec_mod_CFLAGS): Likewise.
42759 (raid5rec_mod_LDFLAGS): Likewise.
42760 (raid6rec_mod_SOURCES): Likewise.
42761 (raid6rec_mod_CFLAGS): Likewise.
42762 (raid6rec_mod_LDFLAGS): Likewise.
42763 (mdraid_mod_SOURCES): Likewise.
42764 (mdraid_mod_CFLAGS): Likewise.
42765 (mdraid_mod_LDFLAGS): Likewise.
42766 (dm_nv_mod_SOURCES): Likewise.
42767 (dm_nv_mod_CFLAGS): Likewise.
42768 (dm_nv_mod_LDFLAGS): Likewise.
42770 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42771 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42772 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42774 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42775 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42777 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42779 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42781 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42783 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42785 * disk/raid5_recover.c: New file.
42787 * disk/raid6_recover.c: Likewise.
42789 * disk/mdraid_linux.c: Likewise.
42791 * disk/dmraid_nvidia.c: Likewise.
42793 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42796 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42797 calculate the size of raid device.
42798 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42799 different layout of raid5.
42800 (grub_raid_scan_device): Remove code specific to mdraid.
42801 (grub_raid_list): New variable.
42802 (free_array): New function.
42803 (grub_raid_register): Likewise.
42804 (grub_raid_unregister): Likewise.
42805 (grub_raid_rescan): Likewise.
42806 (GRUB_MOD_INIT): Don't iterate device here.
42807 (GRUB_MOD_FINI): Use free_array to release resource.
42809 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42810 (grub_raid5_recover_func_t): New function variable type.
42811 (grub_raid6_recover_func_t): Likewise.
42812 (grub_raid5_recover_func): New variable.
42813 (grub_raid6_recover_func): Likewise.
42814 (grub_raid_register): New function.
42815 (grub_raid_unregister): Likewise.
42816 (grub_raid_rescan): Likewise.
42817 (grub_raid_block_xor): Likewise.
42819 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42820 (CMD_CRC): New macro.
42822 (read_file): Handle device as well as file.
42823 (cmd_crc): New function.
42824 (fstest): Handle multiple disks.
42825 (options): Remove part, raw and long, add root and diskcount.
42826 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42827 (main): Find the first non option entry and ignore subsequent options,
42828 add handling for the new options, support multiple disks.
42830 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42832 2008-08-23 Bean <bean123ch@gmail.com>
42834 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42836 * genfslist.sh: Ignore kernel.mod.
42838 * genpartmaplist.sh: Likewise.
42840 2008-08-23 Robert Millan <rmh@aybabtu.com>
42842 * util/getroot.c (find_root_device): Skip anything that starts with
42843 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42845 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42847 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42848 * util/grub.d/00_header.in: Allow the administrator to change default
42849 gfxmode via ${GRUB_GFXMODE}.
42851 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42853 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42855 2008-08-21 Robert Millan <rmh@aybabtu.com>
42857 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42859 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42860 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42862 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42864 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42865 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42867 2008-08-19 Robert Millan <rmh@aybabtu.com>
42869 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42870 (struct grub_virtual_screen): Remove `cursor_color'.
42871 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42873 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42875 2008-08-18 Robert Millan <rmh@aybabtu.com>
42877 Unify (identical) linux_normal.c files.
42878 * loader/i386/efi/linux_normal.c: Move from here ...
42879 * loader/linux_normal.c: ... to here. Update all users.
42880 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42881 * loader/i386/ieee1275/linux_normal.c: Likewise.
42883 2008-08-18 Robert Millan <rmh@aybabtu.com>
42885 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42886 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42887 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42888 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42889 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42891 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42892 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42893 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42894 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42895 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42896 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42897 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42898 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42899 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42900 portably using grub_getxy().
42901 Replace `-EFI' with `-bzImage' in boot message.
42903 2008-08-17 Robert Millan <rmh@aybabtu.com>
42905 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42907 2008-08-17 Robert Millan <rmh@aybabtu.com>
42909 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42911 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42912 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42913 (grub_machine_mmap_iterate): New function declaration.
42914 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42916 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42919 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42920 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42921 Move e820 parsing from here ...
42922 * kern/i386/pc/mmap.c: New file.
42923 (grub_machine_mmap_iterate): ... to here.
42925 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42926 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42927 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42928 (grub_available_iterate): Redeclare to return `void', and redeclare
42929 its hook to use grub_uint64_t as addr and size parameters, and rename
42931 (grub_machine_mmap_iterate): ... this. Update all users.
42933 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42934 to make it more readable. Rename to ...
42935 (grub_machine_mmap_iterate): ... this.
42937 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42938 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42939 (grub_multiboot): Allocate an extra region after the payload, and fill
42940 it with a Multiboot memory map. Adjust a.out loader to calculate size
42941 with the extra space.
42942 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42943 with the extra space.
42945 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42947 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42949 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42951 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42952 mdate-sh to the list `find' searches for.
42953 * DISTLIST: Regenerated.
42955 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42957 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42958 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42959 genmoddep.awk, gensymlist.sh.in.
42960 (DISTDIRS): Add bus, docs, hook, lib.
42961 * DISTLIST: Regenerated.
42962 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42964 2008-08-16 Robert Millan <rmh@aybabtu.com>
42966 * disk/raid.c (grub_raid_init): Handle/report errors set by
42967 grub_device_iterate().
42968 * disk/lvm.c (grub_lvm_init): Likewise.
42970 2008-08-15 Bean <bean123ch@gmail.com>
42972 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42974 (datetime_mod_SOURCES): New macro.
42975 (datetime_mod_CFLAGS): Likewise.
42976 (datetime_mod_LDFLAGS): Likewise.
42977 (date_mod_SOURCES): Likewise.
42978 (date_mod_CFLAGS): Likewise.
42979 (date_mod_LDFLAGS): Likewise.
42980 (datehook_mod_SOURCES): Likewise.
42981 (datehook_mod_CFLAGS): Likewise.
42982 (datehook_mod_LDFLAGS): Likewise.
42984 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42986 (datetime_mod_SOURCES): New macro.
42987 (datetime_mod_CFLAGS): Likewise.
42988 (datetime_mod_LDFLAGS): Likewise.
42989 (date_mod_SOURCES): Likewise.
42990 (date_mod_CFLAGS): Likewise.
42991 (date_mod_LDFLAGS): Likewise.
42992 (datehook_mod_SOURCES): Likewise.
42993 (datehook_mod_CFLAGS): Likewise.
42994 (datehook_mod_LDFLAGS): Likewise.
42996 * conf/i386-ieee1275.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-efi.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/x86_64-efi.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 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
43034 * commands/date.c: New file.
43036 * hook/datehook.c: Likewise.
43038 * include/grub/lib/datetime.h: Likewise.
43040 * include/grub/i386/cmos.h: Likewise.
43042 * lib/datetime.c: Likewise.
43044 * lib/i386/datetime.c: Likewise.
43046 * lib/efi/datetime.c: Likewise.
43048 2008-08-14 Robert Millan <rmh@aybabtu.com>
43050 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
43051 (grub_mkelfimage_SOURCES): New variable.
43052 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
43054 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
43055 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
43056 * conf/powerpc-ieee1275.rmk: Likewise.
43057 * conf/i386-ieee1275.rmk: Likewise.
43059 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
43060 * kern/i386/coreboot/init.c: Likewise.
43062 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
43063 with `<grub/cpu/kernel.h>'.
43064 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
43066 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
43067 * kern/i386/coreboot/startup.S: Likewise.
43069 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
43070 (GRUB_MOD_GAP): Remove.
43071 * include/grub/powerpc/kernel.h: New file.
43072 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
43073 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
43074 * include/grub/i386/kernel.h: New file.
43075 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
43076 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
43077 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
43079 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
43081 Use --directory when invoking grub_mkimage.
43083 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
43084 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
43085 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
43086 and GRUB_KERNEL_CPU_PREFIX.
43088 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
43090 * include/grub/err.h (grub_err_printf): New function prototype.
43091 * util/misc.c (grub_err_printf): New function.
43092 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
43094 * kern/err.c (grub_print_error): Use grub_err_printf.
43096 2008-08-13 Robert Millan <rmh@aybabtu.com>
43098 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
43100 2008-08-13 Robert Millan <rmh@aybabtu.com>
43102 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
43105 2008-08-12 Robert Millan <rmh@aybabtu.com>
43107 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
43108 of the relocation code from here ...
43109 (grub_multiboot): ... to here.
43110 (forward_relocator, backward_relocator): Move from here ...
43111 * kern/i386/loader.S (grub_multiboot_forward_relocator)
43112 (grub_multiboot_backward_relocator): ... to here.
43113 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
43114 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
43115 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
43116 (grub_multiboot_forward_relocator_end)
43117 (grub_multiboot_backward_relocator)
43118 (grub_multiboot_backward_relocator_end): New variables.
43120 2008-08-12 Bean <bean123ch@gmail.com>
43122 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
43124 2008-08-11 Robert Millan <rmh@aybabtu.com>
43126 * kern/i386/linuxbios/startup.S: Move from here ...
43127 * kern/i386/coreboot/startup.S: ... to here.
43129 * kern/i386/linuxbios/init.c: Move from here ...
43130 * kern/i386/coreboot/init.c: ... to here.
43132 * kern/i386/linuxbios/table.c: Move from here ...
43133 * kern/i386/coreboot/mmap.c: ... to here.
43135 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
43137 2008-08-11 Robert Millan <rmh@aybabtu.com>
43139 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
43140 errors. Leave it to the upper layer to handle them.
43142 2008-08-09 Christian Franke <franke@computer.org>
43144 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
43145 * conf/common.rmk: Install `grub-pe2elf' only if requested.
43146 Install `grub.d/10_windows' only on Cygwin.
43147 * configure.ac: Add subst of `target_os'.
43148 Check `target_os' also before setting TARGET_OBJ2ELF.
43149 Add `--enable-grub-pe2elf'.
43151 2008-08-08 Robert Millan <rmh@aybabtu.com>
43153 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43154 (grub_last_time): Change type to grub_uint64_t.
43155 (grub_disk_open): Migrate code from to using grub_get_time_ms().
43156 (grub_disk_close): Likewise.
43158 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43159 (run_menu): Migrate code from to using grub_get_time_ms().
43161 * util/misc.c (grub_get_time_ms): New function.
43163 2008-08-08 Marco Gerards <marco@gnu.org>
43165 * disk/ata.c (grub_ata_regget): Change return type to
43167 (grub_ata_regget2): Likewise.
43168 (grub_ata_wait_status): New function.
43169 (grub_ata_wait_busy): Removed function, updated all users to use
43170 `grub_ata_wait_status'.
43171 (grub_ata_wait_drq): Likewise.
43172 (grub_ata_cmd): New function.
43173 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
43175 (grub_ata_pio_write): Add error handling.
43176 (grub_atapi_identify): Likewise.
43177 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43179 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43180 handling. Actually use the detected registers. Reorder the
43181 detection logic such that it is easier to read.
43182 (grub_ata_pciinit): Do not assign the same ID to each controller.
43183 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43185 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43187 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43189 2008-08-08 Marco Gerards <marco@gnu.org>
43193 2008-08-07 Bean <bean123ch@gmail.com>
43195 * include/grub/x86_64/pci.h: New file.
43197 2008-08-07 Christian Franke <franke@computer.org>
43199 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43200 (TIMER2_GATE): Likewise.
43201 (grub_pit_wait): Add enable/disable of the timer2 gate
43202 bit of port 0x61. This fixes a possible infinite loop.
43204 2008-08-07 Bean <bean123ch@gmail.com>
43206 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43207 kern/i386/tsc.c and kern/i386/pit.c.
43209 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43212 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43215 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43217 2008-08-07 Bean <bean123ch@gmail.com>
43219 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43221 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43223 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43224 multiple inclusion. Add #include <grub/types.h>.
43226 2008-08-06 Christian Franke <franke@computer.org>
43228 * conf/common.rmk: Build and install `10_windows'.
43229 * util/grub.d/10_windows.in: New script.
43231 2008-08-06 Pavel Roskin <proski@gnu.org>
43233 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43235 2008-08-06 Robert Millan <rmh@aybabtu.com>
43237 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43238 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43240 2008-08-06 Bean <bean123ch@gmail.com>
43242 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43243 (grub_pxefs_fs_int): Remove dummy definition.
43244 (grub_pxefs_open): Use data->block_size to store the current block
43246 (grub_pxefs_read): Use block size stored in data->block_size. As the
43247 value of grub_pxe_blksize can be changed after the file is opened.
43249 2008-08-06 Bean <bean123ch@gmail.com>
43251 * fs/i386/pc/pxe.c (curr_file): new variable.
43252 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43253 require the dummy internal file system anymore.
43254 (grub_pxefs_read): Removed.
43255 (grub_pxefs_close): Likewise.
43256 (grub_pxefs_fs_int): Likewise.
43257 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43258 connection when we switch file.
43259 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43261 2008-08-06 Robert Millan <rmh@aybabtu.com>
43263 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43265 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43266 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43268 * kern/i386/halt.c: New file.
43269 * kern/i386/reboot.c: Likewise.
43270 * include/grub/i386/reboot.h: Likewise.
43271 * include/grub/i386/halt.h: Likewise.
43273 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43274 Include `<grub/cpu/halt.h>'.
43275 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43276 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43278 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43279 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43280 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43281 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43282 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43283 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43285 * include/grub/i386/at_keyboard.h: ... to here.
43287 2008-08-05 Robert Millan <rmh@aybabtu.com>
43289 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43290 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43291 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43292 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43293 `kern/generic/millisleep.c'.
43295 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43296 instead of grub_get_rtc().
43297 (grub_tsc_init): Initialize `tsc_boot_time'.
43299 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43300 (grub_machine_init): Use grub_tsc_init() rather than
43301 installing an RTC-based handler via grub_install_get_time_ms().
43303 * kern/i386/pit.c: New file.
43304 * include/grub/i386/pit.h: Likewise.
43306 2008-08-05 Bean <bean123ch@gmail.com>
43308 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43310 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43311 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43312 (pxe_mod_SOURCES): New macro.
43313 (pxe_mod_CFLAGS): Likewise.
43314 (pxe_mod_LDFLAGS): Likewise.
43315 (pxecmd_mod_SOURCES): Likewise.
43316 (pxecmd_mod_CFLAGS): Likewise.
43317 (pxecmd_mod_LDFLAGS): Likewise.
43319 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43320 (grub_pxe_call): Likewise.
43322 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43324 * commands/i386/pc/pxecmd.c: New file.
43326 * fs/i386/pc/pxe.c: Likewise.
43328 * include/grub/i386/pc/pxe.h: Likewise.
43330 2008-08-05 Bean <bean123ch@gmail.com>
43332 * util/console.c (grub_console_cur_color): New variable.
43333 (grub_console_standard_color): Likewise.
43334 (grub_console_normal_color): Likewise.
43335 (grub_console_highlight_color): Likewise.
43336 (color_map): Likewise.
43337 (use_color): Likewise.
43338 (NUM_COLORS): New macro.
43339 (grub_ncurses_setcolorstate): Handle color properly.
43340 (grub_ncurses_setcolor): Don't change color here, just remember the
43341 settings, color will be set in grub_ncurses_setcolorstate.
43342 (grub_ncurses_getcolor): New function.
43343 (grub_ncurses_init): Initialize color pairs.
43344 (grub_ncurses_term): New member grub_ncurses_getcolor.
43346 2008-08-05 Colin D Bennett <colin@gibibit.com>
43348 High resolution timer support. Implemented for x86 CPUs using TSC.
43349 Extracted generic grub_millisleep() so it's linked in only as needed.
43350 This requires a Pentium compatible CPU; if the RDTSC instruction is
43351 not supported, then it falls back on the generic grub_get_time_ms()
43352 implementation that uses the machine's RTC.
43354 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43355 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43356 `kern/generic/millisleep.c'.
43358 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43359 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43361 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43362 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43364 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43366 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43367 `kern/generic/millisleep.c'.
43369 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43371 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43373 * kern/generic/rtc_get_time_ms.c: New file.
43375 * kern/generic/millisleep.c: New file.
43377 * kern/misc.c: Don't include
43378 <kern/time.h> anymore.
43379 (grub_millisleep_generic): Removed.
43381 * commands/sleep.c (grub_interruptible_millisleep): Uses
43382 grub_get_time_ms() instead of grub_get_rtc().
43384 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43386 (grub_cpu_is_cpuid_supported): New inline function.
43387 (grub_cpu_is_tsc_supported): New inline function.
43388 (grub_tsc_init): New function prototype.
43389 (grub_tsc_get_time_ms): New function prototype.
43391 * kern/i386/tsc.c (grub_get_time_ms): New file.
43393 * include/grub/time.h: Include <grub/types.h.
43394 (grub_millisleep_generic): Removed.
43395 (grub_get_time_ms): New prototype.
43396 (grub_install_get_time_ms): New prototype.
43397 (grub_rtc_get_time_ms): New prototype.
43399 * kern/time.c (grub_get_time_ms): New function.
43400 (grub_install_get_time_ms): New function.
43402 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43403 <grub/time.h> anymore.
43404 (grub_millisleep): Removed.
43405 (grub_machine_init): Call grub_tsc_init.
43407 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43408 get_time_ms() implementation.
43410 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43411 (ieee1275_get_time_ms): New function.
43412 (grub_machine_init): Install get_time_ms() implementation.
43414 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43415 (grub_machine_init): Call grub_tsc_init().
43416 (grub_millisleep): Removed.
43418 * kern/ieee1275/init.c (grub_millisleep): Removed.
43419 (grub_machine_init): Install ieee1275_get_time_ms()
43421 (ieee1275_get_time_ms): New function.
43422 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43425 2008-08-05 Marco Gerards <marco@gnu.org>
43427 * disk/ata.c: Include <grub/pci.h>.
43428 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43429 (grub_ata_initialize): Rewritten.
43430 (grub_ata_device_initialize): New function.
43432 2008-08-04 Pavel Roskin <proski@gnu.org>
43434 * kern/main.c: Include grub/mm.h.
43436 2008-08-04 Robert Millan <rmh@aybabtu.com>
43438 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43439 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43440 corruption problem).
43442 2008-08-04 Robert Millan <rmh@aybabtu.com>
43444 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43445 warnings introduced in my last commit.
43447 2008-08-03 Robert Millan <rmh@aybabtu.com>
43449 Make PCI available on all i386 architectures.
43451 * include/grub/i386/pc/pci.h: Move from here ...
43452 * include/grub/i386/pci.h: ... to here.
43454 * include/grub/i386/pc/pci.h: Remove.
43455 * include/grub/i386/efi/pci.h: Remove.
43456 * include/grub/x86_64/efi/pci.h: Remove.
43458 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43459 `<grub/cpu/pci.h>'.
43461 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43462 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43463 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43465 * conf/i386-ieee1275.rmk: Likewise.
43467 2008-08-03 Robert Millan <rmh@aybabtu.com>
43469 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43470 (grub_console_setcursor): Make it possible to set cursor off.
43472 2008-08-03 Robert Millan <rmh@aybabtu.com>
43474 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43475 of modules instead of assuming which platform provides what.
43476 * util/update-grub.in: Likewise.
43478 2008-08-03 Robert Millan <rmh@aybabtu.com>
43480 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43481 instead of `grub_install_dos_part' to determine whether a drive needs
43482 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43483 because it can be overridden when loading GRUB via Multiboot).
43485 2008-08-02 Robert Millan <rmh@aybabtu.com>
43487 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43489 2008-08-02 Robert Millan <rmh@aybabtu.com>
43491 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43492 of informational grub_dprintf() calls.
43494 2008-08-02 Robert Millan <rmh@aybabtu.com>
43496 * disk/memdisk.c (memdisk_size): Don't initialize.
43497 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43499 * include/grub/i386/pc/kernel.h
43500 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43501 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43502 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43503 (grub_arch_memdisk_size): Remove.
43505 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43506 field (was only used to transfer a constant). Add `type' field to
43507 support multiple module types.
43508 (grub_module_iterate): New function.
43510 * kern/device.c (grub_device_open): Do not hide error messages
43511 when grub_disk_open() fails. Use grub_print_error() instead.
43513 * kern/i386/pc/init.c (grub_arch_modules_addr)
43514 (grub_arch_memdisk_size): Remove functions.
43515 (grub_arch_modules_addr): Return the module address in high memory
43516 (now that it isn't copied anymore).
43518 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43519 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43520 decompression routine (grub_total_module_size already includes that
43521 now). Don't copy modules back to low memory.
43523 * kern/main.c: Include `<grub/mm.h>'.
43524 (grub_load_modules): Split out (and use) ...
43525 (grub_module_iterate): ... this function, which iterates through
43526 module objects and runs a hook.
43527 Comment out grub_mm_init_region() call, as it would cause non-ELF
43528 modules to be overwritten.
43530 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43531 the memdisk image in its own region, make it part of the module list.
43532 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43533 (main): Parse --memdisk|-m option, and pass user-provided path as
43534 parameter to generate_image().
43535 (add_segments): Pass `memdisk_path' down to load_modules().
43536 (load_modules): Embed memdisk image in module section when requested.
43537 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43538 `header.type' instead of `header.offset'.
43540 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43541 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43542 (memdisk_mod_LDFLAGS): New variables.
43543 * conf/i386-coreboot.rmk: Likewise.
43544 * conf/i386-ieee1275.rmk: Likewise.
43546 2008-08-02 Robert Millan <rmh@aybabtu.com>
43548 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43549 (backward_relocator): New variables. Used to allocate and relocate
43550 the payload, respectively.
43551 (grub_multiboot_load_elf32): Load into heap instead of requested
43552 address, install the appropriate relocator code in each bound of
43553 the payload, and set the entry point such that
43554 grub_multiboot_real_boot() will jump to one of them.
43556 * kern/i386/loader.S (grub_multiboot_payload_size)
43557 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43558 (grub_multiboot_payload_entry_offset): New variables.
43559 (grub_multiboot_real_boot): Set cpu context to what the relocator
43560 expects, and jump to the relocator instead of the payload.
43562 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43563 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43564 (grub_multiboot_payload_entry_offset): Export.
43566 2008-08-01 Bean <bean123ch@gmail.com>
43568 * normal/menu_entry.c (editor_getline): Don't return the original
43569 string as result, as it will be released by lexer once it has done
43572 2008-08-01 Robert Millan <rmh@aybabtu.com>
43574 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43575 within menuentries, not before them.
43576 util/grub.d/10_hurd.in: Likewise.
43578 2008-08-01 Bean <bean123ch@gmail.com>
43580 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43581 (bufio_mod_SOURCES): New macro.
43582 (bufio_mod_CFLAGS): Likewise.
43583 (bufio_mod_LDFLAGS): Likewise.
43585 * include/grub/bufio.h: New file.
43587 * io/bufio.c: Likewise.
43589 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43590 (grub_video_reader_png): Use grub_buffile_open to open file.
43592 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43593 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43595 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43596 (grub_video_reader_tga): Use grub_buffile_open to open file.
43598 * font/manager.c: Include <grub/bufio.h>.
43599 (add_font): Use grub_buffile_open to open file.
43601 2008-07-31 Robert Millan <rmh@aybabtu.com>
43603 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43604 ELF segments, use a macro for arbitrarily accessing any of them instead
43605 of preparing a pointer that allows access to one at a time.
43606 (grub_multiboot_load_elf64): Likewise.
43608 2008-07-31 Bean <bean123ch@gmail.com>
43610 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43611 GRUB_KERNEL_MACHINE_DATA_END.
43613 2008-07-30 Robert Millan <rmh@aybabtu.com>
43615 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43616 Increase from 0x50 to 0x60.
43617 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43618 use UUIDs to identify the root drive for them. If that's not
43620 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43621 check, for cross-disk installs.
43623 2008-07-30 Robert Millan <rmh@aybabtu.com>
43625 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43626 is non-empty, use it to set the `prefix' environment variable instead
43627 of the usual approach.
43628 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43629 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43630 environment variable instead of dummy make_install_device().
43632 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43633 (start): Insert a data section, with `grub_prefix' variable.
43634 * kern/i386/linuxbios/startup.S: Likewise.
43636 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43637 New variable reference.
43638 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43639 New macro. Defines offset of `grub_prefix' within startup.S (relative
43641 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43642 section within startup.S (relative to `start').
43643 * include/grub/i386/coreboot/kernel.h: Likewise.
43645 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43646 Overwrite grub_prefix with its contents, at the beginning of the
43648 (main): Understand -p|--prefix.
43650 2008-07-30 Robert Millan <rmh@aybabtu.com>
43652 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43654 2008-07-30 Robert Millan <rmh@aybabtu.com>
43656 * term/i386/pc/vga_text.c (grub_console_cls): Use
43657 grub_console_gotoxy() to go back to beginning of the screen.
43658 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43660 2008-07-29 Christian Franke <franke@computer.org>
43662 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43663 Add conversion of emulated mount points on Cygwin.
43665 2008-07-29 Christian Franke <franke@computer.org>
43667 * util/update-grub.in: Add a check for admin
43669 Remove old `grub.cfg.new' before creation.
43670 Add `-f' to `mv' to handle the different filesystem
43671 semantics of Windows.
43673 2008-07-29 Bean <bean123ch@gmail.com>
43675 * normal/main.c (get_line): Fix buffer overflow bug.
43677 2008-07-28 Robert Millan <rmh@aybabtu.com>
43679 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43680 (struct grub_apple_header): New struct. Describes the layout of
43681 the partmap header.
43682 (apple_partition_map_iterate): Check the header magic as well as the
43683 partition magic (which was already being checked).
43685 2008-07-28 Pavel Roskin <proski@gnu.org>
43687 * genmk.rb: Add a warning to the beginning of the output that
43688 it's a generated file and should not be edited.
43690 2008-07-28 Robert Millan <rmh@aybabtu.com>
43692 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43693 with the same number are found, just use issue a warning with
43694 grub_dprintf(), as this error has been reported to be non-fatal.
43696 2008-07-27 Robert Millan <rmh@aybabtu.com>
43698 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43701 2008-07-27 Bean <bean123ch@gmail.com>
43703 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43704 (grub_fat_find_dir): Ignore case when comparing filename.
43706 2008-07-27 Bean <bean123ch@gmail.com>
43708 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43709 smallino, as it's more descriptive, and i8count can be confused with
43710 the other field count.
43711 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43714 2008-07-27 Bean <bean123ch@gmail.com>
43716 * commands/crc.c: New file.
43718 * lib/crc.c: Likewise.
43720 * include/grub/lib/crc.h: Likewise.
43722 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43724 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43725 (hexdump): Move this function to ...
43727 * lib/hexdump.c: ... here.
43729 * include/grub/hexdump.h: Renamed to ...
43731 * include/grub/lib/hexdump.h: ... this.
43733 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43735 * util/grub-editenv.c: Likewise.
43737 * include/envblk.h: Renamed to ...
43739 * include/lib/envblk.h: ... this.
43741 * util/envblk.c: Renamed to ...
43743 * lib/envblk.c: ... this.
43745 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43747 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43748 (pkglib_MODULES): Add crc.mod.
43749 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43750 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43751 (crc_mod_SOURCES): New macro.
43752 (crc_mod_CFLAGS): Likewise.
43753 (crc_mod_LDFLAGS): Likewise.
43755 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43757 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43759 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43761 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43763 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43765 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43767 * commands/help.c: Include <grub/term.h>.
43768 (TERM_WIDTH): Removed. Updated all users.
43770 2008-07-27 Pavel Roskin <proski@gnu.org>
43772 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43773 spurious warnings about a comment within a comment.
43775 2008-07-25 Robert Millan <rmh@aybabtu.com>
43777 * util/getroot.c (find_root_device): Skip devices that match
43778 /dev/dm-[0-9]. This lets the real device be found for any type of
43779 abstraction (LVM, EVMS, RAID..).
43780 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43781 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43782 device is found first, find_root_device() will now skip it.
43784 2008-07-24 Pavel Roskin <proski@gnu.org>
43786 * include/grub/types.h: Use __builtin_bswap32() and
43787 __builtin_bswap64() with gcc 4.3 and newer.
43789 2008-07-24 Christian Franke <franke@computer.org>
43791 * util/i386/pc/grub-install.in: If `--debug' is specified,
43792 pass `--verbose' to grub-setup.
43793 Abort script if make_system_path_relative_to_its_root() fails.
43795 2008-07-24 Bean <bean123ch@gmail.com>
43797 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43798 variable `target_platform' should be `platform'.
43800 2008-07-24 Bean <bean123ch@gmail.com>
43802 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43803 (grub_png_init_fixed_block): New function.
43804 (grub_png_decode_image_data): Handle fixed huffman code compression.
43806 2008-07-24 Bean <bean123ch@gmail.com>
43808 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43809 (grub_pe2elf_SOURCES): New macro.
43810 (CLEANFILES): Add grub-pe2elf.
43812 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43813 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43814 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43815 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43816 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43817 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43818 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43819 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43820 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43821 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43822 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43823 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43824 (GRUB_PE32_DT_FUNCTION): Likewise.
43825 (GRUB_PE32_REL_I386_DIR32): Likewise.
43826 (GRUB_PE32_REL_I386_REL32): Likewise.
43827 (grub_pe32_symbol): New structure.
43828 (grub_pe32_reloc): Likewise.
43830 * util/grub-pe2elf.c: New file.
43832 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43833 start symbol in non pc platform.
43835 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43837 The following patches are from Christian Franke.
43839 * include/grub/dl.h: Remove .previous, gas supports this only
43842 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43843 Remove .type, gas supports this only for ELF format.
43845 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43846 nullbytes in symbol table. This fixes an infinite loop if table is
43849 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43850 TARGET_IMG_LDFLAGS and EXEEXT.
43852 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43853 TARGET_IMG_LDFLAGS_AC.
43854 (grub_CHECK_STACK_ARG_PROBE): New function.
43856 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43858 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43860 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43861 to set TARGET_IMG_LD* accordingly.
43862 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43863 Add call to grub_CHECK_STACK_ARG_PROBE.
43864 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43866 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43868 * genmk.rb: Add EXEEXT to CLEANFILES.
43870 2008-07-23 Robert Millan <rmh@aybabtu.com>
43872 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43873 define the codes for arrows and lines used for the menu).
43874 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43877 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43878 fonts, because the latter are too slow.
43880 2008-07-21 Bean <bean123ch@gmail.com>
43882 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43883 a20. Run keyboard test last, as it will cause macbook to halt.
43885 2008-07-18 Pavel Roskin <proski@gnu.org>
43887 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43888 load foreign architecture modules correctly anyway. Keep
43889 support for loading host architecture modules, whether we
43890 compile them or not.
43892 2008-07-17 Pavel Roskin <proski@gnu.org>
43894 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43895 change target_cpu. The compiler default can mismatch target_cpu
43898 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43899 * kern/efi/efi.c: Likewise.
43901 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43902 target compiler is functional.
43903 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43906 * configure.ac: Default to efi platform for x86_64-apple. Allow
43907 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43908 adjustments from the rest, only do them if target is not
43909 explicitly given. Merge other adjustments with the final sanity
43910 check. Remove an extraneous check for supported CPU. Be
43911 specific which CPU and which platform is not supported.
43913 * configure.ac: Default to pc platform for x86_64.
43915 2008-07-17 Robert Millan <rmh@aybabtu.com>
43917 Partial LinuxBIOS -> Coreboot rename.
43919 * conf/i386-linuxbios.rmk: Renamed to ...
43920 * conf/i386-coreboot.rmk: ... this.
43921 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43922 * configure.ac: Accept "coreboot" as input platform (but maintain
43923 compatibility with "linuxbios").
43924 * include/grub/i386/linuxbios: Renamed to ...
43925 * include/grub/i386/coreboot: ... this.
43927 2008-07-17 Bean <bean123ch@gmail.com>
43929 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43930 (appleldr_mod_SOURCE): New variable.
43931 (appleldr_mod_CFLAGS): Likewise.
43932 (appleldr_mod_LDFLAGS): Likewise.
43933 (pci_mod_SOURCES): Likewise.
43934 (pci_mod_CFLAGS): Likewise.
43935 (pci_mod_LDFLAGS): Likewise.
43936 (lspci_mod_SOURCES): Likewise.
43937 (lspci_mod_CFLAGS): Likewise.
43938 (lspci_mod_LDFLAGS): Likewise.
43940 * conf/x86_64-efi.rmk: New file.
43942 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43944 (grub_efidisk_write): Likewise.
43946 * include/efi/api.h (efi_call_0): New macro.
43947 (efi_call_1): Likewise.
43948 (efi_call_2): Likewise.
43949 (efi_call_3): Likewise.
43950 (efi_call_4): Likewise.
43951 (efi_call_5): Likewise.
43952 (efi_call_6): Likewise.
43954 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43955 grub_rescue_cmd_chainloader.
43957 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43958 (grub_pe32_optional_header): Change some fields based on i386 or
43960 (GRUB_PE32_PE32_MAGIC): Likewise.
43962 * include/grub/efi/uga_draw.h: New file.
43964 * include/grub/elf.h (STN_ABS): New constant.
43965 (R_X86_64_NONE): Relocation constant for x86_64.
43966 (R_X86_64_64): Likewise.
43967 (R_X86_64_PC32): Likewise.
43968 (R_X86_64_GOT32): Likewise.
43969 (R_X86_64_PLT32): Likewise.
43970 (R_X86_64_COPY): Likewise.
43971 (R_X86_64_GLOB_DAT): Likewise.
43972 (R_X86_64_JUMP_SLOT): Likewise.
43973 (R_X86_64_RELATIVE): Likewise.
43974 (R_X86_64_GOTPCREL): Likewise.
43975 (R_X86_64_32): Likewise.
43976 (R_X86_64_32S): Likewise.
43977 (R_X86_64_16): Likewise.
43978 (R_X86_64_PC16): Likewise.
43979 (R_X86_64_8): Likewise.
43980 (R_X86_64_PC8): Likewise.
43982 * include/grub/i386/efi/pci.h: New file.
43984 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43985 Change it value based on platform.
43986 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43987 (GRUB_E820_RAM): Likewise.
43988 (GRUB_E820_RESERVED): Likewise.
43989 (GRUB_E820_ACPI): Likewise.
43990 (GRUB_E820_NVS): Likewise.
43991 (GRUB_E820_EXEC_CODE): Likewise.
43992 (GRUB_E820_MAX_ENTRY): Likewise.
43993 (grub_e820_mmap): New structure.
43994 (linux_kernel_header): Change the efi field according to different
43995 kernel version, also field from linux_kernel_header.
43997 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43999 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
44000 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
44001 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
44002 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
44003 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
44004 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
44005 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
44006 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
44007 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
44008 (GRUB_PCI_ADDR_IO_MASK): Likewise.
44010 * include/grub/x86_64/efi/kernel.h: New file.
44012 * include/grub/x86_64/efi/loader.h: Likewise.
44014 * include/grub/x86_64/efi/machine.h: Likewise.
44016 * include/grub/x86_64/efi/pci.h: Likewise.
44018 * include/grub/x86_64/efi/time.h: Likewise.
44020 * include/grub/x86_64/linux.h: Likewise.
44022 * include/grub/x86_64/setjmp.h: Likewise.
44024 * include/grub/x86_64/time.h: Likewise.
44026 * include/grub/x86_64/types.h: Likewise.
44028 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
44029 GRUB_TARGET_SIZEOF_VOID_P.
44031 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
44032 (grub_efi_locate_handle): Likewise.
44033 (grub_efi_open_protocol): Likewise.
44034 (grub_efi_set_text_mode): Likewise.
44035 (grub_efi_stall): Likewise.
44036 (grub_exit): Likewise.
44037 (grub_reboot): Likewise.
44038 (grub_halt): Likewise.
44039 (grub_efi_exit_boot_services): Likewise.
44040 (grub_get_rtc): Likewise.
44042 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
44043 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
44044 (grub_efi_allocate_pages): Wrap efi calls.
44045 (grub_efi_free_pages): Wrap efi calls.
44046 (grub_efi_get_memory_map): Wrap efi calls.
44048 * kern/x86_64/dl.c: New file.
44050 * kern/x86_64/efi/callwrap.S: Likewise.
44052 * kern/x86_64/efi/startup.S: Likewise.
44054 * loader/efi/appleloader.c: Likewise.
44056 * loader/efi/chainloader.c (cmdline): New variable.
44057 (grub_chainloader_unload): Wrap efi calls.
44058 (grub_chainloader_boot): Likewise.
44059 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
44062 * loader/efi/chainloader_normal.c (chainloader_command):
44063 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
44066 * loader/i386/efi/linux.c (allocate_pages): Change allocation
44068 (grub_e820_add_region): New function.
44069 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
44071 (grub_find_video_card): New function.
44072 (grub_linux_setup_video): New function.
44073 (grub_rescue_cmd_linux): Probe for video information.
44075 * normal/x86_64/setjmp.S: New file.
44077 * term/efi/console.c (map_char): New function.
44078 (grub_console_putchar): Map unicode char.
44079 (grub_console_checkkey): Wrap efi calls.
44080 (grub_console_getkey): Likewise.
44081 (grub_console_getwh): Likewise.
44082 (grub_console_gotoxy): Likewise.
44083 (grub_console_cls): Likewise.
44084 (grub_console_setcolorstate): Likewise.
44085 (grub_console_setcursor): Likewise.
44087 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
44089 2008-07-16 Pavel Roskin <proski@gnu.org>
44091 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
44094 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
44095 pointer, not an integer. This fixes a warning and prevents
44096 precision loss on 64-bit systems.
44097 (relocate_addresses): Remove unneeded cast.
44099 2008-07-15 Pavel Roskin <proski@gnu.org>
44101 * kern/i386/ieee1275/init.c: Include grub/cache.h.
44103 * term/ieee1275/ofconsole.c: Disable code unused on i386.
44105 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
44106 Fix comparison between signed and unsigned.
44108 * include/grub/i386/ieee1275/console.h: Declare
44109 grub_console_init() and grub_console_fini().
44111 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
44112 It's empty and unused.
44114 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
44115 beginning to avoid warnings with some compilers.
44117 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
44118 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
44120 2008-07-14 Pavel Roskin <proski@gnu.org>
44122 * kern/env.c (grub_register_variable_hook): Don't copy empty
44123 string, it leaks memory. Pass "" to grub_env_set(), it should
44124 handle constant strings.
44126 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
44127 * commands/cmp.c (grub_cmd_cmp): Likewise.
44128 * kern/dl.c (grub_dl_flush_cache): Likewise.
44129 (grub_dl_load_core): Likewise.
44130 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
44131 (grub_elf64_load_phdrs): Likewise.
44133 2008-07-13 Pavel Roskin <proski@gnu.org>
44135 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
44136 between signed and unsigned.
44137 (LzmaEnc_Finish): Fix warning about an unused parameter.
44139 2008-07-13 Bean <bean123ch@gmail.com>
44141 * Makefile.in (enable_lzo): New rule.
44143 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
44145 * configure.ac (ENABLE_LZO): New option --enable-lzo.
44147 * boot/i386/pc/lnxboot.S: #include <config.h>.
44149 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
44150 its value according to the compression algorithm used, lzo or lzma.
44152 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
44153 compression algorithm according to configure macro.
44155 * kern/i386/pc/startup.S (codestart): Likewise.
44157 * kern/i386/pc/lzma_decode.S: New file.
44159 * include/grub/lib/LzFind.h: Likewise.
44161 * include/grub/lib/LzHash.h: Likewise.
44163 * include/grub/lib/LzmaDec.h: Likewise.
44165 * include/grub/lib/LzmaEnc.h: Likewise.
44167 * include/grub/lib/LzmaTypes.h: Likewise.
44169 * lib/LzFind.c: Likewise.
44171 * lib/LzmaDec.c: Likewise.
44173 * lib/LzmaEnc.c: Likewise.
44175 2008-07-13 Bean <bean123ch@gmail.com>
44177 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44178 (grub_ext4_extent_header): New structure.
44179 (grub_ext4_extent): Likewise.
44180 (grub_ext4_extent_idx): Likewise.
44181 (grub_ext4_find_leaf): New function.
44182 (grub_ext2_read_block): Handle extents.
44184 2008-07-12 Robert Millan <rmh@aybabtu.com>
44186 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44188 2008-07-11 Robert Millan <rmh@aybabtu.com>
44190 * util/grub.d/40_custom.in: New file. Example on how to add custom
44191 entries to /etc/grub.d.
44192 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44193 40_custom (implicitly, by merging all the grub.d rules).
44195 2008-07-11 Pavel Roskin <proski@gnu.org>
44197 * commands/read.c (grub_getline): Fix invalid memory access.
44198 Don't add newline to the variable value.
44200 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44201 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44202 (serial_hw_get_port): Check validity of the port number.
44203 (grub_cmd_serial): Check return value of serial_hw_get_port().
44205 2008-07-07 Pavel Roskin <proski@gnu.org>
44207 * boot/i386/pc/diskboot.S (notification_string): Replace
44208 "Loading kernel" with just "loading". This is shorter, less
44209 confusing and saves a few bytes for possible future changes.
44211 2008-07-05 Pavel Roskin <proski@gnu.org>
44213 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44214 size for ATAPI devices, they are undefined. Output sector
44215 number in decimal form.
44217 * disk/ata.c: Use named constants for status bits.
44219 2008-07-04 Pavel Roskin <proski@gnu.org>
44221 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44222 grub_addr_t before casting it to the void pointer to fix a
44223 warning. Non-addressable regions are discarded earlier.
44224 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44225 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44226 (check_signature): Don't shadow table_header.
44227 (grub_linuxbios_table_iterate): Cast numeric constants to
44228 grub_linuxbios_table_header_t.
44229 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44232 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44235 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44236 pointer, which can cause warnings. Support 64-bit addresses.
44238 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44239 of sizeof(long). This fixes PowerPC image generation on x86_64.
44241 2008-07-04 Robert Millan <rmh@aybabtu.com>
44243 This fixes a performance issue when pc & gpt partmap iterators
44244 didn't abort iteration even after our hook found what it was
44245 looking for (often causing expensive probes of non-existent drives).
44247 Some callers relied on previous buggy behaviour, since they would
44248 raise an error when their own hooks caused early abortion of its
44251 * kern/device.c (grub_device_open): Improve error message.
44252 * disk/lvm.c (grub_lvm_open): Likewise.
44253 * disk/raid.c (grub_raid_open): Likewise.
44255 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44256 when hook requests it, independently of grub_errno.
44257 (pc_partition_map_probe): Do not fail when find_func() caused
44258 early abortion of pc_partition_map_iterate().
44260 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44261 when hook requests it, independently of grub_errno.
44262 (gpt_partition_map_probe): Do not fail when find_func() caused
44263 early abortion of gpt_partition_map_iterate().
44265 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44266 when hook requests it, independently of grub_errno. Do not fail when
44267 part_map_iterate_hook() caused early abortion of p->iterate().
44269 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44270 when grub_partition_iterate() returned with non-zero.
44272 2008-07-03 Pavel Roskin <proski@gnu.org>
44274 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44275 like we do in grub_ata_pio_read().
44276 (grub_ata_readwrite): Always write individual sectors. Fix the
44277 sector count for the remainder.
44278 (grub_ata_write): Enable writing to ATA devices. Correctly
44279 report error for ATAPI devices.
44281 2008-07-02 Pavel Roskin <proski@gnu.org>
44283 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44286 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44287 for every read sector, we already increment it for the whole
44288 batch. This fixes reading more than 256 sectors at once.
44290 * util/grub-editenv.c (cmd_info): Cast argument to long
44291 explicitly. ptrdiff_t reduces to int on i386.
44293 * util/grub-editenv.c (main): Be specific which parameter is
44296 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44297 (memdisk): Make memdisk_orig_addr a pointer.
44299 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44300 for file offsets, use grub_off_t instead. Fix printf format
44303 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44304 there. Real unexpected warnings should not drown in the noise
44305 about known problems.
44307 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44308 grub_disk_addr_t for memory addresses.
44310 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44311 explicitly to fix a warning.
44313 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44315 * Makefile.in (MODULE_LDFLAGS): New variable.
44316 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44317 the linker accepts --build-id=none.
44318 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44320 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44322 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44323 those in Linux XFS code. Provide a way to access 64-bit parent
44325 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44326 the end of struct grub_xfs_dir_header.
44328 2008-07-02 Bean <bean123ch@gmail.com>
44330 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44331 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44332 and GRUB_IEEE1275_FLAG_NO_ANSI.
44334 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44335 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44336 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44338 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44339 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44341 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44342 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44344 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44345 esc sequence on non ANSI terminal.
44346 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44348 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44351 2008-07-02 Bean <bean123ch@gmail.com>
44353 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44354 (grub_editenv_SOURCES): New variable.
44355 (pkglib_MODULES): Add loadenv.mod.
44356 (loadenv_mod_SOURCES): New variable.
44357 (loadenv_mod_CFLAGS): Likewise.
44358 (loadenv_mod_LDFLAGS): Likewise.
44360 * include/grub/envblk.h: New file.
44362 * util/envblk.c: New file.
44364 * util/grub-editenv.c: New file.
44366 * commands/loadenv.c: New file.
44368 2008-07-01 Pavel Roskin <proski@gnu.org>
44370 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44371 not unsigned char. This fixes warnings and is consistent with
44374 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44376 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44378 * term/tparm.c (analyze): Always set *popcount.
44380 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44381 cast to fix a warning.
44383 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44384 cast to suppress a warning.
44386 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44387 grub_fshelp_read_file() expects.
44389 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44390 write uuid as a 32-bit value in CPU byte order, so declare and
44393 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44394 long if the format specifier expects it.
44395 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44396 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44397 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44398 long to fix a warning.
44399 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44400 grub_dprintf() arguments to fix warnings.
44402 2008-06-30 Pavel Roskin <proski@gnu.org>
44404 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44405 install_bsd_part immediately before core.img is embedded or
44406 modified on disk. This fixes core.img verification if core.img
44407 cannot be embedded.
44409 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44410 core_path to calculate the blocklist.
44411 Patch from Javier Martín <lordhabbit@gmail.com>
44413 2008-06-29 Robert Millan <rmh@aybabtu.com>
44415 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44416 block to disk block.
44417 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44418 Patch from Niels Böhm <bitbucket@arcor.de>
44420 2008-06-29 Robert Millan <rmh@aybabtu.com>
44422 * util/update-grub_lib.in (font_path): Search for fonts in
44423 /boot/grub first, which is more likely to be readable (we aren't
44424 deciding where fonts live, just looking for them).
44426 2008-06-26 Pavel Roskin <proski@gnu.org>
44428 * util/biosdisk.c (read_device_map): Don't leave dead map
44429 entries for devices failing stat() check.
44431 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44432 core_path_dev for the core.img path on the target device.
44434 2008-06-26 Robert Millan <rmh@aybabtu.com>
44436 * disk/fs_uuid.c: New file.
44437 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44438 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44439 (fs_uuid_mod_LDFLAGS): New variables.
44440 * include/grub/disk.h (grub_disk_dev_id): Add
44441 `GRUB_DISK_DEVICE_UUID_ID'.
44442 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44443 implement iterate().
44445 2008-06-26 Robert Millan <rmh@aybabtu.com>
44447 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44448 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44449 Linux image includes no initrd.
44451 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44453 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44454 call to resolve the core image location that effectively appended the
44457 2008-06-21 Robert Millan <rmh@aybabtu.com>
44459 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44462 * util/grub.d/10_hurd.in: ... to here ...
44463 * util/grub.d/10_linux.in: ... and here.
44465 2008-06-19 Robert Millan <rmh@aybabtu.com>
44467 * kern/main.c (grub_main): Export `prefix' variable immediately
44468 after it has been set by grub_machine_set_prefix().
44470 2008-06-19 Robert Millan <rmh@aybabtu.com>
44472 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44473 search result when not saving to variable, not the other way around.
44474 When saving to variable, abort iteration as soon as a match is found.
44476 2008-06-19 Robert Millan <rmh@aybabtu.com>
44478 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44479 check for partition that provides /boot/grub. Its logic is flawed,
44480 as it prevents prepare_grub_to_access_device() from being called
44483 2008-06-19 Robert Millan <rmh@aybabtu.com>
44485 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44486 "insmod" command directly when abstraction modules are needed,
44487 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44488 since it had already been processed).
44490 2008-06-19 Pavel Roskin <proski@gnu.org>
44492 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44493 changed. This is needed in case GRUB_LIBDIR changes.
44494 * conf/i386-ieee1275.rmk: Likewise.
44495 * conf/i386-linuxbios.rmk: Likewise.
44496 * conf/i386-pc.rmk: Likewise.
44497 * conf/powerpc-ieee1275.rmk: Likewise.
44499 2008-06-18 Pavel Roskin <proski@gnu.org>
44501 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44502 kernel_elf_symlist.c to symlist.c for consistency with other
44503 architectures. Update all users.
44504 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44506 2008-06-18 Robert Millan <rmh@aybabtu.com>
44508 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44511 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44512 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44513 a RAID device, run setup() for all members independently on whether
44514 LVM abstraction is being used.
44515 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44516 If grub-mkimage has set `*install_dos_part == -2', don't override this
44518 Perform *install_dos_part adjustments independently on whether
44519 we're embedding or not.
44520 Clarify error message when image is too big for embedding.
44521 Remove duplicate *install_dos_part stanza.
44523 2008-06-17 Robert Millan <rmh@aybabtu.com>
44525 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44526 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44528 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44529 values in grub_ofconsole_normal_color and
44530 grub_ofconsole_highlight_color (they're not directly related to
44531 background and foreground).
44532 (grub_ofconsole_setcolorstate): Extract background and foreground
44533 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44535 2008-06-17 Robert Millan <rmh@aybabtu.com>
44537 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44538 /boot/grub for the check in last commit, not /boot (they could be
44539 different partitions).
44541 2008-06-16 Robert Millan <rmh@aybabtu.com>
44543 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44544 asked to setup access for the same partition that provides /boot,
44545 don't bother using UUIDs since our root already has the value we
44548 2008-06-16 Robert Millan <rmh@aybabtu.com>
44550 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44552 Patch from Sven Mueller <sven@debian.org>.
44554 2008-06-16 Robert Millan <rmh@aybabtu.com>
44556 * util/update-grub.in: Check for $EUID instead of $UID.
44557 Reported by Vincent Zweije.
44559 2008-06-16 Bean <bean123ch@gmail.com>
44561 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44562 (grub_ext2_read_block): Likewise.
44563 (grub_ext2_read_inode): Likewise.
44564 (grub_ext2_mount): Likewise.
44565 (grub_ext2_close): Likewise.
44566 (grub_ext3_get_journal): Removed.
44568 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44569 (grub_reiserfs_read_symlink): Likewise.
44570 (grub_reiserfs_mount): Likewise.
44571 (grub_reiserfs_open): Likewise.
44572 (grub_reiserfs_read): Likewise.
44573 (grub_reiserfs_close): Likewise.
44574 (grub_reiserfs_get_journal): Removed.
44576 * fs/fshelp.c (grub_fshelp_read): Removed.
44577 (grub_fshelp_map_block): Likewise.
44579 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44580 (grub_fshelp_journal): Likewise.
44581 (grub_fshelp_read): Likewise.
44582 (grub_fshelp_map_block): Likewise.
44584 2008-06-16 Pavel Roskin <proski@gnu.org>
44586 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44587 floating point anymore.
44588 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44590 2008-06-15 Pavel Roskin <proski@gnu.org>
44592 * commands/ls.c (grub_ls_list_files): Use integer calculations
44593 for human readable format, avoid floating point use.
44594 * kern/misc.c (grub_ftoa): Remove.
44595 (grub_vsprintf): Remove floating point support.
44597 2008-06-15 Robert Millan <rmh@aybabtu.com>
44599 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44601 Reported by Max Vozeler.
44603 2008-06-15 Robert Millan <rmh@aybabtu.com>
44605 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44606 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44608 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44609 the beginning of the prefix.
44611 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44612 It is assumed that if we have a memdisk, grub-mkimage has set
44613 grub_prefix to include the "(memdisk)" drive in it.
44615 2008-06-15 Robert Millan <rmh@aybabtu.com>
44617 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44618 Initialize keyboard controller after registering the terminal, so that
44619 grub_printf() can be called from grub_keyboard_controller_init().
44621 2008-06-15 Robert Millan <rmh@aybabtu.com>
44623 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44624 extent-btree which is written as big endian on disk.
44625 Reported by Alain Greppin <al@chilibi.org>.
44627 2008-06-14 Robert Millan <rmh@aybabtu.com>
44629 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44630 * util/i386/pc/grub-install.in (modules): Likewise.
44632 2008-06-13 Pavel Roskin <proski@gnu.org>
44634 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44636 2008-06-13 Bean <bean123ch@gmail.com>
44638 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44640 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44642 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44643 to indicate sparse block.
44645 2008-06-12 Pavel Roskin <proski@gnu.org>
44647 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44648 number, grub_fshelp_read() does it for us.
44650 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44651 linear disk read with journal translation.
44652 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44653 * include/grub/fshelp.h: Declare grub_fshelp_read().
44655 2008-06-09 Pavel Roskin <proski@gnu.org>
44657 * fs/minix.c (grub_minix_mount): Handle error reading
44660 2008-06-08 Robert Millan <rmh@aybabtu.com>
44662 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44663 don't append the RAID prefix afterwards.
44664 Reported by Clint Adams.
44666 2008-06-08 Robert Millan <rmh@aybabtu.com>
44668 Based on description from Pavel:
44669 * kern/disk.c (grub_disk_check_range): Rename to ...
44670 (grub_disk_adjust_range): ... this. Add a comment explaining the
44671 tasks performed by this function.
44673 2008-06-08 Robert Millan <rmh@aybabtu.com>
44675 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44676 `num_serial' (for consistency with other variables).
44677 (struct grub_ntfs_data): Add `uuid' member.
44678 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44679 (grub_ntfs_uuid): New function.
44680 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44682 2008-06-07 Pavel Roskin <proski@gnu.org>
44684 * util/biosdisk.c (open_device): Revert last change to the
44685 function, it broke installation. The sector needs to be
44686 different dependent on which device is opened.
44688 2008-06-06 Robert Millan <rmh@aybabtu.com>
44690 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44691 rest of GRUB, and breakage doesn't happen if its value were modified.
44693 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44694 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44695 a constant (same value).
44696 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44697 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44699 2008-06-06 Robert Millan <rmh@aybabtu.com>
44701 * util/biosdisk.c (open_device): Do not modify sector offset when
44702 accessing a partition. kern/disk.c already handles this for us.
44704 2008-06-06 Robert Millan <rmh@aybabtu.com>
44706 * util/grub-emu.c (grub_machine_init): Move code in this function from
44708 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44709 segfault in case grub_printf() is called).
44711 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44712 grub_probe. Update all users not to explicitly add it again.
44713 (grub_device): New variable; contains corresponding device for grubdir.
44714 (fs_module, partmap_module, devabstraction_module): Pass
44715 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44718 2008-06-05 Robert Millan <rmh@aybabtu.com>
44720 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44721 is found, print it (same layout as with labels).
44723 2008-06-04 Robert Millan <rmh@aybabtu.com>
44725 * util/biosdisk.c (get_drive): Rename to ...
44726 (find_grub_drive): ... this. Update all users.
44728 (get_os_disk): Rename to ...
44729 (convert_system_partition_to_system_disk): ... this. Update all users.
44731 (find_drive): Rename to ...
44732 (find_system_device): ... this. Update all users.
44734 2008-06-04 Robert Millan <rmh@aybabtu.com>
44736 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44737 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44738 (make_device_map): Likewise.
44740 2008-06-01 Robert Millan <rmh@aybabtu.com>
44742 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44743 before dereferencing it.
44745 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44746 union with fat12/fat16-specific ones. Add some new fields, including
44747 `num_serial' for both versions.
44748 (struct grub_fat_data): Add `uuid' member.
44749 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44750 names. Initialize `data->uuid' using `num_serial'.
44751 (grub_fat_uuid): New function.
44752 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44754 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44755 (grub_reiserfs_uuid): New function.
44756 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44759 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44760 (grub_xfs_uuid): New function.
44761 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44763 2008-06-01 Robert Millan <rmh@aybabtu.com>
44765 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44766 code that is backward compatible with pre-uuid search command.
44768 2008-05-31 Robert Millan <rmh@aybabtu.com>
44770 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44771 floppies after everything else, to ensure floppy drive isn't accessed
44772 unnecessarily (patch from Bean).
44774 2008-05-31 Robert Millan <rmh@aybabtu.com>
44776 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44777 not print device names when we were asked to set a variable.
44779 2008-05-31 Robert Millan <rmh@aybabtu.com>
44781 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44782 using "cursor-on" and "cursor-off" commands (understood at least by
44783 the Open Firmware flavour on OLPC).
44785 2008-05-31 Michael Gorven <michael@gorven.za.net>
44787 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44788 on and off sequences.
44790 2008-05-31 Robert Millan <rmh@aybabtu.com>
44792 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44793 * util/update-grub.in: Likewise.
44795 2008-05-30 Pavel Roskin <proski@gnu.org>
44797 * util/biosdisk.c (linux_find_partition): Simplify logic and
44798 make the code more universal. Keep special processing for
44799 devfs, but use a simple rule for all other devices. If the
44800 device ends with a number, append 'p' and the partition number.
44801 Otherwise, append only the partition number.
44803 2008-05-30 Robert Millan <rmh@aybabtu.com>
44805 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44806 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44807 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44808 the `root' parameter to Linux.
44810 2008-05-30 Robert Millan <rmh@aybabtu.com>
44812 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44813 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44814 --fs_uuid with --fs-uuid.
44815 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44816 all filesystems support them).
44818 2008-05-30 Robert Millan <rmh@aybabtu.com>
44820 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44821 grub_printf() flags, since we're printing in units of 2 bytes.
44823 2008-05-30 Robert Millan <rmh@aybabtu.com>
44825 * util/grub.d/00_header.in: Remove obsolete comment referencing
44826 convert_system_path_to_grub_path().
44827 * util/update-grub.in: Likewise.
44828 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44829 (convert_system_path_to_grub_path): Add a warning message explaining
44830 that this function is deprecated. Rely on is_path_readable_by_grub()
44831 for the readability checks.
44832 (font_path): Use is_path_readable_by_grub() for the readability
44833 check rather than convert_system_path_to_grub_path().
44835 2008-05-30 Robert Millan <rmh@aybabtu.com>
44837 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44838 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44839 converting it first.
44840 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44841 grub.cfg for access to font file, and afterwards call it again to set
44844 2008-05-30 Robert Millan <rmh@aybabtu.com>
44846 * commands/search.c (options): Add --fs_uuid option.
44847 (search_fs_uuid): New function.
44848 (grub_cmd_search): Fix --set argument passing.
44849 Use search_fs_uuid() when requested via --fs_uuid.
44850 (grub_search_init): Update help message.
44851 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44852 and redeclare it as an array of 16-bit words.
44853 (grub_ext2_uuid): New function.
44854 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44855 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44856 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44857 (GRUB_DEVICE_BOOT_UUID): New variables.
44858 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44859 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44861 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44862 just assume `root' variable has the right value.
44863 * util/grub.d/10_linux.in: Likewise.
44864 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44866 (main): Recognise `-t fs_uuid' argument.
44868 2008-05-30 Robert Millan <rmh@aybabtu.com>
44870 * util/biosdisk.c (map): Redefine structure to hold information
44871 about GRUB drive name.
44872 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44874 (call_hook): Remove.
44875 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44876 member. Assume drive has partitions.
44877 (grub_util_biosdisk_open): Access device names via `.device' struct
44879 (open_device): Likewise.
44880 (find_drive): Likewise.
44881 (read_device_map): Adjust map[] usage to match the new struct
44882 definition. Don't check for duplicates (still possible, but not cheap
44884 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44885 (make_device_name): Remove assumption of BIOS-like drive names.
44887 2008-05-30 Pavel Roskin <proski@gnu.org>
44889 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44890 compiling execute.c doesn't need grub_script.tab.h anymore.
44891 (normal/command.c_DEPENDENCIES): Likewise.
44892 (normal/function.c_DEPENDENCIES): Likewise.
44893 * conf/i386-ieee1275.rmk: Likewise.
44894 * conf/i386-linuxbios.rmk: Likewise.
44895 * conf/i386-pc.rmk: Likewise.
44896 * conf/powerpc-ieee1275.rmk: Likewise.
44897 * conf/sparc64-ieee1275.rmk: Likewise.
44899 2008-05-29 Pavel Roskin <proski@gnu.org>
44901 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44902 when scanning metadata for volume group name.
44904 * include/grub/script.h: Don't include grub_script.tab.h. It's
44905 a generated file, which may only be included from the files with
44906 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44907 use union YYSTYPE, as the later allows forward declaration.
44908 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44910 2008-05-29 Robert Millan <rmh@aybabtu.com>
44912 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44913 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44914 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44915 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44918 2008-05-29 Robert Millan <rmh@aybabtu.com>
44920 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44921 control key combinations.
44923 2008-05-29 Robert Millan <rmh@aybabtu.com>
44925 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44926 * util/ieee1275/grub-install.in: ... to here.
44927 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44928 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44929 (grub_install_SOURCES): Likewise.
44931 2008-05-29 Robert Millan <rmh@aybabtu.com>
44933 * fs/affs.c: Update copyright year.
44934 * fs/ext2.c: Likewise.
44935 * fs/fshelp.c: Likewise.
44936 * fs/hfsplus.c: Likewise.
44937 * fs/ntfs.c: Likewise.
44938 * fs/xfs.c: Likewise.
44939 * include/grub/fshelp.h: Likewise.
44940 * util/grub-mkdevicemap.c: Likewise.
44942 2008-05-28 Robert Millan <rmh@aybabtu.com>
44944 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44945 might need to be fatfs to support some firmware implementations
44948 2008-05-28 Robert Millan <rmh@aybabtu.com>
44950 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44952 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44953 (make_device_map): Likewise.
44955 2008-05-20 Bean <bean123ch@gmail.com>
44957 * fs/fshelp.c (grub_fshelp_map_block): New function.
44958 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44959 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44961 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44962 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44963 (grub_fshelp_journal): New structure.
44964 (grub_fshelp_map_block): New function prototype.
44965 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44966 (grub_fshelp_map_block): Likewise.
44968 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44969 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44970 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44971 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44972 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44973 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44974 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44975 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44976 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44977 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44978 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44979 (grub_ext2_sblock): New members for journal support.
44980 (grub_ext3_journal_header): New structure.
44981 (grub_ext3_journal_revoke_header): Likewise.
44982 (grub_ext3_journal_block_tag): Likewise.
44983 (grub_ext3_journal_sblock): Likewise.
44984 (grub_fshelp_node): New members logfile and journal.
44985 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44986 grub_fshelp_map_block to get real block number.
44987 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44989 (grub_ext2_read_inode): Likewise.
44990 (grub_ext3_get_journal): New function.
44991 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44992 (grub_ext2_close): Release memory used by journal.
44994 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44995 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44996 (grub_reiserfs_transaction_header): Renamed to
44997 grub_reiserfs_description_block, replace field data with real_blocks.
44998 (grub_reiserfs_commit_block): New structure.
44999 (grub_reiserfs_data): New member journal.
45000 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
45002 (grub_reiserfs_read_symlink): Likewise.
45003 (grub_reiserfs_iterate_dir): Likewise.
45004 (grub_reiserfs_open): Likewise.
45005 (grub_reiserfs_read): Likewise.
45006 (grub_reiserfs_get_journal): New function.
45007 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
45008 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
45009 using grub_reiserfs_get_journal.
45010 (grub_reiserfs_close): Release memory used by journal.
45012 * fs/affs.c (grub_affs_read_block): Change block type to
45013 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
45015 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
45017 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
45019 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
45021 * fs/udf.c (grub_udf_read_block): Change block type to
45022 grub_disk_addr_t. Use type cast to avoid warning.
45024 * fs/xfs.c (grub_xfs_read_block): Likewise.
45026 2008-05-16 Christian Franke <franke@computer.org>
45028 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
45029 to ensure that break with ESC will always work.
45030 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
45031 Remove ESC from keyboard queue.
45033 2008-05-16 Christian Franke <franke@computer.org>
45035 * util/biosdisk.c: [__CYGWIN__] Add includes.
45036 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
45037 (get_os_disk): Move variable declarations to OS specific
45038 parts to avoid warning.
45039 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
45040 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
45041 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
45043 * util/getroot.c: [__CYGWIN__] Add includes.
45044 (strip_extra_slashes): Fix "/" case.
45045 [__CYGWIN__] (get_win32_path): New function.
45046 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
45047 [__CYGWIN__] (find_root_device): Disable.
45048 [__CYGWIN__] (get_bootsec_serial): New function.
45049 [__CYGWIN__] (find_cygwin_root_device): Likewise.
45050 [__linux__] (grub_guess_root_device): Add early returns to simplify
45052 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
45053 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
45054 check for Linux only.
45056 2008-05-15 Bean <bean123ch@gmail.com>
45058 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
45059 keyboard hang problem in apple's intel mac.
45061 2008-05-09 Robert Millan <rmh@aybabtu.com>
45063 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
45065 * util/grub-mkdevicemap.c (get_virtio_disk_name)
45066 (make_device_map): Likewise.
45067 Reported by Aurelien Jarno <aurel32@debian.org>
45069 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
45071 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
45072 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
45073 (make_device_map): Output entries for xvd type disks.
45075 2008-05-07 Robert Millan <rmh@aybabtu.com>
45077 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
45079 * util/grub-mkdevicemap.c (get_cciss_disk_name)
45080 (make_device_map): Likewise.
45081 Reported by Roland Dreier <rdreier@cisco.com>
45083 2008-05-07 Robert Millan <rmh@aybabtu.com>
45085 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
45086 grub_strstr() call. Correct a few mistakes in failure path handling.
45088 2008-05-06 Robert Millan <rmh@aybabtu.com>
45090 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
45091 Do not print a trailing slash (therefore, the root directory is an
45093 (convert_system_path_to_grub_path): Do not remove trailing slash
45094 from make_system_path_relative_to_its_root() output.
45096 * util/i386/pc/grub-install.in: Add trailing slash to output from
45097 make_system_path_relative_to_its_root().
45099 2008-05-06 Robert Millan <rmh@aybabtu.com>
45101 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
45102 ensures that output lines aren't intermangled with those sent to
45103 stderr (via grub_util_info()).
45104 * util/grub-probe.c (grub_refresh): Likewise.
45105 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
45107 2008-05-05 Christian Franke <franke@computer.org>
45109 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
45110 Add Cygwin device names.
45111 (get_ide_disk_name) [__CYGWIN__]: Likewise.
45112 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
45113 (check_device): Return error instead of success on empty name.
45114 (make_device_map): Move label inside linux specific code to
45115 prevent compiler warning.
45117 2008-04-30 Robert Millan <rmh@aybabtu.com>
45119 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
45120 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
45122 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
45124 2008-04-29 Robert Millan <rmh@aybabtu.com>
45126 * docs/grub.cfg: New file (example GRUB configuration).
45128 2008-04-26 Robert Millan <rmh@aybabtu.com>
45130 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
45131 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
45132 and `disk/ieee1275/nand.c'.
45134 2008-04-25 Bean <bean123ch@gmail.com>
45136 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
45139 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
45140 change the buffer size to 4096 for cdrom device.
45142 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
45144 (_linux_mod_SOURCES): New variable.
45145 (_linux_mod_CFLAGS): Likewise.
45146 (_linux_mod_LDFLAGS): Likewise.
45147 (linux_mod_SOURCES): Likewise.
45148 (linux_mod_CFLAGS): Likewise.
45149 (linux_mod_LDFLAGS): Likewise.
45150 (nand_mod_SOURCES): Likewise.
45151 (nand_mod_CFLAGS): Likewise.
45152 (nand_mod_LDFLAGS): Likewise.
45154 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
45155 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
45156 type property. (nand device in olpc don't have this property)
45158 * include/grub/disk.h (grub_disk_dev_id): New macro
45159 GRUB_DISK_DEVICE_NAND_ID.
45161 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
45162 function prototype.
45163 (grub_rescue_cmd_initrd): Likewise.
45165 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
45166 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
45167 ofw_cif_handler and ofw_idt, adjust padding number.
45169 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45170 GRUB_MACHINE_IEEE1275 is defined.
45172 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45173 Use NESTED_FUNC_ATTR attribute on the hook parameter.
45175 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45176 on nested function heap_init.
45177 (grub_upper_mem): New variable for i386-ieee1275.
45178 (grub_get_extended_memory): New function for i386-ieee1275.
45179 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45181 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45182 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45185 * loader/i386/ieee1275/linux.c: New file.
45187 * loader/i386/ieee1275/linux_normal.c: New file.
45189 * disk/ieee1275/nand.c: New file.
45191 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45193 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45195 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45197 2008-04-18 Robert Millan <rmh@aybabtu.com>
45199 Restructures early code path on ieee1275 to unify grub_main() as
45200 the first C function that is executed in every platform.
45202 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45203 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45205 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45206 * kern/ieee1275/cmain.c (cmain): Rename to ...
45207 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45208 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45211 2008-04-18 Robert Millan <rmh@aybabtu.com>
45213 * util/update-grub.in: Fix syntax error when setting
45214 `GRUB_PRELOAD_MODULES'.
45215 Reported by Stephane Chazelas <stephane@artesyncp.com>
45217 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45219 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45220 section into account, newer toolchains generate unique build ids
45221 * configure.ac: remove the test for --build-id=none acceptance,
45222 we want build ids to be preserved
45223 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45224 far from other sections don't cause the raw binary images grow
45227 2008-04-15 Robert Millan <rmh@aybabtu.com>
45229 * disk/lvm.c: Update copyright year.
45230 * kern/misc.c: Likewise.
45232 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45234 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45235 there is no memory left for physical volume name.
45237 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45239 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45240 volume name mapping to support bigger than 9 character names properly.
45242 2008-04-13 Robert Millan <rmh@aybabtu.com>
45244 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45245 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45247 2008-04-13 Christian Franke <franke@computer.org>
45249 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45250 to create a floppy emulation boot CD when non emulation mode
45252 Enable Joliet CD filesystem extension.
45254 2008-04-13 Robert Millan <rmh@aybabtu.com>
45256 * kern/misc.c (grub_strncat): Fix off-by-one error.
45257 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45259 * kern/env.c (grub_env_context_close): Clear current context, not
45261 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45263 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45265 2008-04-13 Robert Millan <rmh@aybabtu.com>
45267 Improve robustness when handling LVM.
45269 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45270 (and leave `*p' unmodified).
45271 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45273 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45274 iterating through it.
45275 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45277 (grub_lvm_scan_device): Check the return value (and fail gracefully
45278 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45279 Don't assume `vg->pvs != NULL' when iterating through it.
45281 2008-04-13 Robert Millan <rmh@aybabtu.com>
45283 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45284 * genmk.rb (partmap): New variable.
45285 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45286 (#{partmap}): New target rule.
45287 * genpartmaplist.sh: New file.
45288 * Makefile.in (pkglib_DATA): Add partmap.lst.
45289 (partmap.lst): New target rule.
45290 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45291 modules (including all partition maps), instead of preloading them.
45293 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45295 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45296 `linux-boot-prober' (if installed) to detect other operating
45297 systems which are installed on the computer and add them to
45299 * conf/common.rmk: Build and install 30_os-prober.
45301 2008-04-12 Robert Millan <rmh@aybabtu.com>
45303 * kern/powerpc/ieee1275/init.c: Move from here ...
45304 * kern/ieee1275/init.c: ... to here. Update all users.
45306 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45307 * kern/ieee1275/cmain.c: ... to here. Update all users.
45309 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45310 * kern/ieee1275/openfw.c: ... to here. Update all users.
45312 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45313 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45315 2008-04-10 Pavel Roskin <proski@gnu.org>
45317 * configure.ac: Always use "_cv_" in cache variables for
45318 compatibility with Autoconf 2.62.
45320 2008-04-07 Robert Millan <rmh@aybabtu.com>
45322 Revert grub/machine/init.h addition by Pavel (since it breaks on
45323 i386-ieee1275 and others):
45324 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45325 * util/powerpc/ieee1275/misc.c: Likewise.
45327 2008-04-07 Robert Millan <rmh@aybabtu.com>
45329 * util/grub-probe.c (probe): Improve error message.
45331 2008-04-07 Robert Millan <rmh@aybabtu.com>
45333 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45334 (this prevents the presence of a bogus entry from ruining the whole
45337 2008-04-06 Pavel Roskin <proski@gnu.org>
45339 * util/biosdisk.c: Include grub/util/biosdisk.h.
45340 * util/grub-fstest.c (execute_command): Make static.
45341 * util/grub-mkdevicemap.c (check_device): Likewise.
45342 * util/i386/pc/misc.c: Include grub/machine/init.h.
45343 * util/powerpc/ieee1275/misc.c: Likewise.
45344 * util/lvm.c: Include grub/util/lvm.h.
45345 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45347 * util/raid.c: Include grub/util/raid.h.
45348 (grub_util_getdiskname): Make static.
45350 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45351 grub_hostfs_fini(), as they are called from grub_init_all() and
45352 grub_fini_all() respectively. This fixes an infinite loop in
45353 grub-fstest due to double registration of hostfs.
45354 Reported by Christian Franke <Christian.Franke@t-online.de>
45356 2008-04-05 Pavel Roskin <proski@gnu.org>
45358 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45359 all 8 functions. Otherwise, probe function 0 only.
45361 2008-04-04 Pavel Roskin <proski@gnu.org>
45363 * commands/lspci.c (grub_lspci_iter): Print the bus number
45366 * commands/lspci.c (grub_pci_classes): Fix typos.
45367 (grub_lspci_iter): Don't print func twice. Print vendor ID
45368 before device ID, as it's normally done.
45370 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45371 Fix signedness warnings.
45372 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45374 * util/ieee1275/get_disk_name.c: Include config.h so that
45375 _GNU_SOURCE is defined and getline() is declared. Mark an
45376 unused argument as such. Fix a signedness warning.
45378 2008-04-02 Pavel Roskin <proski@gnu.org>
45380 * genkernsyms.sh.in: Use more robust assignments for CC and
45381 srcdir. Quote srcdir.
45382 * gensymlist.sh.in: Likewise. Assert at the compile time that
45383 the symbol table is not empty.
45385 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45386 * fs/cpio.c (grub_cpio_read): Likewise.
45388 2008-04-01 Pavel Roskin <proski@gnu.org>
45390 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45391 * disk/host.c (grub_host_open): Likewise.
45392 * disk/loopback.c (grub_loopback_open): Likewise.
45393 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45394 disk->id as in disk/host.c, not a multi-character constant.
45396 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45397 later is obsolete, potentially dangerous and sets a bad example.
45398 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45399 * util/misc.c (grub_util_get_image_size): Likewise.
45401 * disk/loopback.c (options): Improve help for "--partitions".
45403 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45404 options to align them with the short options, e.g. "echo -e".
45406 2008-03-31 Bean <bean123ch@gmail.com>
45408 * video/reader/png.c (grub_png_data): New member is_16bit and
45410 (grub_png_decode_image_header): Detect 16 bit png image.
45411 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45412 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45413 (grub_video_reader_png): Release memory occupied by image_data.
45415 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45417 (grub_nfs_mount): Skip the test for sector per cluster.
45419 * include/grub/ntfs.h (MAX_SPC): Removed.
45421 2008-03-31 Bean <bean123ch@gmail.com>
45423 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45424 (grub_probe_SOURCES): Add fs/afs.c.
45425 (grub_fstest_SOURCES): Likewise.
45426 (afs_mod_SOURCES): New variable.
45427 (afs_mod_CFLAGS): Likewise.
45428 (afs_mod_LDFLAGS): Likewise.
45430 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45431 (grub_emu_SOURCES): Likewise.
45433 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45435 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45437 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45439 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45441 * fs/afs.c: New file.
45443 2008-03-30 Pavel Roskin <proski@gnu.org>
45445 * disk/host.c: Include grub/misc.h to fix a warning.
45446 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45447 warnings about implicit declarations.
45449 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45451 * include/grub/i386/loader.h: Change declaration of
45452 grub_linux_boot() to match what grub_loader_set() expects.
45453 * util/getroot.c (grub_guess_root_device): Return const char* to
45455 * util/grub-probe.c (probe): Fix a warning about uninitialized
45456 abstraction_name variable.
45457 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45458 second argument as unused to fix a warning.
45460 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45461 missing grub_error() call.
45463 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45464 2.60 and newer uses it to define datadir.
45466 * commands/sleep.c: Fix warning about implicit declaration.
45467 * disk/memdisk.c: Likewise.
45468 * loader/aout.c: Likewise.
45469 * loader/i386/bsd_normal.c: Likewise.
45470 * util/grub-probe.c: Likewise.
45472 * commands/i386/cpuid.c (has_longmode): Make static.
45473 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45474 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45476 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45477 GDT. This is more robust, as %ds can change.
45478 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45479 calling real_to_prot().
45480 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45482 2008-03-28 Pavel Roskin <proski@gnu.org>
45484 * kern/i386/pc/startup.S: Assert that uncompressed functions
45485 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45486 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45487 code, as they push parts of the code (error handlers) beyond
45488 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45489 code as correctness and size.
45491 2008-03-28 Pavel Roskin <proski@gnu.org>
45493 * kern/i386/pc/startup.S
45494 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45495 data block address to the real mode, keep offset minimal. This
45496 works around a bug in AWARD BIOS on old Athlon systems, which
45497 makes CD detection hang.
45499 2008-03-26 Pavel Roskin <proski@gnu.org>
45501 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45503 * include/grub/normal.h: Add grub_parse_color_name_pair()
45506 2008-03-24 Bean <bean123ch@gmail.com>
45508 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45509 (cd_count): Removed.
45510 (cd_drive): New variable.
45511 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45512 (grub_biosdisk_call_hook): Likewise.
45513 (grub_biosdisk_iterate): Change cdrom detection method.
45514 (grub_biosdisk_open): Replace cd_start with cd_drive.
45515 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45516 detect cdrom device.
45518 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45520 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45521 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45522 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45523 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45524 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45525 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45526 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45527 (grub_biosdisk_cdrp): New structure.
45528 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45530 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45532 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45535 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45538 2008-03-20 Robert Millan <rmh@aybabtu.com>
45540 Remove 2 TiB limit in ata.mod.
45541 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45542 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45543 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45544 grub_uint64_t instead of grub_uint32_t.
45546 2008-03-05 Bean <bean123ch@gmail.com>
45548 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45549 (grub_multiboot): Set boot device.
45551 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45553 2008-03-02 Bean <bean123ch@gmail.com>
45555 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45558 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45560 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45563 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45566 * docs/fdl.texi: New file.
45568 * docs/mdate-sh: New file. Copied from gnulib.
45569 * docs/texinfo.tex: Likewise.
45571 * config.guess: Updated from gnulib.
45572 * install-sh: Likewise.
45574 2008-02-28 Robert Millan <rmh@aybabtu.com>
45576 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45577 (aout_mod_SOURCES): New variable.
45578 (aout_mod_CFLAGS): Likewise.
45579 (aout_mod_LDFLAGS): Likewise.
45581 * conf/i386-ieee1275.rmk: Likewise.
45583 2008-02-28 Robert Millan <rmh@aybabtu.com>
45585 * util/update-grub.in: Reorganise terminal validity check. Accept
45586 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45587 Based on suggestion by Franklin PIAT.
45589 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45591 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45593 * util/getroot.c (grub_util_check_block_device): New function that
45594 returns the given argument if it is a block device and returns NULL else.
45595 * util/grub-probe.c (argument_is_device): New variable.
45596 (probe): Promote device_name from a variable to an argument. Receive
45597 device_name from grub_util_check_block_device() if path is NULL and from
45598 grub_guess_root_device() else. Do not free() device_name anymore.
45599 (options): Introduce new parameter '-d, --device'.
45600 (main): Add description of the new parameter to the help screen.
45601 Rename path variable to argument. Set argument_is_device if the '-d'
45602 option is given. Pass argument to probe() depending on
45603 argument_is_device.
45605 2008-02-24 Bean <bean123ch@gmail.com>
45607 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45608 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45609 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45610 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45611 (GRUB_ISO9660_VOLDESC_END): Likewise.
45612 (grub_iso9660_primary_voldesc): New member escape.
45613 (grub_iso9660_data): New member joliet.
45614 (grub_iso9660_convert_string): New function.
45615 (grub_iso9660_mount): Detect joliet extension.
45616 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45617 (grub_iso9660_iso9660_label): Likewise.
45619 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45620 (grub_setup_SOURCES): Add fs/udf.c.
45621 (grub_fstest_SOURCES): Likewise.
45622 (udf_mod_SOURCES): New variable.
45623 (udf_mod_CFLAGS): Likewise.
45624 (udf_mod_LDFLAGS): Likewise.
45626 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45627 (grub_emu_SOURCES): Likewise.
45629 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45631 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45633 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45635 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45637 * fs/udf.c: New file.
45639 2008-02-24 Robert Millan <rmh@aybabtu.com>
45641 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45642 (normal/lexer.c_DEPENDENCIES): New variables.
45643 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45644 (normal/lexer.c_DEPENDENCIES): Likewise.
45645 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45646 (normal/lexer.c_DEPENDENCIES): Likewise.
45647 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45648 (normal/lexer.c_DEPENDENCIES): Likewise.
45649 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45650 (normal/lexer.c_DEPENDENCIES): Likewise.
45651 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45652 (normal/lexer.c_DEPENDENCIES): Likewise.
45654 2008-02-23 Robert Millan <rmh@aybabtu.com>
45656 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45657 since they were intended to be in hex. This didn't break previously
45658 because of a bug in gpt_partition_map_iterate() (see below).
45660 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45661 when checking the validity of GPT header.
45662 Remove `partno', since it always provides the same information as `i'.
45664 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45666 * include/grub/efi/time.h: Fix a wrong comment.
45668 2008-02-19 Pavel Roskin <proski@gnu.org>
45670 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45673 2008-02-19 Bean <bean123ch@gmail.com>
45675 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45676 (aout_mod_SOURCES): New variable.
45677 (aout_mod_CFLAGS): Likewise.
45678 (aout_mod_LDFLAGS): Likewise.
45679 (_bsd_mod_SOURCES): New variable.
45680 (_bsd_mod_CFLAGS): Likewise.
45681 (_bsd_mod_LDFLAGS): Likewise.
45682 (bsd_mod_SOURCES): New variable.
45683 (bsd_mod_CFLAGS): Likewise.
45684 (bsd_mod_LDFLAGS): Likewise.
45686 * include/grub/aout.h: New file.
45688 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45690 * include/grub/i386/bsd.h: New file.
45692 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45695 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45696 function is called, so that it's possible to change it inside the hook.
45697 (grub_elf64_load): Likewise.
45698 (grub_elf_file): Don't close the file if elf header is not found.
45699 (grub_elf_close): Close the file if grub_elf_file fails (The new
45700 grub_elf_file won't close it).
45701 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45702 (grub_elf64_size): Likewise.
45704 * kern/i386/loader.S (grub_unix_real_boot): New function.
45706 * loader/aout.c: New file.
45708 * loader/i386/bsd.c: New file.
45710 * loader/i386/bsd_normal.c: New file.
45712 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45714 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45715 can test other formats.
45717 2008-02-19 Robert Millan <rmh@aybabtu.com>
45719 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45720 (grub_gpt_partition_type_empty): Redefine with macro from
45721 `<grub/gpt_partition.h>'.
45722 (gpt_partition_map_iterate): Adjust partition type comparison.
45724 Export `entry' as partmap-specific `part.data' struct.
45725 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45727 * include/grub/gpt_partition.h (grub_gpt_header)
45728 (grub_gpt_partentry): ... to here (new file).
45730 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45732 (grub_gpt_partition_type_bios_boot): New const variable, defined
45733 with macro from `<grub/gpt_partition.h>'.
45735 (setup): Replace `first_start' with `embed_region', which keeps
45736 track of the embed region (and is partmap-agnostic).
45738 Replace find_first_partition_start() with find_usable_region(),
45739 which finds a usable region for embedding using partmap-specific
45740 knowledge (supports PC/MSDOS and GPT).
45742 Fix all assumptions that the embed region start at sector 1, using
45743 `embed_region.start' from now on. Similarly, use `embed_region.end'
45744 rather than `first_start' to calculate available size.
45746 In grub_util_info() message, replace "into after the MBR" with an
45747 indication of the specific sector our embed region starts at.
45749 2008-02-19 Robert Millan <rmh@aybabtu.com>
45751 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45752 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45753 `commands/reboot.c'.
45754 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45755 (halt_mod_SOURCES): Likewise.
45756 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45757 (halt_mod_SOURCES): Likewise.
45759 2008-02-17 Christian Franke <franke@computer.org>
45761 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45763 2008-02-17 Robert Millan <rmh@aybabtu.com>
45765 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45766 set `first_start' to 0 for non-PC/MSDOS partition maps.
45768 2008-02-16 Robert Millan <rmh@aybabtu.com>
45770 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45771 do not assume partition map is PC/MSDOS before performing checks that
45772 are specific to that layout.
45774 2008-02-13 Robert Millan <rmh@aybabtu.com>
45776 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45777 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45778 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45780 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45782 * configure.ac: Only a cosmetic change on the handling of
45783 -fno-stack-protector.
45785 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45787 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45788 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45790 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45791 (halt_mod_SOURCES): New variable.
45792 (halt_mod_CFLAGS): Likewise.
45793 (halt_mod_LDFLAGS): Likewise.
45794 (reboot_mod_SOURCES): Likewise.
45795 (reboot_mod_CFLAGS): Likewise.
45796 (reboot_mod_LDFLAGS): Likewise.
45798 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45799 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45801 (halt_mod_SOURCES): Likewise.
45802 (reboot_mod_SOURCES): Likewise.
45804 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45805 commands/i386/pc/reboot.c by commands/reboot.c.
45806 (reboot_mod_SOURCES): Likewise.
45808 * commands/i386/pc/reboot.c: merge this file ...
45810 * commands/ieee1275/reboot.c: ... and this file ...
45812 * commands/reboot.c: ... to this file.
45813 Add some precompiler directive to include the correct header for
45816 * commands/ieee1275/halt.c: move this file ...
45818 * commands/halt.c: ... to here.
45819 Add some precompiler directive to include the correct header for
45822 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45823 (grub_halt): Likewise.
45825 * kern/efi/efi.c (grub_reboot): New function.
45826 (grub_halt): Likewise.
45828 2008-02-12 Robert Millan <rmh@aybabtu.com>
45830 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45831 /dev (like it is done for /dev/mapper). This doesn't provide support
45832 for EVMS, but at least it is now easy to identify the problem when it
45835 2008-02-11 Robert Millan <rmh@aybabtu.com>
45837 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45838 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45839 comparing it with -1, not 0.
45841 2008-02-10 Robert Millan <rmh@aybabtu.com>
45843 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45845 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45846 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45848 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45849 `disk/lvm.c' to the end of the list.
45850 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45851 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45853 2008-02-10 Robert Millan <rmh@aybabtu.com>
45855 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45856 grub_print_error() instead. This will let user know why we're entering
45858 Based on suggestions from Sam Morris.
45860 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45862 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45863 on remaining N args, instead of "--" arg N times.
45865 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45867 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45868 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45869 pattern for unknown glyphs.
45871 2008-02-09 Robert Millan <rmh@aybabtu.com>
45873 * configure.ac: Probe for `help2man'.
45874 * Makefile.in (builddir): New variable.
45875 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45876 or otherwise add a few flags/options to it.
45877 (install-local): For every executable utility or script that is
45878 installed, invoke $(HELP2MAN) to install a manpage based on --help
45881 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45882 that it doesn't prevent --help from working in build tree.
45884 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45885 with `bug-grub@gnu.org'.
45886 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45887 * util/update-grub.in (usage): New function.
45888 Implement proper argument check, with support for --help and --version
45889 (as well as existing -y).
45891 2008-02-09 Christian Franke <franke@computer.org>
45893 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45894 avoid overwriting previous output.
45895 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45897 2008-02-09 Robert Millan <rmh@aybabtu.com>
45899 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45902 2008-02-09 Robert Millan <rmh@aybabtu.com>
45904 * commands/sleep.c: New file.
45905 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45906 (sleep_mod_SOURCES): New variable.
45907 (sleep_mod_CFLAGS): Likewise.
45908 (sleep_mod_LDFLAGS): Likewise.
45910 2008-02-09 Robert Millan <rmh@aybabtu.com>
45912 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45913 situations in which we can deduce the RAID size and the superblock
45916 2008-02-09 Robert Millan <rmh@aybabtu.com>
45918 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45919 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45920 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45922 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45923 and return a grub_diskmemberlist_t composed of physical array members.
45924 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45926 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45928 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45929 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45930 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45932 * util/grub-probe.c (probe): Move partmap probing code from here ...
45933 (probe_partmap): ... to here.
45934 (probe): Use probe_partmap() once for the disk we're probing, and
45935 additionally, when such disk contains a memberlist() struct member,
45936 once for each disk that is contained in the structure returned by
45939 2008-02-09 Robert Millan <rmh@aybabtu.com>
45941 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45942 environment variable to 'all' in order to obtain debug output from
45944 * util/i386/pc/grub-setup.c (main): Likewise.
45946 2008-02-08 Robert Millan <rmh@aybabtu.com>
45948 * disk/raid.c (grub_raid_scan_device): Check for
45949 `array->device[sb.this_disk.number]' rather than for
45950 `array->device[sb.this_disk.number]->name', since the latter is not
45951 guaranteed to be accessible.
45953 2008-02-08 Robert Millan <rmh@aybabtu.com>
45955 * disk/raid.c: Update copyright.
45956 * fs/cpio.c: Likewise.
45957 * include/grub/raid.h: Likewise.
45958 * loader/i386/pc/multiboot.c: Likewise.
45959 * util/hostfs.c: Likewise.
45961 2008-02-08 Robert Millan <rmh@aybabtu.com>
45963 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45964 to a grub_disk_t array.
45965 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45967 (grub_raid_scan_device): Replace `device[x].name' accesses with
45968 `device[x]->name'. Simplify initialization of `array->device[x]'.
45970 2008-02-08 Robert Millan <rmh@aybabtu.com>
45972 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45973 grub_dprintf() calls.
45974 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45977 2008-02-07 Christian Franke <franke@computer.org>
45979 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45980 instead of fseek and ftell to support large files.
45981 (grub_hostfs_read): Likewise.
45983 2008-02-07 Robert Millan <rmh@aybabtu.com>
45985 Patch from Jeroen Dekkers.
45986 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45987 failure, since successfully reading all array members might not be
45990 2008-02-06 Robert Millan <rmh@aybabtu.com>
45992 * util/grub-probe.c (probe): Simplify partmap probing (with the
45993 assumption that the first word up to the underscore equals to
45996 2008-02-06 Christian Franke <franke@computer.org>
45998 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45999 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
46000 last block of a cpio or tar stream.
46001 Check for "TRAILER!!!" instead of any empty data
46002 block to detect last block of a cpio stream.
46003 (grub_cpio_dir): Fix constness of variable np.
46004 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
46005 cpio or tar trailer is detected. This fixes a crash
46006 on open of a non existing file.
46008 2008-02-05 Bean <bean123ch@gmail.com>
46010 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
46012 (grub_multiboot_load_elf64): Likewise.
46013 (grub_multiboot): Initialize mbi structure.
46015 * util/grub-fstest.c: Don't include unused header file script.h.
46017 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
46019 (grub_fstest_SOURCES): Likewise.
46021 2008-02-05 Robert Millan <rmh@aybabtu.com>
46023 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
46024 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
46025 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
46026 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
46028 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
46029 (translation_table): Replace hardcoded values with macros
46030 provided by `<grub/term.h>'.
46032 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
46033 (keyboard_map): Correct/add a few values, with macros provided
46034 by `<grub/term.h>'.
46035 (keyboard_map_shift): Zero values that don't differ from their
46036 `keyboard_map' equivalents.
46037 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
46038 Discard the second scan code that is always sent by Caps lock.
46039 Only use `keyboard_map_shift' when it provides a non-zero value,
46040 otherwise fallback to `keyboard_map'.
46042 2008-02-04 Bean <bean123ch@gmail.com>
46044 * Makefile.in (enable_grub_fstest): New variable.
46046 * conf/common.rmk (grub_fstest_init.lst): New rule.
46047 (grub_fstest_init.h): Likewise.
46048 (grub_fstest_init.c): Likewise.
46049 (util/grub-fstest.c_DEPENDENCIES): New variable.
46050 (grub_fstest_SOURCES): Likewise.
46052 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
46054 * util/grub-fstest.c: New file.
46056 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46058 Make grub-setup handle a separate root device.
46060 * util/i386/pc/grub-setup.c (setup): Always open the root device,
46061 so that the root device can be compared with the destination
46063 When embedding the core image, if the root and destination devices
46064 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
46066 When not embedding, set ROOT_DRIVE to 0xFF.
46068 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46070 Add support for having a grub directory in a different drive. This
46071 is still only the data handling part.
46073 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
46074 (codestart): Save %dh in GRUB_ROOT_DRIVE.
46075 (grub_root_drive): New variable.
46077 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
46078 instead of GRUB_BOOT_DRIVE to construct a device name. Set
46079 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
46082 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
46084 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
46086 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
46088 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
46089 is bogus, because PXE booting does not specify any drive
46092 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
46093 am not sure if this is really correct.
46095 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
46096 is always identical to the boot drive when booting from a CD.
46098 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
46100 (root_drive): New variable.
46101 (real_start): Unconditionally set %dh to ROOT_DRIVE.
46102 (setup_sectors): Push %dx right after popping it, because %dh will
46104 (copy_buffer): Restore %dx.
46106 2008-02-03 Robert Millan <rmh@aybabtu.com>
46108 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
46109 use `cdboot.img' for cdrom images.
46111 2008-02-03 Robert Millan <rmh@aybabtu.com>
46113 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
46114 only setup gfxterm when `font' command has succeeded.
46116 2008-02-03 Robert Millan <rmh@aybabtu.com>
46118 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
46119 (grub_rescue_cmd_multiboot_loader)
46120 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
46122 2008-02-03 Pavel Roskin <proski@gnu.org>
46124 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
46125 %edx and %esi from stack only after grub_gate_a20() is called.
46126 grub_gate_a20() clobbers %edx.
46128 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46130 * configure.ac (AC_INIT): Bumped to 1.96.
46132 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
46133 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
46134 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
46135 video/readers/png.c.
46137 2008-02-03 Bean <bean123ch@gmail.com>
46139 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
46140 (cdboot_img_SOURCES): New variable.
46141 (cdboot_img_ASFLAGS): New variable.
46142 (cdboot_img_LDFLAGS): New variable.
46144 * boot/i386/pc/cdboot.S: New file.
46146 * disk/i386/pc/biosdisk.c (cd_start): New variable.
46147 (cd_count): Likewise.
46148 (grub_biosdisk_get_drive): Add support for cd device.
46149 (grub_biosdisk_call_hook): Likewise.
46150 (grub_biosdisk_iterate): Likewise.
46151 (grub_biosdisk_open): Likewise.
46152 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
46153 (grub_biosdisk_rw): Support reading from cd device.
46154 (GRUB_MOD_INIT): Iterate cd devices.
46156 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
46157 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
46158 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
46160 * kern/i386/pc/init.c (make_install_device): Check for cd device.
46162 2008-02-02 Robert Millan <rmh@aybabtu.com>
46164 * commands/read.c: New file.
46165 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
46166 (read_mod_SOURCES): New variable.
46167 (read_mod_CFLAGS): Likewise.
46168 (read_mod_LDFLAGS): Likewise.
46170 2008-02-02 Robert Millan <rmh@aybabtu.com>
46172 * normal/main.c (grub_normal_execute): Check for `menu->size' when
46173 determining whether menu has to be displayed.
46175 2008-02-02 Marco Gerards <marco@gnu.org>
46177 * bus/pci.c: New file.
46179 * include/grub/pci.h: Likewise.
46181 * include/grub/i386/pc/pci.h: Likewise.
46183 * commands/lspci.c: Likewise.
46185 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46187 (pci_mod_SOURCES): New variable.
46188 (pci_mod_CFLAGS): Likewise.
46189 (pci_mod_LDFLAGS): Likewise.
46190 (lspci_mod_SOURCES): Likewise.
46191 (lspci_mod_CFLAGS): Likewise.
46192 (lspci_mod_LDFLAGS): Likewise.
46194 2008-02-02 Bean <bean123ch@gmail.com>
46196 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46197 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46199 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46200 (grub_xfs_btree_node): New structure.
46201 (grub_xfs_btree_root): New structure.
46202 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46203 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46204 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46205 (GRUB_XFS_EXTENT_SIZE): Likewise.
46206 (grub_xfs_read_block): Support btree format type.
46207 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46208 Use directory block as basic unit.
46210 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46212 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46213 __attribute__ ((__regparm__ (1))).
46215 2008-02-01 Robert Millan <rmh@aybabtu.com>
46217 Correct a mistake in previous commit.
46219 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46221 (normal/command.c_DEPENDENCIES): New variable.
46223 2008-02-01 Robert Millan <rmh@aybabtu.com>
46225 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46227 (normal/command.c_DEPENDENCIES): New variable.
46228 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46229 * conf/i386-ieee1275.rmk: Likewise.
46230 * conf/i386-linuxbios.rmk: Likewise.
46231 * conf/i386-pc.rmk: Likewise.
46232 * conf/sparc64-ieee1275.rmk: Likewise.
46233 * conf/powerpc-ieee1275.rmk: Likewise.
46234 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46236 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46238 2008-02-01 Robert Millan <rmh@aybabtu.com>
46240 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46241 call at beginning of function.
46243 2008-01-31 Pavel Roskin <proski@gnu.org>
46245 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46246 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46247 (grub_mkrescue_SOURCES): Likewise.
46248 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46250 2008-01-30 Robert Millan <rmh@aybabtu.com>
46252 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46253 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46254 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46255 (grub_probe_SOURCES): ... to here.
46257 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46258 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46259 * conf/i386-ieee1275.rmk: Likewise.
46260 * conf/i386-linuxbios.rmk: Likewise.
46261 * conf/powerpc-ieee1275.rmk: Likewise.
46263 2008-01-30 Tristan Gingold <gingold@free.fr>
46265 * kern/rescue.c: Silently accept empty lines.
46267 2008-01-29 Bean <bean123ch@gmail.com>
46269 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46270 (real_code_2): Code cleanup and change comment style.
46271 (move_memory): Avoid using 32-bit address mode.
46273 2008-01-29 Bean <bean123ch@gmail.com>
46275 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46276 (png_mod_SOURCES): New variable.
46277 (png_mod_CFLAGS): Likewise.
46278 (png_mod_LDFLAGS): Likewise.
46280 * video/readers/png.c: New file.
46282 2008-01-28 Robert Millan <rmh@aybabtu.com>
46284 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46285 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46286 `ifndef GRUB_MOD_GAP' hack.
46287 * util/elf/grub-mkimage.c (add_segments): Likewise.
46289 2008-01-27 Robert Millan <rmh@aybabtu.com>
46291 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46292 `GRUB_MOD_GAP' for platforms in which it's not defined.
46293 * util/elf/grub-mkimage.c (add_segments): Likewise.
46295 2008-01-27 Robert Millan <rmh@aybabtu.com>
46297 Get grub-emu to build again (including parallel builds).
46299 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46301 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46302 (normal/execute.c_DEPENDENCIES): ... this, ...
46303 (grub-emu_DEPENDENCIES): ... and this.
46305 * conf/i386-efi.rmk: Likewise.
46306 * conf/i386-linuxbios.rmk: Likewise.
46307 * conf/i386-ieee1275.rmk: Likewise.
46308 * conf/powerpc-ieee1275.rmk: Likewise.
46309 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46311 2008-01-27 Robert Millan <rmh@aybabtu.com>
46313 * NEWS: Add a few items.
46315 2008-01-27 Robert Millan <rmh@aybabtu.com>
46317 Fix parallel builds with grub-emu. Based on earlier commit for
46318 grub-probe and grub-setup.
46320 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46321 (util/grub-emu.c_DEPENDENCIES): ... this.
46322 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46323 (util/grub-emu.c_DEPENDENCIES): ... this.
46324 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46325 (util/grub-emu.c_DEPENDENCIES): ... this.
46326 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46327 (util/grub-emu.c_DEPENDENCIES): ... this.
46328 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46329 (util/grub-emu.c_DEPENDENCIES): ... this.
46331 2008-01-27 Pavel Roskin <proski@gnu.org>
46333 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46334 to create a gap between _end and the modules added to the image
46335 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46336 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46337 * util/elf/grub-mkimage.c (add_segments): Likewise.
46339 2008-01-26 Pavel Roskin <proski@gnu.org>
46341 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46342 just return an error.
46344 2008-01-26 Bean <bean123ch@gmail.com>
46346 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46347 (grub_reiserfs_get_item): Save offset of the next item.
46348 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46350 2008-01-25 Robert Millan <rmh@aybabtu.com>
46352 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46353 make all filesystem sources appear together (possibly fixing omissions
46355 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46356 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46357 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46358 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46360 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46362 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46363 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46364 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46365 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46367 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46368 (probe): Add a sanity check to make sure of our ability to read
46369 requested files when probing for filesystem type.
46371 * genmk.rb: Update copyright year (2007).
46373 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46374 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46375 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46376 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46377 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46378 : Remove function prototypes.
46380 2008-01-25 Robert Millan <rmh@aybabtu.com>
46382 Revert my previous commits (based on wrong assumption of how grub_errno
46385 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46386 * kern/file.c (grub_file_open): Likewise.
46388 2008-01-24 Pavel Roskin <proski@gnu.org>
46390 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46391 that hang if GRUB tries to setup colors.
46392 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46393 colors for firmwares that don't support it.
46394 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46395 Recognize Open Hack'Ware, set flags to work around its
46398 2008-01-24 Robert Millan <rmh@aybabtu.com>
46400 * kern/file.c (grub_file_open): Do not account previous failures of
46401 unrelated functions when grub_errno is checked for.
46402 Reported by Oleg Strikov.
46404 2008-01-24 Bean <bean123ch@gmail.com>
46406 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46407 (grub_ufs_sblock): New member volume name.
46408 (grub_ufs_find_file): Fix string copy bug.
46409 (grub_ufs_label): Implement this function properly.
46411 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46412 (grub_hfs_iterate_records): Use the correct file number for extents
46413 and catalog file. Fix problem in next index calculation.
46414 (grub_hfs_find_node): Replace recursive function call with loop.
46415 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46417 2008-01-23 Robert Millan <rmh@aybabtu.com>
46419 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46420 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46421 (grub_multiboot2_real_boot): New function prototype.
46423 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46424 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46426 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46427 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46429 2008-01-23 Robert Millan <rmh@aybabtu.com>
46431 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46432 #ifdef'ed out grub_printf().
46434 2008-01-23 Robert Millan <rmh@aybabtu.com>
46436 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46437 grub_dprintf calls, since they make "debug=all" mode unusable.
46438 (grub_console_checkkey): Likewise.
46440 2008-01-23 Robert Millan <rmh@aybabtu.com>
46442 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46443 `term/i386/pc/at_keyboard.c'.
46444 (pkglib_MODULES): Add `serial.mod'.
46445 (serial_mod_SOURCES): New variable.
46446 (serial_mod_CFLAGS): Likewise.
46447 (serial_mod_LDFLAGS): Likewise.
46449 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46450 `<grub/powerpc/ieee1275/console.h>'.
46451 (grub_keyboard_controller_init): New function prototype.
46452 (grub_console_checkkey): Likewise.
46453 (grub_console_getkey): Likewise.
46455 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46458 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46459 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46461 2008-01-23 Robert Millan <rmh@aybabtu.com>
46463 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46464 present, "(memdisk)/boot/grub" becomes the default prefix.
46466 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46467 a memdisk tarball with all the modules. Add --overlay=DIR option that
46468 allows users to overlay additional files into the image.
46470 2008-01-23 Robert Millan <rmh@aybabtu.com>
46472 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46473 and `machine/memory.h'.
46474 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46475 (_multiboot_mod_SOURCES): New variable.
46476 (_multiboot_mod_CFLAGS): Likewise.
46477 (_multiboot_mod_LDFLAGS): Likewise.
46478 (multiboot_mod_SOURCES): Likewise.
46479 (multiboot_mod_CFLAGS): Likewise.
46480 (multiboot_mod_LDFLAGS): Likewise.
46482 * include/grub/i386/ieee1275/loader.h: New file.
46484 * include/grub/i386/ieee1275/machine.h: Likewise.
46486 * include/grub/i386/ieee1275/memory.h: Likewise.
46488 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46489 variable declaration.
46490 (grub_os_area_size): Likewise.
46492 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46493 (grub_lower_mem, grub_upper_mem): New variables.
46494 (grub_stop_floppy): New function (just to make
46495 grub_multiboot2_real_boot() happy).
46497 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46498 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46499 (grub_stop): New function.
46500 Include `"../realmode.S"' and `"../loader.S"'.
46502 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46503 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46505 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46506 rely on grub_multiboot2_real_boot() for final boot.
46508 2008-01-22 Robert Millan <rmh@aybabtu.com>
46510 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46511 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46512 device that doesn't look like an SD card.
46513 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46514 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46515 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46516 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46519 2008-01-22 Robert Millan <rmh@aybabtu.com>
46521 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46522 avoid claiming over our own code.
46524 2008-01-22 Bean <bean123ch@gmail.com>
46526 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46527 (jpeg_mod_SOURCES): New variable.
46528 (jpeg_mod_CFLAGS): Likewise.
46529 (jpeg_mod_LDFLAGS): Likewise.
46531 * video/readers/jpeg.c : New file.
46533 2008-01-22 Bean <bean123ch@gmail.com>
46535 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46536 there are no more items.
46538 2008-01-21 Robert Millan <rmh@aybabtu.com>
46540 * kern/mm.c (grub_mm_init_region): Improve debug message.
46542 2008-01-21 Robert Millan <rmh@aybabtu.com>
46544 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46545 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46547 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46549 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46550 Indicates start of upper memory.
46551 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46552 (generate_image): Abort when image size is big enough to corrupt
46555 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46556 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46557 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46558 instead of hardcoding 0xA0000.
46559 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46560 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46561 instead of hardcoding 0xA0000.
46563 2008-01-21 Robert Millan <rmh@aybabtu.com>
46565 * disk/memdisk.c (memdisk_size): New variable.
46566 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46568 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46569 image to dynamic memory.
46570 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46571 `memdisk_size'. Free memdisk block.
46573 2008-01-21 Robert Millan <rmh@aybabtu.com>
46575 Fix detection of very small filesystems (like tar).
46577 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46578 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46579 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46580 a problem with this disk).
46582 2008-01-21 Robert Millan <rmh@aybabtu.com>
46584 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46585 on grub_biosdisk_rw_standard() error.
46587 2008-01-21 Robert Millan <rmh@aybabtu.com>
46589 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46591 * kern/elf.c: Likewise.
46592 * kern/ieee1275/ieee1275.c: Likewise.
46593 * kern/powerpc/ieee1275/openfw.c: Likewise.
46594 * term/ieee1275/ofconsole.c: Likewise.
46596 2008-01-21 Robert Millan <rmh@aybabtu.com>
46598 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46600 * include/grub/kernel.h (grub_arch_memdisk_addr)
46601 (grub_arch_memdisk_size): Moved from here ...
46603 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46604 (grub_arch_memdisk_size): ... to here.
46606 2008-01-21 Robert Millan <rmh@aybabtu.com>
46608 Mostly based on bugfix from Bean.
46610 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46611 attribute with hook() parameter.
46612 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46614 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46615 attribute with hook() parameter.
46616 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46619 2008-01-21 Robert Millan <rmh@aybabtu.com>
46621 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46622 (pkglib_MODULES): Add `memdisk.mod'.
46623 (memdisk_mod_SOURCES): New variable.
46624 (memdisk_mod_CFLAGS): Likewise.
46625 (memdisk_mod_LDFLAGS): Likewise.
46627 * disk/memdisk.c: New file.
46629 * include/grub/disk.h (grub_disk_dev_id): Add
46630 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46632 * include/grub/i386/pc/kernel.h
46633 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46634 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46635 (grub_kernel_image_size): New variable declaration.
46636 (grub_total_module_size): Likewise.
46637 (grub_memdisk_image_size): Likewise.
46639 * include/grub/i386/pc/memory.h
46640 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46642 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46643 (grub_arch_memdisk_addr): New variable declaration.
46644 (grub_arch_memdisk_size): Likewise.
46646 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46647 (grub_arch_memdisk_size): Likewise.
46649 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46650 (codestart): Replace hardcoded `0x100000' with
46651 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46653 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46654 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46655 not NULL, append the contents of the file it refers to, at the end of
46656 the compressed kernel image. Initialize `grub_memdisk_image_size'
46657 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46658 (options): Add "memdisk"|'m' option.
46659 (main): Parse --memdisk|-m option, and pass user-provided path as
46660 parameter to generate_image().
46662 2008-01-20 Robert Millan <rmh@aybabtu.com>
46664 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46665 grub_dprintf() calls from here ...
46666 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46668 2008-01-20 Robert Millan <rmh@aybabtu.com>
46670 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46672 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46674 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46675 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46676 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46677 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46679 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46680 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46682 2008-01-19 Robert Millan <rmh@aybabtu.com>
46684 Get rid of confusing function (superseded by
46685 `grub_ieee1275_get_integer_property')
46686 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46688 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46690 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46691 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46692 in native endianness from grub_ieee1275_get_integer_property().
46694 2008-01-19 Robert Millan <rmh@aybabtu.com>
46696 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46697 command after "shut-down", since implementations differ on which
46698 the command for halt is.
46700 2008-01-19 Robert Millan <rmh@aybabtu.com>
46702 * include/grub/i386/linuxbios/console.h: Add header protection.
46703 (grub_keyboard_controller_init): New function prototype.
46704 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46705 (KEYBOARD_COMMAND_READ): Likewise.
46706 (KEYBOARD_COMMAND_WRITE): Likewise.
46707 (KEYBOARD_SCANCODE_SET1): Likewise.
46708 (grub_keyboard_controller_write): New function.
46709 (grub_keyboard_controller_read): Likewise.
46710 (grub_keyboard_controller_init): Likewise.
46712 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46713 (grub_console_init): On coreboot/LinuxBIOS, call
46714 grub_keyboard_controller_init().
46716 2008-01-19 Robert Millan <rmh@aybabtu.com>
46718 PowerPC changes provided by Pavel Roskin.
46720 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46721 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46722 don't rely on cmain() doing it.
46723 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46724 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46726 2008-01-16 Robert Millan <rmh@aybabtu.com>
46728 * include/grub/i386/linuxbios/memory.h
46729 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46730 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46731 receive `table_header' as argument. Instead, probe for it in the
46732 known memory ranges where it can be present.
46733 (grub_available_iterate): Do not pass a fixed `table_header' address
46734 to grub_linuxbios_table_iterate().
46736 2008-01-15 Robert Millan <rmh@aybabtu.com>
46738 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46739 * conf/i386-ieee1275.rmk: New file.
46740 * include/grub/i386/ieee1275/console.h: Likewise.
46741 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46742 * include/grub/i386/ieee1275/kernel.h: Likewise.
46743 * include/grub/i386/ieee1275/time.h: Likewise.
46744 * kern/i386/ieee1275/init.c: Likewise.
46745 * kern/i386/ieee1275/startup.S: Likewise.
46747 2008-01-15 Robert Millan <rmh@aybabtu.com>
46749 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46750 when pointers are 32-bit (but still do set it to one when they are
46753 2008-01-15 Robert Millan <rmh@aybabtu.com>
46755 * include/grub/ieee1275/ieee1275.h
46756 (grub_ieee1275_get_integer_property): New function prototype.
46758 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46759 (grub_ieee1275_get_integer_property): New function. Wraps around
46760 grub_ieee1275_get_property() to handle endianness.
46762 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46763 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46765 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46766 (grub_map): Likewise.
46767 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46769 2008-01-15 Bean <bean123ch@gmail.com>
46771 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46772 (grub_script_execute_cmdline): Reset grub_errno.
46774 * normal/main.c (read_config_file): Reset grub_errno.
46776 * normal/parse.y (script_init): New.
46777 (script): Move function and menuentry here.
46779 (command): Add delimiter at the end of command.
46780 (commands): Adjust to match the new command.
46781 (commandblock): Remove grub_script_lexer_record_start.
46782 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46783 (if): Use the new commands.
46785 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46787 2008-01-15 Robert Millan <rmh@aybabtu.com>
46789 * normal/menu.c (run_menu): Move timeout message from here ...
46790 (print_timeout): ... to here.
46791 (run_menu): Use print_timeout() once during initial draw to print
46792 the whole message, and again in every clock tick to update only
46793 the number of seconds.
46795 2008-01-15 Robert Millan <rmh@aybabtu.com>
46797 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46798 actual size of `available' from grub_ieee1275_get_property(), and
46799 restrict parsing to that bound.
46801 2008-01-15 Christian Franke <franke@computer.org>
46803 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46804 (argp_program_version): Remove variable.
46805 (argp_program_bug_address): Likewise.
46806 (options): Convert from struct argp_option to struct option.
46807 (struct arguments): Remove.
46808 (parse_opt): Remove.
46809 (usage): New function.
46810 (main): Replace struct args members by simple variables.
46811 Replace argp_parse() by getopt_long().
46812 Add switch to evaluate options.
46813 Add missing "(...)" around root_dev in prefix string.
46815 2008-01-14 Robert Millan <rmh@aybabtu.com>
46817 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46818 for grub_ieee1275_exit(), in order to improve portability.
46820 2008-01-14 Robert Millan <rmh@aybabtu.com>
46822 * util/grub.d/10_linux.in (prefix): Define.
46823 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46825 2008-01-13 Pavel Roskin <proski@gnu.org>
46827 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46828 grub_errno if no errors have been detected.
46830 2008-01-12 Robert Millan <rmh@aybabtu.com>
46832 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46833 (grub_util_get_dev_abstraction): New function prototype.
46835 * util/getroot.c: Include `<grub/util/getroot.h>'
46836 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46837 (grub_util_get_dev_abstraction): ... here (new function).
46839 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46840 `PRINT_ABSTRACTION'.
46841 (probe): Probe for abstraction type when requested.
46842 (main): Understand `--target=abstraction'.
46844 * util/i386/efi/grub-install.in: Add abstraction module to core
46845 image when it is found to be necessary.
46846 * util/i386/pc/grub-install.in: Likewise.
46847 * util/powerpc/ieee1275/grub-install.in: Likewise.
46849 * util/update-grub_lib.in (font_path): Return system path without
46850 converting to GRUB path.
46851 * util/update-grub.in: Convert system path returned by font_path()
46852 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46853 abstraction module is needed for loading fonts (if any). Export
46854 that as `GRUB_PRELOAD_MODULES'.
46855 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46858 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46860 Remove some unused code from reiserfs.
46862 * fs/reiserfs.c (struct grub_reiserfs_key)
46863 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46864 (struct grub_reiserfs_node_body): Removed.
46865 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46867 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46869 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46871 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46873 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46875 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46877 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46878 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46879 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46881 2008-01-10 Robert Millan <rmh@aybabtu.com>
46883 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46884 Determines if a file is garbage left by packaging systems, etc.
46885 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46886 for processing /etc/grub.d scripts.
46887 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46888 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46889 as a condition for processing Linux images.
46891 2008-01-10 Pavel Roskin <proski@gnu.org>
46893 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46894 to compile reiserfs.c on PowerPC.
46896 2008-01-10 Robert Millan <rmh@aybabtu.com>
46898 * kern/device.c (grub_device_iterate): Do not abort device iteration
46899 when one of the devices cannot be opened.
46900 * kern/disk.c (grub_disk_open): Do not account previous failures of
46901 unrelated functions when grub_errno is checked for.
46903 2008-01-08 Robert Millan <rmh@aybabtu.com>
46905 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46906 `! grub_linux_is_bzimage', change order of address comparison to make
46907 it more intuitive, and improve "too big zImage" error message.
46909 2008-01-08 Robert Millan <rmh@aybabtu.com>
46911 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46912 `$(update-grub_DATA)'.
46913 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46916 2008-01-07 Robert Millan <rmh@aybabtu.com>
46918 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46919 which instruction is modified by grub-setup during installation
46920 (since it wasn't obvious by only looking at this file).
46922 2008-01-07 Robert Millan <rmh@aybabtu.com>
46924 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46925 listing actual TODO items.
46927 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46929 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46931 (grub_reiserfs_get_key_offset): Likewise.
46932 (grub_reiserfs_set_key_offset): Likewise.
46933 (grub_reiserfs_set_key_type): Likewise.
46934 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46936 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46937 better to remove the bitfield version completely.
46939 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46941 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46942 allocated from the heap, due to the fshelp implementation.
46943 (grub_reiserfs_dir): Free NODE, due to the same reason.
46945 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46947 Mostly from Vincent Pelletier:
46949 * fs/reiserfs.c: New file.
46951 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46952 (reiserfs_mod_SOURCES): New variable.
46953 (reiserfs_mod_CFLAGS): Likewise.
46954 (reiserfs_mod_LDFLAGS): Likewise.
46956 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46957 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46958 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46961 2008-01-06 Robert Millan <rmh@aybabtu.com>
46963 * normal/color.c: Remove `<grub/env.h>'.
46965 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46967 * include/grub/normal.h: Include <grub/env.h>.
46969 2008-01-05 Robert Millan <rmh@aybabtu.com>
46971 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46972 usage example with `(hd0,1)'.
46973 Reported by Samuel Thibault.
46975 2008-01-05 Robert Millan <rmh@aybabtu.com>
46977 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46978 (grub_linux_boot_zimage): Rename to ...
46979 (grub_linux_boot): ... this.
46980 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46981 (grub_linux_boot_zimage): Conditionalize zImage copy.
46983 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46984 (grub_linux_boot_bzimage): Remove prototype.
46985 (grub_linux_boot_zimage): Rename to ...
46986 (grub_linux_boot): ... this.
46988 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46989 (grub_linux_boot): Remove function.
46991 2008-01-05 Robert Millan <rmh@aybabtu.com>
46993 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46994 (grub_env_write_color_highlight): Likewise.
46995 (grub_wait_after_message): Likewise.
46997 * normal/color.c: New file.
46999 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
47000 (normal_mod_DEPENDENCIES): Likewise.
47002 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
47003 (normal_mod_DEPENDENCIES): Likewise.
47005 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
47006 (normal_mod_DEPENDENCIES): Likewise.
47008 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
47009 (normal_mod_DEPENDENCIES): Likewise.
47011 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
47012 for waiting after a message is printed.
47013 * normal/main.c (read_config_file): Likewise.
47014 (grub_normal_init): Register grub_env_write_color_normal() and
47015 grub_env_write_color_highlight() hooks. Mark `color_normal' and
47016 `color_highlight' variables as global.
47018 * normal/menu.c (grub_wait_after_message): New function.
47019 (grub_color_menu_normal): New variable. Replaces ...
47020 (GRUB_COLOR_MENU_NORMAL): ... this macro.
47021 (grub_color_menu_highlight): New variable. Replaces ...
47022 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
47023 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
47024 `GRUB_TERM_COLOR_STANDARD'.
47025 (print_message): Use `grub_setcolorstate' to reload colors. Rename
47026 `normal_code' and `highlight_code' to `old_color_normal' and
47027 `old_color_highlight', respectively.
47028 (grub_menu_init_page): Update colors when drawing the menu, based on
47029 `menu_color_normal' and `menu_color_highlight' variables.
47030 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
47031 a message is printed.
47033 2008-01-05 Robert Millan <rmh@aybabtu.com>
47035 * kern/env.c (grub_env_context_open): Propagate hooks for global
47036 variables to new context.
47038 * kern/main.c (grub_set_root_dev): Export `root' variable.
47040 2008-01-05 Robert Millan <rmh@aybabtu.com>
47042 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
47043 discs unconditionally, since udev and others have options to provide
47046 2008-01-05 Robert Millan <rmh@aybabtu.com>
47048 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
47050 2008-01-04 Christian Franke <franke@computer.org>
47052 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
47055 2008-01-03 Pavel Roskin <proski@gnu.org>
47057 * kern/i386/linuxbios/init.c: Put "void" to all function
47058 declarations with no arguments.
47059 * kern/powerpc/ieee1275/init.c: Likewise.
47060 * term/i386/pc/at_keyboard.c: Likewise.
47061 * term/i386/pc/vga_text.c: Likewise.
47062 * util/grub-mkdevicemap.c: Likewise.
47064 2008-01-02 Robert Millan <rmh@aybabtu.com>
47066 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
47067 message when loaded image is out of bounds.
47068 (grub_multiboot_load_elf64): Likewise.
47070 2008-01-02 Pavel Roskin <proski@gnu.org>
47072 * util/grub.d/10_linux.in: Try version without ".old" when
47073 looking for initrd. It's better to use initrd from the newer
47074 kernel of the same version than no initrd at all.
47076 2008-01-01 Robert Millan <rmh@aybabtu.com>
47078 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
47080 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
47082 * include/grub/video.h: Added grub_video_unmap_color and
47083 grub_video_get_active_render_target.
47084 (grub_video_adapter): Added unmap_color and get_active_render_target.
47086 * video/video.c: Added grub_video_unmap_color and
47087 grub_video_get_active_render_target.
47088 (grub_video_get_info): Changed method to accept NULL pointer as an
47089 argument to allow detection of active video adapter.
47091 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
47092 grub_video_vbe_unmap_color_int.
47093 Added grub_video_vbe_unmap_color and
47094 grub_video_vbe_get_active_render_target.
47095 (grub_video_vbe_adapter): Added unmap_color and
47096 get_active_render_target.
47098 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
47099 with grub_video_vbe_unmap_color_int.
47101 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
47102 (DEFAULT_NORMAL_COLOR): Likewise.
47103 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
47104 (DEFAULT_FG_COLOR): Removed.
47105 (DEFAULT_BG_COLOR): Likewise.
47106 (DEFAULT_CURSOR_COLOR): Changed value.
47107 (grub_virtual_screen): Added standard_color_setting,
47108 normal_color_setting, highlight_color_setting and term_color.
47109 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
47110 (bitmap_width): Added.
47111 (bitmap_height): Likewise.
47112 (bitmap): Likewise.
47113 (set_term_color): Likewise.
47114 (grub_virtual_screen_setup): Changed to use new terminal coloring
47116 (grub_gfxterm_init): Added init for bitmap.
47117 (grub_gfxterm_fini): Added destroy for bitmap.
47118 (redraw_screen_rect): Updated to use background bitmap and new
47120 (scroll_up): Added optimization for case when there is no bitmap.
47121 (grub_gfxterm_cls): Fixed to use correct background color.
47122 (grub_virtual_screen_setcolorstate): Changed to use new terminal
47124 (grub_virtual_screen_setcolor): Likewise.
47125 (grub_virtual_screen_getcolor): Added.
47126 (grub_gfxterm_background_image_cmd): Likewise.
47127 (grub_video_term): Added setcolor and getcolor.
47128 (MOD_INIT): Added registration of background_image command.
47129 (MOD_TERM): Added unregistration for background_image command.
47131 2007-12-30 Pavel Roskin <proski@gnu.org>
47133 * loader/multiboot_loader.c: Fix multiboot command
47134 unregistration. Fix all typos in the word "multiboot".
47136 2007-12-29 Pavel Roskin <proski@gnu.org>
47138 * util/grub.d/10_linux.in: Refactor search for initrd. Add
47139 support for initrd names used in Fedora.
47141 2007-12-26 Bean <bean123ch@gmail.com>
47143 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
47144 (cpio_mod_SOURCES): New variable.
47145 (cpio_mod_CFLAGS): Likewise.
47146 (cpio_mod_LDFLAGS): Likewise.
47148 * fs/cpio.c: New file.
47150 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
47152 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
47154 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
47156 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47158 2007-12-25 Robert Millan <rmh@aybabtu.com>
47160 * include/grub/term.h (struct grub_term): Add `getcolor' function.
47161 (grub_getcolor): New function.
47163 * kern/term.c (grub_getcolor): New function.
47164 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
47165 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
47166 (print_entry): Set normal and highlight colors to
47167 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47168 respectively, before printing and restore them to old
47170 (grub_menu_init_page): Likewise. Fill an additional colored space
47171 that would otherwise be left blank.
47173 * term/efi/console.c (grub_console_getcolor): New function.
47174 (struct grub_console_term.getcolor): New variable.
47175 * term/i386/pc/console.c (grub_console_getcolor): New function.
47176 (struct grub_console_term.getcolor): New variable.
47177 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47178 (struct grub_console_term.getcolor): New variable.
47180 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47181 (struct grub_console_term.setcolor): Remove variable.
47182 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47183 (struct grub_console_term.setcolor): Remove variable.
47184 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47185 (struct grub_console_term.setcolor): Remove variable.
47186 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47187 (struct grub_console_term.setcolor): Remove variable.
47189 2007-12-25 Robert Millan <rmh@aybabtu.com>
47191 * configure.ac: Search for possible unifont.hex locations, and
47192 define UNIFONT_HEX if found.
47194 * Makefile.in (UNIFONT_HEX): Define variable.
47195 (DATA): Rename to ...
47196 (PKGLIB): ... this. Update all users.
47197 (PKGDATA): New variable.
47198 (pkgdata_IMAGES): Rename to ...
47199 (pkglib_IMAGES): ... this. Update all users.
47200 (pkgdata_MODULES): Rename to ...
47201 (pkglib_MODULES): ... this. Update all users.
47202 (pkgdata_PROGRAMS): Rename to ...
47203 (pkglib_PROGRAMS): ... this. Update all users.
47204 (pkgdata_DATA): Rename to ...
47205 (pkglib_DATA): ... this. Update all users.
47206 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47207 (unicode.pff, ascii.pff): New rules.
47208 (all-local): Add `$(PKGDATA)' dependency.
47209 (install-local): Process `$(PKGDATA)'.
47211 * util/update-grub_lib.in (font_path): Search for *.pff files in
47212 a few more locations, including `${pkgdata}'.
47214 2007-12-23 Robert Millan <rmh@aybabtu.com>
47216 Patch from Bean <bean123ch@gmail.com>:
47217 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47220 2007-12-21 Bean <bean123ch@gmail.com>
47222 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47223 (ntfscomp_mod_SOURCES): New variable.
47224 (ntfscomp_mod_CFLAGS): Likewise.
47225 (ntfscomp_mod_LDFLAGS): Likewise.
47227 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47228 (grub_probe_SOURCES): Likewise.
47229 (grub_emu_SOURCES): Likewise.
47231 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47232 (grub_emu_SOURCES): Likewise.
47234 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47235 (grub_emu_SOURCES): Likewise.
47237 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47238 (grub_emu_SOURCES): Likewise.
47240 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47241 (read_run_list): Renamed to grub_ntfs_read_run_list.
47242 (decomp_nextvcn): Moved to ntfscomp.c.
47243 (decomp_getch): Likewise.
47244 (decomp_get16): Likewise.
47245 (decomp_block): Likewise.
47246 (read_block): Likewise.
47247 (read_data): Partially moved to ntfscomp.c.
47248 (fixup): Change unsigned to grub_uint16_t.
47249 (read_mft): Change unsigned long to grub_uint32_t.
47250 (read_attr): Likewise.
47251 (read_data): Likewise.
47252 (read_run_data): Likewise.
47253 (read_run_list): Likewise.
47254 (read_mft): Likewise.
47256 * fs/ntfscomp.c: New file.
47258 * include/grub/ntfs.h: New file.
47260 2007-12-16 Robert Millan <rmh@aybabtu.com>
47262 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47263 IDE disk check, since Linux is known to support 20 IDE disks.
47264 Reported by Colin Watson.
47266 2007-12-15 Bean <bean123ch@gmail.com>
47268 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47269 (lnxboot_img_SOURCES): New variable.
47270 (lnxboot_img_ASFLAGS): Likewise.
47271 (lnxboot_img_LDFLAGS): Likewise.
47273 * boot/i386/pc/lnxboot.S: New file.
47275 2007-11-24 Pavel Roskin <proski@gnu.org>
47277 * configure.ac: Test if '--build-id=none' is supported by the
47278 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47279 objcopy to generate incorrect binary files (binutils
47280 2.17.50.0.18-1 as shipped by Fedora 8).
47281 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47282 linking, so that build ID doesn't break the test.
47284 2007-11-24 Pavel Roskin <proski@gnu.org>
47286 * include/grub/i386/time.h: use "void" in the argument list
47287 of grub_cpu_idle().
47288 * include/grub/powerpc/time.h: Likewise.
47289 * include/grub/sparc64/time.h: Likewise.
47291 2007-11-18 Christian Franke <franke@computer.org>
47293 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47294 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47295 This fixes the problem that function keys did not work in grub-emu.
47297 2007-11-18 Christian Franke <franke@computer.org>
47299 * disk/host.c (grub_host_open): Remove attribute unused from
47300 name parameter. Add check for "host". This fixes the problem
47301 that grub-emu does not find partitions.
47303 2007-11-18 Christian Franke <franke@computer.org>
47305 * util/hostfs.c (is_dir): New function.
47306 (grub_hostfs_dir): Handle missing dirent.d_type case.
47307 (grub_hostfs_read): Add missing fseek().
47308 (grub_hostfs_label): Clear label pointer. This fixes a crash
47309 of grub-emu on "ls (host)".
47311 2007-11-18 Christian Franke <franke@computer.org>
47313 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47314 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47315 to 64 bit boundary by default.
47317 2007-11-18 Bean <bean123ch@gmail.com>
47319 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47320 (hexdump_mod_SOURCES): New variable.
47321 (hexdump_mod_CFLAGS): Likewise.
47322 (hexdump_mod_LDFLAGS): Likewise.
47324 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47326 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47328 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47330 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47332 * include/grub/hexdump.h: New file.
47334 * commands/hexdump.c: New file.
47336 2007-11-10 Robert Millan <rmh@aybabtu.com>
47338 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47339 in grub_outb() calls.
47340 (beep_on): Likewise.
47342 2007-11-10 Christian Franke <franke@computer.org>
47344 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47345 (grub_menu_run): Likewise.
47347 2007-11-10 Robert Millan <rmh@aybabtu.com>
47349 * include/grub/i386/efi/machine.h: New file.
47350 * include/grub/i386/linuxbios/machine.h: Likewise.
47351 * include/grub/i386/pc/machine.h: Likewise.
47352 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47353 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47355 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47356 (serial_hw_io_addr): New variable.
47357 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47358 instead of `(unsigned short *) 0x400'.
47360 2007-11-10 Bean <bean123ch@gmail.com>
47362 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47364 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47366 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47367 (vga_mod_SOURCES): Added.
47368 (vga_mod_CFLAGS): Likewise.
47369 (vga_mod_LDFLAGS): Likewise.
47371 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47373 (set_map_mask): Likewise.
47374 (set_read_map): Likewise.
47375 (set_read_address): Likewise.
47376 (vga_font): Removed variable.
47377 (get_vga_glyph): Removed function.
47378 (invalidate_char): Likewise.
47379 (write_char): Changed to use grub_font_get_glyph() for font
47381 (grub_vga_putchar): Likewise.
47382 (grub_vga_getcharwidth): Likewise.
47384 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47386 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47388 (pxeboot_img_LDFLAGS): Likewise.
47389 (diskboot_img_LDFLAGS): Likewise.
47390 (kernel_img_LDFLAGS): Likewise.
47392 2007-11-06 Robert Millan <rmh@aybabtu.com>
47394 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47395 in grub_outb() calls.
47396 (serial_hw_init): Likewise.
47398 2007-11-05 Robert Millan <rmh@aybabtu.com>
47400 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47401 spaces. Skip non-regular files.
47403 2007-11-05 Robert Millan <rmh@aybabtu.com>
47405 * kern/disk.c (grub_disk_firmware_fini)
47406 (grub_disk_firmware_is_tainted): New variables.
47408 * include/grub/disk.h (grub_disk_firmware_fini)
47409 (grub_disk_firmware_is_tainted): Likewise.
47411 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47412 (grub_disk_biosdisk_fini): ... to here.
47413 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47414 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47415 is set. Register grub_disk_biosdisk_fini() in
47416 `grub_disk_firmware_fini'.
47418 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47419 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47420 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47421 to finish existing firmware disk interface.
47423 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47424 (ata_mod_SOURCES): New variable.
47425 (ata_mod_CFLAGS): Likewise.
47426 (ata_mod_LDFLAGS): Likewise.
47428 2007-11-05 Robert Millan <rmh@aybabtu.com>
47430 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47431 (grub_ata_wait): Reimplement using grub_millisleep().
47433 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47434 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47436 2007-11-03 Marco Gerards <marco@gnu.org>
47438 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47439 (CRTC_ADDR_PORT): New macro.
47440 (CRTC_DATA_PORT): Likewise.
47441 (CRTC_CURSOR): Likewise.
47442 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47443 (CRTC_CURSOR_ADDR_LOW): Likewise.
47444 (update_cursor): New function.
47445 (grub_console_real_putchar): Call `update_cursor'.
47446 (grub_console_gotoxy): Likewise.
47447 (grub_console_cls): Set the default color when clearing the
47449 (grub_console_setcursor): Implemented.
47451 2007-11-03 Marco Gerards <marco@gnu.org>
47453 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47455 (grub_ata_pio_write): Likewise.
47457 (grub_atapi_identify): Wait after issuing an ATA command.
47458 (grub_atapi_packet): Likewise.
47459 (grub_ata_identify): Likewise.
47460 (grub_ata_readwrite): Likewise.
47462 2007-11-03 Marco Gerards <marco@gnu.org>
47464 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47465 (grub_ata_pio_write): Likewise.
47466 (grub_ata_readwrite): Use `grub_error', instead of
47467 returning `grub_errno'.
47469 2007-11-03 Marco Gerards <marco@gnu.org>
47471 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47472 grub_ata_pio_write once for every single sector, instead of for
47475 2007-10-31 Robert Millan <rmh@aybabtu.com>
47477 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47479 * conf/i386-linuxbios.rmk: New file.
47481 * kern/i386/pc/hardware.c: Likewise.
47482 * term/i386/pc/at_keyboard.c: Likewise.
47483 * term/i386/pc/vga_text.c: Likewise.
47485 * include/grub/i386/linuxbios/boot.h: Likewise.
47486 * include/grub/i386/linuxbios/console.h: Likewise.
47487 * include/grub/i386/linuxbios/init.h: Likewise.
47488 * include/grub/i386/linuxbios/kernel.h: Likewise.
47489 * include/grub/i386/linuxbios/loader.h: Likewise.
47490 * include/grub/i386/linuxbios/memory.h: Likewise.
47491 * include/grub/i386/linuxbios/serial.h: Likewise.
47492 * include/grub/i386/linuxbios/time.h: Likewise.
47494 * kern/i386/linuxbios/init.c: Likewise.
47495 * kern/i386/linuxbios/startup.S: Likewise.
47496 * kern/i386/linuxbios/table.c: Likewise.
47498 2007-10-31 Marco Gerards <marco@gnu.org>
47500 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47501 (ata_mod_SOURCES): New variable.
47502 (ata_mod_CFLAGS): Likewise.
47503 (ata_mod_LDFLAGS): Likewise.
47505 * disk/ata.c: New file.
47507 * include/grub/disk.h (grub_disk_dev_id): Add
47508 `GRUB_DISK_DEV_ATA_ID'.
47510 2007-10-31 Robert Millan <rmh@aybabtu.com>
47512 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47513 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47515 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47516 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47518 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47521 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47523 2007-10-27 Robert Millan <rmh@aybabtu.com>
47525 * include/grub/types.h (ULONG_MAX): Define macro.
47527 2007-10-22 Robert Millan <rmh@aybabtu.com>
47529 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47531 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47533 2007-10-22 Robert Millan <rmh@aybabtu.com>
47535 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47536 (pkgdata_MODULES): Add `biosdisk.mod'.
47537 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47540 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47541 (grub_biosdisk_init): Replace with ...
47542 (GRUB_MOD_INIT(biosdisk)): ... this.
47543 (grub_biosdisk_fini): Replace with ...
47544 (GRUB_MOD_FINI(biosdisk)): ... this.
47546 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47547 (grub_machine_init): Remove call to grub_biosdisk_init().
47548 (grub_machine_fini): Remove call to grub_machine_fini().
47550 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47552 2007-10-22 Robert Millan <rmh@aybabtu.com>
47554 * include/grub/time.h: New file.
47555 * include/grub/i386/time.h: Likewise.
47556 * include/grub/powerpc/time.h: Likewise.
47557 * include/grub/sparc64/time.h: Likewise.
47559 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47561 (KERNEL_MACHINE_TIME_HEADER): ... this.
47562 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47564 (KERNEL_MACHINE_TIME_HEADER): ... this.
47565 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47567 (KERNEL_MACHINE_TIME_HEADER): ... this.
47569 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47570 (grub_millisleep): New function.
47571 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47572 (grub_millisleep): New function.
47573 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47574 Remove `grub/machine/time.h' include.
47575 (grub_millisleep): New function.
47576 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47577 Remove `grub/machine/time.h' include.
47578 (grub_millisleep): New function.
47580 * include/grub/misc.h (grub_div_roundup): New function.
47582 * kern/misc.c: Include `<grub/time.h>'.
47583 (grub_millisleep_generic): New function.
47585 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47587 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47589 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47590 `machine/time.h'. Add `time.h'.
47591 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47593 2007-10-21 Robert Millan <rmh@aybabtu.com>
47595 * include/grub/misc.h (grub_max): New function.
47597 2007-10-21 Robert Millan <rmh@aybabtu.com>
47599 * util/misc.c (grub_util_info): Call fflush() before returning.
47601 2007-10-20 Robert Millan <rmh@aybabtu.com>
47603 * genmk.rb (Image): Copy `extra_flags' from here ...
47604 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47606 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47607 to `argc' and `args' arguments.
47609 2007-10-17 Robert Millan <rmh@aybabtu.com>
47611 * kern/i386/loader.S: New file.
47613 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47614 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47615 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47616 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47617 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47618 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47619 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47620 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47621 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47622 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47623 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47624 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47625 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47626 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47628 * kern/i386/realmode.S: New file.
47630 * kern/i386/pc/startup.S (protstack): Moved from here ...
47631 * kern/i386/realmode.S (protstack)... to here.
47632 * kern/i386/pc/startup.S (gdt): Moved from here ...
47633 * kern/i386/realmode.S (gdt)... to here.
47634 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47635 * kern/i386/realmode.S (prot_to_real)... to here.
47637 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47638 `kern/i386/realmode.S'.
47640 2007-10-17 Robert Millan <rmh@aybabtu.com>
47642 * include/grub/i386/loader.h: New file.
47644 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47645 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47646 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47647 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47648 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47649 * include/grub/i386/loader.h (grub_linux_prot_size)
47650 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47651 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47652 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47653 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47655 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47657 2007-10-15 Robert Millan <rmh@aybabtu.com>
47659 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47660 filesystem when dev->disk is unset.
47661 Do probe for filesystem even when dev->disk->has_partitions is set.
47662 In case a filesystem is found, always report it.
47663 In case it isn't, if dev->disk->has_partitions is set, report that
47664 a partition table was found instead of reporting that no filesystem
47665 could be identified.
47667 2007-10-12 Robert Millan <rmh@aybabtu.com>
47669 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47670 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47672 * include/grub/types.h (grub_host_to_target16): New macro.
47673 (grub_host_to_target32): Likewise.
47674 (grub_host_to_target64): Likewise.
47675 (grub_target_to_host16): Likewise.
47676 (grub_target_to_host32): Likewise.
47677 (grub_target_to_host64): Likewise.
47679 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47680 Renamed from to ...
47681 (GRUB_MOD_ALIGN): ...this. Update all users.
47683 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47684 grub_host_to_target32.
47685 Replace grub_be_to_cpu32 with grub_target_to_host32.
47686 (load_modules): Likewise.
47687 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47688 Replace grub_be_to_cpu32 with grub_target_to_host32.
47689 Replace grub_cpu_to_be16 with grub_host_to_target16.
47690 Replace grub_cpu_to_be32 grub_host_to_target32.
47692 2007-10-12 Robert Millan <rmh@aybabtu.com>
47694 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47695 * util/elf/grub-mkimage.c: ... here.
47697 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47698 `util/powerpc/ieee1275/grub-mkimage.c'.
47700 2007-10-07 Robert Millan <rmh@aybabtu.com>
47702 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47703 and make it easier to figure out.
47704 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47705 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47706 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47707 leave us with less than HEAP_MIN_SIZE total heap.
47708 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47710 2007-10-03 Robert Millan <rmh@aybabtu.com>
47712 * include/grub/i386/io.h: New file.
47713 * commands/i386/pc/play.c (inb): Removed.
47715 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47717 * term/i386/pc/serial.c (inb): Removed.
47719 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47721 * term/i386/pc/vga.c (inb): Removed.
47723 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47726 2007-10-02 Robert Millan <rmh@aybabtu.com>
47728 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47729 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47730 Reported by Marcin Kurek.
47732 2007-09-07 Robert Millan <rmh@aybabtu.com>
47734 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47735 SmartFirmware version updates (as released by Sven Luther), and avoid
47736 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47737 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47740 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47742 From Hitoshi Ozeki:
47743 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47744 when merging two regions.
47746 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47748 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47749 * normal/completion.c (grub_normal_do_completion): Likewise.
47750 Reported by Hitoshi Ozeki.
47752 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47754 Do not use devices at boot in chainloading.
47756 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47757 (boot_part_addr): Likewise.
47758 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47759 with BOOT_DRIVE and BOOT_PART_ADDR.
47760 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47761 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47763 2007-08-29 Robert Millan <rmh@aybabtu.com>
47765 Patch from Simon Peter <dn.tlp@gmx.net>:
47766 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47767 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47768 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47769 util/i386/pc/grub-setup.c_DEPENDENCIES.
47770 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47771 util/grub-probe.c_DEPENDENCIES.
47772 * conf/powerpc-ieee1275.rmk: Likewise.
47774 2007-08-28 Robert Millan <rmh@aybabtu.com>
47776 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47777 to tell grub-mkdevicemap how to name devices.
47778 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47781 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47782 util/i386/get_disk_name.c.
47783 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47784 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47785 util/ieee1275/get_disk_name.c.
47787 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47789 * DISTLIST: Add util/i386/get_disk_name.c and
47790 util/ieee1275/get_disk_name.c.
47792 * util/grub-mkdevicemap.c: Replace device naming logic with
47793 grub_util_get_disk_name() calls.
47795 2007-08-20 Robert Millan <rmh@aybabtu.com>
47797 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47798 (so that it works for both plural and singular quantities).
47800 2007-08-05 Robert Millan <rmh@aybabtu.com>
47802 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47803 so that [xz] isn't taken into account when determining order.
47805 2007-08-02 Marco Gerards <marco@gnu.org>
47807 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47808 `include/multiboot2.h', `include/grub/elfload.h',
47809 `include/multiboot.h', `include/grub/multiboot.h',
47810 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47811 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47812 `kern/elf.c', `loader/multiboot_loader.c',
47813 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47814 `loader/i386/pc/multiboot2.c',
47815 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47816 `util/i386/pc/grub-mkrescue.in'. Remove
47817 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47818 `include/grub/i386/pc/util/biosdisk.h' and
47819 `include/grub/powerpc/ieee1275/multiboot.h'.
47821 2007-08-02 Bean <bean123ch@gmail.com>
47823 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47824 (ntfs_mod_SOURCES): New variable.
47825 (ntfs_mod_CFLAGS): Likewise.
47826 (ntfs_mod_LDFLAGS): Likewise.
47828 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47829 (grub_probe_SOURCES): Likewise.
47830 (grub_emu_SOURCES): Likewise.
47832 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47833 (grub_emu_SOURCES): Likewise.
47835 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47836 (grub_emu_SOURCES): Likewise.
47838 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47840 * fs/ntfs.c: New file.
47842 2007-08-02 Bean <bean123ch@gmail.com>
47844 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47846 * file.h (grub_file): Likewise.
47848 * fshelp.h (grub_fshelp_read_file): Likewise.
47850 * util/i386/pc/grub-setup.c (setup): Likewise.
47851 (save_first_sector): Likewise.
47852 (save_blocklists): Likewise.
47854 * fs/affs.c (grub_affs_read_file): Likewise.
47856 * fs/ext2.c (grub_ext2_read_file): Likewise.
47858 * fs/fat.c (grub_fat_read_data): Likewise.
47860 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47862 * fs/hfs.c (grub_hfs_read_file): Likewise.
47864 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47866 * fs/jfs.c (grub_jfs_read_file): Likewise.
47868 * fs/minix.c (grub_minix_read_file): Likewise.
47870 * fs/sfs.c (grub_sfs_read_file): Likewise.
47872 * fs/ufs.c (grub_ufs_read_file): Likewise.
47874 * fs/xfs.c (grub_xfs_read_file): Likewise.
47876 * command/blocklist.c (read_blocklist): Likewise.
47877 (print_blocklist): Likewise.
47879 2007-08-02 Marco Gerards <marco@gnu.org>
47881 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47884 * disk/host.c: New file.
47886 * util/hostfs.c: Likewise.
47888 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47889 return `GRUB_ERR_BAD_FS'.
47890 * fs/sfs.c (grub_sfs_mount): Likewise.
47891 * fs/xfs.c (grub_xfs_mount): Likewise.
47893 * include/grub/disk.h (enum grub_disk_dev_id): Add
47894 `GRUB_DISK_DEVICE_HOST_ID'.
47896 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47898 2007-07-24 Jerone Young <jerone@gmail.com>
47900 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47901 modules for compilation.
47902 * conf/powerpc-ieee1275.rmk: Likewise.
47904 * include/multiboot.h: Move multiboot definitions to one file. Rename
47905 many definitions to not get grub specific.
47906 * include/multiboot2.h: Create header with multiboot 2 definitions.
47907 * include/grub/multiboot.h: Header for grub specific function
47908 prototypes and definitions.
47909 * include/grub/multiboot2.h: Likewise.
47910 * include/grub/multiboot_loader.h: Likewise.
47911 * include/grub/i386/pc/multiboot.h: Removed.
47912 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47914 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47915 and 2 to allow for one multiboot and module commands.
47916 * loader/multiboot2.c: Add multiboot2 functionality.
47917 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47918 and definition names.
47919 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47921 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47922 ieee1275 specific multiboot2 code.
47924 * kern/i386/pc/startup.S: Change headers and definition names for
47925 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47927 2007-07-22 Robert Millan <rmh@aybabtu.com>
47929 * geninitheader.sh: Process file specified in first parameter rather
47930 than hardcoding grub_modules_init.lst.
47931 * geninit.sh: Likewise. Also, construct header name dynamically rather
47932 than hardcoding grub_modules_init.h.
47934 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47935 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47936 grub_probe_init.[ch] and grub_setup_init.[ch].
47938 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47939 grub_modules_init.h with grub_emu_init.h.
47940 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47941 grub_probe_init.[ch] files.
47942 * conf/i386-efi.rmk: Likewise.
47943 * conf/i386-pc.rmk: Likewise.
47944 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47945 grub_setup_init.[ch] files.
47947 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47948 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47949 to initialize modules rather than a list of hardcoded functions.
47950 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47951 grub_init_all() to initialize modules rather than a list of hardcoded
47954 2007-07-22 Robert Millan <rmh@aybabtu.com>
47956 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47957 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47959 2007-07-22 Robert Millan <rmh@aybabtu.com>
47961 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47962 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47963 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47964 flag when running on SmartFirmware.
47965 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47966 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47969 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47970 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47971 rather than decreasing it.
47973 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47974 there's not enough space to do it, fail in the same way as when it
47975 can't be done because there are no partitions.
47977 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47978 when nvsetenv failed.
47980 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47982 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47983 because this rule is automatically generated.
47984 (grub-mkrescue): Removed for the same reason as above.
47986 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47988 Migrate to GNU General Public License Version 3.
47990 * COPYING: Replaced with the plain text version of GPLv3.
47992 * config.guess: Updated from gnulib.
47993 * config.sub: Likewise.
47995 * geninit.sh: Output a GPLv3 copyright notice.
47996 * geninitheader.sh: Likewise.
47997 * genmodsrc.sh: Likewise.
47998 * gensymlist.sh.in: Likewise.
48000 * boot/i386/pc/boot.S: Upgraded to GPLv3.
48001 * boot/i386/pc/diskboot.S: Likewise.
48002 * boot/i386/pc/pxeboot.S: Likewise.
48003 * commands/blocklist.c: Likewise.
48004 * commands/boot.c: Likewise.
48005 * commands/cat.c: Likewise.
48006 * commands/cmp.c: Likewise.
48007 * commands/configfile.c: Likewise.
48008 * commands/echo.c: Likewise.
48009 * commands/help.c: Likewise.
48010 * commands/ls.c: Likewise.
48011 * commands/search.c: Likewise.
48012 * commands/terminal.c: Likewise.
48013 * commands/test.c: Likewise.
48014 * commands/videotest.c: Likewise.
48015 * commands/i386/cpuid.c: Likewise.
48016 * commands/i386/pc/halt.c: Likewise.
48017 * commands/i386/pc/play.c: Likewise.
48018 * commands/i386/pc/reboot.c: Likewise.
48019 * commands/i386/pc/vbeinfo.c: Likewise.
48020 * commands/i386/pc/vbetest.c: Likewise.
48021 * commands/ieee1275/halt.c: Likewise.
48022 * commands/ieee1275/reboot.c: Likewise.
48023 * commands/ieee1275/suspend.c: Likewise.
48024 * disk/loopback.c: Likewise.
48025 * disk/lvm.c: Likewise.
48026 * disk/raid.c: Likewise.
48027 * disk/efi/efidisk.c: Likewise.
48028 * disk/i386/pc/biosdisk.c: Likewise.
48029 * disk/ieee1275/ofdisk.c: Likewise.
48030 * font/manager.c: Likewise.
48031 * fs/affs.c: Likewise.
48032 * fs/ext2.c: Likewise.
48033 * fs/fat.c: Likewise.
48034 * fs/fshelp.c: Likewise.
48035 * fs/hfs.c: Likewise.
48036 * fs/hfsplus.c: Likewise.
48037 * fs/iso9660.c: Likewise.
48038 * fs/jfs.c: Likewise.
48039 * fs/minix.c: Likewise.
48040 * fs/sfs.c: Likewise.
48041 * fs/ufs.c: Likewise.
48042 * fs/xfs.c: Likewise.
48043 * hello/hello.c: Likewise.
48044 * include/grub/acorn_filecore.h: Likewise.
48045 * include/grub/arg.h: Likewise.
48046 * include/grub/bitmap.h: Likewise.
48047 * include/grub/boot.h: Likewise.
48048 * include/grub/cache.h: Likewise.
48049 * include/grub/device.h: Likewise.
48050 * include/grub/disk.h: Likewise.
48051 * include/grub/dl.h: Likewise.
48052 * include/grub/elfload.h: Likewise.
48053 * include/grub/env.h: Likewise.
48054 * include/grub/err.h: Likewise.
48055 * include/grub/file.h: Likewise.
48056 * include/grub/font.h: Likewise.
48057 * include/grub/fs.h: Likewise.
48058 * include/grub/fshelp.h: Likewise.
48059 * include/grub/gzio.h: Likewise.
48060 * include/grub/hfs.h: Likewise.
48061 * include/grub/kernel.h: Likewise.
48062 * include/grub/loader.h: Likewise.
48063 * include/grub/lvm.h: Likewise.
48064 * include/grub/misc.h: Likewise.
48065 * include/grub/mm.h: Likewise.
48066 * include/grub/net.h: Likewise.
48067 * include/grub/normal.h: Likewise.
48068 * include/grub/parser.h: Likewise.
48069 * include/grub/partition.h: Likewise.
48070 * include/grub/pc_partition.h: Likewise.
48071 * include/grub/raid.h: Likewise.
48072 * include/grub/rescue.h: Likewise.
48073 * include/grub/script.h: Likewise.
48074 * include/grub/setjmp.h: Likewise.
48075 * include/grub/symbol.h: Likewise.
48076 * include/grub/term.h: Likewise.
48077 * include/grub/terminfo.h: Likewise.
48078 * include/grub/tparm.h: Likewise.
48079 * include/grub/types.h: Likewise.
48080 * include/grub/video.h: Likewise.
48081 * include/grub/efi/api.h: Likewise.
48082 * include/grub/efi/chainloader.h: Likewise.
48083 * include/grub/efi/console.h: Likewise.
48084 * include/grub/efi/console_control.h: Likewise.
48085 * include/grub/efi/disk.h: Likewise.
48086 * include/grub/efi/efi.h: Likewise.
48087 * include/grub/efi/pe32.h: Likewise.
48088 * include/grub/efi/time.h: Likewise.
48089 * include/grub/i386/linux.h: Likewise.
48090 * include/grub/i386/setjmp.h: Likewise.
48091 * include/grub/i386/types.h: Likewise.
48092 * include/grub/i386/efi/kernel.h: Likewise.
48093 * include/grub/i386/efi/loader.h: Likewise.
48094 * include/grub/i386/efi/time.h: Likewise.
48095 * include/grub/i386/pc/biosdisk.h: Likewise.
48096 * include/grub/i386/pc/boot.h: Likewise.
48097 * include/grub/i386/pc/chainloader.h: Likewise.
48098 * include/grub/i386/pc/console.h: Likewise.
48099 * include/grub/i386/pc/init.h: Likewise.
48100 * include/grub/i386/pc/kernel.h: Likewise.
48101 * include/grub/i386/pc/loader.h: Likewise.
48102 * include/grub/i386/pc/memory.h: Likewise.
48103 * include/grub/i386/pc/multiboot.h: Likewise.
48104 * include/grub/i386/pc/serial.h: Likewise.
48105 * include/grub/i386/pc/time.h: Likewise.
48106 * include/grub/i386/pc/vbe.h: Likewise.
48107 * include/grub/i386/pc/vbeblit.h: Likewise.
48108 * include/grub/i386/pc/vbefill.h: Likewise.
48109 * include/grub/i386/pc/vbeutil.h: Likewise.
48110 * include/grub/i386/pc/vga.h: Likewise.
48111 * include/grub/ieee1275/ieee1275.h: Likewise.
48112 * include/grub/ieee1275/ofdisk.h: Likewise.
48113 * include/grub/powerpc/libgcc.h: Likewise.
48114 * include/grub/powerpc/setjmp.h: Likewise.
48115 * include/grub/powerpc/types.h: Likewise.
48116 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
48117 * include/grub/powerpc/ieee1275/console.h: Likewise.
48118 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
48119 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
48120 * include/grub/powerpc/ieee1275/loader.h: Likewise.
48121 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
48122 * include/grub/powerpc/ieee1275/time.h: Likewise.
48123 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
48124 * include/grub/sparc64/libgcc.h: Likewise.
48125 * include/grub/sparc64/setjmp.h: Likewise.
48126 * include/grub/sparc64/types.h: Likewise.
48127 * include/grub/sparc64/ieee1275/console.h: Likewise.
48128 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48129 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48130 * include/grub/sparc64/ieee1275/time.h: Likewise.
48131 * include/grub/util/biosdisk.h: Likewise.
48132 * include/grub/util/getroot.h: Likewise.
48133 * include/grub/util/lvm.h: Likewise.
48134 * include/grub/util/misc.h: Likewise.
48135 * include/grub/util/raid.h: Likewise.
48136 * include/grub/util/resolve.h: Likewise.
48137 * io/gzio.c: Likewise.
48138 * kern/device.c: Likewise.
48139 * kern/disk.c: Likewise.
48140 * kern/dl.c: Likewise.
48141 * kern/elf.c: Likewise.
48142 * kern/env.c: Likewise.
48143 * kern/err.c: Likewise.
48144 * kern/file.c: Likewise.
48145 * kern/fs.c: Likewise.
48146 * kern/loader.c: Likewise.
48147 * kern/main.c: Likewise.
48148 * kern/misc.c: Likewise.
48149 * kern/mm.c: Likewise.
48150 * kern/parser.c: Likewise.
48151 * kern/partition.c: Likewise.
48152 * kern/rescue.c: Likewise.
48153 * kern/term.c: Likewise.
48154 * kern/efi/efi.c: Likewise.
48155 * kern/efi/init.c: Likewise.
48156 * kern/efi/mm.c: Likewise.
48157 * kern/i386/dl.c: Likewise.
48158 * kern/i386/efi/init.c: Likewise.
48159 * kern/i386/efi/startup.S: Likewise.
48160 * kern/i386/pc/init.c: Likewise.
48161 * kern/i386/pc/lzo1x.S: Likewise.
48162 * kern/i386/pc/startup.S: Likewise.
48163 * kern/ieee1275/ieee1275.c: Likewise.
48164 * kern/powerpc/cache.S: Likewise.
48165 * kern/powerpc/dl.c: Likewise.
48166 * kern/powerpc/ieee1275/cmain.c: Likewise.
48167 * kern/powerpc/ieee1275/crt0.S: Likewise.
48168 * kern/powerpc/ieee1275/init.c: Likewise.
48169 * kern/powerpc/ieee1275/openfw.c: Likewise.
48170 * kern/sparc64/cache.S: Likewise.
48171 * kern/sparc64/dl.c: Likewise.
48172 * kern/sparc64/ieee1275/init.c: Likewise.
48173 * kern/sparc64/ieee1275/openfw.c: Likewise.
48174 * loader/efi/chainloader.c: Likewise.
48175 * loader/efi/chainloader_normal.c: Likewise.
48176 * loader/i386/efi/linux.c: Likewise.
48177 * loader/i386/efi/linux_normal.c: Likewise.
48178 * loader/i386/pc/chainloader.c: Likewise.
48179 * loader/i386/pc/chainloader_normal.c: Likewise.
48180 * loader/i386/pc/linux.c: Likewise.
48181 * loader/i386/pc/linux_normal.c: Likewise.
48182 * loader/i386/pc/multiboot.c: Likewise.
48183 * loader/i386/pc/multiboot_normal.c: Likewise.
48184 * loader/powerpc/ieee1275/linux.c: Likewise.
48185 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48186 * normal/arg.c: Likewise.
48187 * normal/cmdline.c: Likewise.
48188 * normal/command.c: Likewise.
48189 * normal/completion.c: Likewise.
48190 * normal/execute.c: Likewise.
48191 * normal/function.c: Likewise.
48192 * normal/lexer.c: Likewise.
48193 * normal/main.c: Likewise.
48194 * normal/menu.c: Likewise.
48195 * normal/menu_entry.c: Likewise.
48196 * normal/misc.c: Likewise.
48197 * normal/parser.y: Likewise.
48198 * normal/script.c: Likewise.
48199 * normal/i386/setjmp.S: Likewise.
48200 * normal/powerpc/setjmp.S: Likewise.
48201 * normal/sparc64/setjmp.S: Likewise.
48202 * partmap/acorn.c: Likewise.
48203 * partmap/amiga.c: Likewise.
48204 * partmap/apple.c: Likewise.
48205 * partmap/gpt.c: Likewise.
48206 * partmap/pc.c: Likewise.
48207 * partmap/sun.c: Likewise.
48208 * term/gfxterm.c: Likewise.
48209 * term/terminfo.c: Likewise.
48210 * term/efi/console.c: Likewise.
48211 * term/i386/pc/console.c: Likewise.
48212 * term/i386/pc/serial.c: Likewise.
48213 * term/i386/pc/vesafb.c: Likewise.
48214 * term/i386/pc/vga.c: Likewise.
48215 * term/ieee1275/ofconsole.c: Likewise.
48216 * util/biosdisk.c: Likewise.
48217 * util/console.c: Likewise.
48218 * util/genmoddep.c: Likewise.
48219 * util/getroot.c: Likewise.
48220 * util/grub-emu.c: Likewise.
48221 * util/grub-mkdevicemap.c: Likewise.
48222 * util/grub-probe.c: Likewise.
48223 * util/lvm.c: Likewise.
48224 * util/misc.c: Likewise.
48225 * util/raid.c: Likewise.
48226 * util/resolve.c: Likewise.
48227 * util/update-grub.in: Likewise.
48228 * util/update-grub_lib.in: Likewise.
48229 * util/grub.d/00_header.in: Likewise.
48230 * util/grub.d/10_hurd.in: Likewise.
48231 * util/grub.d/10_linux.in: Likewise.
48232 * util/i386/efi/grub-install.in: Likewise.
48233 * util/i386/efi/grub-mkimage.c: Likewise.
48234 * util/i386/pc/grub-install.in: Likewise.
48235 * util/i386/pc/grub-mkimage.c: Likewise.
48236 * util/i386/pc/grub-mkrescue.in: Likewise.
48237 * util/i386/pc/grub-setup.c: Likewise.
48238 * util/i386/pc/misc.c: Likewise.
48239 * util/powerpc/ieee1275/grub-install.in: Likewise.
48240 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48241 * util/powerpc/ieee1275/misc.c: Likewise.
48242 * video/bitmap.c: Likewise.
48243 * video/video.c: Likewise.
48244 * video/i386/pc/vbe.c: Likewise.
48245 * video/i386/pc/vbeblit.c: Likewise.
48246 * video/i386/pc/vbefill.c: Likewise.
48247 * video/i386/pc/vbeutil.c: Likewise.
48248 * video/readers/tga.c: Likewise.
48250 2007-07-02 Robert Millan <rmh@aybabtu.com>
48252 * conf/i386-efi.rmk: Replace obsolete reference to
48253 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48254 with util/getroot.c.
48255 * conf/powerpc-ieee1275.rmk: Likewise.
48256 * conf/sparc64-ieee1275.rmk: Likewise.
48258 * util/grub-emu.c (main): Fix unchecked pointer handling.
48260 2007-07-02 Robert Millan <rmh@aybabtu.com>
48262 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48263 invocation to fail, in order to support partition-less media.
48265 * util/i386/pc/grub-install.in: Likewise.
48267 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48268 which fs or partmap modules are needed (akin to its sister scripts).
48270 Also use grub-probe to get rid of unportable /proc/mounts check.
48272 Print the same informational message that the other scripts do, before
48275 2007-06-23 Robert Millan <rmh@aybabtu.com>
48277 * util/update-grub_lib.in (font_path): New function. Determine whether
48278 a font file can be found and, if so, echo the GRUB path to it.
48280 * util/update-grub.in: Handle multiple terminals depending on user
48281 input, platform availability and font file presence. Propagate
48282 variables of our findings to /etc/grub.d/ children.
48284 * util/grub.d/00_header.in: Handle multiple terminals, based on
48285 environment setup by update-grub.
48287 2007-06-23 Robert Millan <rmh@aybabtu.com>
48289 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48291 2007-06-21 Robert Millan <rmh@aybabtu.com>
48293 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48294 indicate end of data section in kernel image.
48295 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48296 GRUB_KERNEL_MACHINE_DATA_END.
48298 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48300 * kern/i386/efi/startup.S: Likewise.
48302 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48303 during image generation. Implement --prefix option to override this
48305 * util/i386/efi/grub-mkimage.c: Likewise.
48307 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48308 code to make path relative to its root into a separate function.
48310 * util/i386/pc/grub-install.in: Use newly provided
48311 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48312 pass the result to grub-install --prefix.
48314 2007-06-13 Robert Millan <rmh@aybabtu.com>
48316 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48317 DEFAULT_DEVICE_MAP.
48318 * util/grub-emu.c: Use above definitions from misc.h instead of
48320 * util/grub-mkdevicemap.c: Likewise.
48321 * util/i386/pc/grub-setup.c: Likewise.
48322 * util/grub-probe.c: Likewise.
48323 (probe): Abort with grub_util_error() when either
48324 grub_guess_root_device or grub_util_get_grub_dev fails.
48326 2007-06-12 Robert Millan <rmh@aybabtu.com>
48328 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48329 "pager" assignment.
48330 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48332 * util/grub-probe.c (probe): Likewise for "drive_name".
48334 2007-06-11 Robert Millan <rmh@aybabtu.com>
48336 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48337 not just the cdrom one.
48339 2007-06-11 Robert Millan <rmh@aybabtu.com>
48341 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48342 Add --pkglibdir=DIR option to override pkglibdir.
48343 Mention --image-type=TYPE in help output.
48344 Fix --grub-mkimage (it was a no-op).
48345 Abort gracefully when no parameter is given.
48347 2007-06-11 Robert Millan <rmh@aybabtu.com>
48349 * util/i386/pc/grub-mkrescue.in: New file.
48350 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48351 * Makefile.in: Handle bin_SCRIPTS.
48353 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48355 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48356 list of video modes.
48358 2007-06-06 Robert Millan <rmh@aybabtu.com>
48360 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48361 file doesn't exist, or if it is in a filesystem grub can't read.
48363 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48364 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48365 header comment to fit in 80 columns when the variables are resolved.
48367 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48368 could be identified by update-grub. Remove redundant check for
48369 unifont.pff existence (since convert_system_path_to_grub_path now
48372 2007-06-04 Robert Millan <rmh@aybabtu.com>
48374 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48376 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48378 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48380 2007-06-04 Robert Millan <rmh@aybabtu.com>
48382 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48384 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48385 grub_apple_partition_map_fini.
48388 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48389 to access >2 TiB disks).
48391 Print disk->total_sectors with %llu instead of %lu, since this
48392 variable is always 64-bit (prevents wrong disk size from being displayed
48393 on either >2 TiB disk or big-endian CPU).
48395 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48396 into a generic case that supports all (sane) partition maps.
48398 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48401 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48402 and grub_apple_partition_map_fini() after that.
48404 2007-06-01 Robert Millan <rmh@aybabtu.com>
48406 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48408 * util/grub.d/00_header.in: Only enable gfxterm when
48409 convert_system_path_to_grub_path() succeeds.
48411 2007-05-20 Robert Millan <rmh@aybabtu.com>
48413 * util/update-grub_lib.in: New file.
48414 * DISTLIST: Add update-grub_lib.in.
48415 * conf/common.rmk: Generate update-grub_lib and install it in
48417 * Makefile.in: Add install routine for $(lib_DATA).
48419 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48420 function provided by update-grub_lib to support arbitrary paths of
48422 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48423 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48425 2007-05-19 Robert Millan <rmh@aybabtu.com>
48427 * commands/i386/cpuid.c: New module.
48428 * DISTLIST: Add it.
48429 * conf/i386-efi.rmk: Enable cpuid.mod.
48430 * conf/i386-pc.rmk: Likewise.
48432 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48434 * kern/disk.c (grub_disk_read): Check return value of
48437 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48439 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48441 * disk/raid.c (grub_raid_open): Likewise.
48443 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48445 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48446 stack instead of on the heap.
48448 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48449 before doing a read on it.
48451 * configure.ac: Only use -fno-stack-protector for the target
48454 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48456 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48457 __attribute_ ((unused)) to mode_type argument.
48459 * util/getroot.c (grub_guess_root_device): Fix #endif.
48461 * kern/misc.c (memcmp): Fix prototype.
48463 * include/grub/partition.h [GRUB_UTIL]
48464 (grub_gpt_partition_map_init): Add prototype.
48465 (grub_gpt_partition_map_fini): Likewise.
48467 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48468 at the right place.
48470 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48471 (grub_fat_read_data): Likewise.
48472 (grub_fat_find_dir): Likewise.
48474 * font/manager.c (find_glyph): Make table a const.
48475 (grub_font_get_glyph): Remove bitmap from if statement.
48477 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48479 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48480 code, first search for device in /dev/mapper, then in /dev.
48481 (grub_util_get_grub_dev): New function.
48482 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48484 * util/grub-probe.c (probe): Remove check for RAID, call
48485 grub_util_get_grub_dev() instead of
48486 grub_util_biosdisk_get_grub_dev().
48487 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48488 grub_util_biosdisk_get_grub_dev().
48489 * util/i386/pc/grub-setup.c (main): Likewise.
48491 2007-05-16 Robert Millan <rmh@aybabtu.com>
48493 * DISTLIST: Update for the latest changes.
48494 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48495 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48496 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48497 grub/util/biosdisk.h.
48498 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48499 grub/util/biosdisk.h.
48501 2007-05-16 Robert Millan <rmh@aybabtu.com>
48503 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48505 2007-05-16 Robert Millan <rmh@aybabtu.com>
48507 * util/i386/efi/grub-install.in: New.
48508 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48509 newly added grub-install.
48510 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48512 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48513 grub/util/biosdisk.h.
48514 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48515 grub/util/biosdisk.h.
48517 2007-05-16 Robert Millan <rmh@aybabtu.com>
48519 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48520 * include/grub/util/biosdisk.h: ... here.
48521 * util/i386/pc/biosdisk.c: Moved to ...
48522 * util/biosdisk.c: ... here.
48523 * util/i386/pc/getroot.c: Moved to ...
48524 * util/getroot.c: ... here.
48525 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48526 * util/grub-mkdevicemap.c: ... here.
48527 * util/i386/pc/grub-probe.c: Moved to ...
48528 * util/grub-probe.c: ... here.
48530 2007-05-15 Robert Millan <rmh@aybabtu.com>
48532 * util/update-grub.in: Remove duplicated line in grub.cfg header
48535 2007-05-13 Robert Millan <rmh@aybabtu.com>
48537 * util/update-grub.in: Fix a few assumptions about the devices holding
48538 /, /boot and /boot/grub being the same.
48539 * util/grub.d/00_header.in: Likewise.
48540 * util/grub.d/10_hurd.in: Likewise.
48541 * util/grub.d/10_linux.in: Likewise.
48543 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48544 patterns. Use that to define the `.old' suffix as older than `'.
48546 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48548 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48549 the grub.cfg header message.
48551 2007-05-11 Robert Millan <rmh@aybabtu.com>
48553 * util/update-grub.in: Create device.map if it doesn't already exist,
48554 before attempting to run grub-probe.
48555 Check for grub-probe and grub-mkdevicemap with the same code
48556 grub-install is using.
48559 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48561 * Makefile.in: Add the datarootdir autoconf variable.
48563 2007-05-09 Robert Millan <rmh@aybabtu.com>
48565 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48566 fail gracefully if dev->disk->partition == NULL.
48568 2007-05-07 Robert Millan <rmh@aybabtu.com>
48570 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48571 determine partition map module.
48572 * util/i386/pc/grub-install.in: Use this feature to decide which
48573 partition module to load, instead of hardcoding pc and gpt.
48575 2007-05-07 Robert Millan <rmh@aybabtu.com>
48577 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48578 source directory differs from build directory.
48580 2007-05-05 Robert Millan <rmh@aybabtu.com>
48582 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48585 2007-05-05 Robert Millan <rmh@aybabtu.com>
48587 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48589 2007-05-05 Robert Millan <rmh@aybabtu.com>
48591 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48592 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48594 2007-05-05 Robert Millan <rmh@aybabtu.com>
48596 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48597 (grub_probe_SOURCES): Likewise.
48598 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48599 GPT and initialize dos_part and bsd_part accordingly.
48600 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48602 (main): Activate gpt module for use during partition identification,
48603 and deactivate it afterwards.
48604 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48605 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48606 partition identification, and deactivate it afterwards.
48608 2007-05-05 Robert Millan <rmh@aybabtu.com>
48610 * term/i386/pc/console.c (grub_console_fini): Call
48611 grub_term_set_current() before grub_term_unregister().
48613 2007-05-04 Robert Millan <rmh@aybabtu.com>
48615 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48616 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48617 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48618 and update-grub_DATA.
48619 * conf/common.rmk: Build and install update-grub components.
48620 * conf/common.mk: Regenerate.
48621 * util/update-grub.in: New. Core of update-grub.
48622 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48623 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48624 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48625 * util/grub.d/README: New. Document grub.d directory layout.
48627 2007-05-01 Robert Millan <rmh@aybabtu.com>
48629 * util/grub-emu.c: Move initialization functions
48630 grub_util_biosdisk_init() and grub_init_all() before
48631 grub_util_biosdisk_get_grub_dev(), which relies on them.
48633 2007-04-19 Robert Millan <rmh@aybabtu.com>
48635 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48638 2007-04-18 Jerone Young <jerone@gmail.com>
48640 * kernel/elf.c: Add missing parenthesis for conditional statement
48643 2007-04-10 Jerone Young <jerone@gmail.com>
48645 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48646 continue on and look for device node with real device name.
48648 2007-04-10 Jerone Young <jerone@gmail.com>
48650 * configure.ac: Add argument for autoconf to use transformation
48652 * Makefile.in: Add autoconf package transformation code.
48653 * util/i386/pc/grub-install.in: Likewise.
48654 * util/powerpc/ieee1275/grub-install.in: Likewise.
48656 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48658 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48659 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48660 (EXT2_REVISION): Likewise.
48661 (EXT2_INODE_SIZE): Likewise.
48662 (struct grub_ext2_block_group): Added a missing member
48664 (grub_ext2_read_inode): Divide by the inode size in a superblock
48665 instead of 128 to obtain INODES_PER_BLOCK.
48666 Use the macro EXT2_INODE_SIZE instead of directly using
48667 SBLOCK->INODE_SIZE.
48669 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48671 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48672 superblock instead of the structure size to compute an
48673 offset. This fixes the problem that GRUB could not read a
48674 filesystem when inode size is different from 128-byte.
48676 2007-03-05 Marco Gerards <marco@gnu.org>
48678 * normal/main.c (read_config_file): When "menu" is not set, create
48679 an initial context.
48681 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48683 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48684 (HEAP_LIMIT): New macro.
48685 (grub_claim_heap): Claim memory up to `heaplimit'.
48687 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48689 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48690 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48691 (_start): Likewise.
48692 (grub_arch_modules_addr): Return address after `_end'.
48693 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48694 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48695 (add_segments): Calculate `_end' from phdr size and location.
48696 (ALIGN_UP): Moved to ...
48697 * include/grub/misc.h: here.
48698 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48700 (GRUB_IEEE1275_MODULE_BASE): Removed.
48702 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48704 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48707 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48709 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48711 (grub_elf64_load_hook_t): Likewise.
48712 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48715 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48717 * kern/mm.c: Update copyright.
48718 (grub_mm_debug): Correct syntax error.
48719 (grub_mm_dump_free): New function.
48720 (grub_debug_free): Call `grub_free'.
48721 * include/grub/mm.h: Update copyright.
48722 (grub_mm_dump_free): Add declaration.
48724 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48726 * include/grub/ieee1275/ieee1275.h: Update copyright.
48727 * kern/powerpc/ieee1275/init.c: Likewise.
48728 * kern/powerpc/ieee1275/openfw.c: Likewise.
48730 * loader/powerpc/ieee1275/linux.c: Likewise.
48731 * include/grub/elfload.h: Likewise.
48732 * kern/elf.c: Likewise.
48733 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48735 (grub_elf64_load): Likewise.
48736 (grub_elf32_load_segment): Move to a nested function.
48737 (grub_elf64_load_segment): Likewise.
48739 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48741 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48743 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48744 (grub_heap_len): Likewise.
48745 (HEAP_SIZE): New macro.
48746 (grub_claim_heap): New function.
48747 (grub_machine_init): Don't claim heap directly. Call
48749 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48750 (grub_available_iterate): New function.
48752 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48754 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48755 * configure.ac: Use it for testing the HOST and TARGET compilers.
48757 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48759 * Makefile.in (enable_grub_emu): New variable.
48760 * configure.ac (--enable-grub-emu): New option.
48761 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48762 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48763 * conf/i386-pc.rmk: Likewise.
48764 * conf/powerpc-ieee1275.rmk: Likewise.
48765 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48767 2006-12-12 Marco Gerards <marco@gnu.org>
48769 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48771 * kern/env.c (grub_env_unset): Don't free the member `value' when
48772 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48775 * normal/main.c (current_menu): Removed.
48776 (free_menu): Unset the `menu' environment variable.
48777 (grub_normal_menu_addentry): Make use of the environment variable
48778 `menu', instead of using the global `current_menu'. Allocate
48779 memory for the sourcecode of this entry.
48780 (read_config_file): New argument `nested', changed all callers.
48781 Only in the case of a new context, initialize a new menu. Set the
48782 `menu' environment variable.
48783 (grub_normal_execute): Don't set and unset the environment
48784 variable `menu' here anymore. Only free the menu when leaving the
48787 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48790 2006-12-11 Marco Gerards <marco@gnu.org>
48792 * normal/menu_entry.c (run): Fix off by one bug so the last line
48793 is executed. Move the loader check to outside the loop.
48795 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48797 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48799 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48801 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48802 the number of sectors. Reported by Andrey Shuvikov
48803 <mr_hyro@yahoo.com>.
48805 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48807 * kern/disk.c (grub_disk_read): When there is a read error, always
48808 try to read only the necessary data.
48810 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48812 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48814 [GRUB_UTIL] (grub_raid_fini): Likewise.
48815 [GRUB_UTIL] (grub_lvm_init): Likewise.
48816 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48817 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48818 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48819 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48820 and grub_raid_fini().
48822 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48824 * include/grub/types.h (__unused): Rename to UNUSED.
48825 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48826 (grub_elf64_size): Likewise.
48828 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48830 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48831 grub_error_push and grub_error_pop in the error-handling path.
48832 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48835 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48837 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48838 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48839 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48840 (kernel_elf_SOURCES): Likewise.
48841 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48842 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48843 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48844 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48845 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48846 (elf_mod_SOURCES): New variable.
48847 (elf_mod_CFLAGS): Likewise.
48848 (elf_mod_LDFLAGS): Likewise.
48849 * include/grub/types.h (__unused): New macro.
48850 * include/grub/elfload.h: New file.
48851 * kern/elf.c: Likewise.
48852 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48853 (ELF32_LOADMASK): New macro.
48854 (ELF64_LOADMASK): Likewise.
48855 (vmlinux): Removed.
48856 (grub_linux_load32): New function.
48857 (grub_linux_load64): Likewise.
48858 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48859 Use grub_elf_t instead of grub_file_t.
48861 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48863 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48864 `catch_result' to struct set_color_args.
48866 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48868 * normal/menu.c: Include grub/script.h.
48869 * normal/menu_entry.c: Likewise.
48870 * include/grub/normal.h: Do not include grub/script.h.
48872 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48874 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48876 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48878 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48880 (grub_disk_close): Print debug messages when closing a disk.
48881 (grub_disk_read): Print debug messages when disk read fails.
48882 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48884 * kern/partition.c: Include misc.h.
48885 (grub_partition_iterate): Print debug messages when detecting
48888 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48890 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48892 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48894 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48896 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48897 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48899 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48901 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48902 instead of sizeof(lv). Patch by Michael Guntsche.
48904 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48906 * disk/lvm.c: Rename VGS to VG_LIST.
48907 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48908 (grub_lvm_open): Likewise.
48909 Thanks to Michael Guntsche for finding this bug.
48911 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48913 * configure.ac (AC_INIT): Bumped to 1.95.
48915 2006-10-14 Robert Millan <rmh@aybabtu.com>
48917 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48918 with "/dev/.static/dev/md".
48920 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48922 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48923 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48924 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48925 DRIVE_NAME are always freed.
48927 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48928 DOS_PART, as a DOS partition is counted from one instead of zero
48929 now. Reported by Robert Millan.
48931 2006-10-14 Robert Millan <rmh@aybabtu.com>
48933 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48934 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48935 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48936 string returned by grub_guess_root_device.
48937 * util/i386/pc/grub-setup.c: Likewise.
48938 * util/i386/pc/grub-probefs.c: Likewise.
48940 * util/i386/pc/grub-probefs.c: Rename to ...
48941 * util/i386/pc/grub-probe.c: ... this.
48942 * DISTLIST: Remove grub-probefs, add grub-probe.
48943 * conf/i386-efi.rmk: Likewise.
48944 * conf/i386-pc.rmk: Likewise.
48945 * util/i386/pc/grub-install.in: Likewise.
48947 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48948 choose which information we want to print.
48950 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48952 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48953 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48954 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48955 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48956 video/readers/tga.c and video/i386/pc/vbeutil.c.
48958 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48960 Added support for RAID and LVM.
48962 * disk/lvm.c: New file.
48963 * disk/raid.c: Likewise.
48964 * include/grub/lvm.h: Likewise.
48965 * include/grub/raid.h: Likewise.
48966 * include/grub/util/lvm.h: Likewise.
48967 * include/grub/util/raid.h: Likewise.
48968 * util/lvm.c: Likewise.
48969 * util/raid.c: Likewise.
48971 * include/grub/disk.h (grub_disk_dev_id): Add
48972 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48973 (grub_disk_get_size): New prototype.
48974 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48975 returns a partition.
48976 (grub_disk_get_size): New function.
48978 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48979 verbatim if grub_install_dos_part is -2.
48981 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48984 * util/i386/pc/grub-setup.c (setup): New argument
48985 MUST_EMBED. Force embedding of GRUB when the argument is
48986 true. Close FILE before returning.
48987 (main): Add support for RAID and LVM.
48989 * conf/common.rmk: Add RAID and LVM modules.
48990 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48992 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48994 * kern/misc.c (grub_strstr): New function.
48995 * include/grub/misc.h (grub_strstr): New prototype.
48997 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48999 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
49001 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
49003 * kern/misc.c (grub_strtoull): Guess the base only if not
49006 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
49008 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
49011 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
49013 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
49015 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
49016 Remove `flags' argument. All callers changed.
49017 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
49018 (IEEE1275_IHANDLE_INVALID): New variable.
49019 (IEEE1275_CELL_INVALID): New variable.
49020 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
49021 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
49022 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
49023 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
49024 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
49025 codes from Open Firmware. All callers updated.
49026 (grub_ieee1275_next_property): Directly return Open Firmware return
49028 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
49029 Standardize error checking from `grub_ieee1275_get_property'.
49030 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
49031 `devalias' to `aliases'. Correct comments. Consolidate error paths.
49033 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
49035 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
49036 `instance_to_package_args' to `instance_to_path_args'.
49038 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
49039 `grub_ieee1275_chosen'.
49041 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
49042 `grub_ieee1275_interpret'.
49044 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
49046 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
49048 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
49050 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
49051 (__cmpdi): Likewise.
49053 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
49054 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
49057 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
49059 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
49060 to type `grub_ssize_t'.
49061 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
49063 2006-09-22 Marco Gerards <marco@gnu.org>
49065 * normal/script.c (grub_script_create_cmdmenu): Skip leading
49068 2006-09-22 Marco Gerards <marco@gnu.org>
49070 * commands/echo.c: New file.
49072 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
49074 * conf/common.rmk (echo_mod_SOURCES): New variable.
49075 (echo_mod_CFLAGS): Likewise.
49076 (echo_mod_LDFLAGS): Likewise.
49078 2006-09-22 Marco Gerards <marco@gnu.org>
49080 * normal/main.c (get_line): Malloc memory instead of using
49081 preallocated memory. Removed the arguments `cmdline' and
49082 `max_len'. Updated all callers.
49084 2006-09-22 Marco Gerards <marco@gnu.org>
49086 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
49087 (normal_mod_DEPENDENCIES): Likewise.
49089 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
49090 (normal_mod_DEPENDENCIES): Likewise.
49092 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
49094 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
49096 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
49098 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
49099 (normal_mod_DEPENDENCIES): Likewise.
49100 * conf/i386-pc.mk: Regenerate.
49101 * conf/i386-efi.mk: Likewise
49102 * conf/common.mk: Likewise.
49103 * conf/powerpc-ieee1275.mk: Likewise.
49104 * conf/sparc64-ieee1275.mk: Likewise.
49106 2006-09-22 Robert Millan <rmh@aybabtu.com>
49108 Sync with i386 version.
49109 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
49110 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
49112 2006-09-21 Robert Millan <rmh@aybabtu.com>
49114 Import from GRUB Legacy (lib/device.c):
49115 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
49116 (init_device_map) [__linux__]: Add support for I2O devices.
49118 2006-09-14 Marco Gerards <marco@gnu.org>
49120 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
49123 2006-09-14 Robert Millan <rmh@aybabtu.com>
49125 * util/i386/pc/grub-install.in: Skip menu.lst when removing
49128 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
49130 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
49131 before adding it to device.map.
49133 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
49135 * genmk.rb: Let GCC generate dependencies the first time it
49136 compiles a file; using the -MD option.
49137 * conf/common.mk: Regenerate.
49138 * conf/i386-pc.mk: Likewise.
49139 * conf/i386-efi.mk: Likewise.
49140 * conf/powerpc-ieee1275.mk: Likewise.
49141 * conf/sparc64-ieee1275.mk: Likewise.
49143 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
49145 Move the prototypes of grub_setjmp and grub_longjmp to
49146 cpu/setjmp.h, so that each architecture may specify different
49149 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
49150 (grub_longjmp): Likewise.
49151 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
49152 (grub_longjmp): Likewise.
49153 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
49154 (grub_longjmp): Likewise.
49156 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
49157 [!GRUB_UTIL] (grub_longjmp): Removed.
49159 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
49161 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
49162 "color!" method does not return any value.
49164 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49166 * include/grub/bitmap.h: New file.
49168 * include/grub/i386/pc/vbeutil.h: Likewise.
49170 * video/bitmap.c: Likewise.
49172 * video/readers/tga.c: Likewise.
49174 * video/i386/pc/vbeutil.c: Likewise.
49176 * commands/videotest.c: Code cleanup and updated to reflect to new
49179 * term/gfxterm.c: Likewise.
49181 * video/video.c: Likewise.
49183 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49184 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49185 (bitmap_mod_SOURCES): New entry.
49186 (bitmap_mod_CFLAGS): Likewise.
49187 (bitmap_mod_LDFLAGS): Likewise.
49188 (tga_mod_SOURCES): Likewise.
49189 (tga_mod_CFLAGS): Likewise.
49190 (tga_mod_LDFLAGS): Likewise.
49192 * include/grub/video.h (grub_video_blit_operators): New enum type.
49193 (grub_video_render_target): Changed as forward declaration and moved
49194 actual definition to be video driver specific.
49195 (grub_video_adapter.blit_bitmap): Added blitting operator.
49196 (grub_video_adapter.blit_render_target): Likewise.
49197 (grub_video_blit_bitmap): Likewise.
49198 (grub_video_blit_render_target): Likewise.
49200 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49201 driver specific render target definition.
49202 (grub_video_vbe_map_rgba): Added driver internal helper.
49203 (grub_video_vbe_unmap_color): Updated to use
49204 grub_video_i386_vbeblit_info.
49205 (grub_video_vbe_get_video_ptr): Likewise.
49207 * include/grub/i386/pc/vbeblit.h
49208 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49209 grub_video_i386_vbeblit_info.
49210 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49211 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49212 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49213 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49214 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49215 (grub_video_i386_vbeblit_index_index): Likewise.
49216 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49217 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49218 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49219 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49221 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49224 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49225 include/grub/i386/pc/vbeblit.h.
49227 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49228 Updated to use grub_video_i386_vbeblit_info.
49229 (grub_video_i386_vbefill_R8G8B8): Likewise.
49230 (grub_video_i386_vbefill_index): Likewise.
49231 (grub_video_i386_vbefill): Added generic filler.
49233 * video/i386/pc/vbefill.c: Updated to reflect changes on
49234 include/grub/i386/pc/vbefill.h.
49236 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49237 grub_video_i386_vbeblit_info.
49238 (grub_video_vbe_unmap_color): Likewise.
49239 (grub_video_vbe_blit_glyph): Likewise.
49240 (grub_video_vbe_scroll): Likewise.
49241 (grub_video_vbe_draw_pixel): Removed function.
49242 (grub_video_vbe_get_pixel): Likewise.
49243 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49244 updated code to use it.
49245 (common_blitter): Added common blitter for render target and bitmap.
49246 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49247 (grub_video_vbe_blit_render_target): Likewise.
49249 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49251 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49252 is in text mode if there is no console control protocol instance
49255 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49257 * include/grub/video.h: Code cleanup.
49259 * include/grub/i386/pc/vbe.h: Likewise.
49261 * video/i386/pc/vbe.c: Likewise.
49263 * video/i386/pc/vbeblit.c: Likewise.
49265 * video/i386/pc/vbefill.c: Likewise.
49267 * video/video.c: Likewise. Also added more comments.
49269 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49271 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49272 (struct grub_biosdisk_dap): Likewise.
49274 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49275 linkage settings for all functions.
49277 2006-07-12 Marco Gerards <marco@gnu.org>
49279 * configure.ac (--enable-mm-debug): Fix typo.
49281 * genkernsyms.sh.in: Use proper quoting for `CC'.
49283 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49285 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49286 (normal_mod_ASFLAGS): Remove "-m32".
49288 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49290 * util/misc.c: Include config.h.
49291 [!HAVE_MEMALIGN]: Do not include malloc.h.
49292 (grub_memalign): Use posix_memalign, if present. Then, use
49293 memalign, if present. Otherwise, emit an error.
49295 * util/grub-emu.c: Do not include malloc.h.
49297 * include/grub/util/misc.h: Include unistd.h. This is required for
49298 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49299 D. Eades III <hde@foobar-qux.org>.
49301 * configure.ac (AC_GNU_SOURCE): Added.
49302 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49305 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49307 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49308 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49310 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49312 * include/grub/types.h (grub_host_addr_t): Rename to
49313 grub_target_addr_t.
49314 (grub_host_off_t): Rename to grub_target_off_t.
49315 (grub_host_size_t): Rename to grub_target_size_t.
49316 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49317 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49319 * include/grub/kernel.h (struct grub_module_header): Change type
49320 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49321 (grub_module_info): Likewise.
49323 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49325 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49326 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49327 Velazquez <jesus.velazquez@gmail.com>.
49329 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49331 Count partitions from 1 instead of 0 in the string representation
49332 of partitions. Still use 0-based internally.
49334 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49335 (sun_partition_map_iterate): Use grub_partition_t instead of
49336 struct grub_partition *. Cast DESC->START_CYLINDER to
49337 grub_uint64_t after converting the endian.
49338 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49339 (sun_partition_map_get_name): Add 1 to P->INDEX.
49341 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49343 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49345 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49346 zero instead of one.
49347 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49348 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49350 * partmap/apple.c (apple_partition_map_iterate): Change the type
49351 of POS to unsigned.
49352 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49353 (apple_partition_map_get_name): Add 1 into P->INDEX.
49355 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49356 of POS to unsigned.
49357 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49358 calculate the offset of a partition.
49359 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49360 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49362 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49363 SECTOR to grub_disk_addr_t.
49364 (acorn_partition_map_iterate): Likewise.
49365 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49366 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49368 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49370 * kern/i386/pc/init.c (make_install_device): Add 1 into
49371 GRUB_INSTALL_DOS_PART.
49373 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49376 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49378 Clean up the code to support 64-bit addressing in disks and
49379 files. This change is not enough for filesystems yet.
49381 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49382 type of "start" to grub_uint64_t.
49383 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49384 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49385 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49388 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49389 to grub_disk_addr_t.
49391 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49394 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49396 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49399 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49401 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49403 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49405 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49406 to grub_off_t, to detect an error from grub_file_seek.
49407 (grub_multiboot_load_elf32): Likewise.
49409 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49410 maximum unsigned long value when an overflow is detected.
49411 (grub_strtoull): New function.
49412 (grub_divmod64): Likewise.
49413 (grub_lltoa): use grub_divmod64.
49415 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49417 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49418 the pointer to next character. Use grub_strtoull instead of
49420 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49421 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49424 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49425 return value is signed.
49426 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49427 test if OFFSET is less than zero, as OFFSET is unsigned now.
49429 * kern/disk.c (struct grub_disk_cache): Change the type of
49430 "sector" to grub_disk_addr_t.
49431 (grub_disk_cache_get_index): Change the type of SECTOR to
49432 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49433 unsigned after shifting.
49434 (grub_disk_cache_invalidate): Change the type of SECTOR to
49436 (grub_disk_cache_unlock): Likewise.
49437 (grub_disk_cache_store): Likewise.
49438 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49439 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49440 grub_disk_addr_t and grub_uint64_t, respectively.
49441 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49442 body, as the value of OFFSET is tweaked by
49443 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49444 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49446 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49447 body, as the value of OFFSET is tweaked by
49448 grub_disk_check_range. Change the types of LEN and N to
49451 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49452 and "saved_offset" to grub_off_t.
49453 (test_header): Cast BUF to char *.
49454 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49456 (grub_gzio_read): Change the types of OFFSET and SIZE to
49457 grub_off_t and grub_size_t, respectively.
49459 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49461 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49462 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49463 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49464 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49465 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49467 * include/grub/types.h (grub_off_t): Unconditionally set to
49469 (grub_disk_addr_t): Changed to grub_uint64_t.
49471 * include/grub/partition.h (struct grub_partition): Change the
49472 types of "start", "len" and "offset" to grub_disk_addr_t,
49473 grub_uint64_t and grub_disk_addr_t, respectively.
49474 (grub_partition_get_start): Return grub_disk_addr_t.
49475 (grub_partition_get_len): Return grub_uint64_t.
49477 * include/grub/misc.h (grub_strtoull): New prototype.
49478 (grub_divmod64): Likewise.
49480 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49481 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49482 grub_off_t, respectively.
49483 All callers and references changed.
49485 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49486 grub_size_t in "read".
49487 All callers and references changed.
49489 * include/grub/file.h (struct grub_file): Change the types of
49490 "offset" and "size" to grub_off_t and grub_off_t,
49491 respectively. Change the type of SECTOR to grub_disk_addr_t in
49493 (grub_file_read): Change the type of LEN to grub_size_t.
49494 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49496 (grub_file_size): Return grub_off_t.
49497 (grub_file_tell): Likewise.
49498 All callers and references changed.
49500 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49501 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49503 (struct grub_disk): Change the type of "total_sectors" to
49504 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49506 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49507 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49508 (grub_disk_write): Likewise.
49509 All callers and references changed.
49511 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49512 char * for grub_strncmp to silence gcc.
49513 (grub_iso9660_mount): Likewise.
49514 (grub_iso9660_mount): Likewise.
49515 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49517 (grub_iso9660_iterate_dir): Likewise.
49518 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49520 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49521 LEN to grub_disk_addr_t and grub_size_t, respectively.
49523 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49525 * fs/jfs.c (grub_jfs_read_file): Likewise.
49527 * fs/minix.c (grub_jfs_read_file): Likewise.
49529 * fs/sfs.c (grub_jfs_read_file): Likewise.
49531 * fs/ufs.c (grub_jfs_read_file): Likewise.
49533 * fs/xfs.c (grub_jfs_read_file): Likewise.
49535 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49536 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49539 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49540 BLKNR to -1 instead of returning GRUB_ERRNO.
49541 (grub_ext2_read_file): Change the types of SECTOR and
49542 LEN to grub_disk_addr_t and grub_size_t, respectively.
49544 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49545 LEN to grub_disk_addr_t and grub_size_t, respectively.
49547 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49550 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49551 string. Do not cast SECTOR explicitly.
49553 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49554 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49555 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49556 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49557 over 2TB and LBA mode is not supported, raise an error.
49558 (get_safe_sectors): New function.
49559 (grub_biosdisk_read): Use get_safe_sectors.
49560 (grub_biosdisk_write): Likewise.
49562 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49563 (grub_efidisk_write): Likewise.
49565 * disk/loopback.c (delete_loopback): Cosmetic changes.
49566 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49568 (grub_loopback_open): Likewise.
49569 (grub_loopback_read): Likewise. Also, change the type of POS to
49570 grub_off_t, and fix the usage of grub_memset.
49572 * commands/i386/pc/play.c: Include grub/machine/time.h.
49574 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49577 * commands/configfile.c: Include grub/env.h.
49579 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49580 GRUB_ERRNO directly instead. Change the type of POS to
49581 grub_off_t. Follow the coding standard.
49583 * commands/blocklist.c: Include grub/partition.h.
49584 (grub_cmd_blocklist): Return an error if the underlying device is
49585 not a disk. Take the starting sector of a partition into account,
49586 if a partition is used.
49588 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49590 (lba_mode): Support 64-bit addresses.
49591 (chs_mode): Likewise.
49592 (copy_buffer): Adapted to the new offsets of a length field and a
49594 (blocklist_default_start): Allocate 64-bit space.
49596 * boot/i386/pc/boot.S (force_lba): Removed.
49597 (boot_drive): Moved to under KERNEL_SECTOR.
49598 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49600 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49602 (lba_mode): Refactored to support a 64-bit address. More size
49604 (setup_sectors): Likewise.
49606 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49608 * DISTLIST: Added include/grub/i386/linux.h. Removed
49609 include/grub/i386/pc/linux.h
49611 * configure.ac (AC_INIT): Bumped to 1.94.
49613 * config.guess: Updated from gnulib.
49614 * config.sub: Likewise.
49615 * install-sh: Likewise.
49616 * mkinstalldirs: Likewise.
49618 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49620 * conf/common.rmk (grub_modules_init.lst): Depended on
49621 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49624 * genmk.rb (PModule::rule): Reverted the previous change.
49626 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49628 * conf/common.rmk (grub_modules_init.lst): Depends on
49629 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49630 that the target does not exist before producing.
49631 (grub_modules_init.h): Remove the target before generating.
49632 (grub_emu_init.c): Likewise.
49634 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49636 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49638 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49639 for the target-specific tests. Make sure that we also have the
49640 up-to-date target variables for those tests.
49642 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49644 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49645 (PModule::rule): Likewise.
49647 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49649 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49650 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49651 target-specific flags should be prefixed.
49652 (PModule::rule): Likewise.
49654 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49656 * configure.ac (CMP): Check if cmp is available explicitly.
49658 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49660 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49661 (target_cpu): New variable.
49662 (pkglibdir): Use target_cpu instead of host_cpu.
49664 * util/i386/pc/grub-install.in (host_cpu): Removed.
49665 (target_cpu): New variable.
49666 (pkglibdir): Use target_cpu instead of host_cpu.
49668 * util/genmoddep.c: Removed.
49670 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49671 instead of GRUB_HOST_SIZEOF_VOID_P.
49672 * kern/dl.c: Likewise.
49674 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49676 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49677 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49678 (GRUB_TARGET_SIZEOF_LONG): ... this.
49679 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49680 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49681 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49683 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49684 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49685 (GRUB_TARGET_SIZEOF_LONG): ... this.
49686 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49687 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49688 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49690 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49691 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49692 (GRUB_TARGET_SIZEOF_LONG): ... this.
49693 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49694 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49696 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49697 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49698 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49699 instead of GRUB_HOST_SIZEOF_LONG.
49700 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49701 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49702 GRUB_CPU_WORDS_BIGENDIAN.
49703 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49704 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49707 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49708 (genmoddep_SOURCES): Likewise.
49709 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49710 (genmoddep_SOURCES): Likewise.
49711 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49712 (genmoddep_SOURCES): Likewise.
49713 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49715 (genmoddep_SOURCES): Likewise.
49717 * genmoddep.awk: New file.
49719 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49720 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49721 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49722 (PModule::rule): Likewise.
49723 (Program::rule): Likewise.
49724 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49725 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49728 * configure.ac: Rewritten intensively to use host and target
49729 instead of build and host, respectively.
49731 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49732 (host_cpu): Removed.
49733 (target_cpu): New variable.
49734 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49735 (BUILD_CC): Removed.
49736 (BUILD_CFLAGS): Likewise.
49737 (BUILD_CPPFLAGS): Likewise.
49738 (TARGET_CC): New variable.
49739 (TARGET_CFLAGS): Likewise.
49740 (TARGET_CPPFLAGS): Likewise.
49741 (TARGET_LDFLAGS): Likewise.
49743 (include): Use target_cpu instead of host_cpu.
49744 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49746 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49748 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49750 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49751 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49752 field 'false' to 'exec_on_false'.
49753 (grub_script_create_cmdif): Renamed argument names to reflect above
49756 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49758 * normal/script.c (grub_script_create_cmdif): Likewise.
49760 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49762 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49764 (grub_hfsplus_btree_recptr): Likewise.
49765 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49766 FILEBLOCK both to pass a block number and store next block
49768 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49769 overflow file correctly. Specify errors appropriately, because
49770 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49771 grub_hfsplus_btree_recptr to get the pointer to a found key.
49772 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49775 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49777 (_linux_mod_SOURCES): New variable.
49778 (_linux_mod_CFLAGS): Likewise.
49779 (_linux_mod_LDFLAGS): Likewise.
49780 (linux_mod_SOURCES): Likewise.
49781 (linux_mod_CFLAGS): Likewise.
49782 (linux_mod_LDFLAGS): Likewise.
49784 * DISTLIST: Added loader/i386/efi/linux.c,
49785 loader/i386/efi/linux_normal.c and
49786 include/grub/i386/efi/loader.h.
49788 * loader/i386/efi/linux.c: New file.
49789 * loader/i386/efi/linux_normal.c: Likewise.
49790 * include/grub/i386/efi/loader.h: Likewise.
49792 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49794 * commands/blocklist.c: New file.
49796 * DISTLIST: Added commands/blocklist.c.
49798 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49799 color for the background, and a darker color for the foreground.
49800 (grub_console_checkkey): Return READ_KEY.
49801 (grub_console_cls): Set the background to
49802 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49804 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49806 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49807 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49809 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49812 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49813 BG. The spec is wrong again.
49815 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49817 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49819 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49820 commands/blocklist.c.
49821 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49823 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49824 (blocklist_mod_SOURCES): New variable.
49825 (blocklist_mod_CFLAGS): Likewise.
49826 (blocklist_mod_LDFLAGS): Likewise.
49828 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49830 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49832 (lba_mode): Use %eax more intensively to reduce the code size.
49834 2006-05-20 Marco Gerards <marco@gnu.org>
49836 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49838 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49840 (script): Accept leading newlines.
49841 (newlines): New rule to describe 0 or more newlines.
49842 (commands): Accept `command' with trailing newline. Fixed the
49843 order in which arguments were passed to `grub_script_add_cmd'.
49844 Accept commands separated by newlines.
49845 (function): Changed to accept newlines.
49846 (menuentry) Rewritten.
49848 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49849 front of the list, instead of to the end.
49851 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49853 * util/i386/pc/grub-install.in (bindir): New variable.
49854 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49855 Shaver <lbgwjl@gmail.com>.
49857 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49859 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49860 grub/machine/linux.h
49861 * loader/i386/pc/linux.c: Likewise.
49863 * include/grub/i386/pc/linux.h: Moved to ...
49864 * include/grub/i386/linux.h: ... here.
49866 * include/grub/i386/linux.h (struct linux_kernel_params): New
49869 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49871 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49873 (grub_video_vbe_blit_glyph): Likewise.
49874 (grub_video_vbe_blit_bitmap): Likewise.
49875 (grub_video_vbe_blit_render_target): Likewise.
49877 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49879 * configure.ac (--with-platform): Properly quote the square
49882 2006-05-08 Marco Gerards <marco@gnu.org>
49884 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49886 (kernel_elf_HEADERS): ...to this. Updated all users.
49887 (grubof_symlist.c): Renamed from this...
49888 (kernel_elf_symlist.c): ...to this. Updated all users.
49889 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49890 (grubof_SOURCES): Renamed from this...
49891 (kernel_elf_SOURCES): ...to this.
49892 (grubof_HEADERS): Renamed from this...
49893 (kernel_elf_HEADERS): ...to this.
49894 (grubof_CFLAGS): Renamed from this...
49895 (kernel_elf_CFLAGS): ...to this.
49896 (grubof_ASFLAGS): Renamed from this...
49897 (kernel_elf_ASFLAGS): ...to this.
49898 (grubof_LDFLAGS): Renamed from this...
49899 (kernel_elf_LDFLAGS): ...to this.
49901 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49903 (kernel_elf_HEADERS): ...to this. Updated all users.
49904 (grubof_symlist.c): Renamed from this...
49905 (kernel_elf_symlist.c): ...to this. Updated all users.
49906 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49907 (grubof_SOURCES): Renamed from this...
49908 (kernel_elf_SOURCES): ...to this.
49909 (grubof_HEADERS): Renamed from this...
49910 (kernel_elf_HEADERS): ...to this.
49911 (grubof_CFLAGS): Renamed from this...
49912 (kernel_elf_CFLAGS): ...to this.
49913 (grubof_ASFLAGS): Renamed from this...
49914 (kernel_elf_ASFLAGS): ...to this.
49915 (grubof_LDFLAGS): Renamed from this...
49916 (kernel_elf_LDFLAGS): ...to this.
49918 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49919 `kernel.elf' instead of `grubof'.
49921 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49923 Add --with-platform to configure. Use pkglibdir instead of
49924 pkgdatadir. This is reported by Roger Leigh.
49926 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49927 (host_vendor): Likewise.
49928 (host_os): Likewise.
49929 (pkgdatadir): Likewise.
49930 (platform): New variable.
49931 (pkglibdir): Likewise.
49932 Use PKGLIBDIR instead of PKGDATADIR.
49934 * util/i386/pc/grub-install.in (datadir): Removed.
49935 (host_vendor): Likewise.
49936 (host_os): Likewise.
49937 (pkgdatadir): Likewise.
49938 (platform): New variable.
49939 (pkglibdir): Likewise.
49940 Use PKGLIBDIR instead of PKGDATADIR.
49942 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49943 instead of GRUB_DATADIR.
49945 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49947 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49950 * configure.ac (--with-platform): New option.
49951 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49953 * Makefile.in: Include a makefile based on PLATFORM instead of
49955 (pkgdatadir): Not appended by the machine type.
49956 (pkglibdir): Appended by the machine type.
49957 (host_vendor): Removed.
49958 (platform): New variable.
49959 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49960 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49961 (uninstall): Likewise.
49963 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49965 Use the environment context in the menu. Remove the commands
49966 "default" and "timeout", and use variables instead.
49968 * normal/menu.c: Include grub/env.h.
49969 (print_entry): Cast TITLE to silence gcc.
49970 (get_timeout): New function.
49971 (set_timeout): Likewise.
49972 (get_entry_number): Likewise.
49973 (run_menu): Use a default entry, a fallback entry and a timeout
49974 in the environment variables "default", "fallback" and
49975 "timeout". Also, tweak the default entry if it is not within the
49976 current menu entries.
49977 (grub_menu_run): Use a fallback entry in the environment variable
49980 * normal/main.c (read_config_file): Do not initialize
49981 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49983 (grub_normal_execute): Use a data slot to store the menu.
49985 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49986 fallback_entry and timeout.
49987 (struct grub_menu_list): Removed.
49988 (grub_menu_list_t): Likewise.
49989 (struct grub_context): Likewise.
49990 (grub_context_t): Likewise.
49991 (grub_context_get): Likewise.
49992 (grub_context_get_current_menu): Likewise.
49993 (grub_context_push_menu): Likewise.
49994 (grub_context_pop_menu): Likewise.
49995 (grub_default_init): Likewise.
49996 (grub_default_fini): Likewise.
49997 (grub_timeout_init): Likewise.
49998 (grub_timeout_fini): Likewise.
50000 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
50002 (normal_mod_SOURCES): Removed normal/context.c.
50004 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
50005 commands/default.c, commands/timeout.c and normal/context.c.
50006 (normal_mod_SOURCES): Removed normal/context.c.
50008 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
50009 commands/timeout.c and normal/context.c.
50010 (normal_mod_SOURCES): Removed normal/context.c.
50012 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
50013 commands/default.c, commands/timeout.c and normal/context.c.
50014 (normal_mod_SOURCES): Removed normal/context.c.
50016 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
50018 (default_mod_SOURCES): Removed.
50019 (default_mod_CFLAGS): Likewise.
50020 (default_mod_LDFLAGS): Likewise.
50021 (timeout_mod_SOURCES): Removed.
50022 (timeout_mod_CFLAGS): Likewise.
50023 (timeout_mod_LDFLAGS): Likewise.
50025 * DISTLIST: Removed commands/default.c, commands/timeout.c and
50028 * commands/default.c: Removed.
50029 * commands/timeout.c: Likewise.
50030 * normal/context.c: Likewise.
50032 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
50034 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
50036 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
50038 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
50039 "next" to "prev" for readability.
50040 (struct grub_env_sorted_var): New struct.
50041 (grub_env_context): Renamed to ...
50042 (initial_context): ... this.
50043 (grub_env_var_context): Renamed to ...
50044 (current_context): ... this.
50045 (grub_env_find): Look only at CURRENT_CONTEXT.
50046 (grub_env_context_open): Rewritten to copy exported variables from
50048 (grub_env_context_close): Rewritten according to the new
50049 scheme. Also, add an assertion to prevent the initial context from
50051 (grub_env_insert): Removed the code for the sorted list.
50052 (grub_env_remove): Likewise.
50053 (grub_env_export): Simply mark the variable with
50054 GRUB_ENV_VAR_GLOBAL.
50055 (grub_env_set): A cosmetic change for naming consistency.
50056 (grub_env_get): Likewise.
50057 (grub_env_unset): Likewise.
50058 (grub_env_iterate): Rewritten to sort variables within this
50060 (grub_register_variable_hook): Fixed for naming consistency. Call
50061 grub_env_find again, only if NAME is not found at the first time.
50062 (mangle_data_slot_name): New function.
50063 (grub_env_set_data_slot): Likewise.
50064 (grub_env_get_data_slot): Likewise.
50065 (grub_env_unset_data_slot): Likewise.
50067 * include/grub/env.h (grub_env_var_type): New enum.
50068 (GRUB_ENV_VAR_LOCAL): New constant.
50069 (GRUB_ENV_VAR_GLOBAL): Likewise.
50070 (GRUB_ENV_VAR_DATA): Likewise.
50071 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
50073 (grub_env_set): Replace VAR with NAME for consistency.
50074 (grub_register_variable_hook): Likewise.
50075 (grub_env_export): Specify the name of the argument.
50076 (grub_env_set_data_slot): New prototype.
50077 (grub_env_get_data_slot): Likewise.
50078 (grub_env_unset_data_slot): Likewise.
50080 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50082 Extend the loader so that GRUB can accept a loader which comes
50083 back to GRUB when a loaded image exits. Also, this change adds
50084 support for a chainloader on EFI.
50086 * term/efi/console.c: Include grub/misc.h.
50087 (grub_console_checkkey): Display a scan code on the top for
50088 debugging. This will be removed once the EFI port gets stable.
50089 Correct the scan code mapping.
50091 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
50092 allocate memory from larger regions, in order to reduce the number
50093 of allocated regions. Otherwise, the MacOSX loader panics.
50094 (filter_memory_map): Avoid less than 1MB for compatibility with
50096 (add_memory_regions): Allocate from the tail of a region, if
50097 possible, to avoid allocating a region near to 1MB, for the MacOSX
50100 * kern/efi/init.c (grub_efi_set_prefix): Specify
50101 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
50103 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
50104 argument IMAGE_HANDLE and specify it to get a loaded image.
50105 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
50106 grub_efi_get_loaded_image.
50107 (grub_efi_get_filename): Divide the length by the size of
50109 (grub_efi_get_device_path): New function.
50110 (grub_efi_print_device_path): Print End Device Path nodes. Divide
50111 the length by the size of grub_efi_char16_t for a file path device
50114 * kern/loader.c (grub_loader_noreturn): New variable.
50115 (grub_loader_set): Accept a new argument NORETURN. Set
50116 GRUB_LOADER_NORETURN to NORETURN.
50117 All callers changed.
50118 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
50121 * include/grub/efi/efi.h (grub_efi_get_device_path): New
50123 (grub_efi_get_loaded_image): Take an argument to specify an image
50126 * include/grub/loader.h (grub_loader_set): Added one more argument
50129 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
50130 instead of grub_efi_open_protocol.
50131 (grub_efidisk_get_device_name): Likewise.
50132 (grub_efidisk_close): Print a newline.
50133 (grub_efidisk_get_device_handle): Fixed to use
50134 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
50135 GRUB_EFI_DEVICE_PATH_TYPE.
50137 * disk/efi/efidisk.c (device_path_guid): Moved to ...
50138 * kern/efi/efi.c (device_path_guid): ... here.
50140 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
50142 (kernel_mod_HEADERS): Added efi/disk.h.
50143 (_chain_mod_SOURCES): New variable.
50144 (_chain_mod_CFLAGS): Likewise.
50145 (_chain_mod_LDFLAGS): Likewise.
50146 (chain_mod_SOURCES): Likewise.
50147 (chain_mod_CFLAGS): Likewise.
50148 (chain_mod_LDFLAGS): Likewise.
50150 * DISTLIST: Added include/grub/efi/chainloader.h,
50151 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
50153 * include/grub/efi/chainloader.h: New file.
50154 * loader/efi/chainloader.c: Likewise.
50155 * loader/efi/chainloader_normal.c: Likewise.
50157 2006-04-30 Marco Gerards <marco@gnu.org>
50159 * commands/configfile.c (grub_cmd_source): New function.
50160 (GRUB_MOD_INIT): Register the commands `source' and `.'.
50161 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
50163 2006-04-30 Marco Gerards <marco@gnu.org>
50165 * normal/execute.c (grub_script_execute_cmd): Change the return
50166 type to `grub_err_t'. Correctly return the error.
50167 (grub_script_execute_cmdline): In case a command line is not a
50168 command or a function, try to interpret it as an assignment.
50170 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50172 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50173 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50174 skip a node whose name is obviously invalid as UTF-16,
50175 i.e. contains a NUL character. Stop the iteration when the last
50176 directory entry is found. Instead of using the return value of
50177 grub_hfsplus_btree_iterate_node, store the value in RET and use
50178 it, because the iterator can be stopped by the last directory
50181 2006-04-30 Marco Gerards <marco@gnu.org>
50183 * include/grub/env.h (grub_env_export): New prototype. Reported
50184 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50186 2006-04-30 Marco Gerards <marco@gnu.org>
50188 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50189 size of the extents in a catalog file record.
50191 2006-04-29 Marco Gerards <marco@gnu.org>
50193 * commands/configfile.c (grub_cmd_configfile): Execute the
50194 configfile within its own context.
50196 * include/grub/env.h (grub_env_context_open): New prototype.
50197 (grub_env_context_close): Likewise.
50199 * kern/env.c (grub_env): Removed.
50200 (grub_env_sorted): Likewise.
50201 (grub_env_context): New variable.
50202 (grub_env_var_context): Likewise.
50203 (grub_env_find): Search both the active context and the global
50205 (grub_env_context_open): New function.
50206 (grub_env_context_close): Likewise.
50207 (grub_env_insert): Likewise.
50208 (grub_env_remove): Likewise.
50209 (grub_env_export): Likewise.
50210 (grub_env_set): Changed to use helper functions to avoid code
50212 (grub_env_iterate): Rewritten so both the current context and the
50213 global context are being used.
50215 * normal/command.c (export_command): New function.
50216 (grub_command_init): Register the `export' function.
50218 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50220 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50221 explicitly to suppress gcc's warnings.
50222 * fs/fat.c (grub_fat_find_dir): Likewise.
50223 (grub_fat_label): Likewise.
50224 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50225 (grub_xfs_mount): Likewise.
50226 (grub_xfs_label): Likewise.
50227 * fs/affs.c (grub_affs_mount): Likewise.
50228 (grub_affs_label): Likewise.
50229 (grub_affs_iterate_dir): Likewise.
50230 * fs/sfs.c (grub_sfs_mount): Likewise.
50231 (grub_sfs_iterate_dir): Likewise.
50232 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50233 * fs/hfs.c (grub_hfs_mount): Likewise.
50234 (grub_hfs_cmp_catkeys): Likewise.
50235 (grub_hfs_find_dir): Likewise.
50236 (grub_hfs_dir): Likewise.
50237 (grub_hfs_label): Likewise.
50238 * fs/jfs.c (grub_jfs_mount): Likewise.
50239 (grub_jfs_opendir): Likewise.
50240 (grub_jfs_getent): Likewise.
50241 (grub_jfs_lookup_symlink): Likewise.
50242 (grub_jfs_label): Likewise.
50243 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50244 (grub_hfsplus_iterate_dir): Likewise.
50245 (grub_hfsplus_btree_iterate_node): Made static.
50247 * util/grub-emu.c (prefix): New variable.
50248 (grub_machine_set_prefix): New function.
50249 (main): Do not set the environment variable "prefix" here. Only
50250 set PREFIX, which is used later by grub_machine_set_prefix.
50252 * include/grub/video.h: Do not include grub/symbol.h.
50253 (grub_video_register): Not exported. This symbol is not defined in
50255 (grub_video_unregister): Likewise.
50256 (grub_video_iterate): Likewise.
50257 (grub_video_setup): Likewise.
50258 (grub_video_restore): Likewise.
50259 (grub_video_get_info): Likewise.
50260 (grub_video_get_blit_format): Likewise.
50261 (grub_video_set_palette): Likewise.
50262 (grub_video_get_palette): Likewise.
50263 (grub_video_set_viewport): Likewise.
50264 (grub_video_get_viewport): Likewise.
50265 (grub_video_map_color): Likewise.
50266 (grub_video_map_rgb): Likewise.
50267 (grub_video_map_rgba): Likewise.
50268 (grub_video_fill_rect): Likewise.
50269 (grub_video_blit_glyph): Likewise.
50270 (grub_video_blit_bitmap): Likewise.
50271 (grub_video_blit_render_target): Likewise.
50272 (grub_video_scroll): Likewise.
50273 (grub_video_swap_buffers): Likewise.
50274 (grub_video_create_render_target): Likewise.
50275 (grub_video_delete_render_target): Likewise.
50276 (grub_video_set_active_render_target): Likewise.
50278 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50280 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50282 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50283 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50284 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50285 instead of $(srcdir)/genkernsyms.sh.
50287 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50288 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50289 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50290 instead of $(srcdir)/genkernsyms.sh.
50292 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50293 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50294 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50295 instead of $(srcdir)/genkernsyms.sh.
50297 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50298 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50299 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50300 instead of $(srcdir)/genkernsyms.sh.
50302 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50305 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50307 (gensymlist.sh): New target.
50308 (genkernsyms.sh): Likewise.
50310 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50311 genkernsyms.sh.in and gensymlist.sh.in.
50313 * genkernsyms.sh: Removed.
50314 * gensymlist.sh: Likewise.
50316 * genkernsyms.sh.in: New file.
50317 * gensymlist.sh.in: Likewise.
50319 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50321 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50322 clobber "prefix", since we may have already set it manually.
50324 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50326 * kern/misc.c (abort): New alias for grub_abort.
50328 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50330 A new machine-specific function "grub_machine_set_prefix" is
50331 defined. This is called after loading modules, so that a prefix
50332 initialization can use modules. Also, this change adds an
50333 intensive debugging feature for the memory manager via the
50334 configure option "--enable-mm-debug".
50336 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50339 * kern/sparc64/ieee1275/init.c (abort): Removed.
50340 (grub_stop): Likewise.
50341 (grub_exit): New function.
50342 (grub_set_prefix): Renamed to ...
50343 (grub_machine_set_prefix): ... this.
50344 (grub_machine_init): Do not call grub_set_prefix.
50346 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50347 (grub_machine_set_prefix): ... this.
50348 (grub_machine_init): Do not call grub_set_prefix.
50350 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50351 (grub_machine_init): Do not set the prefix here.
50353 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50355 * kern/efi/init.c: Include grub/mm.h.
50356 (grub_efi_set_prefix): New function.
50358 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50359 (grub_efi_get_filename): New function.
50360 (grub_print_device_path): Renamed to ...
50361 (grub_efi_print_device_path): ... this.
50363 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50364 [MM_DEBUG] (grub_realloc): Likewise.
50365 [MM_DEBUG] (grub_free): Likewise.
50366 [MM_DEBUG] (grub_memalign): Likewise.
50367 [MM_DEBUG] (grub_mm_debug): New variable.
50368 [MM_DEBUG] (grub_debug_malloc): New function.
50369 [MM_DEBUG] (grub_debug_free): New function.
50370 [MM_DEBUG] (grub_debug_realloc): New function.
50371 [MM_DEBUG] (grub_debug_memalign): New function.
50373 * kern/misc.c (grub_abort): Print a newline to distinguish
50376 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50377 grub_set_root_dev after loading modules. This is necessary when
50378 setting a prefix depends on modules.
50380 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50381 (grub_efi_print_device_path): ... this.
50382 (grub_efi_get_filename): New prototype.
50383 (grub_efi_set_prefix): Likewise.
50385 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50387 (grub_efidisk_get_device_handle): New prototype.
50388 (grub_efidisk_get_device_name): Likewise.
50390 * include/grub/mm.h: Include config.h.
50391 (MM_DEBUG): Removed.
50392 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50393 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50394 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50395 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50396 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50397 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50398 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50399 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50400 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50402 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50404 * disk/efi/efidisk.c: Include grub/partition.h.
50405 (iterate_child_devices): New function.
50406 (add_device): First, compare only last device path nodes, so that
50407 devices are sorted by the types.
50408 (grub_efidisk_get_device_handle): New function.
50409 (grub_efidisk_get_device_name): Likewise.
50411 * configure.ac (--enable-mm-debug): New option to enable the
50412 memory manager debugging feature. This makes the binary much
50413 bigger, so is disabled by default.
50415 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50417 Use grub_abort instead of grub_stop, and grub_exit must be
50418 define in each architecture now. Also, this change adds support
50421 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50422 (grub_getkey): New function.
50423 (grub_term_get_current): Likewise.
50425 * util/i386/pc/grub-setup.c: Include grub/term.h.
50426 (grub_getkey): New function.
50427 (grub_term_get_current): Likewise.
50429 * util/misc.c (grub_stop): Renamed to ...
50430 (grub_exit): ... this.
50432 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50433 (grub_exit): ... this.
50434 (grub_machine_init): Use grub_abort instead of abort.
50435 (grub_stop): Removed.
50437 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50440 * kern/i386/pc/startup.S (grub_exit): New function.
50441 (cold_reboot): New label.
50443 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50444 (grub_efi_init): Call grub_efidisk_init.
50445 (grub_efi_fini): Call grub_efidisk_fini.
50447 * kern/efi/efi.c: Include grub/mm.h.
50448 (grub_efi_console_control_guid): Renamed to ...
50449 (console_control_guid): ... this.
50450 (grub_efi_loaded_image_guid): Renamed to ...
50451 (loaded_image_guid): ... this.
50452 (grub_efi_locate_handle): New function.
50453 (grub_efi_open_protocol): Likewise.
50454 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50455 GRUB_EFI_CONSOLE_CONTROL_GUID.
50456 (grub_efi_exit): Removed.
50457 (grub_stop): Likewise.
50458 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50459 (grub_exit): New function.
50460 (grub_print_device_path): Likewise.
50462 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50463 (grub_enter_rescue_mode): Register "exit".
50465 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50466 (grub_abort): New function.
50468 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50470 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50472 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50474 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50475 (grub_print_device_path): New prototype.
50476 (grub_efi_locate_handle): Likewise.
50477 (grub_efi_open_protocol): Likewise.
50479 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50480 * disk/efi/efidisk.c: Likewise.
50482 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50484 * include/grub/efi/console_control.h
50485 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50487 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50488 last 8 bytes as an array.
50489 (GRUB_EFI_DISK_IO_GUID): New macro.
50490 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50491 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50492 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50494 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50495 (struct grub_efi_device_path): Rename the member "sub_type" to
50497 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50498 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50499 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50500 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50501 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50502 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50503 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50504 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50505 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50506 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50507 (struct grub_efi_pci_device_path): New structure.
50508 (grub_efi_pci_device_path_t): New type.
50509 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50510 (struct grub_efi_pccard_device_path): New structure.
50511 (grub_efi_pccard_device_path_t): New type.
50512 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50513 (struct grub_efi_memory_mapped_device_path): New structure.
50514 (grub_efi_memory_mapped_device_path_t): New type.
50515 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50516 (struct grub_efi_vendor_device_path): New structure.
50517 (grub_efi_vendor_device_path_t): New type.
50518 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50519 (struct grub_efi_controller_device_path): New structure.
50520 (grub_efi_controller_device_path_t): New type.
50521 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50522 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50523 (struct grub_efi_acpi_device_path): New structure.
50524 (grub_efi_acpi_device_path_t): New type.
50525 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50526 (struct grub_efi_expanded_acpi_device_path): New structure.
50527 (grub_efi_expanded_acpi_device_path_t): New type.
50528 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50529 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50530 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50531 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50532 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50533 (struct grub_efi_atapi_device_path): New structure.
50534 (grub_efi_atapi_device_path_t): New type.
50535 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50536 (struct grub_efi_fibre_channel_device_path): New structure.
50537 (grub_efi_fibre_channel_device_path_t): New type.
50538 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50539 (struct grub_efi_1394_device_path): New structure.
50540 (grub_efi_1394_device_path_t): New type.
50541 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50542 (struct grub_efi_usb_device_path): New structure.
50543 (grub_efi_usb_device_path_t): New type.
50544 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50545 (struct grub_efi_usb_class_device_path): New structure.
50546 (grub_efi_usb_class_device_path_t): New type.
50547 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50548 (struct grub_efi_i2o_device_path): New structure.
50549 (grub_efi_i2o_device_path_t): New type.
50550 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50551 (struct grub_efi_mac_address_device_path): New structure.
50552 (grub_efi_mac_address_device_path_t): New type.
50553 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50554 (struct grub_efi_ipv4_device_path): New structure.
50555 (grub_efi_ipv4_device_path_t): New type.
50556 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50557 (struct grub_efi_ipv6_device_path): New structure.
50558 (grub_efi_ipv6_device_path_t): New type.
50559 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50560 (struct grub_efi_infiniband_device_path): New structure.
50561 (grub_efi_infiniband_device_path_t): New type.
50562 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50563 (struct grub_efi_uart_device_path): New structure.
50564 (grub_efi_uart_device_path_t): New type.
50565 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50566 (struct grub_efi_vendor_messaging_device_path): New structure.
50567 (grub_efi_vendor_messaging_device_path_t): New type.
50568 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50569 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50570 (struct grub_efi_hard_drive_device_path): New structure.
50571 (grub_efi_hard_drive_device_path_t): New type.
50572 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50573 (struct grub_efi_cdrom_device_path): New structure.
50574 (grub_efi_cdrom_device_path_t): New type.
50575 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50576 (struct grub_efi_vendor_media_device_path): New structure.
50577 (grub_efi_vendor_media_device_path_t): New type.
50578 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50579 (struct grub_efi_file_path_device_path): New structure.
50580 (grub_efi_file_path_device_path_t): New type.
50581 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50582 (struct grub_efi_protocol_device_path): New structure.
50583 (grub_efi_protocol_device_path_t): New type.
50584 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50585 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50586 (struct grub_efi_bios_device_path): New structure.
50587 (grub_efi_bios_device_path_t): New type.
50588 (struct grub_efi_disk_io): New structure.
50589 (grub_efi_disk_io_t): New type.
50590 (struct grub_efi_block_io_media): New structure.
50591 (grub_efi_block_io_media_t): New type.
50592 (struct grub_efi_block_io): New structure.
50593 (grub_efi_block_io_t): New type.
50595 * include/grub/misc.h (grub_stop): Removed.
50596 (grub_exit): New prototype.
50597 (grub_abort): Likewise.
50599 * include/grub/disk.h (enum grub_disk_dev_id): Added
50600 GRUB_DISK_DEVICE_EFIDISK_ID.
50602 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50603 disk/efi/efidisk.c.
50604 (kernel_syms.lst): Remove the target if an error occurs.
50606 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50608 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50609 as it was simply too buggy.
50611 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50613 * kern/misc.c (grub_lltoa): New function.
50614 (grub_vsprintf): Added support for the long long suffix,
50617 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50619 * Makefile.in (LDFLAGS): Add variable.
50620 (LD): Remove variable.
50621 * configure.ac: Add -m32 to LDFLAGS.
50622 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50623 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50624 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50625 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50626 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50628 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50629 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50630 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50632 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50634 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50635 length for unknown glyph.
50637 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50639 Add support for pre-loaded modules into the EFI port.
50641 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50642 completely. Accept one more argument DIR. The caller has changed.
50644 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50646 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50647 (grub_efi_loaded_image_guid): New variable.
50648 (grub_efi_get_loaded_image): New function.
50649 (grub_arch_modules_addr): Likewise.
50651 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50654 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50655 (struct grub_efi_loaded_image): New structure.
50656 (grub_efi_loaded_image_t): New type.
50658 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50660 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50661 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50662 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50664 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50666 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50668 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50670 * DISTLIST: Added include/grub/efi/console.h,
50671 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50672 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50674 * include/grub/efi/console.h: New file.
50675 * include/grub/efi/time.h: Likewise.
50676 * include/grub/i386/efi/kernel.h: Likewise.
50677 * kern/efi/init.c: Likewise.
50678 * kern/efi/mm.c: Likewise.
50679 * term/efi/console.c: Likewise.
50681 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50682 (grub_stop): Removed.
50683 (grub_get_rtc): Likewise.
50684 (grub_machine_init): Simply call grub_efi_init.
50685 (grub_machine_fini): Call grub_efi_fini.
50687 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50688 (grub_efi_output_string): Removed.
50689 (grub_efi_stall): New function.
50690 (grub_stop): Likewise.
50691 (grub_get_rtc): Likewise.
50693 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50694 (grub_efi_stall): New prototype.
50695 (grub_efi_allocate_pages): Likewise.
50696 (grub_efi_free_pages): Likewise.
50697 (grub_efi_get_memory_map): Likewise.
50698 (grub_efi_mm_init): Likewise.
50699 (grub_efi_mm_fini): Likewise.
50700 (grub_efi_init): Likewise.
50701 (grub_efi_fini): Likewise.
50703 * include/grub/i386/efi/time.h: Do not include
50704 grub/symbol.h. Include grub/efi/time.h.
50705 (GRUB_TICKS_PER_SECOND): Removed.
50706 (grub_get_rtc): Likewise.
50708 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50709 Added padding. The EFI spec is buggy.
50710 (GRUB_EFI_BLACK): New macro.
50711 (GRUB_EFI_BLUE): Likewise.
50712 (GRUB_EFI_GREEN): Likewise.
50713 (GRUB_EFI_CYAN): Likewise.
50714 (GRUB_EFI_RED): Likewise.
50715 (GRUB_EFI_MAGENTA): Likewise.
50716 (GRUB_EFI_BROWN): Likewise.
50717 (GRUB_EFI_LIGHTGRAY): Likewise.
50718 (GRUB_EFI_BRIGHT): Likewise.
50719 (GRUB_EFI_DARKGRAY): Likewise.
50720 (GRUB_EFI_LIGHTBLUE): Likewise.
50721 (GRUB_EFI_LIGHTGREEN): Likewise.
50722 (GRUB_EFI_LIGHTCYAN): Likewise.
50723 (GRUB_EFI_LIGHTRED): Likewise.
50724 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50725 (GRUB_EFI_YELLOW): Likewise.
50726 (GRUB_EFI_WHITE): Likewise.
50727 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50728 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50729 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50730 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50731 (GRUB_EFI_BACKGROUND_RED): Likewise.
50732 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50733 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50734 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50735 (GRUB_EFI_TEXT_ATTR): Likewise.
50737 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50738 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50739 (kernel_mod_HEADERS): Added efi/time.h.
50741 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50743 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50744 include/grub/efi/api.h, include/grub/efi/console_control.h,
50745 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50746 include/grub/i386/efi/time.h, kern/efi/efi.c,
50747 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50748 and util/i386/efi/grub-mkimage.c.
50750 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50752 * genmk.rb (PModule#rule): Do not export symbols if
50753 #{prefix}_EXPORTS is set to "no".
50755 * conf/i386-efi.mk: New file.
50756 * conf/i386-efi.rmk: Likewise.
50757 * include/grub/efi/api.h: Likewise.
50758 * include/grub/efi/console_control.h: Likewise.
50759 * include/grub/efi/efi.h: Likewise.
50760 * include/grub/efi/pe32.h: Likewise.
50761 * include/grub/i386/efi/time.h: Likewise.
50762 * kern/efi/efi.c: Likewise.
50763 * kern/i386/efi/init.c: Likewise.
50764 * kern/i386/efi/startup.S: Likewise.
50765 * util/i386/efi/grub-mkimage.c: Likewise.
50767 2006-04-17 Marco Gerards <marco@gnu.org>
50769 * include/grub/script.h: Include <grub/parser.h> and
50770 "grub_script.tab.h".
50771 (struct grub_lexer_param): New struct.
50772 (struct grub_parser_param): Likewise.
50773 (grub_script_create_arglist): Pass the state in an argument.
50774 (grub_script_add_arglist): Likewise.
50775 (grub_script_create_cmdline): Likewise.
50776 (grub_script_create_cmdblock): Likewise.
50777 (grub_script_create_cmdif): Likewise.
50778 (grub_script_create_cmdmenu): Likewise.
50779 (grub_script_add_cmd): Likewise.
50780 (grub_script_arg_add): Likewise.
50781 (grub_script_lexer_ref): Likewise.
50782 (grub_script_lexer_deref): Likewise.
50783 (grub_script_lexer_record_start): Likewise.
50784 (grub_script_lexer_record_stop): Likewise.
50785 (grub_script_mem_record): Likewise.
50786 (grub_script_mem_record_stop): Likewise.
50787 (grub_script_malloc): Likewise.
50788 (grub_script_yylex): Likewise.
50789 (grub_script_yyparse): Likewise.
50790 (grub_script_yyerror): Likewise.
50791 (grub_script_yylex): Likewise.
50792 (grub_script_lexer_init): Return the state.
50794 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50795 (grub_script_lexer_done): Likewise.
50796 (grub_script_lexer_getline): Likewise.
50797 (grub_script_lexer_refs): Likewise.
50798 (script): Likewise.
50799 (newscript): Likewise.
50800 (record): Likewise.
50801 (recording): Likewise.
50802 (recordpos): Likewise.
50803 (recordlen): Likewise.
50804 (grub_script_lexer_init): Return the state instead of setting
50806 (grub_script_lexer_ref): Use the newly added argument for state
50807 instead of globals.
50808 (grub_script_lexer_deref): Likewise.
50809 (grub_script_lexer_record_start): Likewise.
50810 (grub_script_lexer_record_stop): Likewise.
50811 (recordchar): Likewise.
50812 (nextchar): Likewise.
50813 (grub_script_yylex2): Likewise.
50814 (grub_script_yylex): Likewise.
50815 (grub_script_yyerror): Likewise.
50817 * normal/parser.y (func_mem): Removed variable.
50818 (menu_entry): Likewise.
50820 (%lex-param): New parser option.
50821 (%parse-param): Likewise.
50822 (script): Always return the AST.
50823 (argument): Pass the state around.
50824 (arguments): Likewise.
50825 (grubcmd): Likewise.
50826 (commands): Likewise.
50827 (function): Likewise.
50828 (menuentry): Likewise.
50829 (if_statement): Likewise.
50832 * normal/script.c (grub_script_memused): Removed variable.
50833 (grub_script_parsed): Likewise.
50834 (grub_script_malloc): Added a state argument. Use that instead of
50836 (grub_script_mem_record): Likewise.
50837 (grub_script_mem_record_stop): Likewise.
50838 (grub_script_arg_add): Likewise.
50839 (grub_script_add_arglist): Likewise.
50840 (grub_script_create_cmdline): Likewise.
50841 (grub_script_create_cmdif): Likewise.
50842 (grub_script_create_cmdmenu): Likewise.
50843 (grub_script_add_cmd): Likewise.
50844 (grub_script_parse): Setup the state before calling the parser.
50846 2006-04-16 Marco Gerards <marco@gnu.org>
50848 * normal/command.c (grub_command_init): Remove the title command.
50850 * normal/lexer.c (grub_script_yylex): Renamed from this...
50851 (grub_script_yylex2): ... to this.
50852 (grub_script_yylex): New function. Temporary
50853 introduced to filter some tokens.
50854 (grub_script_yyerror): Print a newline.
50856 * normal/main.c (read_config_file): Output information about the
50857 lines that contain errors. Wait for a key after all lines have
50858 been processed. Don't return an empty menu.
50860 * normal/parser.y (func_mem): Don't initialize.
50861 (menu_entry): Likewise.
50862 (err): New variable.
50863 (script): Don't return anything when an error was encountered.
50864 (ws, returns): Removed rules.
50865 (argument): Disabled concatenated variable support.
50866 (arguments): Remove explicit separators.
50867 (grubcmd): Likewise.
50868 (function): Likewise.
50869 (menuentry): Likewise.
50871 (commands): Likewise. Add error handling.
50873 * normal/script.c (grub_script_create_cmdline): If
50874 `grub_script_parsed' is 0, assume the parser encountered an error.
50876 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50878 * configure.ac: Add support for EFI. Fix the typo
50879 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50881 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50883 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50884 foreign multibyte characters should be shown correctly.
50886 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50888 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50890 (read_config_file): Made it to close file before returning.
50892 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50894 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50895 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50896 video/i386/pc/vbefill.c.
50898 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50899 video/i386/pc/vbefill.c.
50901 * include/grub/video.h (grub_video_blit_format): New enum.
50902 (grub_video_mode_info): Added new member blit_format.
50903 (grub_video_get_blit_format): New function prototype.
50905 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50906 function prototype.
50907 (grub_video_vbe_map_rgb): Likewise.
50908 (grub_video_vbe_unmap_color): Likewise.
50910 * include/grub/i386/pc/vbeblit.h: New file.
50912 * include/grub/i386/pc/vbefill.h: New file.
50914 * video/video.c (grub_video_get_blit_format): New function.
50915 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50916 (grub_video_vbe_map_rgb): Likewise.
50917 (grub_video_vbe_unmap_color): Likewise.
50919 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50921 (grub_video_vbe_blit_render_target): Changed to use more optimized
50923 (grub_video_vbe_setup): Added detection for optimized settings.
50924 (grub_video_vbe_create_render_target): Likewise.
50926 * video/i386/pc/vbeblit.c: New file.
50928 * video/i386/pc/vbefill.c: New file.
50930 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50932 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50935 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50936 parsing to support both hex and dec ranges. If filename was missing
50937 show usage information.
50939 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50941 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50942 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50944 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50945 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50946 (video_mod_SOURCES): Added.
50947 (video_mod_CFLAGS): Likewise.
50948 (video_mod_LDFLAGS): Likewise.
50949 (gfxterm_mod_SOURCES): Likewise.
50950 (gfxterm_mod_CFLAGS): Likewise.
50951 (gfxterm_mod_LDFLAGS): Likewise.
50952 (videotest_mod_SOURCES): Likewise.
50953 (videotest_mod_CFLAGS): Likewise.
50954 (videotest_mod_LDFLAGS): Likewise.
50955 (vesafb_mod_SOURCES): Removed.
50956 (vesafb_mod_CFLAGS): Likewise.
50957 (vesafb_mod_LDFLAGS): Likewise.
50958 (vga_mod_SOURCES): Likewise.
50959 (vga_mod_CFLAGS): Likewise.
50960 (vga_mod_LDFLAGS): Likewise.
50962 * commands/videotest.c: New file.
50964 * font/manager.c (fill_with_default_glyph): Modified to use
50966 (grub_font_get_glyph): Likewise.
50967 (fontmanager): Renamed from this...
50968 (font_manager): ... to this.
50970 * include/grub/font.h (grub_font_glyph): Added new structure.
50971 (grub_font_get_glyph): Modified to use grub_font_glyph.
50973 * include/grub/misc.h (grub_abs): Added as inline function.
50975 * include/grub/video.h: New file.
50977 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50978 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50979 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50980 (grub_vbe_get_controller_info): Renamed from this...
50981 (grub_vbe_bios_get_controller_info): ... to this.
50982 (grub_vbe_get_mode_info): Renamed from this...
50983 (grub_vbe_bios_get_mode_info): ... to this.
50984 (grub_vbe_set_mode): Renamed from this...
50985 (grub_vbe_bios_set_mode): ... to this.
50986 (grub_vbe_get_mode): Renamed from this...
50987 (grub_vbe_bios_get_mode): ... to this.
50988 (grub_vbe_set_memory_window): Renamed from this...
50989 (grub_vbe_bios_set_memory_window): ... to this.
50990 (grub_vbe_get_memory_window): Renamed from this...
50991 (grub_vbe_bios_get_memory_window): ... to this.
50992 (grub_vbe_set_scanline_length): Renamed from this...
50993 (grub_vbe_set_scanline_length): ... to this.
50994 (grub_vbe_get_scanline_length): Renamed from this...
50995 (grub_vbe_bios_get_scanline_length): ... to this.
50996 (grub_vbe_set_display_start): Renamed from this...
50997 (grub_vbe_bios_set_display_start): ... to this.
50998 (grub_vbe_get_display_start): Renamed from this...
50999 (grub_vbe_bios_get_display_start): ... to this.
51000 (grub_vbe_set_palette_data): Renamed from this...
51001 (grub_vbe_bios_set_palette_data): ... to this.
51002 (grub_vbe_set_pixel_rgb): Removed.
51003 (grub_vbe_set_pixel_index): Likewise.
51005 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
51007 (grub_vbe_bios_get_controller_info): ... to this.
51008 (grub_vbe_get_mode_info): Renamed from this...
51009 (grub_vbe_bios_get_mode_info): ... to this.
51010 (grub_vbe_set_mode): Renamed from this...
51011 (grub_vbe_bios_set_mode): ... to this.
51012 (grub_vbe_get_mode): Renamed from this...
51013 (grub_vbe_bios_get_mode): ... to this.
51014 (grub_vbe_set_memory_window): Renamed from this...
51015 (grub_vbe_bios_set_memory_window): ... to this.
51016 (grub_vbe_get_memory_window): Renamed from this...
51017 (grub_vbe_bios_get_memory_window): ... to this.
51018 (grub_vbe_set_scanline_length): Renamed from this...
51019 (grub_vbe_set_scanline_length): ... to this.
51020 (grub_vbe_get_scanline_length): Renamed from this...
51021 (grub_vbe_bios_get_scanline_length): ... to this.
51022 (grub_vbe_set_display_start): Renamed from this...
51023 (grub_vbe_bios_set_display_start): ... to this.
51024 (grub_vbe_get_display_start): Renamed from this...
51025 (grub_vbe_bios_get_display_start): ... to this.
51026 (grub_vbe_set_palette_data): Renamed from this...
51027 (grub_vbe_bios_set_palette_data): ... to this.
51028 (grub_vbe_bios_get_controller_info): Fixed problem with registers
51029 getting corrupted after calling it. Added more pushes and pops.
51030 (grub_vbe_bios_set_mode): Likewise.
51031 (grub_vbe_bios_get_mode): Likewise.
51032 (grub_vbe_bios_get_memory_window): Likewise.
51033 (grub_vbe_bios_set_scanline_length): Likewise.
51034 (grub_vbe_bios_get_scanline_length): Likewise.
51035 (grub_vbe_bios_get_display_start): Likewise.
51036 (grub_vbe_bios_set_palette_data): Likewise.
51038 * normal/cmdline.c (cl_set_pos): Refresh the screen.
51039 (cl_insert): Likewise.
51040 (cl_delete): Likewise.
51042 * term/gfxterm.c: New file.
51044 * term/i386/pc/vesafb.c: Removed file.
51046 * video/video.c: New file.
51048 * video/i386/pc/vbe.c (real2pm): Added new function.
51049 (grub_video_vbe_draw_pixel): Likewise.
51050 (grub_video_vbe_get_video_ptr): Likewise.
51051 (grub_video_vbe_get_pixel): Likewise
51052 (grub_video_vbe_init): Likewise.
51053 (grub_video_vbe_fini): Likewise.
51054 (grub_video_vbe_setup): Likewise.
51055 (grub_video_vbe_get_info): Likewise.
51056 (grub_video_vbe_set_palette): Likewise.
51057 (grub_video_vbe_get_palette): Likewise.
51058 (grub_video_vbe_set_viewport): Likewise.
51059 (grub_video_vbe_get_viewport): Likewise.
51060 (grub_video_vbe_map_color): Likewise.
51061 (grub_video_vbe_map_rgb): Likewise.
51062 (grub_video_vbe_map_rgba): Likewise.
51063 (grub_video_vbe_unmap_color): Likewise.
51064 (grub_video_vbe_fill_rect): Likewise.
51065 (grub_video_vbe_blit_glyph): Likewise.
51066 (grub_video_vbe_blit_bitmap): Likewise.
51067 (grub_video_vbe_blit_render_target): Likewise.
51068 (grub_video_vbe_scroll): Likewise.
51069 (grub_video_vbe_swap_buffers): Likewise.
51070 (grub_video_vbe_create_render_target): Likewise.
51071 (grub_video_vbe_delete_render_target): Likewise.
51072 (grub_video_vbe_set_active_render_target): Likewise.
51073 (grub_vbe_set_pixel_rgb): Remove function.
51074 (grub_vbe_set_pixel_index): Likewise.
51075 (index_color_mode): Remove static variable.
51076 (active_mode): Likewise.
51077 (framebuffer): Likewise.
51078 (bytes_per_scan_line): Likewise.
51079 (grub_video_vbe_adapter): Added new static variable.
51080 (framebuffer): Likewise.
51081 (render_target): Likewise.
51082 (initial_mode): Likewise.
51083 (mode_in_use): Likewise.
51084 (mode_list): Likewise.
51086 2006-03-10 Marco Gerards <marco@gnu.org>
51088 * configure.ac (AC_INIT): Bumped to 1.93.
51090 * DISTLIST: Added `include/grub/hfs.h'.
51092 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
51094 * boot/i386/pc/boot.S (general_error): Before looping, try INT
51095 18H, which might help the BIOS falling back to next boot media.
51097 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
51099 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
51100 Poe Chen <poe.poechen@gmail.com>.
51102 2006-01-17 Marco Gerards <marco@gnu.org>
51104 * include/grub/normal.h: Include <grub/script.h>.
51105 (grub_command_list): Removed struct.
51106 (grub_command_list_t): Removed type.
51107 (grub_menu_entry): Remove members `num' and `command_list'. Add
51108 members `commands' and `sourcecode'.
51109 * include/grub/script.h: Add inclusion guards.
51110 (grub_script_cmd_menuentry): New struct.
51111 (grub_script_execute_menuentry): New prototype.
51112 (grub_script_lexer_record_start): Likewise.
51113 (grub_script_lexer_record_stop): Likewise.
51114 * normal/execute.c (grub_script_execute_menuentry): New function.
51115 * normal/lexer.c (record, recording, recordpos, recordlen): New
51117 (grub_script_lexer_record_start): New function.
51118 (grub_script_lexer_record_stop): Likewise.
51119 (recordchar): Likewise.
51120 (nextchar): Likewise.
51121 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
51122 2048 as the buffer size. Add the tokens `menuentry' and `@'.
51123 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
51124 (current_menu): New variable.
51125 (free_menu): Mainly rewritten.
51126 (grub_normal_menu_addentry): New function.
51127 (read_config_file): Rewritten.
51128 * normal/menu.c (run_menu_entry): Mainly rewritten.
51129 * normal/menu_entry.c (make_screen): Rewritten the code to insert
51131 (run): Mainly rewritten.
51132 * normal/parser.y (menu_entry): New variable.
51133 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
51134 (menuentry): New rule.
51135 (command): Add `menuentry'.
51136 (if_statement): Allow additional returns before `fi'.
51137 * normal/script.c (grub_script_create_cmdmenu): New function.
51139 2006-01-03 Marco Gerards <marco@gnu.org>
51141 * INSTALL: GNU Bison is required.
51142 * configure.ac: Rewritten the test to detect Bison.
51143 * Makefile.in (YACC): New variable. Reported by Xun Sun
51144 <xun.sun.cn@gmail.com>.
51146 2006-01-03 Marco Gerards <marco@gnu.org>
51148 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
51149 the HFS+ filesystem to filesystem blocks.
51150 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
51151 GCC warning is silenced.
51153 2006-01-03 Marco Gerards <marco@gnu.org>
51155 * partmap/apple.c (apple_partition_map_iterate): Convert the data
51156 read from disk from big endian to host byte order.
51158 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
51160 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
51162 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
51163 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
51164 embedded HFS+ filesystem.
51165 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
51166 (grub_hfs_sblock): Move from here...
51167 * include/grub/hfs.h: To here... New file.
51168 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
51170 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51172 (grub_hfsplus_volheader): Change type of member `magic' to
51174 (grub_hfsplus_data): Add new member `embedded_offset'.
51175 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51177 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51178 Calculate the offset.
51180 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51182 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51184 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51186 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51188 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51189 ENV->NAME is NULL after allocating ENV->VALUE.
51191 2005-12-25 Marco Gerards <marco@gnu.org>
51193 * kern/env.c (grub_env_set): Rewritten the error handling code.
51195 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51197 * geninit.sh: Made more robust, and more portable.
51199 2005-12-25 Marco Gerards <marco@gnu.org>
51201 Add support for Apple HFS+ filesystems.
51203 * fs/hfsplus.c: New file.
51205 * DISTLIST: Added `fs/hfsplus.c'.
51207 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51208 (hfsplus_mod_SOURCES): New variable.
51209 (hfsplus_mod_CFLAGS): Likewise.
51210 (hfsplus_mod_LDFLAGS): Likewise.
51211 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51212 (grub_setup_SOURCES): Likewise.
51213 (grub_mkdevicemap_SOURCES): Likewise.
51214 (grub_emu_SOURCES): Likewise.
51215 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51217 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51219 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51221 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51223 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51224 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51225 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51226 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51227 normal/lexer.c, normal/parser.y, normal/script.c, and
51229 Removed kern/sparc64/cache.c.
51231 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51232 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51235 * configure.ac (AC_INIT): Bumped to 1.92.
51237 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51239 * kern/err.c (grub_error_push): Added new function to support error
51241 (grub_error_pop): Likewise.
51242 (grub_error_stack_items): New local variable to support error stacks.
51243 (grub_error_stack_pos): Likewise.
51244 (grub_error_stack_assert): Likewise.
51245 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51247 (grub_print_error): Added support to print errors from error stack.
51249 * include/grub/err.h (grub_error_push): Added function prototype.
51250 (grub_error_pop): Likewise.
51252 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51254 * configure.ac: Accept `powerpc64' as host_cpu.
51255 (amd64): Rename to `biarch32'.
51257 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51258 non-cacheline-aligned addresses.
51260 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51261 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51262 if `size' is non-zero.
51264 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51266 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51267 and `cd' to make sure the filename is not prefixed with a
51269 (pkgdata_MODULES): Add `gpt.mod'.
51270 (gpt_mod_SOURCES): New variable.
51271 (gpt_mod_CFLAGS): Likewise.
51272 (gpt_mod_LDFLAGS): Likewise.
51274 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51276 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51279 * partmap/gpt.c: New file.
51281 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51282 GPT partition map is detected.
51284 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51286 * commands/i386/pc/play.c: New file.
51287 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51288 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51291 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51293 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51294 ((unused))' to silence gcc warning.
51296 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51298 * configure.ac: Correct `AC_PROG_YACC' test.
51300 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51302 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51303 check before installing files.
51305 2005-11-22 Mike Small <smallm@panix.com>
51307 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51308 number regex so multidigit numbers are recognized correctly.
51310 2005-11-22 Mike Small <smallm@panix.com>
51312 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51313 debugging message before attempting to claim memory.
51314 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51315 multiple addresses in case of failure.
51317 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51319 * term/tparm.c (get_space): Remove empty `if' statement.
51321 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51323 * kern/parser.c (check_varstate): Rename `state' to 's'.
51325 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51327 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51328 variable definitions to the beginning of each function. Sort stack
51330 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51331 `buf' argument to `char *'.
51333 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51335 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51336 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51337 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51338 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51339 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51340 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51341 configfile.mod, search.mod, gzio.mod and test.mod.
51342 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51343 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51344 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51345 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51346 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51347 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51348 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51349 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51350 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51351 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51352 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51353 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51354 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51355 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51356 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51357 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51358 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51359 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51360 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51361 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51362 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51363 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51364 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51366 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51368 (pkgdata_MODULES): Add test.mod.
51370 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51372 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51373 appending to variables with "+=".
51374 (PModule): Use full pathname to generate *.lst filenames.
51376 * Makefile.in: Fixed list rules moved from genmk.rb.
51377 (.DELETE_ON_ERROR): New special target.
51378 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51380 * conf/i386-pc.rmk: Include conf/common.mk.
51381 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51382 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51383 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51384 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51385 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51386 configfile.mod, search.mod, gzio.mod and test.mod.
51387 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51388 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51389 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51390 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51391 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51392 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51393 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51394 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51395 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51396 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51397 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51398 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51399 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51400 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51401 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51402 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51403 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51404 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51405 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51406 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51407 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51408 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51409 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51411 * conf/common.rmk: ... to here. New file.
51413 * conf/common.mk: New file.
51415 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51417 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51418 (grub_script.tab.c): ... here.
51420 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51421 (grub_script.tab.c): ... here.
51423 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51424 (grub_script.tab.c): ... here.
51426 * normal/command.c (grub_command_find): Fixed a memory leak of
51427 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51429 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51431 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51432 "@" which marks the start of a comment on ARM.
51433 (VARIABLE): Likewise.
51435 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51437 Add support for Linux/ADFS partition tables.
51439 * partmap/acorn.c: New file.
51441 * include/grub/acorn_filecore.h: Likewise.
51443 * DISTLIST: Added `partmap/acorn.c' and
51444 `include/grub/acorn_filecore.h'.
51446 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51448 (pkgdata_MODULES): Add `acorn.mod'.
51449 (acorn_mod_SOURCES): New variable.
51450 (acorn_mod_CFLAGS): Likewise.
51452 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51454 (pkgdata_MODULES): Add `acorn.mod'.
51455 (acorn_mod_SOURCES): New variable.
51456 (acorn_mod_CFLAGS): Likewise.
51458 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51459 (pkgdata_MODULES): Add `acorn.mod'.
51460 (acorn_mod_SOURCES): New variable.
51461 (acorn_mod_CFLAGS): Likewise.
51462 (acorn_mod_LDFLAGS): Likewise.
51464 * include/types.h (grub_disk_addr_t): New typedef.
51466 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51468 * geninit.sh: New file.
51470 * geninitheader.sh: Likewise.
51472 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51473 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51474 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51475 * commands/configfile.c (grub_configfile_init)
51476 (grub_configfile_fini): Likewise.
51477 * commands/default.c (grub_default_init, grub_default_fini):
51479 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51480 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51481 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51482 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51484 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51485 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51487 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51488 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51490 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51492 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51494 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51495 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51496 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51497 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51498 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51499 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51500 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51501 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51502 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51503 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51504 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51505 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51506 * partmap/amiga.c (grub_amiga_partition_map_init)
51507 (grub_amiga_partition_map_fini): Likewise.
51508 * partmap/apple.c (grub_apple_partition_map_init)
51509 (grub_apple_partition_map_fini): Likewise.
51510 * partmap/pc.c (grub_pc_partition_map_init)
51511 (grub_pc_partition_map_fini): Likewise.
51512 * partmap/sun.c (grub_sun_partition_map_init,
51513 grub_sun_partition_map_fini): Likewise.
51514 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51517 * util/grub-emu.c: Include <grub_modules_init.h>.
51518 (main): Don't initialize and de-initialize any modules directly,
51519 use `grub_init_all' and `grub_fini_all' instead.
51521 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51522 `grub_vesafb_mod_init'.
51523 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51525 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51526 `grub_vga_mod_init'. Updated all users.
51527 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51529 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51530 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51533 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51534 Generate a function to initialize the module in utilities.
51535 Updated all callers.
51536 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51537 initialize the module in utilities. Updated all callers.
51539 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51541 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51542 escape sequence and a literal ^L to clear the screen.
51544 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51545 when returning from Open Firmware.
51547 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51549 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51550 (grub_ofconsole_height): Likewise.
51551 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51552 manually insert a '\n'.
51553 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51554 `grub_ofconsole_height'. Return early if these are already set.
51556 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51558 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51559 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51560 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51561 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51562 and `normal/script.c'.
51563 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51564 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51565 (test_mod_SOURCES): New variable.
51566 (test_mod_CFLAGS): Likewise.
51567 (test_mod_LDFLAGS): Likewise.
51568 (pkgdata_MODULES): Add `test.mod'.
51569 (grub_script.tab.c): New rule.
51570 (grub_script.tab.h): Likewise.
51572 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51574 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51575 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51576 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51577 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51578 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51579 (test_mod_SOURCES): New variable.
51580 (test_mod_CFLAGS): Likewise.
51581 (pkgdata_MODULES): Add `test.mod'.
51582 (grub_script.tab.c): New rule.
51583 (grub_script.tab.h): Likewise.
51585 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51587 Add initial scripting support.
51589 * commands/test.c: New file.
51590 * include/grub/script.h: Likewise.
51591 * normal/execute.c: Likewise.
51592 * normal/function.c: Likewise.
51593 * normal/lexer.c: Likewise.
51594 * normal/parser.y: Likewise.
51595 * normal/script.c: Likewise.
51597 * configure.ac: Add `AC_PROG_YACC' test.
51599 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51600 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51601 `normal/function.c' and `normal/script.c'.
51602 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51603 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51604 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51606 (pkgdata_MODULES): Add `test.mod'.
51607 (grub_script.tab.c): New rule.
51608 (grub_script.tab.h): Likewise.
51610 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51612 * include/grub/normal.h (grub_test_init): New prototype.
51613 (grub_test_fini): Likewise.
51615 * normal/command.c: Include <grub/script.h>.
51616 (grub_command_execute): Rewritten.
51618 * util/grub-emu.c (main): Call `grub_test_init' and
51621 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51623 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51625 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51626 there are no pending characters.
51628 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51630 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51631 `grub_strndup' to drop device arguments. Replace unnecessary
51632 `grub_strndup' with `grub_strdup'.
51634 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51636 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51637 `debug' environment variable has been set.
51639 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51641 * Makefile.in (install-local): Use $(DATA).
51642 (uninstall): Likewise.
51643 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51644 (sbin_UTILITIES): ... to here.
51645 (sbin_SCRIPTS): New variable.
51646 (grub_install_SOURCES): New variable.
51647 * util/powerpc/ieee1275/grub-install.in: New file.
51648 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51650 (add_segments): Call `grub_util_get_path'.
51652 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51654 From Timothy Baldwin:
51655 * commands/ls.c (grub_ls_list_files): Close FILE with
51657 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51659 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51661 * include/grub/parser.h: New file.
51663 * kern/parser.c: Likewise.
51665 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51666 (grub_setup_SOURCES): Likewise.
51667 (grub_probefs_SOURCES): Likewise.
51668 (grub_emu_SOURCES): Likewise.
51669 (kernel_img_HEADERS): Add `parser.h'.
51671 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51672 (grub_emu_SOURCES): Add `kern/parser.c'.
51673 (grubof_SOURCES): Likewise.
51675 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51676 (grubof_SOURCES): Add `kern/parser.c'.
51678 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51680 * kern/misc.c (grub_split_cmdline): Removed function.
51682 * kern/rescue.c: Include <grub/parser.h>.
51683 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51684 of `grub_split_cmdline'.
51686 * normal/command.c: Include <grub/parser.h>.
51687 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51688 of `grub_split_cmdline'.
51690 * normal/completion.c: Include <grub/parser.h>.
51691 (cmdline_state): New variable.
51692 (iterate_dir): End the filename with a quote depending on the
51693 command line state.
51694 (get_state): new function.
51695 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51696 split the arguments and determine the current argument. When the
51697 argument string is not quoted, escape all spaces.
51699 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51701 * normal/sparc64/setjmp.S: New file.
51703 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51705 * include/grub/sparc64/libgcc.h: New file.
51706 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51707 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51708 normal/sparc64/setjmp.c.
51710 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51712 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51713 * kern/sparc64/cache.S: New file.
51714 * kern/sparc64/cache.c: Removed.
51715 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51716 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51718 (COMMON_LDFLAGS): Add -melf64_sparc.
51719 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51720 (grubof_SOURCES): Use cache.S instead of cache.c.
51721 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51722 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51723 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51725 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51726 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51727 (linux_mod_CFLAGS): Commented out.
51728 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51729 out because module isn't built.
51730 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51731 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51732 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51733 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51734 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51735 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51736 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51737 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51738 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51739 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51740 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51741 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51742 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51743 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51745 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51747 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51748 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51749 longer, because HFS should not be used on PC.
51751 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51753 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51754 consistently within the loop.
51756 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51758 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51759 directory can not be read.
51761 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51763 * configure.ac (AC_INIT): Increase the version number to 1.91.
51765 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51766 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51767 term/i386/pc/serial.c.
51769 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51771 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51772 file size must be permitted.
51774 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51775 between %ah and %al.
51777 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51779 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51781 Call the hook with a NUL-terminated filename.
51782 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51785 * kern/term.c (cursor_state): New variable.
51786 (grub_term_set_current): Reset the cursor state on a new
51788 (grub_setcursor): Rewritten to use CURSOR_STATE.
51789 (grub_getcursor): New function.
51791 * include/grub/term.h (grub_getcursor): New prototype.
51793 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51794 integers on ARM. Reported by Timothy Baldwin
51795 <T.E.Baldwin99@members.leeds.ac.uk>.
51797 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51799 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51801 (grub_sfs_dir): Likewise.
51803 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51805 Add support for the SFS filesystem.
51807 * fs/sfs.c: New file.
51809 * DISTLIST: Added `fs/sfs.c'.
51811 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51812 (grub_probefs_SOURCES): Likewise.
51813 (grub_emu_SOURCES): Likewise.
51814 (pkgdata_MODULES): Add `sfs.mod'.
51815 (sfs_mod_SOURCES): New variable.
51816 (sfs_mod_CFLAGS): Likewise.
51817 (sfs_mod_LDFLAGS): Likewise.
51819 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51820 (pkgdata_MODULES): Add `sfs.mod'.
51821 (sfs_mod_SOURCES): New variable.
51822 (sfs_mod_CFLAGS): Likewise.
51824 * util/grub-emu.c (main): Call `grub_sfs_init' and
51827 * include/grub/fs.h (grub_sfs_init): New prototype.
51828 (grub_sfs_fini): Likewise.
51830 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51832 Add support for the AFFS filesystem.
51834 * fs/affs.c: New file.
51836 * DISTLIST: Added `fs/affs.c'.
51838 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51839 (grub_probefs_SOURCES): Likewise.
51840 (grub_emu_SOURCES): Likewise.
51841 (pkgdata_MODULES): Add `affs.mod'.
51842 (affs_mod_SOURCES): New variable.
51843 (affs_mod_CFLAGS): Likewise.
51844 (affs_mod_LDFLAGS): Likewise.
51846 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51847 (pkgdata_MODULES): Add `affs.mod'.
51848 (affs_mod_SOURCES): New variable.
51849 (affs_mod_CFLAGS): Likewise.
51851 * util/grub-emu.c (main): Call `grub_affs_init' and
51854 * include/grub/fs.h (grub_affs_init): New prototype.
51855 (grub_affs_fini): Likewise.
51857 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51859 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51861 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51863 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51866 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51869 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51870 (COMMON_LDFLAGS): New variable.
51871 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51872 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51873 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51874 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51875 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51876 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51877 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51878 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51879 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51880 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51881 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51882 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51883 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51884 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51885 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51887 (normal_mod_ASFLAGS): Add `-m32'.
51889 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51890 (grub_host_size_t, grub_host_ssize_t): New types.
51891 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51892 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51893 `GRUB_HOST_SIZEOF_VOID_P'.
51895 * include/grub/kernel.h (struct grub_module_header): Type of
51896 member offset changed to `grub_host_off_t'. Type of member size
51897 changed to `grub_host_size_t'.
51898 (struct grub_module_info): Type of member offset changed to
51899 `grub_host_off_t'. Type of member size changed to
51900 `grub_host_size_t'.
51902 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51904 Make GRUB's kernel compliant to Multiboot Specification.
51906 * kern/i386/pc/startup.S (multiboot_header): New label.
51907 (multiboot_entry): Likewise.
51908 (multiboot_trampoline): Likewise.
51910 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51911 Increased to 0x4A0.
51913 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51914 put parentheses after a question mark.
51915 [!GRUB_UTIL] (my_mod): New variable.
51917 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51919 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51921 Adds support for the XFS filesystem. Btrees are not supported
51924 * fs/xfs.c: New file.
51926 * DISTLIST: Added `fs/xfs.c'.
51928 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51929 (grub_probefs_SOURCES): Likewise.
51930 (grub_emu_SOURCES): Likewise.
51931 (pkgdata_MODULES): Add `xfs.mod'.
51932 (xfs_mod_SOURCES): New variable.
51933 (xfs_mod_CFLAGS): Likewise.
51935 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51936 (pkgdata_MODULES): Add `xfs.mod'.
51937 (xfs_mod_SOURCES): New variable.
51938 (xfs_mod_CFLAGS): Likewise.
51940 * util/grub-emu.c (main): Call `grub_xfs_init' and
51943 * include/grub/fs.h (grub_xfs_init): New prototype.
51944 (grub_xfs_fini): Likewise.
51947 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51949 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51950 color modes, allow greater than 16 colors to be configured as
51953 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51955 * normal/completion.c (complete_arguments): Add the qualifier
51956 const into OPTIONS.
51958 From Omniflux <omniflux+lists@omniflux.com>:
51959 * include/grub/terminfo.h: New file.
51960 * include/grub/tparm.h: Likewise.
51961 * include/grub/i386/pc/serial.h: Likewise.
51962 * term/terminfo.c: Likewise.
51963 * term/tparm.c: Likewise.
51964 * term/i386/pc/serial.c: Likewise.
51965 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51967 (terminfo_mod_SOURCES): New variable.
51968 (terminfo_mod_CFLAGS): Likewise.
51969 (serial_mod_SOURCES): Likewise.
51970 (serial_mod_CFLAGS): Likewise.
51972 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51974 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51975 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51976 and kern/powerpc/ieee1275/cmain.c, respectively.
51978 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51979 * kern/powerpc/ieee1275/crt0.S: ... here.
51981 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51982 * kern/powerpc/ieee1275/cmain.c: ... here.
51984 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51985 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51986 instead of boot/powerpc/ieee1275/crt0.S and
51987 boot/powerpc/ieee1275/cmain.c, respectively.
51989 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51990 sectors. It was not used anyway.
51992 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51994 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51995 `unused parameter' warning.
51997 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51999 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
52001 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
52004 2005-08-28 Marco Gerards <metgerards@student.han.nl>
52006 * include/grub/normal.h (enum grub_completion_type): Added
52007 `GRUB_COMPLETION_TYPE_ARGUMENT'.
52009 * normal/cmdline.c (print_completion): Handle
52010 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
52011 * normal/menu_entry.c (store_completion): Likewise.
52013 * normal/completion.c (complete_arguments): New function.
52014 (grub_normal_do_completion): Call `complete_arguments' when the
52015 current words start with a dash.
52017 2005-08-27 Marco Gerards <metgerards@student.han.nl>
52019 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
52020 `gzio.mod' instead of `io.mod').
52022 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
52024 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
52025 (DISTDIRS): Added io and video.
52026 Rewrite the search routine to make an output consistently.
52028 * DISTLIST: Added conf/sparc64-ieee1275.mk,
52029 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
52030 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
52031 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
52032 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
52033 util/powerpc/ieee1275/misc.c.
52035 * include/grub/gzio.h: New file.
52036 * io/gzio.c: Likewise.
52038 * kern/file.c (grub_file_close): Call grub_device_close only if
52039 FILE->DEVICE is not NULL.
52041 * include/grub/mm.h [!NULL] (NULL): New macro.
52043 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
52045 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
52046 (pkgdata_MODULES): Added gzio.mod.
52047 (gzio_mod_SOURCES): New variable.
52048 (gzio_mod_CFLAGS): Likewise.
52050 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
52051 (pkgdata_MODULES): Added gzio.mod.
52052 (gzio_mod_SOURCES): New variable.
52053 (gzio_mod_CFLAGS): Likewise.
52055 * commands/cat.c: Include grub/gzio.h.
52056 (grub_cmd_cat): Use grub_gzfile_open instead of
52059 * commands/cmp.c: Include grub/gzio.h.
52060 (grub_cmd_cmp): Use grub_gzfile_open instead of
52063 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
52064 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
52066 (grub_rescue_cmd_module): Likewise.
52068 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
52070 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
52071 kern/sparc64/ieee1275/init.c because it contains _start.
52072 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
52074 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
52076 * configure.ac: Add support for sparc64 host with ieee1275
52078 * configure: Generated from configure.ac.
52079 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
52081 (grub_ofdisk_read): Likewise.
52082 (grub_ofdisk_open): Use %p to print pointer values, and cast the
52083 pointers as (void *) to remove a warning.
52084 (grub_ofdisk_close): Likewise.
52085 (grub_ofdisk_read): Likewise.
52086 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
52087 returns, so make it return void to remove a warning.
52088 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
52089 Corresponding prototype change.
52090 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
52091 values, and cast the pointers as (void *) to remove a warning.
52092 (grub_mm_dump): Likewise.
52093 * conf/sparc64-ieee1275.mk: New file.
52094 * conf/sparc64-ieee1275.rmk: Likewise.
52095 * include/grub/sparc64/setjmp.h: Likewise.
52096 * include/grub/sparc64/types.h: Likewise.
52097 * include/grub/sparc64/ieee1275/console.h: Likewise.
52098 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
52099 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
52100 * include/grub/sparc64/ieee1275/time.h: Likewise.
52101 * kern/sparc64/cache.c: Likewise.
52102 * kern/sparc64/dl.c: Likewise.
52103 * kern/sparc64/ieee1275/init.c: Likewise.
52104 * kern/sparc64/ieee1275/openfw.c: Likewise.
52106 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
52108 * util/console.c (grub_ncurses_putchar): If C is greater than
52109 0x7f, set C to a question mark.
52110 (grub_ncurses_getcharwidth): New function.
52111 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
52114 * normal/menu.c (print_entry): Made aware of Unicode. First,
52115 convert TITLE to UCS-4, and predict the cursor position by
52118 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
52120 * kern/misc.c (grub_utf16_to_utf8): Likewise.
52122 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52124 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
52125 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52128 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
52129 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52130 grub_strcpy and grub_strlen. Take it into account that a space
52131 character is inserted as a delimiter.
52133 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52135 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
52136 invalid magic in the error.
52138 * commands/search.c: New file.
52140 * util/grub-emu.c (main): Call grub_search_init and
52143 * kern/rescue.c (grub_rescue_print_disks): Removed.
52144 (grub_rescue_print_devices): New function.
52145 (grub_rescue_cmd_ls): Use grub_device_iterate with
52146 grub_rescue_print_devices instead of grub_disk_dev_iterate with
52147 grub_rescue_print_disks.
52149 * kern/partition.c (grub_partition_iterate): Return the result of
52150 PARTMAP->ITERATE instead of GRUB_ERRNO.
52152 * kern/device.c: Include grub/partition.h.
52153 (grub_device_iterate): New function.
52155 * include/grub/partition.h (grub_partition_iterate): Return int
52156 instead of grub_err_t.
52158 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
52160 [GRUB_UTIL] (grub_search_fini): Likewise.
52162 * include/grub/device.h (grub_device_iterate): New prototype.
52164 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52166 (pkgdata_MODULES): Added search.mod.
52167 (search_mod_SOURCES): New variable.
52168 (search_mod_CFLAGS): Likewise.
52170 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52171 (pkgdata_MODULES): Added search.mod.
52172 (search_mod_SOURCES): New variable.
52173 (search_mod_CFLAGS): Likewise.
52175 * commands/ls.c (grub_ls_list_disks): Renamed to ...
52176 (grub_ls_list_devices): ... this, and use grub_device_iterate.
52177 All callers changed.
52179 * DISTLIST: Added commands/search.c.
52181 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52183 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52185 (grub_getcharwidth): New function.
52187 * kern/misc.c (grub_utf8_to_ucs4): New function.
52189 * include/grub/term.h (struct grub_term): Added a new member
52191 (grub_getcharwidth): New prototype.
52193 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52195 * term/i386/pc/console.c (map_char): New function. Segregated from
52196 grub_console_putchar.
52197 (grub_console_putchar): Use map_char.
52198 (grub_console_getcharwidth): New function.
52199 (grub_console_term): Specified grub_console_getcharwidth as
52202 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52203 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52205 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52207 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52208 on grub_strtoul completely.
52209 (write_char): Declare local variables in the beginning of the
52211 (grub_vesafb_getcharwidth): New function.
52212 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52215 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52217 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52218 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52219 commands/i386/pc/vbetest.c.
52221 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52222 call grub_vbe_get_controller_info again, because the returned
52223 information is volatile.
52224 (grub_vbe_set_video_mode): Mostly rewritten.
52225 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52226 grub_vbe_status_t correctly.
52227 (grub_vbe_get_video_mode_info): Likewise.
52228 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52229 several if statements.
52231 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52232 * commands/i386/pc/vbeinfo.c: ... this.
52234 * commands/i386/pc/vbe_test.c: Renamed to ...
52235 * commands/i386/pc/vbetest.c: ... this.
52237 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52239 (grub_cmd_vbeinfo): ... this. Save video modes before
52240 iterating. Skip a video mode, if it is not available, not enough
52241 information is given or it is monochrome. Show the memory
52242 model. Leave the interpretation of MODEVAR to grub_strtoul
52244 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52245 (GRUB_MOD_FINI): Likewise.
52247 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52248 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52249 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52250 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52251 grub_strtoul completely.
52252 (real2pm): Removed.
52253 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52254 (GRUB_MOD_FINI): Likewise.
52256 * normal/misc.c: Include grub/mm.h.
52258 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52259 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52260 (vbe_list_modes_mod_SOURCES): Removed.
52261 (vbe_list_modes_mod_CFLAGS): Likewise.
52262 (vbe_test_mod_SOURCES): Likewise.
52263 (vbe_test_mod_CFLAGS): Likewise.
52264 (vbeinfo_mod_SOURCES): New variable.
52265 (vbeinfo_mod_CFLAGS): Likewise.
52266 (vbetest_mod_SOURCES): Likewise.
52267 (vbetest_mod_CFLAGS): Likewise.
52269 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52271 * normal/misc.c: New file.
52273 * DISTLIST: Added normal/misc.c.
52275 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52276 DISK to HOOK. Call HOOK with DISK.
52277 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52278 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52279 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52281 * normal/menu_entry.c (struct screen): Added a new member
52282 "completion_shown".
52283 (completion_buffer): New global variable.
52284 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52285 (store_completion): New function.
52286 (complete): Likewise.
52287 (clear_completions): Likewise.
52288 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52289 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52290 a tab, call complete.
52292 * normal/completion.c (disk_dev): Removed.
52293 (print_simple_completion): Likewise.
52294 (print_partition_completion): Likewise.
52295 (print_func): New global variable.
52296 (add_completion): Do not take the arguments WHAT or PRINT any
52297 longer. Added a new argument TYPE. Instead of printing directly,
52298 call PRINT_FUNC if not NULL.
52299 All callers changed.
52300 (complete_device): Use a local variable DEV instead of
52301 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52302 (grub_normal_do_completion): Take a new argument HOOK. Do not
52303 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52304 empty string, return NULL instead.
52305 All callers changed.
52307 * normal/cmdline.c (print_completion): New function.
52309 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52311 All callers changed.
52313 * kern/disk.c (grub_print_partinfo): Removed.
52315 * include/grub/partition.h (struct grub_partition_map): Add a new
52316 argument DISK into HOOK of ITERATE.
52317 (grub_partition_iterate): Add a new argument DISK to HOOK.
52319 * include/grub/normal.h (enum grub_completion_type): New enum.
52320 (grub_completion_type_t): New type.
52321 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52322 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52323 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52324 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52325 (grub_normal_do_completion): Added a new argument HOOK.
52326 (grub_normal_print_device_info): New prototype.
52328 * include/grub/disk.h (grub_print_partinfo): Removed.
52330 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52331 (normal_mod_SOURCES): Likewise.
52332 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52333 (normal_mod_SOURCES): Likewise.
52335 * commands/ls.c (grub_ls_list_disks): Use
52336 grub_normal_print_device_info instead of grub_print_partinfo. Free
52338 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52339 duplicating the code.
52341 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52343 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52344 follow GCS more precisely.
52345 * commands/i386/pc/vbe_test.c: Likewise.
52346 * include/grub/i386/pc/vbe.h: Likewise.
52347 * term/i386/pc/vesafb.c: Likewise.
52348 * video/i386/pc/vbe.c: Likewise.
52350 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52352 * DISTLIST: Added term/i386/pc/vesafb.c
52353 DISTLIST: Added video/i386/pc/vbe.c
52354 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52355 DISTLIST: Added commands/i386/pc/vbe_test.c.
52356 * commands/i386/pc/vbe_list_modes.c: New file.
52357 * commands/i386/pc/vbe_test.c: Likewise.
52358 * term/i386/pc/vesafb.c: Likewise.
52359 * video/i386/pc/vbe.c: Likewise.
52360 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52361 (grub_vbe_probe) Added prototype.
52362 (grub_vbe_set_video_mode) Likewise.
52363 (grub_vbe_get_video_mode) Likewise.
52364 (grub_vbe_get_video_mode_info) Likewise.
52365 (grub_vbe_set_pixel_rgb) Likewise.
52366 (grub_vbe_set_pixel_index) Likewise.
52367 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52368 (pkgdata_MODULES): Added vesafb.mod.
52369 (pkgdata_MODULES): Added vbe_list_modes.mod.
52370 (pkgdata_MODULES): Added vbe_test.mod.
52371 (vbe_mod_SOURCES): Added.
52372 (vbe_mod_CFLAGS): Likewise.
52373 (vesafb_mod_SOURCES): Likewise.
52374 (vesafb_mod_CFLAGS): Likewise.
52375 (vbe_list_modes_mod_SOURCES): Likewise.
52376 (vbe_list_modes_mod_CFLAGS): Likewise.
52377 (vbe_test_mod_SOURCES): Likewise.
52378 (vbe_test_mod_CFLAGS): Likewise.
52380 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52382 * normal/command.c (grub_command_execute): If INTERACTIVE is
52383 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52384 CMDLINE. Disable the pager if INTERACTIVE is true.
52385 All callers are changed.
52387 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52388 before reading a config file.
52389 * normal/main.c (read_config_file): Even if a command is not
52390 found, register it if it is within an entry.
52392 * util/grub-emu.c: Include sys/types.h and unistd.h.
52393 (options): Added --hold.
52394 (struct arguments): Added a new member "hold".
52395 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52397 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52398 cleared by a debugger, if it is not zero.
52400 * include/grub/normal.h (grub_command_execute): Add an argument
52403 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52405 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52407 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52409 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52410 program with another one, because the old one didn't detect a bug
52411 in gcc-3.4. Always use regparm 2, because the new test is still
52412 not enough for gcc-4.0. Someone must investigate a simple test
52413 case which detects a bug in gcc-4.0.
52415 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52417 * DISTLIST: Added normal/completion.c.
52419 * normal/completion.c: New file.
52421 * term/i386/pc/console.c (grub_console_getwh): New function.
52422 (grub_console_term): Assign grub_console_getwh to getwh.
52424 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52425 function is defined in normal/completion.c as
52426 grub_normal_do_completion.
52427 (grub_cmdline_get): Use grub_normal_do_completion instead of
52430 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52431 returns non-zero, otherwise return 0.
52432 (grub_partition_iterate): First, probe the partition map. Then,
52433 call ITERATE only for this partition map.
52435 * kern/misc.c (grub_strncmp): Rewritten.
52437 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52438 returns non-zero. Otherwise return 0.
52440 * include/grub/partition.h (grub_partition_map_iterate): Return
52441 int instead of void.
52443 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52445 * include/grub/misc.h (grub_strncmp): Change the type of N to
52448 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52451 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52452 unsigned explicitly before comparing it with I.
52454 * kern/main.c (grub_env_write_root): Add the attribute unused into
52457 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52458 normal/completion.c.
52459 (normal_mod_SOURCES): Likewise.
52460 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52461 (normal_mod_SOURCES): Likewise.
52463 * normal/command.c (grub_iterate_commands): If ITERATE returns
52464 non-zero, return one immediately.
52466 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52468 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52469 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52471 (grub_vbe_get_controller_info): New function.
52472 (grub_vbe_get_mode_info): Likewise.
52473 (grub_vbe_set_mode): Likewise.
52474 (grub_vbe_get_mode): Likewise.
52475 (grub_vbe_set_memory_window): Likewise.
52476 (grub_vbe_get_memory_window): Likewise.
52477 (grub_vbe_set_scanline_length): Likewise.
52478 (grub_vbe_get_scanline_length): Likewise.
52479 (grub_vbe_set_display_start): Likewise.
52480 (grub_vbe_get_display_start): Likewise.
52481 (grub_vbe_set_palette_data): Likewise.
52482 * include/grub/i386/pc/vbe.h: New file.
52484 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52486 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52487 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52488 * DISTLIST: Likewise.
52489 * kern/ieee1275/of.c: Moved to ...
52490 * kern/ieee1275/ieee1275.c: ... here.
52492 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52494 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52495 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52496 Pass 0 as `end' parameter to grub_strtoul().
52498 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52500 * include/grub/powerpc/ieee1275/console.h: Do not include
52501 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52503 (grub_console_cur_color): Remove i386-specific prototype.
52504 (grub_console_real_putchar): Likewise.
52505 (grub_console_checkkey): Likewise.
52506 (grub_console_getkey): Likewise.
52507 (grub_console_getxy): Likewise.
52508 (grub_console_gotoxy): Likewise.
52509 (grub_console_cls): Likewise.
52510 (grub_console_setcursor): Likewise.
52511 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52512 Include <grub/machine/console.h>.
52513 * term/ieee1275/ofconsole.c: Likewise.
52515 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52517 * Makefile.in (LIBLZO): New variable.
52519 * configure.ac: Check for LZO version 2.
52521 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52522 lzo/lzo1x.h instead of lzo1x.h.
52524 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52527 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52528 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52530 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52531 copying the data from PARTITION to P.
52533 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52535 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52536 negative, unload the module.
52538 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52539 map is "pc_partition_map" but not "pc".
52540 (usage): Fix the description. The options are --boot-image and
52541 --core-image but not --boot-file or --core-file.
52542 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52543 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52546 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52547 --core-file. Specify INSTALL_DEVICE as an argument.
52549 * util/console.c: Include config.h.
52550 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52551 [HAVE_NCURSES_H]: Include ncurses.h.
52552 [HAVE_CURSES_H]: Include curses.h.
52553 [!A_NORMAL] (A_NORMAL): Defined as zero.
52554 [!A_STANDOUT] (A_STANDOUT): Likewise.
52556 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52558 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52560 * configure.ac: Check for curses libraries and headers.
52562 * Makefile.in (LIBCURSES): New variable.
52564 * genmk.rb (Script::rule): Set the executable bits.
52566 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52567 name of the PC partition map is "pc_partition_map" but not "pc".
52569 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52571 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52572 (modules): Likewise.
52573 (usage): Added descriptions for --modules and --grub-probefs.
52574 Handle --modules and --grub-probefs. Save the arguments in MODULES
52575 and GRUB_PROBEFS, respectively.
52576 Auto-detect a filesystem module against GRUBDIR. If the result is
52577 empty and modules are not specified explicitly, abort the
52578 installation. Add the result to MODULES.
52580 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52581 disk/powerpc/ieee1275/ofdisk.c,
52582 include/grub/powerpc/ieee1275/init.h and
52583 term/powerpc/ieee1275/ofconsole.c.
52584 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52585 term/ieee1275/ofconsole.c.
52587 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52589 * COPYING: Upgraded to the latest version. Only the address of the
52590 FSF office has changed.
52592 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52594 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52595 kern/ieee1275.c with kern/ieee1275/of.c.
52597 * kern/ieee1275.c: Moved to ...
52598 * kern/ieee1275/of.c: ... here.
52600 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52602 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52605 * config.guess: Updated to the latest version from gnulib.
52606 * config.sub: Likewise.
52607 * install.sh: Likewise.
52608 * mkinstalldirs: Likewise.
52610 * include/grub/console.h: Removed. This file is arch-specific. Do
52611 not put this in include/grub.
52613 * include/grub/i386/pc/console.h: Resurrected.
52615 * util/console.c: Include grub/machine/console.h instead of
52617 * util/grub-emu.c: Likewise.
52619 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52621 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52624 From Vincent Pelletier <subdino2004@yahoo.fr>
52625 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52626 Redefined to use grub_getwh.
52627 (grub_term): New member named getwh.
52628 (grub_getwh): New prototype.
52629 * kern/term.c (grub_getwh): New function.
52630 * term/i386/pc/console.c (grub_console_getwh): New function.
52631 (grub_console_term): New member `getwh'.
52632 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52633 (grub_vga_term): New member `getwh'.
52634 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52636 (grub_ofconsole_getw): New function.
52637 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52638 (grub_ofconsole_term): New field named getwh and new initial
52641 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52643 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52644 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52645 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52646 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52647 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52648 of <grub/machine/ieee1275.h>.
52649 * commands/ieee1275/reboot.c: Likewise.
52650 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52651 * kern/ieee1275.c: ... to here. All users updated. Change all
52652 parameter structs to use new type `grub_ieee1275_cell_t'.
52653 * term/powerpc/ieee1275/ofconsole.c: Move ...
52654 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52655 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52656 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52657 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52659 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52660 Remove unused prototypes. All users updated.
52661 * include/grub/powerpc/ieee1275/console.h: Removed.
52662 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52663 `grub_ieee1275_cell_t'.
52664 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52665 Cast comparisons with -1 to the correct type.
52666 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52667 type to match `grub_ieee1275_entry_fn'.
52669 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52671 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52673 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52674 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52676 (grub_probefs_SOURCES): New variable.
52678 * util/i386/pc/grub-probefs.c: New file.
52680 * util/i386/pc/grub-setup.c (main): Call
52681 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52682 grub_hfs_init and grub_jfs_init to initialize the system. Call
52683 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52684 grub_pc_partition_map_fini to finish the system.
52686 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52688 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52690 (grub_multiboot_load_elf32): Likewise.
52691 (grub_multiboot_is_elf64): Likewise.
52692 (grub_multiboot_load_elf64): Likewise.
52693 (grub_multiboot_load_elf): Likewise.
52694 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52695 an ELF32 or ELF64 file.
52696 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52698 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52699 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52700 NULL before calling FS->LABEL.
52701 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52702 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52703 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52704 before calling FS->LABEL.
52706 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52708 * util/i386/pc/grub-install.in (datadir): New variable.
52710 (pkgdatadir): New variable.
52711 (pkglibdir): Removed.
52713 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52715 * DISTLIST: Added util/i386/pc/grub-install.in.
52717 * util/i386/pc/grub-install.in: New file.
52719 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52720 (grub_install_SOURCES): Likewise.
52722 * genmk.rb: Added support for scripts.
52723 (Script): New class.
52724 (scripts): New variable.
52726 * Makefile.in (install-local): Install sbin_SCRIPTS by
52728 (uninstall): Remove sbin_SCRIPTS.
52730 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52731 device, try to get a GRUB device by
52732 grub_util_biosdisk_get_grub_dev.
52735 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52736 description for --device-map.
52738 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52740 Change the semantics of variable hooks. They now return strings
52741 instead of error values.
52743 * util/i386/pc/grub-setup.c: Include grub/env.h.
52744 (setup): Use grub_device_set_root instead of grub_env_set.
52746 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52747 grub_env_get instead of grub_device_set_root and
52748 grub_device_get_root, respectively.
52750 * kern/main.c (grub_env_write_root): New function.
52751 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52752 grub_env_set instead of grub_device_set_root.
52754 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52756 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52757 rather than calling ENV->WRITE_HOOK afterwards.
52758 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52759 passing a pointer of a pointer.
52760 (grub_register_variable_hook): Change the types of "read_hook" and
52761 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52763 Allocate the default empty string on the heap, because this string
52764 may be freed later.
52766 * kern/device.c: Include grub/env.h.
52767 (grub_device_set_root): Removed.
52768 (grub_device_get_root): Likewise.
52769 (grub_device_open): Use grub_env_get instead of
52770 grub_device_get_root.
52772 * include/grub/env.h (grub_env_read_hook_t): New type.
52773 (grub_env_write_hook_t): Likewise.
52774 (grub_env_var): Change the types of "read_hook" and "write_hook"
52775 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52776 (grub_register_variable_hook): Likewise.
52778 * include/grub/device.h (grub_device_set_root): Removed.
52779 (grub_device_set_root): Likewise.
52781 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52782 make sure that DIRNAME terminates with '/', so that
52783 grub_fat_find_dir will fail if PATH is not a directory.
52785 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52787 Use the qualifier auto for print_files and print_files_long.
52788 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52790 Put a newline only if there is no error.
52791 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52794 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52796 * kern/partition.c (grub_partition_probe): Initialize PART to
52797 NULL. Otherwise, when no partition map is registered, this returns
52800 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52802 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52803 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52806 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52808 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52809 information on each device, if it does not have partitions. Print
52810 "Device" instead of "Disk", because this function is not specific
52813 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52814 static to ensure that it is put on the memory rather than a
52817 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52819 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52820 (grub_cat_init): Likewise.
52821 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52822 (options): Likewise.
52823 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52824 (grub_configfile_init): Likewise.
52825 * font/manager.c (GRUB_MOD_INIT): Likewise.
52826 * commands/help.c (GRUB_MOD_INIT): Likewise.
52827 (grub_help_init): Likewise.
52828 * normal/command.c (grub_command_init): Likewise.
52829 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52830 * disk/loopback.c (grub_loop_init): Likewise.
52831 (GRUB_MOD_INIT): Likewise.
52832 * commands/ls.c (grub_ls_init): Likewise.
52833 (GRUB_MOD_INIT): Likewise.
52834 (options): Likewise.
52835 * commands/boot.c (grub_boot_init): Likewise.
52836 (GRUB_MOD_INIT): Likewise.
52837 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52838 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52839 (GRUB_MOD_INIT): Likewise.
52840 * commands/cmp.c (grub_cmp_init): Likewise.
52841 (GRUB_MOD_INIT): Likewise.
52843 * normal/arg.c: Use <> instead of "" to include header files.
52844 (SHORT_ARG_HELP): New macro.
52845 (SHORT_ARG_USAGE): Likewise.
52846 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52847 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52849 (find_short): Check if C is 'h' or 'u' explicitly.
52850 (grub_arg_show_help): Use space characters instead of tabs. Treat
52851 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52852 are shown with --help and --usage only if they are not used for
52853 the command itself.
52854 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52857 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52858 const into "longarg". Change the type of "shortarg" to int.
52860 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52862 * boot/i386/pc/boot.S (boot_drive_check): New label.
52864 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52867 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52868 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52870 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52872 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52873 When turning off Gate A20, skip the check and return immediately,
52874 because this is not fatal usually.
52876 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52878 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52879 be 0x7C00 instead of 0x8000.
52881 * boot/i386/pc/pxeboot.S: Rewritten.
52883 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52885 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52888 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52890 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52891 robustness. This routine now supports a BIOS call and System
52892 Control Port A to modify the gate A20.
52894 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52895 Increased to 0x440.
52897 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52899 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52900 device path and resulting ihandle.
52901 (grub_ofdisk_close): dprintf the ihandle being closed.
52902 (grub_ofdisk_read): dprintf function parameters.
52903 * kern/mm.c (grub_mm_init_region): Likewise.
52904 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52905 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52906 size, and boot arguments.
52907 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52908 before loading into memory.
52909 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52910 before loading into memory.
52912 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52914 * kern/mm.c: Added much documentation.
52915 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52916 8, set to 5 instead of 8.
52918 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52920 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52922 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52923 (grub_mkdevicemap_SOURCES): New variable.
52925 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52926 lib/device.c of GRUB Legacy.
52928 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52930 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52931 instead of PATH is NULL.
52933 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52935 * commands/cmp.c (BUFFER_SIZE): New macro.
52936 (grub_cmd_cmp): Close the right file at the right time. Compare
52937 only data just read. Don't report files of different size as
52938 identical. Dynamically allocate buffers. Move variable
52939 declarations at the beginning of function.
52941 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52943 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52946 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52948 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52949 when backspace is pressed at beginning of line.
52951 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52953 * DISTLIST: Added genfslist.sh.
52955 * normal/main.c (fs_module_list): New variable.
52956 (autoload_fs_module): New function.
52957 (read_fs_list): Likewise.
52958 (grub_normal_execute): Call read_fs_list.
52960 * kern/fs.c (grub_fs_autoload_hook): New variable.
52961 (grub_fs_probe): Added support for auto-loading.
52963 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52964 (grub_fs_module_list_t): New type.
52966 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52967 (grub_fs_autoload_hook): New prototype.
52969 * genfslist.sh: New file.
52971 * genmk.rb: Added a rule to generate a filesystem list.
52973 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52975 * configure.ac: Fix the test for cross-compiling.
52977 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52978 define GRUB_UTIL anymore.
52980 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52981 so this function works on other systems than just big endian.
52982 (load_modules): Likewise.
52983 (add_segments): Likewise.
52985 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52987 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52988 contains `l' modifier, get a long from va_arg().
52990 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52992 * kern/mm.c (grub_free): If the next free block which is being
52993 merged is the first free block, set the first block to the block
52995 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52997 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52999 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
53000 `grub_ieee1275_chosen'.
53002 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
53004 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
53005 (grub_ieee1275_chosen): New variable.
53006 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
53008 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
53009 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53010 Rename first argument to `phandle' for consistency.
53011 (grub_ieee1275_get_property_length): Likewise.
53012 (grub_ieee1275_next_property): Likewise. Change type of first argument
53013 to grub_ieee1275_phandle_t.
53014 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
53015 Move export next to declaration.
53016 (grub_ieee1275_chosen): New variable.
53017 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
53018 Correct cosmetic typo.
53019 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
53020 `grub_ieee1275_chosen'.
53021 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
53022 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
53023 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
53024 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
53025 `grub_ieee1275_chosen'.
53027 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
53029 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
53031 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
53032 /chosen/bootargs as "variable=value" pairs.
53034 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
53036 * include/grub/misc.h (grub_dprintf): New macro.
53037 (grub_real_dprintf): New prototype.
53038 (grub_strword): Likewise.
53039 (grub_iswordseparator): Likewise.
53040 * kern/misc.c (grub_real_dprintf): New function.
53041 (grub_strword): Likewise.
53042 (grub_iswordseparator): Likewise.
53044 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
53046 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
53047 (roundup): Remove macro.
53048 (grub_ieee1275_flags): Make static.
53049 (grub_ieee1275_realmode): Remove.
53050 (grub_ieee1275_test_flag): New function.
53051 (grub_ieee1275_set_flag): Likewise.
53052 (find_options): Rename to `grub_ieee1275_find_options'; update
53053 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
53054 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
53055 (cmain): New prototype.
53056 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
53057 `grub_ieee1275_flags' directly.
53058 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
53059 machine/biosdisk.h.
53060 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
53061 Don't include grub/machine/init.h.
53062 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
53063 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53065 (grub_ieee1275_realmode): Likewise.
53066 (grub_ieee1275_flag): New enum.
53067 (grub_ieee1275_test_flag): New prototype.
53068 (grub_ieee1275_set_flag): New prototype.
53069 * include/grub/powerpc/ieee1275/init.h: Remove file.
53070 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
53071 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
53072 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
53073 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
53075 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
53076 `grub_ieee1275_test_flag'.
53077 (grub_ieee1275_encode_devname): Likewise.
53079 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
53081 * include/grub/powerpc/ieee1275/ieee1275.h
53082 (grub_ieee1275_encode_devname): New prototype.
53083 (grub_ieee1275_get_filename): Likewise.
53084 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
53086 (grub_set_prefix): Likewise.
53087 (grub_machine_init): Call grub_set_prefix.
53088 * kern/powerpc/ieee1275/openfw.c: Fix typos.
53089 (grub_parse_type): New enum.
53090 (grub_ieee1275_get_devargs): New function.
53091 (grub_ieee1275_get_devname): Likewise.
53092 (grub_ieee1275_parse_args): Likewise.
53093 (grub_ieee1275_get_filename): Likewise.
53094 (grub_ieee1275_encode_devname): Likewise.
53096 2005-03-30 Marco Gerards <metgerards@student.han.nl>
53098 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
53099 `grub_loader_unset'.
53101 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
53103 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
53104 instead of grub_ieee1275_interpret.
53105 (grub_halt_init): New function.
53106 (grub_halt_fini): Likewise.
53107 (GRUB_MOD_INIT): Correct message grammar.
53108 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
53109 instead of grub_ieee1275_interpret.
53110 (grub_reboot_init): New function.
53111 (grub_reboot_fini): Likewise.
53112 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
53113 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
53114 util/i386/pc/misc.c with commands/ieee1275/halt.c,
53115 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
53116 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
53118 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
53120 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
53122 (grub_halt): Likewise.
53123 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
53124 (cmain): Remove __attribute__((unused)).
53125 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
53126 (grub_heap_len): Likewise.
53127 (grub_machine_fini): New function.
53128 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
53129 (grub_halt): Likewise.
53130 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
53132 * util/powerpc/ieee1275/misc.c: New file.
53134 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
53136 * DISTLIST: New file.
53137 * gendistlist.sh: Likewise.
53139 * Makefile.in (COMMON_DISTFILES): Removed.
53140 (BOOT_DISTFILES): Likewise.
53141 (CONF_DISTFILES): Likewise.
53142 (DISK_DISTFILES): Likewise.
53143 (FS_DISTFILES): Likewise.
53144 (INCLUDE_DISTFILES): Likewise.
53145 (KERN_DISTFILES): Likewise.
53146 (LOADER_DISTFILES): Likewise.
53147 (TERM_DISTFILES): Likewise.
53148 (UTIL_DISTFILES): Likewise.
53149 (DISTFILES): Likewise.
53150 (uninstall): Uninstall files in $(pkgdata_DATA).
53151 (DISTLIST): New target.
53152 (distdir): Use the contents of the file DISTLIST to get a list of
53155 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
53157 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
53158 descriptor. This is ported from GRUB Legacy.
53160 * gencmdlist.sh: Added an extra semicolon to make it work with
53161 old sed versions. Reported by Robert Bihlmeyer
53162 <robbe@orcus.priv.at>.
53164 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
53166 Automatic loading of commands is supported.
53168 * normal/main.c (read_command_list): New function.
53169 (grub_normal_execute): Call read_command_list.
53171 * normal/command.c (grub_register_command): Return zero or CMD.
53172 Allocate CMD->NAME from the heap.
53173 Initialize CMD->MODULE_NAME to zero.
53174 Find the same name as well. If the same command is found and it is
53175 a dummy command, overwrite members. If it is not a dummy command,
53177 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53178 (grub_command_find): If a dummy command is found, load a module
53179 and retry to find a command only once.
53181 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53182 make sure that each command is loaded.
53184 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53186 (struct grub_command): Remove const from the member `name'.
53187 Add a new member `module_name'.
53188 (grub_register_command): Return grub_command_t.
53190 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53191 sure that each command is loaded.
53193 * genmk.rb (PModule::rule): Specify a module name without the
53194 suffix ".mod" to gencmdlist.sh.
53196 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53198 * gencmdlist.sh: New file.
53200 * genmk.rb (PModule::rule): Generate a rule for a command list.
53202 Generate command.lst from $(COMMANDFILES).
53204 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53205 (DATA): Added $(pkgdata_DATA).
53206 (install-local): Install files in $(pkgdata_DATA).
53208 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53210 * term/i386/pc/vga.c (debug_command): Removed.
53211 (GRUB_MOD_INIT): Do not register the command "debug".
53213 From Hollis Blanchard:
53214 * commands/configfile.c: New file.
53215 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53216 commands/configfile.c.
53217 (pkgdata_MODULES): Added configfile.mod.
53218 (configfile_mod_SOURCES): New variable.
53219 (configfile_mod_CFLAGS): Likewise.
53220 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53221 commands/configfile.c.
53222 (pkgdata_MODULES): Added configfile.mod.
53223 (configfile_mod_SOURCES): New variable.
53224 (configfile_mod_CFLAGS): Likewise.
53225 * util/grub-emu.c (main): Call grub_configfile_init and
53226 grub_configfile_fini.
53227 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53229 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53231 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53233 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53236 * commands/help.c (grub_cmd_help): Do not print newlines after
53237 the last command in print_command_help.
53239 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53241 * commands/default.h: New file.
53242 * commands/timeout.h: Likewise.
53243 * normal/context.c: Likewise.
53245 * util/misc.c: Do not include sys/times.h.
53246 Include sys/time.h and grub/machine/time.h.
53247 (grub_get_rtc): Rewritten with gettimeofday.
53249 * util/grub-emu.c (main): Call grub_default_init and
53250 grub_timeout_init before grub_normal_init, and call
53251 grub_timeout_fini and grub_default_fini after grub_main.
53253 * util/console.c (grub_ncurses_checkkey): Return the read
53256 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53259 * normal/main.c (read_config_file): Push MENU. If this fails,
53260 print an error and wait for a user input.
53261 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53262 If a menu is empty or an error occurs, pop MENU.
53263 (grub_normal_execute): Pop and free MENU after grub_menu_run
53266 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53268 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53270 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53272 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53274 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53277 * include/grub/normal.h (struct grub_menu_list): New struct.
53278 (grub_menu_list_t): New type.
53279 (struct grub_context): New struct.
53280 (grub_context_t): New type.
53281 (grub_register_command): Got rid of EXPORT_FUNC.
53282 (grub_unregister_command): Likewise.
53283 (grub_context_get): New prototype.
53284 (grub_context_get_current_menu): Likewise.
53285 (grub_context_push_menu): Likewise.
53286 (grub_context_pop_menu): Likewise.
53287 [GRUB_UTIL] (grub_default_init): Likewise.
53288 [GRUB_UTIL] (grub_default_fini): Likewise.
53289 [GRUB_UTIL] (grub_timeout_init): Likewise.
53290 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53292 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53293 commands/timeout.c and normal/context.c.
53294 (pkgdata_MODULES): Added default.mod and timeout.mod.
53295 (normal_mod_SOURCES): Added normal/context.c.
53296 (default_mod_SOURCES): New variable.
53297 (default_mod_CFLAGS): Likewise.
53298 (timeout_mod_SOURCES): Likewise.
53299 (timeout_mod_CFLAGS): Likewise.
53300 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53302 (pkgdata_MODULES): Added default.mod and timeout.mod.
53303 (normal_mod_SOURCES): Added normal/context.c.
53304 (default_mod_SOURCES): New variable.
53305 (default_mod_CFLAGS): Likewise.
53306 (timeout_mod_SOURCES): Likewise.
53307 (timeout_mod_CFLAGS): Likewise.
53309 * Makefile.in (all-local): Added $(MKFILES).
53311 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53313 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53314 (grub_emu_SOURCES): Likewise.
53315 (pkgdata_MODULES): Add `sun.mod'.
53316 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53317 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53319 (pkgdata_MODULES): Add `sun.mod'.
53320 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53321 * include/grub/partition.h (grub_sun_partition_map_init): New
53323 (grub_sun_partition_map_fini): Likewise.
53324 * partmap/sun.c: New file.
53325 * util/grub-emu.c (main): Initialize and de-initialize the sun
53326 partitionmap support.
53328 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53330 This implements an Emacs-like menu entry editor.
53332 * normal/menu_entry.c: New file.
53334 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53335 characters to ASCII.
53336 (saved_char): New variable.
53337 (grub_ncurses_checkkey): Rewritten completely.
53338 (grub_ncurses_getkey): Likewise.
53339 (grub_ncurses_init): Call raw instead of cbreak.
53341 * normal/menu.c (print_entry): Do not put a space.
53342 (init_page): Renamed to ...
53343 (grub_menu_init_page): ... this. All callers changed.
53344 (edit_menu_entry): Removed.
53345 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53347 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53349 * kern/misc.c (grub_vprintf): Call grub_refresh.
53351 * normal/menu.c (DISP_LEFT): Renamed to ...
53352 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53353 * normal/menu.c (DISP_UP): Renamed to ...
53354 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53355 * normal/menu.c (DISP_RIGHT): Renamed to ...
53356 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53357 * normal/menu.c (DISP_DOWN): Renamed to ...
53358 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53359 * normal/menu.c (DISP_HLINE): Renamed to ...
53360 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53361 * normal/menu.c (DISP_VLINE): Renamed to ...
53362 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53363 * normal/menu.c (DISP_UL): Renamed to ...
53364 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53365 * normal/menu.c (DISP_UR): Renamed to ...
53366 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53367 * normal/menu.c (DISP_LL): Renamed to ...
53368 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53369 * normal/menu.c (DISP_LR): Renamed to ...
53370 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53371 * normal/menu.c (TERM_WIDTH): Renamed to ...
53372 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53373 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53374 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53375 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53376 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53377 * normal/menu.c (TERM_MARGIN): Renamed to ...
53378 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53379 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53380 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53381 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53382 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53383 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53384 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53385 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53386 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53387 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53388 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53389 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53390 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53391 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53392 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53393 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53394 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53395 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53396 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53397 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53398 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53399 All callers changed.
53401 * include/grub/normal.h: New prototype.
53403 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53404 normal/menu_entry.c.
53405 (normal_mod_SOURCES): Likewise.
53406 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53407 (normal_mod_SOURCES): Likewise.
53409 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53411 * include/grub/normal.h (grub_halt_init): New prototype.
53412 (grub_halt_fini): Likewise.
53413 (grub_reboot_init): Likewise.
53414 (grub_reboot_fini): Likewise.
53416 * util/grub-emu.c: Include signal.h.
53417 (main_env): New global variable.
53418 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53420 (grub_machine_fini): New function.
53421 (main): Call grub_halt_init and grub_reboot_init before
53422 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53423 Call setjmp with MAIN_ENV to go back afterwards.
53424 Call grub_machine_fini right before return.
53426 * include/grub/util/misc.h: Include setjmp.h.
53427 (main_env): New prototype.
53429 * include/grub/kernel.h (grub_machine_fini): New prototype.
53430 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53431 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53433 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53434 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53435 * term/i386/pc/console.c (grub_console_fini): Likewise.
53437 * util/i386/pc/misc.c: New file.
53439 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53440 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53441 commands/i386/pc/reboot.c.
53443 2005-02-14 Guillem Jover <guillem@hadrons.org>
53445 * include/grub/dl.h (grub_dl_check_header): New prototype.
53446 (grub_arch_dl_check_header): Change return type to grub_err_t,
53447 remove size parameter and export function. Update all callers.
53448 * kern/dl.c (grub_dl_check_header): New function.
53449 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53450 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53451 are inside the core.
53452 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53453 independent ELF header checks.
53454 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53455 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53456 `grub_dl_check_header' instead of explicit checks. Check for the
53458 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53459 `grub_dl_check_header' instead of explicit checks. Remove arch
53460 specific ELF header checks.
53462 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53465 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53467 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53468 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53470 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53472 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53473 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53474 (part_map_iterate): Clear `grub_errno' and return 0 if
53475 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53476 * partmap/amiga.c (amiga_partition_map_iterate): Return
53477 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53478 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53480 2005-02-01 Guillem Jover <guillem@hadrons.org>
53482 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53485 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53487 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53489 (grub_rescue_cmd_linux): New prototype.
53490 (grub_rescue_cmd_initrd): Likewise.
53491 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53493 (grub_linux_release_mem): Release the memory for the initrd.
53494 (grub_load_linux): Renamed from this...
53495 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53496 Changed `entry' not to be static. Loop over memory regions to
53497 find another one when the default fails.
53498 (grub_rescue_cmd_initrd): New function.
53499 (grub_linux_init): Remove function.
53500 (grub_linux_fini): Likewise.
53501 (GRUB_MOD_INIT): Register `initrd'.
53502 (GRUB_MOD_FINI): Unregister `initrd'.
53503 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53505 (grub_linux_normal_fini): Likewise.
53506 (GRUB_MOD_INIT): Register `initrd'.
53507 (GRUB_MOD_FINI): Unregister `initrd'.
53509 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53511 * commands/help.c: New file.
53512 * normal/arg.c (show_help): Renamed to...
53513 (grub_arg_show_help): ... this.
53514 * commands/i386/pc/halt.c: New file.
53515 * commands/i386/pc/reboot.c: Likewise.
53516 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53517 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53518 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53519 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53521 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53523 (pkgdata_MODULES): Add `help.mod'.
53524 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53525 * grub/i386/pc/init.h (grub_reboot): New prototype.
53526 (grub_halt): Likewise.
53527 * include/grub/normal.h (grub_arg_show_help): New prototype.
53528 (grub_help_init): Likewise.
53529 (grub_help_fini): Likewise.
53530 * util/grub-emu.c (main): Initialize and deinitialize the help
53533 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53535 * normal/command.c (grub_command_init): Fixed the description of
53536 the `set' and `unset' commands.
53538 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53540 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53542 * commands/ieee1275/halt.c: New file.
53543 * commands/ieee1275/reboot.c: Likewise.
53544 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53545 `__attribute__ ((unused))'. Some GCS related fixed.
53546 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53547 (grub_suspend_fini): Likewise.
53548 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53550 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53551 (halt_mod_CFLAGS): New variables.
53552 * include/grub/powerpc/ieee1275/ieee1275.h
53553 (grub_ieee1275_interpret): New prototype.
53555 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53557 * include/grub/misc.h (memmove): New prototype.
53558 (memcpy): Likewise.
53560 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53562 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53563 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53565 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53567 * kern/misc.c (grub_strndup): Function rewritten.
53569 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53571 * normal/menu.c (TERM_WIDTH): Macro redefined.
53572 (TERM_TOP_BORDER_Y): Likewise.
53573 (draw_border): Replaced while-loop by a for-loop. Make the number
53574 of lines consistent with the number of lines displayed in
53575 print_entries. Added a margin below the rectangle.
53576 (print_entry): Make the entry fit in the rectangle.
53577 (print_entries): Display the scroll arrows next to the right
53580 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53582 * fs/minix.c (grub_minix_find_file): Reserve more space for
53583 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53584 `grub_strncpy' to copy `path' into it.
53586 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53588 Add the loopback device, a device via which files can be accessed
53591 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53592 (pkgdata_MODULES): Add loopback.mod.
53593 (loopback_mod_SOURCES): New variable.
53594 (loopback_mod_CFLAGS): Likewise.
53595 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53597 (pkgdata_MODULES): Add loopback.mod.
53598 (loopback_mod_SOURCES): New variable.
53599 (loopback_mod_CFLAGS): Likewise.
53600 * disk/loopback.c: new file.
53601 * include/grub/normal.h (grub_loop_init): New prototype.
53602 (grub_loop_fini): New prototype.
53603 * util/grub-emu.c (main): Initialize and de-initialize loopback
53605 * include/grub/disk.h (grub_disk_dev_id): Add
53606 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53608 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53610 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53612 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53613 (suspend_mod_SOURCES): New variable.
53614 (suspend_mod_CFLAGS): Likewise.
53615 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53617 * commands/ieee1275/suspend.c: New file.
53619 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53621 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53622 ((unused))' to `__attribute__ ((used))'.
53623 (GRUB_MOD_FINI): Likewise.
53624 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53625 * genmk.rb (PModule): Assign space to common symbols when linking
53628 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53630 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53631 `unsigned' arguments to `grub_size_t'.
53632 (grub_malloc): Likewise.
53633 (grub_realloc): Likewise.
53634 (grub_memalign): Likewise.
53635 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53636 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53637 * util/misc.c (grub_malloc): Likewise.
53638 (grub_realloc): Likewise.
53639 * kern/mm.c (get_header_from_pointer): Change the casts to
53640 `unsigned' into a cast to `grub_size_t'.
53642 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53643 point to `currnode' when `currnode' is changed.
53645 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53646 Schottelius <nico-linux@schottelius.org>.
53648 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53650 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53651 (note_path): Remove variable.
53652 (GRUB_IEEE1275_NOTE_NAME): New macro.
53653 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53654 (grub_ieee1275_note_hdr): New structure.
53655 (grub_ieee1275_note_desc): Likewise.
53656 (grub_ieee1275_note): Likewise.
53657 (load_note): Remove `dir' argument. All callers updated. Remove
53658 `note_img' and `path'. Do not load a file from `note_path'.
53659 Initialize a struct grub_ieee1275_note and write that to `out'.
53660 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53662 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53664 * util/misc.c (grub_util_read_image): Revert last change. It
53665 called `grub_util_read_at', which seeks from the beginning of the
53668 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53670 * TODO: Add note about endianness in grub-mkimage.
53671 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53673 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53674 (grub_mkimage_SOURCES): New target.
53675 * include/grub/kernel.h (grub_start_addr): Remove variable.
53676 (grub_end_addr): Likewise.
53677 (grub_total_module_size): Likewise.
53678 (grub_kernel_image_size): Likewise.
53679 (GRUB_MODULE_MAGIC): New constant.
53680 (grub_module_info): New structure.
53681 (grub_arch_modules_addr): New prototype.
53682 (grub_get_end_addr): Remove prototype.
53683 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53684 * include/grub/powerpc/ieee1275/kernel.h: New file.
53685 * include/grub/util/misc.h (grub_util_get_fp_size): New
53687 (grub_util_read_at): Likewise.
53688 (grub_util_write_image_at): Likewise.
53689 * kern/main.c (grub_get_end_addr): Remove function.
53690 (grub_load_modules): Call grub_arch_modules_addr instead of using
53691 grub_end_addr. Look for a grub_module_info struct in memory. Use
53692 the grub_module_info fields instead of calling grub_get_end_addr
53693 as loop conditions. Move grub_add_unused_region code here.
53694 (grub_add_unused_region): Remove function.
53695 * kern/i386/pc/init.c: Include grub/cache.h.
53696 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53697 one call to add_mem_region.
53698 (grub_arch_modules_addr): New function.
53699 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53700 (grub_total_module_size): Likewise.
53701 Include grub/machine/kernel.h.
53702 (grub_arch_modules_addr): New function.
53703 * util/grub-emu.c (grub_end_addr): Remove variable.
53704 (grub_total_module_size): Likewise.
53705 (grub_arch_modules_addr): New function.
53706 * util/misc.c: Include unistd.h.
53707 (grub_util_get_fp_size): New function.
53708 (grub_util_read_at): Likewise.
53709 (grub_util_write_image_at): Likewise.
53710 (grub_util_read_image): Call grub_util_read_at.
53711 (grub_util_write_image): Call grub_util_write_image_at.
53712 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53713 additional memory in kernel_img for a struct grub_module_info.
53714 Fill in that grub_module_info.
53715 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53717 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53719 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53721 * include/grub/powerpc/ieee1275/ieee1275.h
53722 (grub_ieee1275_milliseconds): New prototype.
53723 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53725 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53726 grub_ieee1275_milliseconds.
53728 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53730 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53732 (find_options): New function.
53733 (cmain): Call find_options.
53734 * include/grub/powerpc/ieee1275/ieee1275.h
53735 (grub_ieee1275_realmode): New extern variable.
53736 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53737 grub_map if grub_ieee1275_realmode is false.
53739 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53741 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53742 lines are inserted and make it work like readline. Reported by
53743 Vincent Pelletier <subdino2004@yahoo.fr>.
53745 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53747 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53749 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53750 `kern/powerpc/cache.S'.
53752 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53754 * genmk.rb: Handle the `Program' class in the main loop. Written
53755 by Johan Rydberg <jrydberg@gnu.org>.
53756 (Program): New class.
53757 (programs): New variable.
53758 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53759 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53760 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53761 (help_arch): Function removed.
53762 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53763 `powerpc/libgcc.h' and `loader.h'.
53764 (pkgdata_PROGRAMS): New variable.
53765 (sbin_UTILITIES): Variable removed.
53766 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53767 (grubof_SOURCES): Variable re-defined so it only includes the
53768 core functionality.
53769 (grubof_CFLAGS): Remove `-DGRUBOF'.
53770 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53771 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53772 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53773 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53774 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53775 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53776 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53777 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53778 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53779 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53780 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53781 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53782 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53783 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53784 (pc_mod_CFLAGS): New variables.
53785 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53786 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53787 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53788 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53790 * include/grub/i386/pc/init.h (grub_os_area_addr)
53791 (rub_os_area_size): ... to here.
53792 * include/grub/powerpc/ieee1275/ieee1275.h
53793 (grub_ieee1275_entry_fn): Export symbol.
53794 * include/grub/powerpc/ieee1275/init.h: New file.
53795 * include/grub/powerpc/libgcc.h: Likewise.
53796 * include/grub/cache.h: Likewise.
53797 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53798 <hollis@penguinppc.org>.
53799 * kern/dl.c: Include <grub/cache.h>.
53800 (grub_dl_flush_cache): New function.
53801 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53803 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53804 (grub_console_init): Removed prototypes.
53805 (grub_machine_init): Don't initialize the modules anymore.
53806 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53808 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53809 Macro undef removed.
53810 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53811 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53812 relocation `R_PPC_REL32'. Return an error when the relocation is
53814 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53815 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53816 * util/misc.c (grub_arch_sync_caches): Likewise.
53818 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53820 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53821 `symlist.c', add `grubof_symlist.c'.
53822 (symlist.c): Variable removed.
53823 (grubof_HEADERS): Variable added.
53824 (grubof_symlist.c): New target.
53825 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53826 `kernel_img_HEADERS'.
53827 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53828 * kern/powerpc/dl.c: New file.
53829 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53831 (grub_arch_dl_relocate_symbols): Likewise.
53832 (grub_register_exported_symbols): Likewise.
53834 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53836 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53837 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53838 to fail instead. Reported by Vincent Pelletier
53839 <subdino2004@yahoo.fr>.
53841 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53842 it is not allocated. Reported by Vincent Pelletier
53843 <subdino2004@yahoo.fr>.
53845 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53846 output so the output looks better.
53848 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53850 Modulize the partition map support and add support for the amiga
53853 * commands/ls.c: Include <grub/partition.h> instead of
53854 <grub/machine/partition.h>.
53855 * kern/disk.c: Likewise.
53856 * kern/rescue.c: Likewise.
53857 * loader/i386/pc/chainloader.c: Likewise.
53858 * normal/cmdline.c: Likewise.
53859 * kern/powerpc/ieee1275/init.c: Likewise.
53860 (grub_machine_init): Call `grub_pc_partition_map_init',
53861 `grub_amiga_partition_map_init' and
53862 `grub_apple_partition_map_init'.
53863 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53864 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53865 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53866 `partition.h' and `pc_partition.h'.
53867 (grub_setup_SOURCES): Remove
53868 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53869 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53870 (grub_emu_SOURCES): Likewise.
53871 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53872 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53873 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53874 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53875 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53876 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53877 (grubof_SOURCES): Likewise.
53878 * disk/i386/pc/partition.c: File removed.
53879 * disk/powerpc/ieee1275/partition.c: Likewise.
53880 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53881 * include/grub/i386/pc/partition.h: Likewise.
53882 * kern/partition.c: New file.
53883 * partmap/amiga.c: Likewise.
53884 * partmap/apple.c: Likewise.
53885 * partmap/pc.c: Likewise.
53886 * include/grub/partition.h: Likewise..
53887 * include/grub/pc_partition.h: Likewise.
53888 * util/grub-emu.c: Include <grub/partition.h> instead of
53889 <grub/machine/partition.h>.
53890 (main): Call `grub_pc_partition_map_init',
53891 `grub_amiga_partition_map_init' and
53892 `grub_apple_partition_map_init' and deinitialize afterwards.
53893 * util/i386/pc/biosdisk.c: Include `#include
53894 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53895 `<grub/machine/partition.h>'.
53896 * util/i386/pc/grub-setup.c: Likewise.
53897 * util/i386/pc/biosdisk.c: Likewise.
53898 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53899 partition information in case of a PC partition.
53900 * util/i386/pc/grub-setup.c: Include `#include
53901 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53902 `<grub/machine/partition.h>'.
53903 (setup): Only access the PC specific partition information in case
53906 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53908 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53909 (grub_longjmp): Likewise.
53910 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53912 * normal/powerpc/setjmp.S: New file.
53913 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53914 `normal/powerpc/setjmp.S'.
53915 (grubof_CFLAGS): Add `-DGRUBOF'.
53916 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53917 [GRUB_UTIL && !GRUBOF].
53919 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53921 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53922 property named `name'. Correctly handle the error returned by
53923 `grub_ieee1275_finddevice' if a device can not be opened.
53925 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53927 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53928 `actual' for negativity.
53929 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53932 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53934 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53935 (PAGE_OFFSET): New macro.
53936 (CRTC_ADDR_PORT): Likewise.
53937 (CRTC_DATA_PORT): Likewise.
53938 (START_ADDR_HIGH_REGISTER): Likewise.
53939 (START_ADDR_LOW_REGISTER): Likewise.
53940 (GRAPHICS_ADDR_PORT): Likewise.
53941 (GRAPHICS_DATA_PORT): Likewise.
53942 (READ_MAP_REGISTER): Likewise.
53943 (INPUT_STATUS1_REGISTER): Likewise.
53944 (INPUT_STATUS1_VERTR_BIT): Likewise.
53945 (page): New variable.
53946 (wait_vretrace): New function.
53947 (set_read_map): Likewise.
53948 (set_start_address): Likewise.
53949 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53951 (check_vga_mem): Take the page into account.
53952 (write_char): Likewise.
53953 (write_cursor): Likewise.
53954 (scroll_up): Likewise. Copy the page to the page that is not
53955 shown and switch between both pages.
53956 (grub_vga_putchar): Fix off by one error.
53957 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53960 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53962 Add support for iso9660 (including rockridge).
53964 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53965 (iso9660_mod_SOURCES): New variable.
53966 (iso9660_mod_CFLAGS): Likewise.
53967 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53968 * include/grub/fs.h (grub_iso9660_init): New prototype.
53969 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53970 * fs/iso9660.c: New file.
53972 * include/grub/misc.h (grub_strncat): New prototype.
53973 * kern/misc.c (grub_strncat): New function.
53975 * fs/hfs.c (grub_hfs_mount): Translate the error
53976 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53977 * fs/jfs.c (grub_jfs_mount): Likewise.
53978 * fs/ufs.c (grub_ufs_mount): Likewise.
53980 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53982 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53983 which initialized BAT registers.
53984 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53985 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53987 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53988 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53990 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53991 (grub_mapclaim): Likewise.
53992 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53993 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53996 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53998 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53999 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
54000 -ffreestanding and -msoft-float.
54002 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
54004 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
54005 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
54006 set in grub_ieee1275_flags.
54008 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
54010 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
54012 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
54013 grub_console_init first.
54014 Change the memory range used for grub_ieee1275_claim and
54015 grub_mm_init_region.
54016 Print an error message if the claim fails.
54017 Include <grub/misc.h>.
54019 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
54021 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
54022 Call grub_children_iterate for device nodes of type `scsi',
54024 (grub_ofdisk_open): Remove manual device alias resolution.
54025 Fix memory leak when device cannot be opened.
54026 * include/grub/powerpc/ieee1275/ieee1275.h
54027 (grub_children_iterate): New prototype.
54028 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
54030 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54031 Return -1 if args.size was -1.
54033 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
54035 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
54036 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
54037 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
54038 Open Firmware's memory for it; claim memory from _start to _end.
54039 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
54040 (_end): New extern.
54041 (_start): Zero BSS from __bss_start to _end.
54042 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
54044 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
54046 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
54048 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
54049 -1 if args.base was -1.
54051 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
54053 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
54054 escape sequence instead of a literal ^L. Also call
54055 grub_ofconsole_gotoxy.
54057 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
54059 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
54060 void * arguments to grub_addr_t. All callers updated. Also make
54061 the `result' argument optional.
54062 (grub_ieee1275_release): change void * arguments to grub_addr_t.
54063 All callers updated.
54065 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
54067 * commands/ls.c (grub_ls_list_files): Use the string following the
54068 initial ')', if present, as the filesystem path.
54069 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
54071 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
54073 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
54075 Make the source code of the menu interface more readable.
54077 * normal/menu.c: Include grub/mm.h.
54078 (TERM_WIDTH): New macro.
54079 (TERM_HEIGHT): Likewise.
54080 (TERM_INFO_HEIGHT): Likewise.
54081 (TERM_MARGIN): Likewise.
54082 (TERM_SCROLL_WIDTH): Likewise.
54083 (TERM_TOP_BORDER_Y): Likewise.
54084 (TERM_LEFT_BORDER_X): Likewise.
54085 (TERM_BORDER_WIDTH): Likewise.
54086 (TERM_MESSAGE_HEIGHT): Likewise.
54087 (TERM_BORDER_HEIGHT): Likewise.
54088 (TERM_NUM_ENTRIES): Likewise.
54089 (TERM_FIRST_ENTRY_Y): Likewise.
54090 (TERM_ENTRY_WIDTH): Likewise.
54091 (TERM_CURSOR_X): Likewise.
54092 (draw_border): Use macros instead of magic numbers.
54093 (print_entry): Likewise.
54094 (print_entries): Likewise.
54095 (run_menu): Likewise. Also, handle the key 'e'.
54096 (run_menu_entry): Ignore empty command lines.
54097 (print_message): Added a new argument EDIT. If EDIT is true,
54098 print a different message.
54099 (init_page): Likewise.
54100 (edit_menu_entry): New function. Not implemented yet.
54102 2004-09-17 Marco Gerards <metgerards@student.han.nl>
54104 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
54105 can be loaded from normal mode.
54107 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
54109 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
54110 (multiboot_mod_CFLAGS): New variables.
54111 * loader/i386/pc/linux_normal.c: New file.
54112 * loader/i386/pc/multiboot_normal.c: Likewise.
54114 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
54115 attribute `unused'.
54117 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
54118 `fdiro' to read the mode information from instead of `diro'.
54120 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
54121 looking up a symlink.
54123 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
54125 * normal/command.c (grub_command_execute): Don't parse the
54126 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
54127 flags of the command.
54129 * normal/menu.c (grub_menu_run): Fix typo.
54131 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
54133 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
54135 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
54136 `y + 1' instead of `y - 1'.
54138 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
54140 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
54142 From Hollis Blanchard <hollis@penguinppc.org>:
54143 * kern/misc.c (memmove): New alias for grub_memmove.
54144 (memcmp): New alias for grub_memcmp.
54145 (memset): New alias for grub_memset.
54146 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54147 Change "int handle" to "grub_ieee1275_phandle_t handle".
54148 * include/grub/powerpc/ieee1275/ieee1275.h
54149 (grub_ieee1275_get_property): Likewise.
54151 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
54153 Added normal mode command `chainloader' as module chain.mod, which
54154 depends on normal.mod and _chain.mod.
54156 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
54157 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
54158 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
54160 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
54161 but arguments parsing moved to ...
54162 (grub_chainloader_cmd): ... here. New function.
54163 * include/grub/i386/pc/chainloader.h: New file.
54164 * loader/i386/pc/chainloader_normal.c: Likewise.
54166 2004-09-11 Marco Gerards <metgerards@student.han.nl>
54168 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54169 (grub_mkimage_LDFLAGS): Likewise.
54170 (grub_emu_SOURCES): Likewise.
54171 (kernel_img_HEADERS): Added fshelp.h.
54172 * fs/ext2.c: Include <grub/fshelp.h>.
54173 (FILETYPE_REG): New macro.
54174 (FILETYPE_INO_REG): Likewise.
54175 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54177 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
54179 (grub_fshelp_node): New struct.
54180 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54182 (grub_ext2_get_file_block): Removed function.
54183 (grub_ext2_read_block): New function.
54184 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54185 This function was written.
54186 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54187 (grub_ext2_find_file): Removed function.
54188 (grub_ext2_read_symlink): New function.
54189 (grub_ext2_iterate_dir): Likewise.
54190 (grub_ext2_open): Rewritten.
54191 (grub_ext2_dir): Rewritten.
54192 * include/grub/fshelp.h: New file.
54193 * fs/fshelp.c: Likewise.
54195 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54197 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54198 (print_message): Add a missing newline.
54199 (run_menu): Added timeout support.
54200 (run_menu_entry): New local function.
54201 (grub_menu_run): Added support for booting.
54203 * kern/loader.c (grub_loader_is_loaded): New function.
54205 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54206 (grub_get_rtc): Exported.
54208 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54209 (grub_get_rtc): Exported.
54211 * include/grub/normal.h (struct grub_command_list): Remove
54212 constant from the member `command'.
54214 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54216 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54218 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54220 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54222 Add support for the JFS filesystem.
54224 * fs/jfs.c: New file.
54225 * include/grub/fs.h (grub_jfs_init): New prototype.
54226 (grub_jfs_fini): New prototype.
54227 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54228 (grub_emu_SOURCES): Likewise.
54229 (pkgdata_MODULES): Add jfs.mod.
54230 (jfs_mod_SOURCES): New variable.
54231 (jfs_mod_CFLAGS): Likewise.
54232 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54233 (grubof_SOURCES): Likewise.
54234 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54236 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54237 endian to the host endian.
54238 (grub_fat_utf16_to_utf8): Move function from there...
54239 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54240 the endianness of the source string anymore.
54241 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54243 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54245 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54246 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54247 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54248 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54250 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54251 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54252 for `node_found' and `it_dir'.
54253 (grub_hfs_dir): Add prototype for `dir_hook'.
54255 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54256 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54257 and `indir32' to silence a gcc warning.
54259 * include/grub/fs.h (grub_hfs_init): New prototype.
54260 (grub_hfs_fini): Likewise.
54263 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54265 Each disk device has its own id now. This is useful to make use
54266 of multiple disk devices.
54268 * include/grub/disk.h (grub_disk_dev_id): New enum.
54269 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54270 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54272 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54273 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54275 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54276 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54278 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54279 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54281 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54282 "id" which is used by the cache manager.
54284 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54287 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54289 * fs/hfs.c: New file.
54290 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54291 (grub_emu_SOURCES): Likewise.
54292 (pkgdata_MODULES): Add hfs.mod.
54293 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54294 (grubof_SOURCES): Likewise.
54295 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54297 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54298 * kern/misc.c (grub_strncasecmp): Add function.
54300 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54302 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54305 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54306 (grub_ext2_dir): In case the directory entry type is unknown, read
54309 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54311 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54312 grub_load_linux instead of grub_rescue_cmd_linux as second
54313 argument of grub_rescue_register_command.
54315 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54317 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54319 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54321 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54322 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54323 `loader/powerpc/ieee1275/linux.c',
54324 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54325 * include/grub/powerpc/ieee1275/ieee1275.h
54326 (grub_ieee1275_release): New prototype.
54327 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54328 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54329 normal, boot, linux and linux_normal.
54330 * loader/powerpc/ieee1275/linux.c: New file.
54331 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54333 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54335 * normal/arg.c (grub_arg_parse): Correct error handling after
54336 reallocating the argumentlist (check if `argl' is not null instead
54337 of checking if `args' is not null).
54338 * kern/mm.c (grub_realloc): Return the same pointer when using the
54339 same region, instead of returning the header address.
54341 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54343 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54344 one block instead of two when looking for the initial partition.
54345 (grub_partition_probe): Initialize the local variable `p' with 0.
54346 Use base 10 for the grub_strtoul call.
54347 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54348 need for one local variable.
54349 (grub_strtoul): Don't add the new value to `num', instead of that
54352 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54354 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54355 (pxeboot_img_SOURCES): New variable.
54356 (pxeboot_img_ASFLAGS): Likewise.
54357 (pxeboot_img_LDFLAGS): Likewise.
54358 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54359 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54360 <lode_leroy@hotmail.com>.
54362 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54364 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54365 there was no input.
54367 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54369 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54370 the history buffer logic.
54372 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54374 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54375 (FILETYPE_INO_SYMLINK): New macros.
54376 (grub_ext2_find_file): Check if the node is a directory using the
54377 inode stat information instead of using the filetype in the
54378 dirent. Exclude the first character of an absolute symlink.
54379 (grub_ext2_dir): Mask out the filetype part of the mode member of
54382 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54384 Add support for UFS version 1 and 2. Add support for the minix
54385 filesystem version 1 and 2, both the variants with 14 and 30 long
54388 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54390 (grub_emu_SOURCES): Likewise.
54391 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54392 (ufs_mod_SOURCES): New variable.
54393 (ufs_mod_CFLAGS): Likewise.
54394 (minix_mod_SOURCES): Likewise.
54395 (minix_mod_CFLAGS): Likewise.
54396 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54398 (grubof_SOURCES): Likewise.
54399 * fs/ufs.c: New file.
54400 * fs/minix.c: New file.
54401 * include/grub/fs.h (grub_ufs_init): New prototype.
54402 (grub_ufs_fini): Likewise.
54403 (grub_minix_init): Likewise.
54404 (grub_minix_fini): Likewise.
54405 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54408 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54410 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54411 commands/ls.c, commands/terminal.c, commands/boot.c,
54412 commands/cmp.c and commands/cat.c.
54413 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54415 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54418 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54420 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54421 and grub_, respectively. Because the conversion is trivial and
54422 mechanical, I omit the details here. Please refer to the CVS
54423 if you need more information.
54425 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54427 * include/pupa: Renamed to ...
54428 * include/grub: ... this.
54429 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54430 * util/i386/pc/grub-mkimage.c: ... this.
54431 * util/i386/pc/pupa-setup.c: Renamed to ...
54432 * util/i386/pc/grub-setup.c: ... this.
54433 * util/pupa-emu.c: Renamed to ...
54434 * util/grub-emu.c: ... this.
54436 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54438 Add support for the newworld apple macintosh (PPC). This has been
54439 tested on the powerbook 2000 only. It only adds support for
54440 generic ieee1275 functions, console and disk support. This should
54441 be easy to port to other architectures with support for Open
54444 * configure.ac: Accept the powerpc as host_cpu. In the case of
54445 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54446 specific tests are only executed while building for the i386.
54447 Inverse test for crosscompile.
54448 * genmk.rb (Utility): Allow assembler files.
54449 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54450 * conf/powerpc-ieee1275.rmk: New file.
54451 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54452 * disk/powerpc/ieee1275/partition.c: Likewise.
54453 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54454 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54455 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54456 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54457 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54458 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54459 * include/pupa/powerpc/ieee1275/loader.h
54460 * include/pupa/powerpc/setjmp.h: Likewise.
54461 * include/pupa/powerpc/types.h: Likewise.
54462 * kern/powerpc/ieee1275/init.c: Likewise.
54463 * kern/powerpc/ieee1275/openfw.c: Likewise.
54464 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54466 These files were written by Johan Rydberg
54467 (jrydberg@night.trouble.net) and I only modified them slightly.
54469 * boot/powerpc/ieee1275/cmain.c: New file.
54470 * boot/powerpc/ieee1275/crt0.S: Likewise.
54471 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54472 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54474 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54476 * Makefile.in: Update copyright.
54477 * genmodsrc.sh: Likewise.
54478 * gensymlist.sh: Likewise.
54479 * term/i386/pc/vga.c: Indent correctly.
54481 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54482 bugreporting address.
54483 * util/i386/pc/pupa-setup.c (usage): Likewise,
54484 (main): Call pupa_ext2_init and pupa_ext2_fini.
54486 * fs/fat.c (log2): Renamed to ...
54487 (fat_log2): ... this.
54488 All callers changed.
54489 * kern/misc.c (memcpy): Alias to pupa_memmove.
54490 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54492 * util/console.c (pupa_ncurses_fini): Return 0.
54494 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54495 Move fail label here.
54496 [__GNU__]: Don't warn when using stat.
54497 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54498 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54499 long int. Use strtol instead of strtoul.
54501 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54503 * commands/boot.c: New file.
54504 * commands/cat.c: Likewise.
54505 * commands/cmp.c: Likewise.
54506 * commands/ls.c: Likewise.
54507 * commands/terminal.c: Likewise.
54508 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54509 (pupa_register_command): Changed interface to match the new
54511 (pupa_command_execute): Changed (almost rewritten) so it uses
54512 pupa_split_command. Added support for setting variables using the
54514 (rescue_command): Changed to work with the new argument parser.
54515 (terminal_command): Moved from here to commands/terminal.c.
54516 (set_command): New function.
54517 (unset_command): New function.
54518 (insmod_command): New function.
54519 (rmmod_command): New function.
54520 (lsmod_command): New function.
54521 (pupa_command_init): Don't initialize the command terminal
54522 anymore. Initialize the commands set, unset, insmod, rmmod and
54524 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54525 (kernel_img_HEADERS): Add arg.h and env.h.
54526 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54527 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54528 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54530 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54532 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54533 (boot_mod_SOURCES): New variable.
54534 (terminal_mod_SOURCES): Likewise.
54535 (ls_mod_SOURCES): Likewise.
54536 (cmp_mod_SOURCES): Likewise.
54537 (cat_mod_SOURCES): Likewise.
54539 * normal/arg.c: New file.
54540 * kern/env.c: Likewise.
54541 * include/pupa/arg.h: Likewise.
54542 * include/pupa/env.h: Likewise.
54543 * font/manager.c (font_command): Changed to match argument parsing
54545 (PUPA_MOD_INIT): Likewise.
54546 * hello/hello.c (pupa_cmd_hello): Likewise.
54547 (PUPA_MOD_INIT): Likewise.
54548 * include/pupa/disk.h: Include <pupa/device.h>.
54549 (pupa_print_partinfo): New prototype.
54550 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54551 (pupa_dl_get_prefix): Likewise.
54552 * include/pupa/misc.h: Include <pupa/err.h>.
54553 (pupa_isgraph): New prototype.
54554 (pupa_isdigit): Likewise.
54555 (pupa_split_cmdline): Likewise.
54556 * include/pupa/normal.h: Include <pupa/arg.h>.
54557 (pupa_command): Changed the prototype of the member `func' to
54558 match the argument parsing interface. Added member `options'.
54559 (pupa_register_command): Updated to match function.
54560 (pupa_arg_parse): New prototype.
54561 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54562 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54563 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54564 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54565 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54566 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54567 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54568 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54569 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54570 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54571 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54572 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54573 * kern/disk.c: Include <pupa/file.h>.
54574 (pupa_print_partinfo): New function.
54575 * kern/dl.c: Include <pupa/env.h>.
54576 (pupa_dl_dir): Variable removed.
54577 (pupa_dl_load): Use the environment variable `prefix' instead of
54578 the variable pupa_dl_dir.
54579 (pupa_dl_set_prefix): Function removed.
54580 (pupa_dl_get_prefix): Likewise.
54581 * kern/i386/pc/init.c: Include <pupa/env.h>.
54582 (pupa_machine_init): Use the environment variable `prefix' instead of
54583 using pupa_dl_set_prefix to set the prefix.
54584 * kern/main.c: Include <pupa/env.h>.
54585 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54586 using pupa_dl_get_prefix to get the prefix.
54587 * kern/misc.c: Include <pupa/env.h>.
54588 (pupa_isdigit): New function.
54589 (pupa_isgraph): Likewise.
54590 (pupa_ftoa): Likewise.
54591 (pupa_vsprintf): Added support for printing values of the type
54592 `double'. Make it possible to format variable output when using
54593 formatting like `%1.2%f'.
54594 (pupa_split_cmdline): New function.
54595 * kern/rescue.c: Include <pupa/env.h>.
54596 (next_word): Removed function.
54597 (pupa_rescue_cmd_prefix): Likewise.
54598 (pupa_rescue_cmd_set): New function.
54599 (pupa_rescue_cmd_unset): New function.
54600 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54601 split the command line instead of splitting it here. Added
54602 support for setting variables using the syntax `foo=bar'. Don't
54603 initialize the prefix command anymore. Initialized the set and
54605 * normal/cmdline.c: Include <pupa/env.h>.
54606 (pupa_tab_complete): Added prototypes for print_simple_completion,
54607 print_partition_completion, add_completion, iterate_commands,
54608 iterate_dev, iterate_part and iterate_dir. Moved code to print
54609 partition information from here to kern/disk.c.
54610 (pupa_cmdline_run): Don't check if the function exists anymore.
54611 * normal/main.c: Include <pupa/env.h>.
54612 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54613 instead of using pupa_dl_get_prefix to get the prefix.
54614 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54615 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54617 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54618 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54619 ((unused))' to silence a gcc warning.
54620 (pupa_vga_setcolor): Likewise.
54621 (debug_command): Changed to match argument parsing
54623 * util/pupa-emu.c: Include <pupa/env.h>.
54624 (options): Added 0's for unused fields to silence a gcc warning.
54626 (main): Use the environment variable `prefix' instead of using
54627 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54628 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54631 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54632 * util/misc.c: Include <malloc.h>.
54633 (pupa_malloc): Rewritten so errors are correctly reported.
54634 (pupa_realloc): Likewise.
54635 (pupa_memalign): Likewise.
54636 (pupa_mm_init_region): Declare unused variables with
54637 `__attribute__ ((unused))' to silence a gcc warning.
54638 * normal/i386/setjmp.S: Remove tab at the end of the file to
54639 silence a gcc warning.
54640 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54641 variables with `__attribute__ ((unused))' to silence a gcc
54643 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54644 local variable i unsigned to silence a gcc warning.
54646 * kern/term.c: Include <pupa/misc.h>.
54647 (pupa_more_lines): New variable.
54648 (pupa_more): Likewise.
54649 (pupa_putcode): When the pager is active pause at the end of every
54651 (pupa_set_more): New function.
54652 * include/pupa/term.h (pupa_set_more): New prototype.
54655 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54657 Now this project is GRUB 2 rather than PUPA. The location of
54658 the CVS repository was moved to GRUB's.
54660 * configure.ac: Use bug-grub as the reporting address.
54661 Use GRUB instead of PUPA.
54662 Change the version number to 1.90.
54664 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54666 * genkernsyms.sh: Updated copyright information.
54667 * genmk.rb: Likewise.
54668 * genmodsrc.sh: Likewise.
54669 * gensymlist.sh: Likewise.
54670 * boot/i386/pc/boot.S: Likewise.
54671 * boot/i386/pc/diskboot.S: Likewise.
54672 * disk/i386/pc/biosdisk.c: Likewise.
54673 * disk/i386/pc/partition.c: Likewise.
54674 * font/manager.c: Likewise.
54675 * fs/ext2.c: Likewise.
54676 * fs/fat.c: Likewise.
54677 * include/pupa/boot.h: Likewise.
54678 * include/pupa/device.h: Likewise.
54679 * include/pupa/disk.h: Likewise.
54680 * include/pupa/dl.h: Likewise.
54681 * include/pupa/elf.h: Likewise.
54682 * include/pupa/err.h: Likewise.
54683 * include/pupa/file.h: Likewise.
54684 * include/pupa/font.h: Likewise.
54685 * include/pupa/fs.h: Likewise.
54686 * include/pupa/kernel.h: Likewise.
54687 * include/pupa/loader.h: Likewise.
54688 * include/pupa/misc.h: Likewise.
54689 * include/pupa/mm.h: Likewise.
54690 * include/pupa/net.h: Likewise.
54691 * include/pupa/normal.h: Likewise.
54692 * include/pupa/rescue.h: Likewise.
54693 * include/pupa/setjmp.h: Likewise.
54694 * include/pupa/symbol.h: Likewise.
54695 * include/pupa/term.h: Likewise.
54696 * include/pupa/types.h: Likewise.
54697 * include/pupa/i386/setjmp.h: Likewise.
54698 * include/pupa/i386/types.h: Likewise.
54699 * include/pupa/i386/pc/biosdisk.h: Likewise.
54700 * include/pupa/i386/pc/boot.h: Likewise.
54701 * include/pupa/i386/pc/console.h: Likewise.
54702 * include/pupa/i386/pc/init.h: Likewise.
54703 * include/pupa/i386/pc/kernel.h: Likewise.
54704 * include/pupa/i386/pc/linux.h: Likewise.
54705 * include/pupa/i386/pc/loader.h: Likewise.
54706 * include/pupa/i386/pc/memory.h: Likewise.
54707 * include/pupa/i386/pc/multiboot.h: Likewise.
54708 * include/pupa/i386/pc/partition.h: Likewise.
54709 * include/pupa/i386/pc/time.h: Likewise.
54710 * include/pupa/i386/pc/vga.h: Likewise.
54711 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54712 * include/pupa/util/getroot.h: Likewise.
54713 * include/pupa/util/misc.h: Likewise.
54714 * include/pupa/util/resolve.h: Likewise.
54715 * kern/device.c: Likewise.
54716 * kern/disk.c: Likewise.
54717 * kern/dl.c: Likewise.
54718 * kern/err.c: Likewise.
54719 * kern/file.c: Likewise.
54720 * kern/fs.c: Likewise.
54721 * kern/loader.c: Likewise.
54722 * kern/main.c: Likewise.
54723 * kern/misc.c: Likewise.
54724 * kern/mm.c: Likewise.
54725 * kern/rescue.c: Likewise.
54726 * kern/term.c: Likewise.
54727 * kern/i386/dl.c: Likewise.
54728 * kern/i386/pc/init.c: Likewise.
54729 * kern/i386/pc/lzo1x.S: Likewise.
54730 * kern/i386/pc/startup.S: Likewise.
54731 * loader/i386/pc/chainloader.c: Likewise.
54732 * loader/i386/pc/linux.c: Likewise.
54733 * loader/i386/pc/multiboot.c: Likewise.
54734 * normal/cmdline.c: Likewise.
54735 * normal/command.c: Likewise.
54736 * normal/main.c: Likewise.
54737 * normal/menu.c: Likewise.
54738 * normal/i386/setjmp.S: Likewise.
54739 * term/i386/pc/console.c: Likewise.
54740 * term/i386/pc/vga.c: Likewise.
54741 * util/console.c: Likewise.
54742 * util/genmoddep.c: Likewise.
54743 * util/misc.c: Likewise.
54744 * util/pupa-emu.c: Likewise.
54745 * util/resolve.c: Likewise.
54746 * util/unifont2pff.rb: Likewise.
54747 * util/i386/pc/biosdisk.c: Likewise.
54748 * util/i386/pc/getroot.c: Likewise.
54749 * util/i386/pc/pupa-mkimage.c: Likewise.
54750 * util/i386/pc/pupa-setup.c: Likewise.
54752 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54754 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54755 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54756 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54757 reading and reset it after reading.
54758 (pupa_ext2_close): Return PUPA_ERR_NONE.
54760 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54762 (struct linux_kernel_header): Add kernel_version and
54764 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54765 pupa_file_read succeeds.
54766 (pupa_rescue_cmd_initrd): Implement.
54768 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54770 * fs/ext2.c (pupa_ext2_label): New function.
54771 (pupa_ext2_fs): Added label.
54772 * fs/fat.c (pupa_fat_label): New function.
54773 (pupa_fat_fs): Added label.
54774 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54776 * kern/misc.c (pupa_strndup): New function.
54777 * include/pupa/misc.h (pupa_strndup): New prototype.
54779 * include/pupa/normal.h: Include <pupa/err.h>.
54780 (pupa_set_history): New prototype.
54781 (pupa_iterate_commands): New prototype.
54782 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54783 <pupa/disk.h>, <pupa/file.h>.
54784 (hist_size): New variable.
54785 (hist_lines): Likewise.
54786 (hist_end): Likewise.
54787 (hist_used): Likewise.
54788 (pupa_set_history): New function.
54789 (pupa_history_get): Likewise.
54790 (pupa_history_add): Likewise.
54791 (pupa_history_replace): Likewise.
54792 (pupa_tab_complete): Likewise.
54793 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54794 completion shows partitionnames while completing partitions, this
54795 feature was suggested by Jeff Bailey.
54796 * normal/command.c (pupa_iterate_commands): New function.
54797 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54798 (pupa_normal_init): Initialize history buffer.
54799 (PUPA_MOD_INIT): Likewise.
54800 (pupa_normal_fini): Free the history buffer.
54801 (PUPA_MOD_FINI): Likewise.
54803 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54806 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54807 * configure.ac [i386]: Check for regparam bug.
54808 (NESTED_FUNC_ATTR) [! i386]: Defined.
54810 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54812 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54813 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54814 (pupa_emu_SOURCES): New variable.
54815 (pupa_emu_LDFLAGS): Likewise.
54816 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54817 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54818 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54819 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54820 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54821 (pupa_jmp_buf): New typedef.
54822 (pupa_setjmp) [PUPA_UTIL]: New macro.
54823 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54824 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54825 (pupa_refresh): New prototype.
54826 * include/pupa/util/getroot.h: New file.
54827 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54829 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54830 (pupa_rescue_cmd_cat): Likewise.
54831 (pupa_rescue_cmd_ls): Likewise.
54832 (pupa_rescue_cmd_testload): Likewise.
54833 (pupa_rescue_cmd_lsmod): Likewise.
54834 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54835 * normal/menu.c (run_menu): Likewise.
54836 * kern/term.c (pupa_cls): Likewise.
54837 (pupa_refresh): New function.
54838 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54839 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54840 * util/console.c: New file.
54842 * util/i386/pc/getroot.c: New file.
54843 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54844 (pupa_putchar): New function.
54845 (pupa_refresh): Likewise.
54846 (xgetcwd): Function moved to ...
54847 (strip_extra_slashes): Likewise.
54848 (get_prefix): Likewise.
54849 * util/i386/pc/getroot.c: ... here.
54850 (find_root_device): Function moved and renamed to...
54851 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54852 Changed all callers.
54853 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54855 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54856 Changed all callers.
54857 * util/misc.c (pupa_memalign): New function.
54858 (pupa_mm_init_region): Likewise.
54859 (pupa_register_exported_symbols): Likewise.
54860 (pupa_putchar): Function removed.
54861 * util/pupa-emu.c: New file.
54863 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54865 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54866 (_multiboot_mod_SOURCES): New variable.
54867 (_multiboot_mod_CFLAGS): Likewise.
54868 * loader/i386/pc/multiboot.c: New file.
54869 * include/pupa/i386/pc/multiboot.h: Likewise.
54870 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54871 (pupa_multiboot_real_boot): New function.
54872 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54873 (pupa_multiboot_real_boot): New prototype.
54874 (pupa_rescue_cmd_multiboot): Likewise
54875 (pupa_rescue_cmd_module): Likewise.
54877 * kern/loader.c (pupa_loader_set): Continue when
54878 pupa_loader_unload_func() fails.
54879 (pupa_loader_unset): New function.
54880 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54882 * kern/misc.c (pupa_stpcpy): New function.
54883 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54885 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54887 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54888 for available extensions.
54890 * include/pupa/i386/pc/time.h: New file.
54891 * kern/disk.c: Include <pupa/machine/time.h>.
54892 (PUPA_CACHE_TIMEOUT): New macro.
54893 (pupa_last_time): New variable.
54894 (pupa_disk_open): Flush the cache when there was a timeout.
54895 (pupa_disk_close): Reset the timer.
54896 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54898 * util/misc.c: Include <sys/times.h>
54899 (pupa_get_rtc): New function.
54901 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54903 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54905 (pupa_ext2_get_file_block): Use blocks member.
54907 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54908 first block. Return -1 instead of pupa_errno on error.
54910 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54912 * README: In the pupa-mkimage example use _chain instead of chain
54913 and ext2 instead of fat.
54914 * TODO: Replace ext2fs with jfs as an example. Add an item for
54915 adding journal playback for ext2fs.
54916 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54917 (pkgdata_MODULES): Added ext2.mod.
54918 (ext2_mod_SOURCES): New variable.
54919 (ext2_mod_CFLAGS): Likewise.
54920 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54921 * include/pupa/misc.h (pupa_strncpy): New prototype.
54922 (pupa_strcat): Likewise.
54923 (pupa_strncmp): Likewise.
54924 * kern/misc.c (pupa_strcat): Enable function.
54925 (pupa_strncpy): New function.
54926 (pupa_strncmp): Likewise.
54927 * fs/ext2.c: New file.
54929 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54930 when the read failed before retrying.
54931 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54932 (_FILE_OFFSET_BITS): Likewise.
54933 * configure.ac: Added AC_SYS_LARGEFILE.
54935 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54937 * genmk.rb (PModule#rule): Make sure to get only symbol names
54938 from the output of nm.
54939 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54941 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54943 I forgot to check in these changes for a long time. This adds
54944 incomplete support for VGA console, and this is still very
54945 buggy. Also, a lot of consideration is required for I18N,
54946 UNICODE, and VGA font issues. Therefore, assume that this is
54947 such that "better than nothing".
54949 * font/manager.c: New file.
54950 * include/pupa/font.h: Likewise.
54951 * include/pupa/i386/pc/vga.h: Likewise.
54952 * term/i386/pc/vga.c: Likewise.
54953 * util/unifont2pff.rb: Likewise.
54955 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54956 (pkgdata_MODULES): Added vga.mod and font.mod.
54957 (vga_mod_SOURCES): New variables.
54958 (vga_mod_CFLAGS): Likewise.
54959 (font_mod_SOURCES): Likewise.
54960 (font_mod_CFLAGS): Likewise.
54962 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54964 * include/pupa/term.h: Include pupa/err.h.
54965 (struct pupa_term): Added init and fini.
54966 Changed the argument of putchar to pupa_uint32_t.
54968 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54969 (pupa_console_real_putchar): New prototype.
54970 (pupa_console_putchar): Removed.
54971 (pupa_console_checkkey): Exported.
54972 (pupa_console_getkey): Likewise.
54974 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54977 * kern/term.c (pupa_term_set_current): Rewritten.
54978 (pupa_putchar): Likewise.
54979 (pupa_putcode): New function.
54981 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54982 (pupa_console_real_putchar): ... this.
54983 (pupa_vga_set_mode): New function.
54984 (pupa_vga_get_font): Likewise.
54986 * normal/command.c: Include pupa/term.h.
54987 (terminal_command): New function.
54988 (pupa_command_init): Register the command "terminal".
54990 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54991 (DISP_UP): Likewise.
54992 (DISP_RIGHT): Likewise.
54993 (DISP_DOWN): Likewise.
54994 (DISP_HLINE): Likewise.
54995 (DISP_VLINE): Likewise.
54996 (DISP_UL): Likewise.
54997 (DISP_UR): Likewise.
54998 (DISP_LL): Likewise.
54999 (DISP_LR): Likewise.
55001 * term/i386/pc/console.c (pupa_console_putchar): New function.
55003 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
55005 * util/resolve.c (pupa_util_resolve_dependencies): BUG
55006 FIX. Reverse the path_list.
55008 * include/pupa/normal.h: Export pupa_register_command and
55009 pupa_unregister_command.
55011 * hello/hello.c (pupa_cmd_hello): New module.
55012 * conf/i386-pc.rmk: Added hello.mod.
55014 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
55016 * kern/i386/pc/lzo1x.S: New file.
55018 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
55019 (compress_kernel): New variable.
55020 (generate_image): Heavily modified to support compressing a
55021 large part of the core image.
55023 * util/misc.c (pupa_util_read_image): Fix a file descriptor
55025 (pupa_util_load_image): New function.
55027 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
55028 (pupa_compressed_size): New variable.
55029 (codestart): Enable Gate A20 here.
55030 Decompress the compressed part of the core image.
55031 Rearrange the code to put functions and variables which are
55032 required for initialization in the non-compressed part.
55035 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
55038 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
55040 * include/pupa/i386/pc/kernel.h
55041 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
55042 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
55043 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55044 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55045 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
55047 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
55049 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
55050 (Utility#rule): Likewise.
55052 * configure.ac: Check if LZO is available.
55054 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
55056 * include/pupa/normal.h: New file.
55057 * include/pupa/setjmp.h: Likewise.
55058 * include/pupa/i386/setjmp.h: Likewise.
55059 * normal/cmdline.c: Likewise.
55060 * normal/command.c: Likewise.
55061 * normal/main.c: Likewise.
55062 * normal/menu.c: Likewise.
55063 * normal/i386/setjmp.S: Likewise.
55065 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
55066 (pupa_rescue_cmd_initrd): Likewise.
55068 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
55071 * kern/i386/pc/startup.S (translation_table): New variable.
55072 (translate_keycode): New function.
55073 (pupa_console_getkey): Call translate_keycode.
55075 * kern/rescue.c (attempt_normal_mode): New function.
55076 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
55077 it failed, print a message.
55079 * kern/mm.c (pupa_real_malloc): Print more information when a
55080 free magic is broken.
55081 (pupa_free): If the first free header is not free actually, set
55084 * kern/main.c (pupa_load_normal_mode): Just load the module
55086 (pupa_main): Don't print the message
55087 "Entering into rescue mode..." here.
55089 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
55091 (pupa_rescue_cmd_initrd): Likewise.
55092 (pupa_rescue_cmd_initrd): Likewise.
55094 * include/pupa/symbol.h (FUNCTION): Specify the type.
55095 (VARIABLE): Likewise.
55097 * include/pupa/err.h (pupa_err_t): Added
55098 PUPA_ERR_UNKNOWN_COMMAND.
55100 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
55101 (pupa_dl_get_prefix): Likewise.
55103 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
55104 Added _chain.mod and _linux.mod instead of chain.mod and
55106 (chain_mod_SOURCES): Renamed to ...
55107 (_chain_mod_SOURCES): ... this.
55108 (chain_mod_CFLAGS): Renamed to ...
55109 (_chain_mod_CFLAGS): ... this.
55110 (linux_mod_SOURCES): Renamed to ...
55111 (_linux_mod_SOURCES): ... this.
55112 (linux_mod_CFLAGS): Renamed to ...
55113 (_linux_mod_CFLAGS): ... this.
55114 (normal_mod_SOURCES): New variable.
55115 (normal_mod_CFLAGS): Likewise.
55116 (normal_mod_ASFLAGS): Likewise.
55118 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
55120 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
55123 * kern/dl.c (pupa_dl_ref): Refer depending modules
55125 (pupa_dl_unref): Unrefer depending modules recursively.
55126 Don't call pupa_dl_unload implicitly, because PUPA can crash if
55127 a module is unloaded before one depending on that module is
55129 (pupa_dl_unload): Unload depending modules explicitly,
55132 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
55134 * include/pupa/i386/pc/linux.h: New file.
55135 * loader/i386/pc/linux.c: Likewise.
55137 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
55139 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
55140 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
55141 of PUPA_CHAINLOADER_BOOT_SECTOR.
55143 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
55144 (pupa_linux_prot_size): New variable.
55145 (pupa_linux_tmp_addr): Likewise.
55146 (pupa_linux_real_addr): Likewise.
55147 (pupa_linux_boot_zimage): New function.
55148 (pupa_linux_boot_bzimage): Likewise.
55150 * kern/i386/pc/init.c (struct mem_region): New structure.
55151 (MAX_REGIONS): New macro.
55152 (mem_regions): New variable.
55153 (num_regions): Likewise.
55154 (pupa_os_area_addr): Likewise.
55155 (pupa_os_area_size): Likewise.
55156 (pupa_lower_mem): Likewise.
55157 (pupa_upper_mem): Likewise.
55158 (add_mem_region): New function.
55159 (compact_mem_regions): Likewise.
55160 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
55161 the size of the conventional memory and that of so-called upper
55162 memory (before the first memory hole).
55163 Instead of adding each found region to free memory, use
55164 add_mem_region and add them after removing overlaps.
55165 Also, add only 1/4 of the upper memory to free memory. The rest
55166 is used for loading OS images. Maybe this is ad hoc, but this
55167 makes it much easier to relocate OS images when booting.
55169 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55170 (pupa_enter_rescue_mode): Don't register initrd and module.
55172 * kern/mm.c: Include pupa/dl.h.
55174 * kern/main.c: Include pupa/file.h and pupa/device.h.
55176 * kern/loader.c (pupa_loader_load_module_func): Removed.
55177 (pupa_loader_load_module): Likewise.
55179 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55182 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55183 (pupa_linux_tmp_addr): Likewise.
55184 (pupa_linux_real_addr): Likewise.
55185 (pupa_linux_boot_zimage): Likewise.
55186 (pupa_linux_boot_bzimage): Likewise.
55188 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55189 (pupa_upper_mem): Likewise.
55190 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55191 module is too dangerous.
55193 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55194 (pupa_os_area_size): Likewise.
55195 (pupa_loader_set): Remove the first argument. Loader doesn't
55196 manage modules or initrd any longer.
55197 (pupa_loader_load_module): Removed.
55199 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55200 (linux_mod_SOURCES): New variable.
55201 (linux_mod_CFLAGS): Likewise.
55203 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55205 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55206 the length of a blocklist correctly.
55208 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55209 Use ioctl only if the OS file is a block device.
55210 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55211 not very useful for normal files.
55213 * kern/main.c (pupa_set_root_dev): New function.
55214 (pupa_load_normal_mode): Likewise.
55215 (pupa_main): Call those above.
55217 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55220 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55222 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55224 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55225 (setup): Configure the installed partition information and the
55228 * loader/i386/pc/chainloader.c (my_mod): New variable.
55229 (pupa_chainloader_unload): New function.
55230 (pupa_rescue_cmd_chainloader): Refer itself.
55231 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55233 * kern/i386/pc/startup.S (install_partition): Removed.
55234 (version_string): Likewise.
55235 (config_file): Likewise.
55236 (pupa_install_dos_part): New variable.
55237 (pupa_install_bsd_part): Likewise.
55238 (pupa_prefix): Likewise.
55239 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55241 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55243 (make_install_device): New function.
55244 (pupa_machine_init): Set the dl prefix.
55246 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55247 (buf): Renamed to ...
55248 (linebuf): ... this.
55249 (pupa_rescue_cmd_prefix): New function.
55250 (pupa_rescue_cmd_insmod): Likewise.
55251 (pupa_rescue_cmd_rmmod): Likewise.
55252 (pupa_rescue_cmd_lsmod): Likewise.
55253 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55256 * kern/mm.c (pupa_memalign): If failed even after invalidating
55257 disk caches, unload unneeded modules and retry.
55259 * kern/misc.c (pupa_memmove): New function.
55260 (pupa_memcpy): Removed.
55261 (pupa_strcpy): New function.
55262 (pupa_itoa): Made static.
55264 * kern/dl.c (pupa_dl_iterate): New function.
55265 (pupa_dl_ref): Likewise.
55266 (pupa_dl_unref): Likewise.
55267 (pupa_dl_unload): Return if succeeded or not.
55268 (pupa_dl_unload_unneeded): New function.
55269 (pupa_dl_unload_all): Likewise.
55270 (pupa_dl_init): Renamed to ...
55271 (pupa_dl_set_prefix): ... this.
55272 (pupa_dl_get_prefix): New function.
55274 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55275 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55276 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55277 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55278 (pupa_install_dos_part): Declared.
55279 (pupa_install_bsd_part): Likewise.
55280 (pupa_prefix): Likewise.
55281 (pupa_boot_drive): Likewise.
55283 * include/pupa/types.h: Fix a typo.
55285 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55287 (pupa_memmove): Declared.
55288 (pupa_strcpy): Likewise.
55290 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55291 pupa_mod_init takes one argument, its own module.
55292 (pupa_dl_unload_unneeded): Declared.
55293 (pupa_dl_unload_all): Likewise.
55294 (pupa_dl_ref): Likewise.
55295 (pupa_dl_unref): Likewise.
55296 (pupa_dl_iterate): Likewise.
55297 (pupa_dl_init): Renamed to ...
55298 (pupa_dl_set_prefix): ... this.
55299 (pupa_dl_get_prefix): Declared.
55301 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55302 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55304 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55305 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55307 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55308 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55310 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55312 * util/i386/pc/pupa-setup.c (setup): Define the internal
55313 function find_first_partition_start at the top level, because GCC
55314 3.0.x cannot compile internal functions in deeper scopes
55316 (find_root_device): Use lstat instead of stat.
55317 Don't follow symbolic links.
55318 Fix the path-constructing code.
55320 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55321 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55322 by a BLKGETSIZE ioctl first, because block devices don't fill
55323 the member st_mode of the structure stat on Linux.
55324 [__linux__] (linux_find_partition): Use a temporary buffer
55325 REAL_DEV for the working space. Copy it to DEV before returning.
55326 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55327 buffer cache consistent.
55328 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55329 strncmp. The previous value was merely wrong.
55330 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55332 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55333 FAT size is 12. The previous value was merely wrong.
55335 * kern/main.c (pupa_main): Don't split the starting message from
55338 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55339 LF, because BIOS goes crazy about character attributes in this
55342 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55344 * include/i386/pc/util/biosdisk.h: New file.
55345 * util/i386/pc/biosdisk.c: Likewise.
55346 * util/i386/pc/pupa-setup.c: Likewise.
55348 * Makefile.in (INCLUDE_DISTFILES): Added
55349 include/pupa/i386/pc/util/biosdisk.h.
55350 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55351 directory util/i386/pc.
55352 (install-local): Added a rule for sbin_UTILITIES.
55353 (uninstall): Likewise.
55355 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55357 * util/misc.c (xrealloc): New function.
55358 (pupa_malloc): Likewise.
55359 (pupa_free): Likewise.
55360 (pupa_realloc): Likewise.
55361 (pupa_stop): Likewise.
55362 (pupa_putchar): Likewise.
55364 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55366 * include/pupa/util/misc.h (xrealloc): Declared.
55368 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55370 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55371 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55373 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55374 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55376 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55377 way should be implemented.
55378 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55380 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55381 the size of NAME for safety.
55382 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55385 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55386 (pupa_setup_SOURCES): Likewise.
55388 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55390 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55392 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55393 bunch of pushl's from pusha, because this destroys the return
55396 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55398 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55399 This means that any missing prototypes could be fatal. Also, you
55400 must take care when writing assembly code. See the comments at
55401 the beginning of startup.S, for more details.
55403 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55404 compilation mechanism.
55405 (pupa_chainloader_real_boot): Likewise.
55406 (pupa_biosdisk_rw_int13_extensions): Likewise.
55407 (pupa_biosdisk_rw_standard): Likewise.
55408 (pupa_biosdisk_check_int13_extensions): Likewise.
55409 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55410 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55411 (pupa_get_memsize): Likewise.
55412 (pupa_get_mmap_entry): Likewise.
55413 (pupa_console_putchar): Likewise.
55414 (pupa_console_setcursor): Likewise.
55415 (pupa_getrtsecs): Use pushl instead of push.
55417 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55418 memory instead of the stack for a mmap entry, because some
55419 BIOSes may ignore the maximum size and overflow.
55421 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55423 * genmk.rb (PModule#rule): Compile automatically generated
55424 sources with module-specific CFLAGS as well as other sources.
55426 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55428 * configure.ac: Check ld.
55429 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55430 respectively, before checking endianness and sizes.
55432 * Makefile.in (LD): New variable.
55434 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55436 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55438 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55440 * Changelog: New file.